logo       

Re: Error of WSDL2Java: msg#00704

Subject: Re: Error of WSDL2Java
However I could generate java code from this WSDL:
http://ws.serviceobjects.net/gp/GeoPhone.asmx?WSDL

Could you tell me what is the differences between these two WSDL files?

Thanks

The WDSL file:
<?xml version="1.0" encoding="utf-8" ?>
- <definitions xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:s0="http://www.serviceobjects.com/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" targetNamespace="http://www.serviceobjects.com/" xmlns="http://schemas.xmlsoap.org/wsdl/">
- <types>
- <s:schema elementFormDefault="qualified" targetNamespace="http://www.serviceobjects.com/">
- <s:element name="GetPhoneInfo">
- <s:complexType>
- <s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="PhoneNumber" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="LicenseKey" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
+ <s:element name="GetPhoneInfoResponse">
- <s:complexType>
- <s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="GetPhoneInfoResult" type="s0:PhoneInfo" />
</s:sequence>
</s:complexType>
</s:element>
- <s:complexType name="PhoneInfo">
+ <s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="Providers" type="s0:Providers" />
<s:element minOccurs="0" maxOccurs="1" name="Contacts" type="s0:Contacts" />
<s:element minOccurs="0" maxOccurs="1" name="Error" type="s:string" />
</s:sequence>
</s:complexType>
- <s:complexType name="Providers">
- <s:sequence>
<s:element minOccurs="0" maxOccurs="unbounded" name="Provider" type="s0:Provider" />
</s:sequence>
</s:complexType>
- <s:complexType name="Provider">
- <s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="Name" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="URL" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="City" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="State" type="s:string" />
</s:sequence>
</s:complexType>
- <s:complexType name="Contacts">
- <s:sequence>
<s:element minOccurs="0" maxOccurs="unbounded" name="Contact" type="s0:Contact" />
</s:sequence>
</s:complexType>
- <s:complexType name="Contact">
- <s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="Name" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="Address" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="City" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="State" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="Zip" type="s:string" />
</s:sequence>
</s:complexType>
<s:element name="PhoneInfo" nillable="true" type="s0:PhoneInfo" />
</s:schema>
</types>
- <message name="GetPhoneInfoSoapIn">
<part name="parameters" element="s0:GetPhoneInfo" />
</message>
- <message name="GetPhoneInfoSoapOut">
<part name="parameters" element="s0:GetPhoneInfoResponse" />
</message>
- <message name="GetPhoneInfoHttpGetIn">
<part name="PhoneNumber" type="s:string" />
<part name="LicenseKey" type="s:string" />
</message>
- <message name="GetPhoneInfoHttpGetOut">
<part name="Body" element="s0:PhoneInfo" />
</message>
- <message name="GetPhoneInfoHttpPostIn">
<part name="PhoneNumber" type="s:string" />
<part name="LicenseKey" type="s:string" />
</message>
- <message name="GetPhoneInfoHttpPostOut">
<part name="Body" element="s0:PhoneInfo" />
</message>
- <portType name="GeoPhoneSoap">
- <operation name="GetPhoneInfo">
<documentation>Returns reverse lookup information on a given phone number.</documentation>
<input message="s0:GetPhoneInfoSoapIn" />
<output message="s0:GetPhoneInfoSoapOut" />
</operation>
</portType>
- <portType name="GeoPhoneHttpGet">
- <operation name="GetPhoneInfo">
<documentation>Returns reverse lookup information on a given phone number.</documentation>
<input message="s0:GetPhoneInfoHttpGetIn" />
<output message="s0:GetPhoneInfoHttpGetOut" />
</operation>
</portType>
- <portType name="GeoPhoneHttpPost">
- <operation name="GetPhoneInfo">
<documentation>Returns reverse lookup information on a given phone number.</documentation>
<input message="s0:GetPhoneInfoHttpPostIn" />
<output message="s0:GetPhoneInfoHttpPostOut" />
</operation>
</portType>
- <binding name="GeoPhoneSoap" type="s0:GeoPhoneSoap">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
- <operation name="GetPhoneInfo">
<soap:operation soapAction="http://www.serviceobjects.com/GetPhoneInfo" style="document" />
- <input>
<soap:body use="literal" />
</input>
- <output>
<soap:body use="literal" />
</output>
</operation>
</binding>
- <binding name="GeoPhoneHttpGet" type="s0:GeoPhoneHttpGet">
<http:binding verb="GET" />
- <operation name="GetPhoneInfo">
<http:operation location="/GetPhoneInfo" />
- <input>
<http:urlEncoded />
</input>
- <output>
<mime:mimeXml part="Body" />
</output>
</operation>
</binding>
- <binding name="GeoPhoneHttpPost" type="s0:GeoPhoneHttpPost">
<http:binding verb="POST" />
- <operation name="GetPhoneInfo">
<http:operation location="/GetPhoneInfo" />
- <input>
<mime:content type="application/x-www-form-urlencoded" />
</input>
- <output>
<mime:mimeXml part="Body" />
</output>
</operation>
</binding>
- <service name="GeoPhone">
- <port name="GeoPhoneSoap" binding="s0:GeoPhoneSoap">
<soap:address location="http://ws.serviceobjects.net/gp/GeoPhone.asmx" />
</port>
- <port name="GeoPhoneHttpGet" binding="s0:GeoPhoneHttpGet">
<http:address location="http://ws.serviceobjects.net/gp/GeoPhone.asmx" />
</port>
- <port name="GeoPhoneHttpPost" binding="s0:GeoPhoneHttpPost">
<http:address location="http://ws.serviceobjects.net/gp/GeoPhone.asmx" />
</port>
</service>
</definitions>






