Pessoa estou tentando consumir um WS(simples) feito em delphi, tentei usar o JAX-WS e deu erro na geracao das classes agora tentei via RPC ele gerou porem me retornou o seguinte erro:
InvocationTargetException org.netbeans.modules.websvc.registry.ui.ReflectionHelper.callMethodWithParams(ReflectionHelper.java:540) org.netbeans.modules.websvc.registry.ui.TestWebServiceMethodDlg.invokeMethod(TestWebServiceMethodDlg.java:466) org.netbeans.modules.websvc.registry.ui.TestWebServiceMethodDlg.access$500(TestWebServiceMethodDlg.java:92) org.netbeans.modules.websvc.registry.ui.TestWebServiceMethodDlg$3.run(TestWebServiceMethodDlg.java:409) org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:561) org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:986) Next Exception Layer null sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:597) org.netbeans.modules.websvc.registry.ui.ReflectionHelper.callMethodWithParams(ReflectionHelper.java:534) org.netbeans.modules.websvc.registry.ui.TestWebServiceMethodDlg.invokeMethod(TestWebServiceMethodDlg.java:466) org.netbeans.modules.websvc.registry.ui.TestWebServiceMethodDlg.access$500(TestWebServiceMethodDlg.java:92) org.netbeans.modules.websvc.registry.ui.TestWebServiceMethodDlg$3.run(TestWebServiceMethodDlg.java:409) org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:561) org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:986) Next Exception Layer HTTP transport error: java.net.ConnectException: Connection timed out: connect; nested exception is: HTTP transport error: java.net.ConnectException: Connection timed out: connect webservice.IEchoService_Stub.echoInt(IEchoService_Stub.java:343) webservice.IEchoServiceserviceClient.iechoserviceportEchoInt(IEchoServiceserviceClient.java:30) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:597) org.netbeans.modules.websvc.registry.ui.ReflectionHelper.callMethodWithParams(ReflectionHelper.java:534) org.netbeans.modules.websvc.registry.ui.TestWebServiceMethodDlg.invokeMethod(TestWebServiceMethodDlg.java:466) org.netbeans.modules.websvc.registry.ui.TestWebServiceMethodDlg.access$500(TestWebServiceMethodDlg.java:92) org.netbeans.modules.websvc.registry.ui.TestWebServiceMethodDlg$3.run(TestWebServiceMethodDlg.java:409) org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:561) org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:986) Next Exception Layer HTTP transport error: java.net.ConnectException: Connection timed out: connect com.sun.xml.rpc.client.http.HttpClientTransport.invoke(HttpClientTransport.java:140) com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:96) webservice.IEchoService_Stub.echoInt(IEchoService_Stub.java:326) webservice.IEchoServiceserviceClient.iechoserviceportEchoInt(IEchoServiceserviceClient.java:30) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:597) org.netbeans.modules.websvc.registry.ui.ReflectionHelper.callMethodWithParams(ReflectionHelper.java:534) org.netbeans.modules.websvc.registry.ui.TestWebServiceMethodDlg.invokeMethod(TestWebServiceMethodDlg.java:466) org.netbeans.modules.websvc.registry.ui.TestWebServiceMethodDlg.access$500(TestWebServiceMethodDlg.java:92) org.netbeans.modules.websvc.registry.ui.TestWebServiceMethodDlg$3.run(TestWebServiceMethodDlg.java:409) org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:561) org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:986)[/quote]
segue o WSDL do WS abaixo
<blockquote>
−
−
<xs:schema targetNamespace= “urn:EchoServiceIntf” >
−
<xs:complexType name= “ArrayofString” >
−
<a> xs:complexContent</a>
−
<xs:restriction base= “soapenc:Array” >
<a> xs:sequence/</a>
<xs:attribute ref= “soapenc:arrayType” n1:arrayType= “xs:string[]”/ >
</xs:restriction>
</xs:complexContent>
</xs:complexType>
−
<xs:complexType name= “ArrayofWString” >
−
<a> xs:complexContent</a>
−
<xs:restriction base= “soapenc:Array” >
<a> xs:sequence/</a>
<xs:attribute ref= “soapenc:arrayType” n1:arrayType= “xs:string[]”/ >
</xs:restriction>
</xs:complexContent>
</xs:complexType>
−
<xs:complexType name= “ArrayofInt” >
−
<a> xs:complexContent</a>
−
<xs:restriction base= “soapenc:Array” >
<a> xs:sequence/</a>
<xs:attribute ref= “soapenc:arrayType” n1:arrayType= “xs:int[]”/ >
</xs:restriction>
</xs:complexContent>
</xs:complexType>
−
<xs:complexType name= “ArrayofDouble” >
−
<a> xs:complexContent</a>
−
<xs:restriction base= “soapenc:Array” >
<a> xs:sequence/</a>
<xs:attribute ref= “soapenc:arrayType” n1:arrayType= “xs:double[]”/ >
</xs:restriction>
</xs:complexContent>
</xs:complexType>
−
<xs:complexType name= “SoapStruct” >
−
<a> xs:sequence</a>
<xs:element name= “varString” type= “xs:string”/ >
<xs:element name= “varWString” type= “xs:string”/ >
<xs:element name= “varInt” type= “xs:int”/ >
<xs:element name= “varDouble” type= “xs:double”/ >
</xs:sequence>
</xs:complexType>
−
<xs:complexType name= “ArrayofSOAPStruct” >
−
<a> xs:complexContent</a>
−
<xs:restriction base= “soapenc:Array” >
<a> xs:sequence/</a>
<xs:attribute ref= “soapenc:arrayType” n1:arrayType= “ns1:SoapStruct[]”/ >
</xs:restriction>
</xs:complexContent>
</xs:complexType>
</xs:schema>
−
−
−
−
−
−
−
−
−
−
−
−
−
−
−
−
−
−
−
−
−
−
−
−
−
−
−
−
−
−
−
−
−
−
−
−
−
−
−
−
−
−
−
−
−
−
−
−
−
−
−
−
<soap:binding style= “rpc” transport= “<a href= "http://schemas.xmlsoap.org/soap/http" > http://schemas.xmlsoap.org/soap/http</a> ”/>
−
<soap:operation soapAction= “urn:EchoServiceIntf-IEchoService#echoString” style= “rpc”/ >
−
<soap:body use= “encoded” encodingStyle= “<a href= "http://schemas.xmlsoap.org/soap/encoding/" > http://schemas.xmlsoap.org/soap/encoding/</a> ” namespace=“urn:EchoServiceIntf-IEchoService”/>
−
<soap:body use= “encoded” encodingStyle= “<a href= "http://schemas.xmlsoap.org/soap/encoding/" > http://schemas.xmlsoap.org/soap/encoding/</a> ” namespace=“urn:EchoServiceIntf-IEchoService”/>
−
<soap:operation soapAction= “urn:EchoServiceIntf-IEchoService#echoWString” style= “rpc”/ >
−
<soap:body use= “encoded” encodingStyle= “<a href= "http://schemas.xmlsoap.org/soap/encoding/" > http://schemas.xmlsoap.org/soap/encoding/</a> ” namespace=“urn:EchoServiceIntf-IEchoService”/>
−
<soap:body use= “encoded” encodingStyle= “<a href= "http://schemas.xmlsoap.org/soap/encoding/" > http://schemas.xmlsoap.org/soap/encoding/</a> ” namespace=“urn:EchoServiceIntf-IEchoService”/>
−
<soap:operation soapAction= “urn:EchoServiceIntf-IEchoService#echoInt” style= “rpc”/ >
−
<soap:body use= “encoded” encodingStyle= “<a href= "http://schemas.xmlsoap.org/soap/encoding/" > http://schemas.xmlsoap.org/soap/encoding/</a> ” namespace=“urn:EchoServiceIntf-IEchoService”/>
−
<soap:body use= “encoded” encodingStyle= “<a href= "http://schemas.xmlsoap.org/soap/encoding/" > http://schemas.xmlsoap.org/soap/encoding/</a> ” namespace=“urn:EchoServiceIntf-IEchoService”/>
−
<soap:operation soapAction= “urn:EchoServiceIntf-IEchoService#echoDouble” style= “rpc”/ >
−
<soap:body use= “encoded” encodingStyle= “<a href= "http://schemas.xmlsoap.org/soap/encoding/" > http://schemas.xmlsoap.org/soap/encoding/</a> ” namespace=“urn:EchoServiceIntf-IEchoService”/>
−
<soap:body use= “encoded” encodingStyle= “<a href= "http://schemas.xmlsoap.org/soap/encoding/" > http://schemas.xmlsoap.org/soap/encoding/</a> ” namespace=“urn:EchoServiceIntf-IEchoService”/>
−
<soap:operation soapAction= “urn:EchoServiceIntf-IEchoService#echoBoolean” style= “rpc”/ >
−
<soap:body use= “encoded” encodingStyle= “<a href= "http://schemas.xmlsoap.org/soap/encoding/" > http://schemas.xmlsoap.org/soap/encoding/</a> ” namespace=“urn:EchoServiceIntf-IEchoService”/>
−
<soap:body use= “encoded” encodingStyle= “<a href= "http://schemas.xmlsoap.org/soap/encoding/" > http://schemas.xmlsoap.org/soap/encoding/</a> ” namespace=“urn:EchoServiceIntf-IEchoService”/>
−
<soap:operation soapAction= “urn:EchoServiceIntf-IEchoService#echoTDateTime” style= “rpc”/ >
−
<soap:body use= “encoded” encodingStyle= “<a href= "http://schemas.xmlsoap.org/soap/encoding/" > http://schemas.xmlsoap.org/soap/encoding/</a> ” namespace=“urn:EchoServiceIntf-IEchoService”/>
−
<soap:body use= “encoded” encodingStyle= “<a href= "http://schemas.xmlsoap.org/soap/encoding/" > http://schemas.xmlsoap.org/soap/encoding/</a> ” namespace=“urn:EchoServiceIntf-IEchoService”/>
−
<soap:operation soapAction= “urn:EchoServiceIntf-IEchoService#echoStringArray” style= “rpc”/ >
−
<soap:body use= “encoded” encodingStyle= “<a href= "http://schemas.xmlsoap.org/soap/encoding/" > http://schemas.xmlsoap.org/soap/encoding/</a> ” namespace=“urn:EchoServiceIntf-IEchoService”/>
−
<soap:body use= “encoded” encodingStyle= “<a href= "http://schemas.xmlsoap.org/soap/encoding/" > http://schemas.xmlsoap.org/soap/encoding/</a> ” namespace=“urn:EchoServiceIntf-IEchoService”/>
−
<soap:operation soapAction= “urn:EchoServiceIntf-IEchoService#echoWStringArray” style= “rpc”/ >
−
<soap:body use= “encoded” encodingStyle= “<a href= "http://schemas.xmlsoap.org/soap/encoding/" > http://schemas.xmlsoap.org/soap/encoding/</a> ” namespace=“urn:EchoServiceIntf-IEchoService”/>
−
<soap:body use= “encoded” encodingStyle= “<a href= "http://schemas.xmlsoap.org/soap/encoding/" > http://schemas.xmlsoap.org/soap/encoding/</a> ” namespace=“urn:EchoServiceIntf-IEchoService”/>
−
<soap:operation soapAction= “urn:EchoServiceIntf-IEchoService#echoIntArray” style= “rpc”/ >
−
<soap:body use= “encoded” encodingStyle= “<a href= "http://schemas.xmlsoap.org/soap/encoding/" > http://schemas.xmlsoap.org/soap/encoding/</a> ” namespace=“urn:EchoServiceIntf-IEchoService”/>
−
<soap:body use= “encoded” encodingStyle= “<a href= "http://schemas.xmlsoap.org/soap/encoding/" > http://schemas.xmlsoap.org/soap/encoding/</a> ” namespace=“urn:EchoServiceIntf-IEchoService”/>
−
<soap:operation soapAction= “urn:EchoServiceIntf-IEchoService#echoDoubleArray” style= “rpc”/ >
−
<soap:body use= “encoded” encodingStyle= “<a href= "http://schemas.xmlsoap.org/soap/encoding/" > http://schemas.xmlsoap.org/soap/encoding/</a> ” namespace=“urn:EchoServiceIntf-IEchoService”/>
−
<soap:body use= “encoded” encodingStyle= “<a href= "http://schemas.xmlsoap.org/soap/encoding/" > http://schemas.xmlsoap.org/soap/encoding/</a> ” namespace=“urn:EchoServiceIntf-IEchoService”/>
−
<soap:operation soapAction= “urn:EchoServiceIntf-IEchoService#echoSoapStruct” style= “rpc”/ >
−
<soap:body use= “encoded” encodingStyle= “<a href= "http://schemas.xmlsoap.org/soap/encoding/" > http://schemas.xmlsoap.org/soap/encoding/</a> ” namespace=“urn:EchoServiceIntf-IEchoService”/>
−
<soap:body use= “encoded” encodingStyle= “<a href= "http://schemas.xmlsoap.org/soap/encoding/" > http://schemas.xmlsoap.org/soap/encoding/</a> ” namespace=“urn:EchoServiceIntf-IEchoService”/>
−
<soap:operation soapAction= “urn:EchoServiceIntf-IEchoService#echoSoapStructArray” style= “rpc”/ >
−
<soap:body use= “encoded” encodingStyle= “<a href= "http://schemas.xmlsoap.org/soap/encoding/" > http://schemas.xmlsoap.org/soap/encoding/</a> ” namespace=“urn:EchoServiceIntf-IEchoService”/>
−
<soap:body use= “encoded” encodingStyle= “<a href= "http://schemas.xmlsoap.org/soap/encoding/" > http://schemas.xmlsoap.org/soap/encoding/</a> ” namespace=“urn:EchoServiceIntf-IEchoService”/>
−
<soap:operation soapAction= “urn:EchoServiceIntf-IEchoService#echoDate” style= “rpc”/ >
−
<soap:body use= “encoded” encodingStyle= “<a href= "http://schemas.xmlsoap.org/soap/encoding/" > http://schemas.xmlsoap.org/soap/encoding/</a> ” namespace=“urn:EchoServiceIntf-IEchoService”/>
−
<soap:body use= “encoded” encodingStyle= “<a href= "http://schemas.xmlsoap.org/soap/encoding/" > http://schemas.xmlsoap.org/soap/encoding/</a> ” namespace=“urn:EchoServiceIntf-IEchoService”/>
−
<soap:operation soapAction= “urn:EchoServiceIntf-IEchoService#echoDecimal” style= “rpc”/ >
−
<soap:body use= “encoded” encodingStyle= “<a href= "http://schemas.xmlsoap.org/soap/encoding/" > http://schemas.xmlsoap.org/soap/encoding/</a> ” namespace=“urn:EchoServiceIntf-IEchoService”/>
−
<soap:body use= “encoded” encodingStyle= “<a href= "http://schemas.xmlsoap.org/soap/encoding/" > http://schemas.xmlsoap.org/soap/encoding/</a> ” namespace=“urn:EchoServiceIntf-IEchoService”/>
−
<soap:operation soapAction= “urn:EchoServiceIntf-IEchoService#GetAttachment” style= “rpc”/ >
−
<soap:body use= “encoded” encodingStyle= “<a href= "http://schemas.xmlsoap.org/soap/encoding/" > http://schemas.xmlsoap.org/soap/encoding/</a> ” namespace=“urn:EchoServiceIntf-IEchoService”/>
−
−
<a> mime:multipartRelated</a>
−
<a> mime:part</a>
<soap:body use= “encoded” encodingStyle= “<a href= "http://schemas.xmlsoap.org/soap/encoding/" > http://schemas.xmlsoap.org/soap/encoding/</a> ” namespace=“urn:EchoServiceIntf-IEchoService”/>
</mime:part>
−
<a> mime:part</a>
<mime:content part= “return” type= “application/binary”/ >
</mime:part>
</mime:multipartRelated>
−
<soap:operation soapAction= “urn:EchoServiceIntf-IEchoService#SendAttachment” style= “rpc”/ >
−
−
<a> mime:multipartRelated</a>
−
<a> mime:part</a>
<soap:body use= “encoded” encodingStyle= “<a href= "http://schemas.xmlsoap.org/soap/encoding/" > http://schemas.xmlsoap.org/soap/encoding/</a> ” namespace=“urn:EchoServiceIntf-IEchoService”/>
</mime:part>
−
<a> mime:part</a>
<mime:content part= “Attachment” type= “application/binary”/ >
</mime:part>
</mime:multipartRelated>
−
<soap:body use= “encoded” encodingStyle= “<a href= "http://schemas.xmlsoap.org/soap/encoding/" > http://schemas.xmlsoap.org/soap/encoding/</a> ” namespace=“urn:EchoServiceIntf-IEchoService”/>
−
<soap:operation soapAction= “urn:EchoServiceIntf-IEchoService#GetAttachmentList” style= “rpc”/ >
−
<soap:body use= “encoded” encodingStyle= “<a href= "http://schemas.xmlsoap.org/soap/encoding/" > http://schemas.xmlsoap.org/soap/encoding/</a> ” namespace=“urn:EchoServiceIntf-IEchoService”/>
−
<soap:body use= “encoded” encodingStyle= “<a href= "http://schemas.xmlsoap.org/soap/encoding/" > http://schemas.xmlsoap.org/soap/encoding/</a> ” namespace=“urn:EchoServiceIntf-IEchoService”/>
−
−
<soap:address location= “<a href= "http://200.206.179.171:9092/echoservice_cgi.exe/soap/IEchoService" > http://200.206.179.171:9092/echoservice_cgi.exe/soap/IEchoService</a> ”/>
</blockquote>
OBs na hora de gerar ele deu os seguintes Warnings:
[quote]arning: Processing WS-I non conforming operation “echoString” with RPC-Style and SOAP-encoded
warning: Processing WS-I non conforming operation “echoWString” with RPC-Style and SOAP-encoded
warning: Processing WS-I non conforming operation “echoInt” with RPC-Style and SOAP-encoded
warning: Processing WS-I non conforming operation “echoDouble” with RPC-Style and SOAP-encoded
warning: Processing WS-I non conforming operation “echoBoolean” with RPC-Style and SOAP-encoded
warning: Processing WS-I non conforming operation “echoTDateTime” with RPC-Style and SOAP-encoded
warning: Processing WS-I non conforming operation “echoStringArray” with RPC-Style and SOAP-encoded
warning: Processing WS-I non conforming operation “echoWStringArray” with RPC-Style and SOAP-encoded
warning: Processing WS-I non conforming operation “echoIntArray” with RPC-Style and SOAP-encoded
warning: Processing WS-I non conforming operation “echoDoubleArray” with RPC-Style and SOAP-encoded
warning: Processing WS-I non conforming operation “echoSoapStruct” with RPC-Style and SOAP-encoded
warning: Processing WS-I non conforming operation “echoSoapStructArray” with RPC-Style and SOAP-encoded
warning: Processing WS-I non conforming operation “echoDate” with RPC-Style and SOAP-encoded
warning: Processing WS-I non conforming operation “echoDecimal” with RPC-Style and SOAP-encoded
warning: Processing WS-I non conforming operation “GetAttachment” with RPC-Style and SOAP-encoded
warning: Processing WS-I non conforming operation “SendAttachment” with RPC-Style and SOAP-encoded
warning: Processing WS-I non conforming operation “GetAttachmentList” with RPC-Style and SOAP-encoded
alguem ae sabe o pq??
abracos