Endpoint and JAX error

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">
<soap:eek:peration soapAction=""></soap:eek:peration>
<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>
 
M

Mike Schilling

Pif said:
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">
<soap:eek:peration soapAction=""></soap:eek:peration>
<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>

This looks correct to me. Since the wsdl-level tags are unqualified,
they're in the default namespace http://schemas.xmlsoap.org/wsdl/,
just as they should be in WSDL 1.1 Is the tool you're using expecting
WSDL 2.0?
 
P

Pif

This looks correct to me.  Since the wsdl-level tags are unqualified,
they're in the default namespace  http://schemas.xmlsoap.org/wsdl/,
just as they should be in WSDL 1.1  Is the tool you're using expecting
WSDL 2.0?

I use "JAX-WS RI 2.1.1 in JDK 6". And I use also JDK 6 to make
annotations and run endpoint. Is this correct ?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,053
Latest member
BrodieSola

Latest Threads

Top