Skip to Content
author's profile photo Former Member
Former Member

WSDL error ... please help !

Hi,

I'm going crazy trying to find what is wrong with this wsdl. Note that it is generated by axis.

When I try to generate a proxy for it , I get this error :

WSDL part <firstname> points to unavailable type with qname: <string>

It points me to getPerson firstname ... but I don't see what is wrong with the way it is defined...

If you can help , it would be really appreciated !!!!

Thierry

<?xml version="1.0" encoding="UTF-8" ?>

http://xml.apache.org/xml-soap" xmlns:impl="http://localhost:8080/axis/services/EmployeeWebService" xmlns:intf="http://localhost:8080/axis/services/EmployeeWebService" xmlns:soapenc=" http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns1="urn:testaxis" xmlns:wsdl=" http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap=" http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd=" http://www.w3.org/2001/XMLSchema">

<!--

WSDL created by Apache Axis version: 1.4

Built on Apr 22, 2006 (06:55:48 PDT)

-->

<wsdl:types>

http://www.w3.org/2001/XMLSchema">

<import namespace="http://localhost:8080/axis/services/EmployeeWebService" />

http://schemas.xmlsoap.org/soap/encoding/" />

<complexType name="Person">

<sequence>

<element name="firstname" nillable="true" type="xsd:string" />

<element name="lastName" nillable="true" type="xsd:string" />

</sequence>

</complexType>

</schema>

http://www.w3.org/2001/XMLSchema">

<import namespace="urn:testaxis" />

http://schemas.xmlsoap.org/soap/encoding/" />

<complexType name="ArrayOf_tns1_Person">

<complexContent>

<restriction base="soapenc:Array">

<attribute ref="soapenc:arrayType" wsdl:arrayType="tns1:Person[]" />

</restriction>

</complexContent>

</complexType>

</schema>

</wsdl:types>

<wsdl:message name="getPersonRequest">

<wsdl:part name="firstname" type="soapenc:string" />

<wsdl:part name="lastName" type="soapenc:string" />

</wsdl:message>

<wsdl:message name="getPersonsRequest" />

<wsdl:message name="getPersonsResponse">

<wsdl:part name="getPersonsReturn" type="impl:ArrayOf_tns1_Person" />

</wsdl:message>

<wsdl:message name="getPersonResponse">

<wsdl:part name="getPersonReturn" type="tns1:Person" />

</wsdl:message>

<wsdl:portType name="MyWebServiceClass">

<wsdl:operation name="getPerson" parameterOrder="firstname lastName">

<wsdl:input message="impl:getPersonRequest" name="getPersonRequest" />

<wsdl:output message="impl:getPersonResponse" name="getPersonResponse" />

</wsdl:operation>

<wsdl:operation name="getPersons">

<wsdl:input message="impl:getPersonsRequest" name="getPersonsRequest" />

<wsdl:output message="impl:getPersonsResponse" name="getPersonsResponse" />

</wsdl:operation>

</wsdl:portType>

<wsdl:binding name="EmployeeWebServiceSoapBinding" type="impl:MyWebServiceClass">

http://schemas.xmlsoap.org/soap/http" />

<wsdl:operation name="getPerson">

<wsdlsoap:operation soapAction="" />

<wsdl:input name="getPersonRequest">

http://schemas.xmlsoap.org/soap/encoding/" namespace=" http://testaxis.hydroquebec.com" use="encoded" />

</wsdl:input>

<wsdl:output name="getPersonResponse">

http://schemas.xmlsoap.org/soap/encoding/" namespace="http://localhost:8080/axis/services/EmployeeWebService" use="encoded" />

</wsdl:output>

</wsdl:operation>

<wsdl:operation name="getPersons">

<wsdlsoap:operation soapAction="" />

<wsdl:input name="getPersonsRequest">

http://schemas.xmlsoap.org/soap/encoding/" namespace=" http://testaxis.hydroquebec.com" use="encoded" />

</wsdl:input>

<wsdl:output name="getPersonsResponse">

http://schemas.xmlsoap.org/soap/encoding/" namespace="http://localhost:8080/axis/services/EmployeeWebService" use="encoded" />

</wsdl:output>

</wsdl:operation>

</wsdl:binding>

<wsdl:service name="MyWebServiceClassService">

<wsdl:port binding="impl:EmployeeWebServiceSoapBinding" name="EmployeeWebService">

<wsdlsoap:address location="http://localhost:8080/axis/services/EmployeeWebService" />

</wsdl:port>

</wsdl:service>

</wsdl:definitions>

Edited by: Thierry Dagnino on Feb 25, 2009 2:02 PM

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Feb 25, 2009 at 10:05 PM

    hi,

    just a guess: it might have to do with the fact that the attribute parameterOrder used in operation getPerson is not supported. Try to get rid of it on the service side (doesn't make much sense anyway for 2 parameters) and try to create the proxy again.

    maybe it helps,

    anton

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.