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
[quote]
−
−
<xs:schema targetNamespace=“urn:EchoServiceIntf”>
−
<xs:complexType name=“ArrayofString”>
−
xs:complexContent
−
<xs:restriction base=“soapenc:Array”>
xs:sequence/
<xs:attribute ref=“soapenc:arrayType” n1:arrayType=“xs:string[]”/>
</xs:restriction>
</xs:complexContent>
</xs:complexType>
−
<xs:complexType name=“ArrayofWString”>
−
xs:complexContent
−
<xs:restriction base=“soapenc:Array”>
xs:sequence/
<xs:attribute ref=“soapenc:arrayType” n1:arrayType=“xs:string[]”/>
</xs:restriction>
</xs:complexContent>
</xs:complexType>
−
<xs:complexType name=“ArrayofInt”>
−
xs:complexContent
−
<xs:restriction base=“soapenc:Array”>
xs:sequence/
<xs:attribute ref=“soapenc:arrayType” n1:arrayType=“xs:int[]”/>
</xs:restriction>
</xs:complexContent>
</xs:complexType>
−
<xs:complexType name=“ArrayofDouble”>
−
xs:complexContent
−
<xs:restriction base=“soapenc:Array”>
xs:sequence/
<xs:attribute ref=“soapenc:arrayType” n1:arrayType=“xs:double[]”/>
</xs:restriction>
</xs:complexContent>
</xs:complexType>
−
<xs:complexType name=“SoapStruct”>
−
xs:sequence
<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”>
−
xs:complexContent
−
<xs:restriction base=“soapenc:Array”>
xs:sequence/
<xs:attribute ref=“soapenc:arrayType” n1:arrayType=“ns1:SoapStruct[]”/>
</xs:restriction>
</xs:complexContent>
</xs:complexType>
</xs:schema>
−
−
−
−
−
−
−
−
−
−
−
−
−
−
−
−
−
−
−
−
−
−
−
−
−
−
−
−
−
−
−
−
−
−
−
−
−
−
−
−
−
−
−
−
−
−
−
−
−
−
−
−
<soap:binding style=“rpc” transport=“http://schemas.xmlsoap.org/soap/http ”/>
−
<soap:operation soapAction=“urn:EchoServiceIntf-IEchoService#echoString” style=“rpc”/>
−
<soap:body use=“encoded” encodingStyle=“http://schemas.xmlsoap.org/soap/encoding/ ” namespace=“urn:EchoServiceIntf-IEchoService”/>
−
<soap:body use=“encoded” encodingStyle=“http://schemas.xmlsoap.org/soap/encoding/ ” namespace=“urn:EchoServiceIntf-IEchoService”/>
−
<soap:operation soapAction=“urn:EchoServiceIntf-IEchoService#echoWString” style=“rpc”/>
−
<soap:body use=“encoded” encodingStyle=“http://schemas.xmlsoap.org/soap/encoding/ ” namespace=“urn:EchoServiceIntf-IEchoService”/>
−
<soap:body use=“encoded” encodingStyle=“http://schemas.xmlsoap.org/soap/encoding/ ” namespace=“urn:EchoServiceIntf-IEchoService”/>
−
<soap:operation soapAction=“urn:EchoServiceIntf-IEchoService#echoInt” style=“rpc”/>
−
<soap:body use=“encoded” encodingStyle=“http://schemas.xmlsoap.org/soap/encoding/ ” namespace=“urn:EchoServiceIntf-IEchoService”/>
−
<soap:body use=“encoded” encodingStyle=“http://schemas.xmlsoap.org/soap/encoding/ ” namespace=“urn:EchoServiceIntf-IEchoService”/>
−
<soap:operation soapAction=“urn:EchoServiceIntf-IEchoService#echoDouble” style=“rpc”/>
−
<soap:body use=“encoded” encodingStyle=“http://schemas.xmlsoap.org/soap/encoding/ ” namespace=“urn:EchoServiceIntf-IEchoService”/>
−
<soap:body use=“encoded” encodingStyle=“http://schemas.xmlsoap.org/soap/encoding/ ” namespace=“urn:EchoServiceIntf-IEchoService”/>
−
<soap:operation soapAction=“urn:EchoServiceIntf-IEchoService#echoBoolean” style=“rpc”/>
−
<soap:body use=“encoded” encodingStyle=“http://schemas.xmlsoap.org/soap/encoding/ ” namespace=“urn:EchoServiceIntf-IEchoService”/>
−
<soap:body use=“encoded” encodingStyle=“http://schemas.xmlsoap.org/soap/encoding/ ” namespace=“urn:EchoServiceIntf-IEchoService”/>
−
<soap:operation soapAction=“urn:EchoServiceIntf-IEchoService#echoTDateTime” style=“rpc”/>
−
<soap:body use=“encoded” encodingStyle=“http://schemas.xmlsoap.org/soap/encoding/ ” namespace=“urn:EchoServiceIntf-IEchoService”/>
−
<soap:body use=“encoded” encodingStyle=“http://schemas.xmlsoap.org/soap/encoding/ ” namespace=“urn:EchoServiceIntf-IEchoService”/>
−
<soap:operation soapAction=“urn:EchoServiceIntf-IEchoService#echoStringArray” style=“rpc”/>
−
<soap:body use=“encoded” encodingStyle=“http://schemas.xmlsoap.org/soap/encoding/ ” namespace=“urn:EchoServiceIntf-IEchoService”/>
−
<soap:body use=“encoded” encodingStyle=“http://schemas.xmlsoap.org/soap/encoding/ ” namespace=“urn:EchoServiceIntf-IEchoService”/>
−
<soap:operation soapAction=“urn:EchoServiceIntf-IEchoService#echoWStringArray” style=“rpc”/>
−
<soap:body use=“encoded” encodingStyle=“http://schemas.xmlsoap.org/soap/encoding/ ” namespace=“urn:EchoServiceIntf-IEchoService”/>
−
<soap:body use=“encoded” encodingStyle=“http://schemas.xmlsoap.org/soap/encoding/ ” namespace=“urn:EchoServiceIntf-IEchoService”/>
−
<soap:operation soapAction=“urn:EchoServiceIntf-IEchoService#echoIntArray” style=“rpc”/>
−
<soap:body use=“encoded” encodingStyle=“http://schemas.xmlsoap.org/soap/encoding/ ” namespace=“urn:EchoServiceIntf-IEchoService”/>
−
<soap:body use=“encoded” encodingStyle=“http://schemas.xmlsoap.org/soap/encoding/ ” namespace=“urn:EchoServiceIntf-IEchoService”/>
−
<soap:operation soapAction=“urn:EchoServiceIntf-IEchoService#echoDoubleArray” style=“rpc”/>
−
<soap:body use=“encoded” encodingStyle=“http://schemas.xmlsoap.org/soap/encoding/ ” namespace=“urn:EchoServiceIntf-IEchoService”/>
−
<soap:body use=“encoded” encodingStyle=“http://schemas.xmlsoap.org/soap/encoding/ ” namespace=“urn:EchoServiceIntf-IEchoService”/>
−
<soap:operation soapAction=“urn:EchoServiceIntf-IEchoService#echoSoapStruct” style=“rpc”/>
−
<soap:body use=“encoded” encodingStyle=“http://schemas.xmlsoap.org/soap/encoding/ ” namespace=“urn:EchoServiceIntf-IEchoService”/>
−
<soap:body use=“encoded” encodingStyle=“http://schemas.xmlsoap.org/soap/encoding/ ” namespace=“urn:EchoServiceIntf-IEchoService”/>
−
<soap:operation soapAction=“urn:EchoServiceIntf-IEchoService#echoSoapStructArray” style=“rpc”/>
−
<soap:body use=“encoded” encodingStyle=“http://schemas.xmlsoap.org/soap/encoding/ ” namespace=“urn:EchoServiceIntf-IEchoService”/>
−
<soap:body use=“encoded” encodingStyle=“http://schemas.xmlsoap.org/soap/encoding/ ” namespace=“urn:EchoServiceIntf-IEchoService”/>
−
<soap:operation soapAction=“urn:EchoServiceIntf-IEchoService#echoDate” style=“rpc”/>
−
<soap:body use=“encoded” encodingStyle=“http://schemas.xmlsoap.org/soap/encoding/ ” namespace=“urn:EchoServiceIntf-IEchoService”/>
−
<soap:body use=“encoded” encodingStyle=“http://schemas.xmlsoap.org/soap/encoding/ ” namespace=“urn:EchoServiceIntf-IEchoService”/>
−
<soap:operation soapAction=“urn:EchoServiceIntf-IEchoService#echoDecimal” style=“rpc”/>
−
<soap:body use=“encoded” encodingStyle=“http://schemas.xmlsoap.org/soap/encoding/ ” namespace=“urn:EchoServiceIntf-IEchoService”/>
−
<soap:body use=“encoded” encodingStyle=“http://schemas.xmlsoap.org/soap/encoding/ ” namespace=“urn:EchoServiceIntf-IEchoService”/>
−
<soap:operation soapAction=“urn:EchoServiceIntf-IEchoService#GetAttachment” style=“rpc”/>
−
<soap:body use=“encoded” encodingStyle=“http://schemas.xmlsoap.org/soap/encoding/ ” namespace=“urn:EchoServiceIntf-IEchoService”/>
−
−
mime:multipartRelated
−
mime:part
<soap:body use=“encoded” encodingStyle=“http://schemas.xmlsoap.org/soap/encoding/ ” namespace=“urn:EchoServiceIntf-IEchoService”/>
</mime:part>
−
mime:part
<mime:content part=“return” type=“application/binary”/>
</mime:part>
</mime:multipartRelated>
−
<soap:operation soapAction=“urn:EchoServiceIntf-IEchoService#SendAttachment” style=“rpc”/>
−
−
mime:multipartRelated
−
mime:part
<soap:body use=“encoded” encodingStyle=“http://schemas.xmlsoap.org/soap/encoding/ ” namespace=“urn:EchoServiceIntf-IEchoService”/>
</mime:part>
−
mime:part
<mime:content part=“Attachment” type=“application/binary”/>
</mime:part>
</mime:multipartRelated>
−
<soap:body use=“encoded” encodingStyle=“http://schemas.xmlsoap.org/soap/encoding/ ” namespace=“urn:EchoServiceIntf-IEchoService”/>
−
<soap:operation soapAction=“urn:EchoServiceIntf-IEchoService#GetAttachmentList” style=“rpc”/>
−
<soap:body use=“encoded” encodingStyle=“http://schemas.xmlsoap.org/soap/encoding/ ” namespace=“urn:EchoServiceIntf-IEchoService”/>
−
<soap:body use=“encoded” encodingStyle=“http://schemas.xmlsoap.org/soap/encoding/ ” namespace=“urn:EchoServiceIntf-IEchoService”/>
−
−
<soap:address location=“http://200.206.179.171:9092/echoservice_cgi.exe/soap/IEchoService ”/>
[/quote]
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