At 10:40 AM 5/29/2002 -0500, you wrote:
WSDL2Java doesn't support http://www.w3.org/2001/XMLSchema:schema. Since
it doesn't support it, it assumes you will define it.  Since you don't, it
says it's not defined.

JAX-RPC, the mapping spec we follow, doesn't provide a mapping from
xsd:schema to Java.  Does anyone have suggestions as to how this should be
mapped to Java?

Russell Butek
butek@xxxxxxxxxx


Anna Chen <ychen@xxxxxxxxxxxxxx> on 05/29/2002 10:25:34 AM

Please respond to axis-user@xxxxxxxxxxxxxx

To:    axis-user@xxxxxxxxxxxxxx
cc:
Subject:    Error of WSDL2Java



When I tried to convert
http://www.discoverdance.co.uk/zipQuery/zipCodeService.asmx?WSDL to Java
I got error:

java.io.IOException: Type http://www.w3.org/2001/XMLSchema:schema is
referenced but not defined.

        at
org.apache.axis.wsdl.toJava.SymbolTable.checkForUndefined(SymbolTable.java:405)

        at
org.apache.axis.wsdl.toJava.SymbolTable.add(SymbolTable.java:331)

        at org.apache.axis.wsdl.toJava.Emitter.emit(Emitter.java:188)

        at org.apache.axis.wsdl.toJava.Emitter.emit(Emitter.java:155)

        at
org.apache.axis.wsdl.WSDL2Java$WSDLRunnable.run(WSDL2Java.java:725)

        at java.lang.Thread.run(Thread.java:484)

Does any one know the reason and how to fix it?


WSDL file:

