NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
blavi Posted via mailing list.
|
Posted: Sun May 22, 2011 3:51 pm Post subject: Re: Netbeans not able to create WebService Clients from Axis2 Projekt ? |
|
|
Hello
I am getting the same warnings when I create a web service client using
Netbeans v.6.7.1. The web service client is succsefully created but when I
run the client and invoke the web service I always get Unsupported Endpoint
Address exception. Are these warnings and exception related?
The warnings are:
parsing WSDL...
[WARNING] port "ComposedWebServiceServicePort" is not a SOAP port, it
has no soap:address
line 29 of
file:/C:/Users/blavi/Documents/NetBeansProjects/ComposedClient/xml-resources/web-service-references/ComposedWebServiceService/wsdl/ComposedWebServiceService.wsdl
[WARNING] port "ComposedWebServiceServicePort": not a standard SOAP
port. The generated artifacts may not work with JAXWS runtime. line 29 of
file:/C:/Users/blavi/Documents/NetBeansProjects/ComposedClient/xml-resources/web-service-references/ComposedWebServiceService/wsdl/ComposedWebServiceService.wsdl
The wsdl provided for creating the web service client, which also fires the
warnings is:
<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://schemas.xmlsoap.org/wsdl/"
name="ComposedWebServiceService"
targetNamespace="http://j2ee.netbeans.org/wsdl/CompositionBpelModule/ComposedWebServiceService"
xmlns:ns0="http://www.w3.org/2001/XMLSchema"
xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap"
xmlns:tns="http://j2ee.netbeans.org/wsdl/CompositionBpelModule/ComposedWebServiceService"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl">
<types/>
<message name="EnterComposition">
<part name="compositionIN" type="ns0:string"/>
</message>
<message name="ExitComposition">
<part name="compositionOUT" type="ns0:string"/>
</message>
<portType name="ComposedWebServiceServicePortType">
<operation name="ComposedWebServiceServiceOperation">
<input message="tns:EnterComposition" name="input1"/>
<output message="tns:ExitComposition" name="output1"/>
</operation>
</portType>
<binding name="ComposedWebServiceServiceBinding"
type="tns:ComposedWebServiceServicePortType">
<soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="ComposedWebServiceServiceOperation">
<soap:operation
soapAction="http://j2ee.netbeans.org/wsdl/CompositionBpelModule/ComposedWebServiceService/ComposedWebServiceServiceOperation"
style="document"/>
<input name="input1">
<soap:body use="literal"/>
</input>
<output name="output1">
<soap:body use="literal"/>
</output>
</operation>
</binding>
<service name="ComposedWebServiceServiceService">
**<port binding="tns:ComposedWebServiceServiceBinding"
name="ComposedWebServiceServicePort">**
<soap:address
location="http://localhost:8184/ComposedWebServiceServiceService/ComposedWebServiceServicePort"/>
</port>
</service>
<plnk:partnerLinkType name="ComposedWebServiceService">
<plnk:role name="compositionPartnerLinkType"
portType="tns:ComposedWebServiceServicePortType"/>
</plnk:partnerLinkType>
</definitions>
The line marked with ** is line 29 where the warnings appear.
The exception is:
Exception in thread "main" javax.xml.ws.WebServiceException: Unsupported
endpoint address:
at
com.sun.xml.internal.ws.api.pipe.TransportTubeFactory.create(TransportTubeFactory.java:133)
at
com.sun.xml.internal.ws.transport.DeferredTransportPipe.processRequest(DeferredTransportPipe.java:101)
at com.sun.xml.internal.ws.api.pipe.Fiber.__doRun(Fiber.java:587)
at com.sun.xml.internal.ws.api.pipe.Fiber._doRun(Fiber.java:546)
at com.sun.xml.internal.ws.api.pipe.Fiber.doRun(Fiber.java:531)
at com.sun.xml.internal.ws.api.pipe.Fiber.runSync(Fiber.java:428)
at com.sun.xml.internal.ws.client.Stub.process(Stub.java:211)
at
com.sun.xml.internal.ws.client.sei.SEIStub.doProcess(SEIStub.java:124)
at
com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:9
at
com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:7
at
com.sun.xml.internal.ws.client.sei.SEIStub.invoke(SEIStub.java:107)
at $Proxy22.composedWebServiceServiceOperation(Unknown Source)
at composedclient.Main.main(Main.java:21)
Where the Main class is:
public class Main {
public static void main(String[] args) {
org.netbeans.j2ee.wsdl.compositionbpelmodule.composedwebserviceservice.ComposedWebServiceServiceService
service = new
org.netbeans.j2ee.wsdl.compositionbpelmodule.composedwebserviceservice.ComposedWebServiceServiceService();
org.netbeans.j2ee.wsdl.compositionbpelmodule.composedwebserviceservice.ComposedWebServiceServicePortType
port = service.getComposedWebServiceServicePort();
System.out.println(port.composedWebServiceServiceOperation("sdd"));
}
}
Thank you
--
View this message in context: http://netbeans-org.1045718.n5.nabble.com/Netbeans-not-able-to-create-WebService-Clients-from-Axis2-Projekt-tp3370179p4416909.html
Sent from the Netbeans - J2EE mailing list archive at Nabble.com. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|