• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

WSDL2Java

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I'm trying to generate the necessary Java classes from a WSDL file I wrote but I have the error below:

java.io.IOException: Element {http://www.ecerami.com}string is referenced but not defined.

Below is th wsdl I wrote:

<?xml version="1.0" encoding="UTF-8"?>
<definitions name="MapService" targetNamespace="http://www.ecerami.com"
xmlns:tns="http://www.ecerami.com"
xmlns:s="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/">
<types>
<s:schema elementFormDefault="qualified" targetNamespace="http://www.ecerami.com">
<s:element name="getMap">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="url" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="depth" type="s:int" />
<s:element minOccurs="0" maxOccurs="1" name="url" type="s:int" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="getMapResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="getMapResult" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
</s:schema>
</types>
<message name="getMapSoapIn">
<part name="parameters" element="tns:getMap"/>
</message>
<message name="getMapSoapOut">
<part name="result" element="tns:getMapResponse"/>
</message>
<message name="getMapHttpGetIn">
<part name="url" type="s:string" />
<part name="depth" type="s:int" />
<part name="breadth" type="s:int" />
</message>
<message name="getMapHttpGetOut">
<part name="Body" element="tns:string" />
</message>
<message name="getMapHttpPostIn">
<part name="url" type="s:string" />
<part name="depth" type="s:int" />
<part name="breadth" type="s:int" />
</message>
<message name="getMapHttpPostOut">
<part name="Body" element="tns:string" />
</message>
<portType name="mapSoap">
<operation name="getMap">
<input message="tns:getMapSoapIn"/>
<output message="tns:getMapSoapOut"/>
</operation>
</portType>
<portType name="mapHttpGet">
<operation name="getMap">
<input message="tns:getMapHttpGetIn"/>
<output message="tns:getMapHttpGetOut"/>
</operation>
</portType>
<portType name="mapHttpPost">
<operation name="getMap">
<input message="tns:getMapHttpPostIn"/>
<output message="tns:getMapHttpPostOut"/>
</operation>
</portType>
<binding name="mapSoap" type="tns:mapSoap">
<operation name="getMap">
<input>
<soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" namespace="urn:sample:mapservice"/>
</input>
<output>
<soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" namespace="urn:sample:mapservice"/>
</output>
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="rpc"/>
</operation>
</binding>
<binding name="mapHttpGet" type="tns:mapHttpGet">
<http:binding verb="GET" />
<operation name="getMap">
<http peration location="/getMap" />
<input>
<http:urlEncoded />
</input>
<output>
<mime:mimeXml part="Body" />
</output>
</operation>
</binding>
<binding name="mapHttpPost" type="tns:mapHttpPost">
<http:binding verb="POST" />
<operation name="getMap">
<http peration location="/getMap" />
<input>
<mime:content type="application/x-www-form-urlencoded" />
</input>
<output>
<mime:mimeXml part="Body" />
</output>
</operation>
</binding>
<service name="map">
<port name="mapSoap" binding="tns:mapSoap">
<soap:address location="http://www.ecerami.com/map.asmx"/>
</port>
<port name="mapHttpGet" binding="tns:mapHttpGet">
<http:address location="http://www.ecerami.com/map.asmx"/>
</port>
<port name="mapHttpPost" binding="tns:mapHttpPost">
<http:address location="http://www.ecerami.com/map.asmx"/>
</port>
</service>
</definitions>

Any idea what the problem is???
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Abiola Aiku:
java.io.IOException: Element {http://www.ecerami.com}string is referenced but not defined.


Here's your problem:
 
Trust God, but always tether your camel... to this tiny ad.
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic