P
Pif
Hello, I've tried a sample that is provided using JAX-WS. The service
is well running in Endpoint. When I try to generate files at client
side, using wsimport command line, an error occur that say I've not a
WSDL Definition root.
When I run the request in firefox and look at the source code of the
page, I can see that tags are not prefixed by wsdl:
Below is the code that is generated. Can you help me ?
Thanks.
<?xml version="1.0" encoding="UTF-8"?><!-- Published by JAX-WS RI at
http://jax-ws.dev.java.net. RI's version is JAX-WS RI 2.1.1 in JDK 6.
--><!-- Generated by JAX-WS RI at http://jax-ws.dev.java.net. RI's
version is JAX-WS RI 2.1.1 in JDK 6. --><definitions
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://
soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://
schemas.xmlsoap.org/wsdl/" targetNamespace="http://soap/"
name="MySoapServiceService">
<types>
<xsd:schema>
<xsd:import namespace="http://soap/" schemaLocation="http://localhost:
8089/services?xsd=1"></xsd:import>
</xsd:schema>
</types>
<message name="getDR">
<part name="username" type="xsd:string"></part>
</message>
<message name="getDRResponse">
<part name="result-agent" type="tns:mySoapRecord"></part>
</message>
<portType name="getDummyRec">
<operation name="getDR" parameterOrder="username">
<input message="tns:getDR"></input>
<output message="tns:getDRResponse"></output>
</operation>
</portType>
<binding name="getDummyRecPortBinding" type="tns:getDummyRec">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http"
style="rpc"></soap:binding>
<operation name="getDR">
<soapperation soapAction=""></soapperation>
<input>
<soap:body use="literal" namespace="http://soap/"></soap:body>
</input>
<output>
<soap:body use="literal" namespace="http://soap/"></soap:body>
</output>
</operation>
</binding>
<service name="MySoapServiceService">
<port name="getDummyRecPort" binding="tns:getDummyRecPortBinding">
<soap:address location="http://localhost:8089/services"></
soap:address>
</port>
</service>
</definitions>
is well running in Endpoint. When I try to generate files at client
side, using wsimport command line, an error occur that say I've not a
WSDL Definition root.
When I run the request in firefox and look at the source code of the
page, I can see that tags are not prefixed by wsdl:
Below is the code that is generated. Can you help me ?
Thanks.
<?xml version="1.0" encoding="UTF-8"?><!-- Published by JAX-WS RI at
http://jax-ws.dev.java.net. RI's version is JAX-WS RI 2.1.1 in JDK 6.
--><!-- Generated by JAX-WS RI at http://jax-ws.dev.java.net. RI's
version is JAX-WS RI 2.1.1 in JDK 6. --><definitions
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://
soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://
schemas.xmlsoap.org/wsdl/" targetNamespace="http://soap/"
name="MySoapServiceService">
<types>
<xsd:schema>
<xsd:import namespace="http://soap/" schemaLocation="http://localhost:
8089/services?xsd=1"></xsd:import>
</xsd:schema>
</types>
<message name="getDR">
<part name="username" type="xsd:string"></part>
</message>
<message name="getDRResponse">
<part name="result-agent" type="tns:mySoapRecord"></part>
</message>
<portType name="getDummyRec">
<operation name="getDR" parameterOrder="username">
<input message="tns:getDR"></input>
<output message="tns:getDRResponse"></output>
</operation>
</portType>
<binding name="getDummyRecPortBinding" type="tns:getDummyRec">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http"
style="rpc"></soap:binding>
<operation name="getDR">
<soapperation soapAction=""></soapperation>
<input>
<soap:body use="literal" namespace="http://soap/"></soap:body>
</input>
<output>
<soap:body use="literal" namespace="http://soap/"></soap:body>
</output>
</operation>
</binding>
<service name="MySoapServiceService">
<port name="getDummyRecPort" binding="tns:getDummyRecPortBinding">
<soap:address location="http://localhost:8089/services"></
soap:address>
</port>
</service>
</definitions>