<?xml version="1.0" encoding="utf-8" ?>
- <definitions xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:s="
http://www.w3.org/2001/XMLSchema" xmlns:s0="controtex.com" xmlns:soapenc="
http://schemas.xmlsoap.org/soap/encoding/" xmlns:tm="
http://microsoft.com/wsdl/mime/textMatching/" xmlns:mime="
http://schemas.xmlsoap.org/wsdl/mime/" targetNamespace="controtex.com"
xmlns="http://schemas.xmlsoap.org/wsdl/">
- <types>
- <s:schema elementFormDefault="qualified" targetNamespace="controtex.com">
<s:import namespace="http://www.w3.org/2001/XMLSchema" />
- <s:element name="findZipCodeDistance">
- <s:complexType>
- <s:sequence>
<s:element minOccurs="1" maxOccurs="1" name="code1" type="s:int" />
<s:element minOccurs="1" maxOccurs="1" name="code2" type="s:int" />
</s:sequence>
</s:complexType>
</s:element>
- <s:element name="findZipCodeDistanceResponse">
- <s:complexType>
- <s:sequence>
<s:element minOccurs="1" maxOccurs="1" name="findZipCodeDistanceResult"
type="s:double" />
</s:sequence>
</s:complexType>
</s:element>
- <s:element name="findZipCordinates">
- <s:complexType>
- <s:sequence>
<s:element minOccurs="1" maxOccurs="1" name="code1" type="s:int" />
</s:sequence>
</s:complexType>
</s:element>
- <s:element name="findZipCordinatesResponse">
- <s:complexType>
- <s:sequence>
- <s:element minOccurs="0" maxOccurs="1" name="findZipCordinatesResult">
- <s:complexType>
- <s:sequence>
<s:element ref="s:schema" />
<s:any />
</s:sequence>
</s:complexType>
</s:element>
</s:sequence>
</s:complexType>
</s:element>
- <s:element name="findZipDetails">
- <s:complexType>
- <s:sequence>
<s:element minOccurs="1" maxOccurs="1" name="code1" type="s:int" />
</s:sequence>
</s:complexType>
</s:element>
- <s:element name="findZipDetailsResponse">
- <s:complexType>
- <s:sequence>
- <s:element minOccurs="0" maxOccurs="1" name="findZipDetailsResult">
- <s:complexType>
- <s:sequence>
<s:element ref="s:schema" />
<s:any />
</s:sequence>
</s:complexType>
</s:element>
</s:sequence>
</s:complexType>
</s:element>
- <s:element name="getCodeSet">
- <s:complexType>
- <s:sequence>
<s:element minOccurs="1" maxOccurs="1" name="code" type="s:int" />
<s:element minOccurs="1" maxOccurs="1" name="distance" type="s:double" />
</s:sequence>
</s:complexType>
</s:element>
- <s:element name="getCodeSetResponse">
- <s:complexType>
- <s:sequence>
- <s:element minOccurs="0" maxOccurs="1" name="getCodeSetResult">
- <s:complexType>
- <s:sequence>
<s:element ref="s:schema" />
<s:any />
</s:sequence>
</s:complexType>
</s:element>
</s:sequence>
</s:complexType>
</s:element>
<s:element name="double" type="s:double" />
- <s:element name="DataSet" nillable="true">
- <s:complexType>
- <s:sequence>
<s:element ref="s:schema" />
<s:any />
</s:sequence>
</s:complexType>
</s:element>
</s:schema>
</types>
- <message name="findZipCodeDistanceSoapIn">
<part name="parameters" element="s0:findZipCodeDistance" />
</message>
- <message name="findZipCodeDistanceSoapOut">
<part name="parameters" element="s0:findZipCodeDistanceResponse" />
</message>
- <message name="findZipCordinatesSoapIn">
<part name="parameters" element="s0:findZipCordinates" />
</message>
- <message name="findZipCordinatesSoapOut">
<part name="parameters" element="s0:findZipCordinatesResponse" />
</message>
- <message name="findZipDetailsSoapIn">
<part name="parameters" element="s0:findZipDetails" />
</message>
- <message name="findZipDetailsSoapOut">
<part name="parameters" element="s0:findZipDetailsResponse" />
</message>
- <message name="getCodeSetSoapIn">
<part name="parameters" element="s0:getCodeSet" />
</message>
- <message name="getCodeSetSoapOut">
<part name="parameters" element="s0:getCodeSetResponse" />
</message>
- <message name="findZipCodeDistanceHttpGetIn">
<part name="code1" type="s:string" />
<part name="code2" type="s:string" />
</message>
- <message name="findZipCodeDistanceHttpGetOut">
<part name="Body" element="s0:double" />
</message>
- <message name="findZipCordinatesHttpGetIn">
<part name="code1" type="s:string" />
</message>
- <message name="findZipCordinatesHttpGetOut">
<part name="Body" element="s0:DataSet" />
</message>
- <message name="findZipDetailsHttpGetIn">
<part name="code1" type="s:string" />
</message>
- <message name="findZipDetailsHttpGetOut">
<part name="Body" element="s0:DataSet" />
</message>
- <message name="getCodeSetHttpGetIn">
<part name="code" type="s:string" />
<part name="distance" type="s:string" />
</message>
- <message name="getCodeSetHttpGetOut">
<part name="Body" element="s0:DataSet" />
</message>
- <message name="findZipCodeDistanceHttpPostIn">
<part name="code1" type="s:string" />
<part name="code2" type="s:string" />
</message>
- <message name="findZipCodeDistanceHttpPostOut">
<part name="Body" element="s0:double" />
</message>
- <message name="findZipCordinatesHttpPostIn">
<part name="code1" type="s:string" />
</message>
- <message name="findZipCordinatesHttpPostOut">
<part name="Body" element="s0:DataSet" />
</message>
- <message name="findZipDetailsHttpPostIn">
<part name="code1" type="s:string" />
</message>
- <message name="findZipDetailsHttpPostOut">
<part name="Body" element="s0:DataSet" />
</message>
- <message name="getCodeSetHttpPostIn">
<part name="code" type="s:string" />
<part name="distance" type="s:string" />
</message>
- <message name="getCodeSetHttpPostOut">
<part name="Body" element="s0:DataSet" />
</message>
- <portType name="zipCodeServiceSoap">
- <operation name="findZipCodeDistance">
<input message="s0:findZipCodeDistanceSoapIn" />
<output message="s0:findZipCodeDistanceSoapOut" />
</operation>
- <operation name="findZipCordinates">
<input message="s0:findZipCordinatesSoapIn" />
<output message="s0:findZipCordinatesSoapOut" />
</operation>
- <operation name="findZipDetails">
<input message="s0:findZipDetailsSoapIn" />
<output message="s0:findZipDetailsSoapOut" />
</operation>
- <operation name="getCodeSet">
<input message="s0:getCodeSetSoapIn" />
<output message="s0:getCodeSetSoapOut" />
</operation>
</portType>
- <portType name="zipCodeServiceHttpGet">
- <operation name="findZipCodeDistance">
<input message="s0:findZipCodeDistanceHttpGetIn" />
<output message="s0:findZipCodeDistanceHttpGetOut" />
</operation>
- <operation name="findZipCordinates">
<input message="s0:findZipCordinatesHttpGetIn" />
<output message="s0:findZipCordinatesHttpGetOut" />
</operation>
- <operation name="findZipDetails">
<input message="s0:findZipDetailsHttpGetIn" />
<output message="s0:findZipDetailsHttpGetOut" />
</operation>
- <operation name="getCodeSet">
<input message="s0:getCodeSetHttpGetIn" />
<output message="s0:getCodeSetHttpGetOut" />
</operation>
</portType>
- <portType name="zipCodeServiceHttpPost">
- <operation name="findZipCodeDistance">
<input message="s0:findZipCodeDistanceHttpPostIn" />
<output message="s0:findZipCodeDistanceHttpPostOut" />
</operation>
- <operation name="findZipCordinates">
<input message="s0:findZipCordinatesHttpPostIn" />
<output message="s0:findZipCordinatesHttpPostOut" />
</operation>
- <operation name="findZipDetails">
<input message="s0:findZipDetailsHttpPostIn" />
<output message="s0:findZipDetailsHttpPostOut" />
</operation>
- <operation name="getCodeSet">
<input message="s0:getCodeSetHttpPostIn" />
<output message="s0:getCodeSetHttpPostOut" />
</operation>
</portType>
- <binding name="zipCodeServiceSoap" type="s0:zipCodeServiceSoap">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="
document" />
- <operation name="findZipCodeDistance">
<soap:operation soapAction="controtex.com/findZipCodeDistance" style="
document" />
- <input>
<soap:body use="literal" />
</input>
- <output>
<soap:body use="literal" />
</output>
</operation>
- <operation name="findZipCordinates">
<soap:operation soapAction="controtex.com/findZipCordinates" style="
document" />
- <input>
<soap:body use="literal" />
</input>
- <output>
<soap:body use="literal" />
</output>
</operation>
- <operation name="findZipDetails">
<soap:operation soapAction="controtex.com/findZipDetails" style="document"
/>
- <input>
<soap:body use="literal" />
</input>
- <output>
<soap:body use="literal" />
</output>
</operation>
- <operation name="getCodeSet">
<soap:operation soapAction="controtex.com/getCodeSet" style="document" />
- <input>
<soap:body use="literal" />
</input>
- <output>
<soap:body use="literal" />
</output>
</operation>
</binding>
- <binding name="zipCodeServiceHttpGet" type="s0:zipCodeServiceHttpGet">
<http:binding verb="GET" />
- <operation name="findZipCodeDistance">
<http:operation location="/findZipCodeDistance" />
- <input>
<http:urlEncoded />
</input>
- <output>
<mime:mimeXml part="Body" />
</output>
</operation>
- <operation name="findZipCordinates">
<http:operation location="/findZipCordinates" />
- <input>
<http:urlEncoded />
</input>
- <output>
<mime:mimeXml part="Body" />
</output>
</operation>
- <operation name="findZipDetails">
<http:operation location="/findZipDetails" />
- <input>
<http:urlEncoded />
</input>
- <output>
<mime:mimeXml part="Body" />
</output>
</operation>
- <operation name="getCodeSet">
<http:operation location="/getCodeSet" />
- <input>
<http:urlEncoded />
</input>
- <output>
<mime:mimeXml part="Body" />
</output>
</operation>
</binding>
- <binding name="zipCodeServiceHttpPost" type="s0:zipCodeServiceHttpPost">
<http:binding verb="POST" />
- <operation name="findZipCodeDistance">
<http:operation location="/findZipCodeDistance" />
- <input>
<mime:content type="application/x-www-form-urlencoded" />
</input>
- <output>
<mime:mimeXml part="Body" />
</output>
</operation>
- <operation name="findZipCordinates">
<http:operation location="/findZipCordinates" />
- <input>
<mime:content type="application/x-www-form-urlencoded" />
</input>
- <output>
<mime:mimeXml part="Body" />
</output>
</operation>
- <operation name="findZipDetails">
<http:operation location="/findZipDetails" />
- <input>
<mime:content type="application/x-www-form-urlencoded" />
</input>
- <output>
<mime:mimeXml part="Body" />
</output>
</operation>
- <operation name="getCodeSet">
<http:operation location="/getCodeSet" />
- <input>
<mime:content type="application/x-www-form-urlencoded" />
</input>
- <output>
<mime:mimeXml part="Body" />
</output>
</operation>
</binding>
- <service name="zipCodeService">
- <port name="zipCodeServiceSoap" binding="s0:zipCodeServiceSoap">
<soap:address location="
http://www.discoverdance.co.uk/zipQuery/zipCodeService.asmx" />
</port>
- <port name="zipCodeServiceHttpGet" binding="s0:zipCodeServiceHttpGet">
<http:address location="
http://www.discoverdance.co.uk/zipQuery/zipCodeService.asmx" />
</port>
- <port name="zipCodeServiceHttpPost" binding="s0:zipCodeServiceHttpPost">
<http:address location="
http://www.discoverdance.co.uk/zipQuery/zipCodeService.asmx" />
</port>
</service>
</definitions>


Thanks

Anna


Yiyan Chen <ychen@xxxxxxxxxxxxxx>
Interactive Programmer

JGSullivan Interactive, Inc.
Tel. (312) 943-1600
Fax. (312) 943-9675


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
science.linguis...    culture.sf.lite...    video.mplayer.c...    yellowdog.gener...    ietf.rfc822/199...    emacs.help/2002...    redhat.release....    kernel.speakup/...    java.openejb.de...    debian.devel.gt...    xfree86.newbie/...    bug-tracking.ma...    pam/2003-05/msg...    games.devel.ope...    user-groups.lin...    music.pancham/2...    network.mq.deve...    web.html.genera...    arklinux.bugs/2...    linux.ecasound/...    qnx.openqnx.dev...    org.user-groups...    file-systems.sf...    trustix.contrib...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe