cancel
Showing results for 
Search instead for 
Did you mean: 

Problem while importing WSDL

Former Member
0 Kudos

Hi Experts,

I had a problem while importing WSDL in IR.While importing i selected category as WSDL.

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

- <wsdl:definitions xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://ws.cdyne.com/WeatherWS/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" targetNamespace="http://ws.cdyne.com/WeatherWS/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">

- <wsdl:types>

- <s:schema elementFormDefault="qualified" targetNamespace="http://ws.cdyne.com/WeatherWS/">

+ <s:element name="GetWeatherInformation">

<s:complexType/>

</s:element>

- <s:element name="GetWeatherInformationResponse">

- <s:complexType>

- <s:sequence>

<s:element minOccurs="0" maxOccurs="1" name="GetWeatherInformationResult" type="tns:ArrayOfWeatherDescription"/>

</s:sequence>

</s:complexType>

</s:element>

- <s:complexType name="ArrayOfWeatherDescription">

- <s:sequence>

<s:element minOccurs="0" maxOccurs="unbounded" name="WeatherDescription" type="tns:WeatherDescription"/>

</s:sequence>

</s:complexType>

- <s:complexType name="WeatherDescription">

- <s:sequence>

<s:element minOccurs="1" maxOccurs="1" name="WeatherID" type="s:short"/>

<s:element minOccurs="0" maxOccurs="1" name="Description" type="s:string"/>

<s:element minOccurs="0" maxOccurs="1" name="PictureURL" type="s:string"/>

</s:sequence>

</s:complexType>

- <s:element name="GetCityForecastByZIP">

- <s:complexType>

- <s:sequence>

<s:element minOccurs="0" maxOccurs="1" name="ZIP" type="s:string"/>

</s:sequence>

</s:complexType>

</s:element>

- <s:element name="GetCityForecastByZIPResponse">

- <s:complexType>

- <s:sequence>

<s:element minOccurs="0" maxOccurs="1" name="GetCityForecastByZIPResult" type="tns:ForecastReturn"/>

</s:sequence>

</s:complexType>

</s:element>

- <s:complexType name="ForecastReturn">

- <s:sequence>

<s:element minOccurs="1" maxOccurs="1" name="Success" type="s:boolean"/>

<s:element minOccurs="0" maxOccurs="1" name="ResponseText" type="s:string"/>

<s:element minOccurs="0" maxOccurs="1" name="State" type="s:string"/>

<s:element minOccurs="0" maxOccurs="1" name="City" type="s:string"/>

<s:element minOccurs="0" maxOccurs="1" name="WeatherStationCity" type="s:string" />

<s:element minOccurs="0" maxOccurs="1" name="ForecastResult" type="tns:ArrayOfForecast"/>

</s:sequence>

</s:complexType>

- <s:complexType name="ArrayOfForecast">

- <s:sequence>

<s:element minOccurs="0" maxOccurs="unbounded" name="Forecast" nillable="true" type="tns:Forecast"/>

</s:sequence>

</s:complexType>

- <s:complexType name="Forecast">

- <s:sequence>

<s:element minOccurs="1" maxOccurs="1" name="Date" type="s:dateTime"/>

<s:element minOccurs="1" maxOccurs="1" name="WeatherID" type="s:short"/>

<s:element minOccurs="0" maxOccurs="1" name="Desciption" type="s:string"/>

<s:element minOccurs="1" maxOccurs="1" name="Temperatures" type="tns:temp"/>

<s:element minOccurs="1" maxOccurs="1" name="ProbabilityOfPrecipiation" type="tns:POP"/>

</s:sequence>

</s:complexType>

- <s:complexType name="temp">

- <s:sequence>

<s:element minOccurs="0" maxOccurs="1" name="MorningLow" type="s:string"/>

<s:element minOccurs="0" maxOccurs="1" name="DaytimeHigh" type="s:string"/>

</s:sequence>

</s:complexType>

- <s:complexType name="POP">

- <s:sequence>

<s:element minOccurs="0" maxOccurs="1" name="Nighttime" type="s:string"/>

<s:element minOccurs="0" maxOccurs="1" name="Daytime" type="s:string"/>

</s:sequence>

</s:complexType>

- <s:element name="GetCityWeatherByZIP">

- <s:complexType>

- <s:sequence>

<s:element minOccurs="0" maxOccurs="1" name="ZIP" type="s:string"/>

</s:sequence>

</s:complexType>

</s:element>

- <s:element name="GetCityWeatherByZIPResponse">

- <s:complexType>

- <s:sequence>

<s:element minOccurs="1" maxOccurs="1" name="GetCityWeatherByZIPResult" type="tns:WeatherReturn"/>

</s:sequence>

</s:complexType>

</s:element>

- <s:complexType name="WeatherReturn">

- <s:sequence>

<s:element minOccurs="1" maxOccurs="1" name="Success" type="s:boolean"/>

<s:element minOccurs="0" maxOccurs="1" name="ResponseText" type="s:string"/>

<s:element minOccurs="0" maxOccurs="1" name="State" type="s:string"/>

<s:element minOccurs="0" maxOccurs="1" name="City" type="s:string"/>

<s:element minOccurs="0" maxOccurs="1" name="WeatherStationCity" type="s:string" />

<s:element minOccurs="1" maxOccurs="1" name="WeatherID" type="s:short"/>

<s:element minOccurs="0" maxOccurs="1" name="Description" type="s:string"/>

<s:element minOccurs="0" maxOccurs="1" name="Temperature" type="s:string"/>

<s:element minOccurs="0" maxOccurs="1" name="RelativeHumidity" type="s:string" />

<s:element minOccurs="0" maxOccurs="1" name="Wind" type="s:string"/>

<s:element minOccurs="0" maxOccurs="1" name="Pressure" type="s:string"/>

<s:element minOccurs="0" maxOccurs="1" name="Visibility" type="s:string"/>

<s:element minOccurs="0" maxOccurs="1" name="WindChill" type="s:string"/>

<s:element minOccurs="0" maxOccurs="1" name="Remarks" type="s:string"/>

</s:sequence>

</s:complexType>

<s:element name="ArrayOfWeatherDescription" nillable="true" type="tns:ArrayOfWeatherDescription"/>

<s:element name="ForecastReturn" nillable="true" type="tns:ForecastReturn"/>

<s:element name="WeatherReturn" type="tns:WeatherReturn"/>

</s:schema>

</wsdl:types>

- <wsdl:message name="GetWeatherInformationSoapIn">

<wsdl:part name="parameters" element="tns:GetWeatherInformation"/>

</wsdl:message>

- <wsdl:message name="GetWeatherInformationSoapOut">

<wsdl:part name="parameters" element="tns:GetWeatherInformationResponse"/>

</wsdl:message>

- <wsdl:message name="GetCityForecastByZIPSoapIn">

<wsdl:part name="parameters" element="tns:GetCityForecastByZIP"/>

</wsdl:message>

- <wsdl:message name="GetCityForecastByZIPSoapOut">

<wsdl:part name="parameters" element="tns:GetCityForecastByZIPResponse"/>

</wsdl:message>

- <wsdl:message name="GetCityWeatherByZIPSoapIn">

<wsdl:part name="parameters" element="tns:GetCityWeatherByZIP"/>

</wsdl:message>

- <wsdl:message name="GetCityWeatherByZIPSoapOut">

<wsdl:part name="parameters" element="tns:GetCityWeatherByZIPResponse"/>

</wsdl:message>

<wsdl:message name="GetWeatherInformationHttpGetIn"/>

- <wsdl:message name="GetWeatherInformationHttpGetOut">

<wsdl:part name="Body" element="tns:ArrayOfWeatherDescription"/>

</wsdl:message>

- <wsdl:message name="GetCityForecastByZIPHttpGetIn">

<wsdl:part name="ZIP" type="s:string"/>

</wsdl:message>

- <wsdl:message name="GetCityForecastByZIPHttpGetOut">

<wsdl:part name="Body" element="tns:ForecastReturn"/>

</wsdl:message>

- <wsdl:message name="GetCityWeatherByZIPHttpGetIn">

<wsdl:part name="ZIP" type="s:string"/>

</wsdl:message>

- <wsdl:message name="GetCityWeatherByZIPHttpGetOut">

<wsdl:part name="Body" element="tns:WeatherReturn"/>

</wsdl:message>

<wsdl:message name="GetWeatherInformationHttpPostIn"/>

- <wsdl:message name="GetWeatherInformationHttpPostOut">

<wsdl:part name="Body" element="tns:ArrayOfWeatherDescription"/>

</wsdl:message>

- <wsdl:message name="GetCityForecastByZIPHttpPostIn">

<wsdl:part name="ZIP" type="s:string"/>

</wsdl:message>

- <wsdl:message name="GetCityForecastByZIPHttpPostOut">

<wsdl:part name="Body" element="tns:ForecastReturn"/>

</wsdl:message>

- <wsdl:message name="GetCityWeatherByZIPHttpPostIn">

<wsdl:part name="ZIP" type="s:string"/>

</wsdl:message>

- <wsdl:message name="GetCityWeatherByZIPHttpPostOut">

<wsdl:part name="Body" element="tns:WeatherReturn"/>

</wsdl:message>

- <wsdl:portType name="WeatherSoap">

- <wsdl:operation name="GetWeatherInformation">

<wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Gets Information for each WeatherID</wsdl:documentation>

<wsdl:input message="tns:GetWeatherInformationSoapIn"/>

<wsdl:output message="tns:GetWeatherInformationSoapOut"/>

</wsdl:operation>

- <wsdl:operation name="GetCityForecastByZIP">

<wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Allows you to get your City Forecast Over the Next 7 Days, which is updated hourly. U.S. Only</wsdl:documentation>

<wsdl:input message="tns:GetCityForecastByZIPSoapIn"/>

<wsdl:output message="tns:GetCityForecastByZIPSoapOut"/>

</wsdl:operation>

- <wsdl:operation name="GetCityWeatherByZIP">

<wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Allows you to get your City's Weather, which is updated hourly. U.S. Only</wsdl:documentation>

<wsdl:input message="tns:GetCityWeatherByZIPSoapIn"/>

<wsdl:output message="tns:GetCityWeatherByZIPSoapOut"/>

</wsdl:operation>

</wsdl:portType>

- <wsdl:portType name="WeatherHttpGet">

- <wsdl:operation name="GetWeatherInformation">

<wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Gets Information for each WeatherID</wsdl:documentation>

<wsdl:input message="tns:GetWeatherInformationHttpGetIn"/>

<wsdl:output message="tns:GetWeatherInformationHttpGetOut"/>

</wsdl:operation>

- <wsdl:operation name="GetCityForecastByZIP">

<wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Allows you to get your City Forecast Over the Next 7 Days, which is updated hourly. U.S. Only</wsdl:documentation>

<wsdl:input message="tns:GetCityForecastByZIPHttpGetIn"/>

<wsdl:output message="tns:GetCityForecastByZIPHttpGetOut"/>

</wsdl:operation>

- <wsdl:operation name="GetCityWeatherByZIP">

<wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Allows you to get your City's Weather, which is updated hourly. U.S. Only</wsdl:documentation>

<wsdl:input message="tns:GetCityWeatherByZIPHttpGetIn" />

<wsdl:output message="tns:GetCityWeatherByZIPHttpGetOut"/>

</wsdl:operation>

</wsdl:portType>

- <wsdl:portType name="WeatherHttpPost">

- <wsdl:operation name="GetWeatherInformation">

<wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Gets Information for each WeatherID</wsdl:documentation>

<wsdl:input message="tns:GetWeatherInformationHttpPostIn"/>

<wsdl:output message="tns:GetWeatherInformationHttpPostOut"/>

</wsdl:operation>

- <wsdl:operation name="GetCityForecastByZIP">

<wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Allows you to get your City Forecast Over the Next 7 Days, which is updated hourly. U.S. Only</wsdl:documentation>

<wsdl:input message="tns:GetCityForecastByZIPHttpPostIn"/>

<wsdl:output message="tns:GetCityForecastByZIPHttpPostOut"/>

</wsdl:operation>

- <wsdl:operation name="GetCityWeatherByZIP">

<wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Allows you to get your City's Weather, which is updated hourly. U.S. Only</wsdl:documentation>

<wsdl:input message="tns:GetCityWeatherByZIPHttpPostIn"/>

<wsdl:output message="tns:GetCityWeatherByZIPHttpPostOut"/>

</wsdl:operation>

</wsdl:portType>

- <wsdl:binding name="WeatherSoap" type="tns:WeatherSoap">

<soap:binding transport="http://schemas.xmlsoap.org/soap/http"/>

- <wsdl:operation name="GetWeatherInformation">

<soap:operation soapAction="http://ws.cdyne.com/WeatherWS/GetWeatherInformation" style="document" />

- <wsdl:input>

<soap:body use="literal"/>

</wsdl:input>

- <wsdl:output>

<soap:body use="literal"/>

</wsdl:output>

</wsdl:operation>

- <wsdl:operation name="GetCityForecastByZIP">

<soap:operation soapAction="http://ws.cdyne.com/WeatherWS/GetCityForecastByZIP" style="document"/>

- <wsdl:input>

<soap:body use="literal"/>

</wsdl:input>

- <wsdl:output>

<soap:body use="literal"/>

</wsdl:output>

</wsdl:operation>

- <wsdl:operation name="GetCityWeatherByZIP">

<soap:operation soapAction="http://ws.cdyne.com/WeatherWS/GetCityWeatherByZIP" style="document"/>

- <wsdl:input>

<soap:body use="literal"/>

</wsdl:input>

- <wsdl:output>

<soap:body use="literal"/>

</wsdl:output>

</wsdl:operation>

</wsdl:binding>

- <wsdl:binding name="WeatherSoap12" type="tns:WeatherSoap">

<soap12:binding transport="http://schemas.xmlsoap.org/soap/http"/>

- <wsdl:operation name="GetWeatherInformation">

<soap12:operation soapAction="http://ws.cdyne.com/WeatherWS/GetWeatherInformation" style="document" />

- <wsdl:input>

<soap12:body use="literal"/>

</wsdl:input>

- <wsdl:output>

<soap12:body use="literal"/>

</wsdl:output>

</wsdl:operation>

- <wsdl:operation name="GetCityForecastByZIP">

<soap12:operation soapAction="http://ws.cdyne.com/WeatherWS/GetCityForecastByZIP" style="document" />

- <wsdl:input>

<soap12:body use="literal"/>

</wsdl:input>

- <wsdl:output>

<soap12:body use="literal"/>

</wsdl:output>

</wsdl:operation>

- <wsdl:operation name="GetCityWeatherByZIP">

<soap12:operation soapAction="http://ws.cdyne.com/WeatherWS/GetCityWeatherByZIP" style="document" />

- <wsdl:input>

<soap12:body use="literal"/>

</wsdl:input>

- <wsdl:output>

<soap12:body use="literal"/>

</wsdl:output>

</wsdl:operation>

</wsdl:binding>

- <wsdl:binding name="WeatherHttpGet" type="tns:WeatherHttpGet">

<http:binding verb="GET"/>

- <wsdl:operation name="GetWeatherInformation">

<http:operation location="/GetWeatherInformation"/>

- <wsdl:input>

<http:urlEncoded/>

</wsdl:input>

- <wsdl:output>

<mime:mimeXml part="Body"/>

</wsdl:output>

</wsdl:operation>

- <wsdl:operation name="GetCityForecastByZIP">

<http:operation location="/GetCityForecastByZIP"/>

- <wsdl:input>

<http:urlEncoded/>

</wsdl:input>

- <wsdl:output>

<mime:mimeXml part="Body"/>

</wsdl:output>

</wsdl:operation>

- <wsdl:operation name="GetCityWeatherByZIP">

<http:operation location="/GetCityWeatherByZIP"/>

- <wsdl:input>

<http:urlEncoded/>

</wsdl:input>

- <wsdl:output>

<mime:mimeXml part="Body"/>

</wsdl:output>

</wsdl:operation>

</wsdl:binding>

- <wsdl:binding name="WeatherHttpPost" type="tns:WeatherHttpPost">

<http:binding verb="POST" />

- <wsdl:operation name="GetWeatherInformation">

<http:operation location="/GetWeatherInformation"/>

- <wsdl:input>

<mime:content type="application/x-www-form-urlencoded"/>

</wsdl:input>

- <wsdl:output>

<mime:mimeXml part="Body"/>

</wsdl:output>

</wsdl:operation>

- <wsdl:operation name="GetCityForecastByZIP">

<http:operation location="/GetCityForecastByZIP"/>

- <wsdl:input>

<mime:content type="application/x-www-form-urlencoded"/>

</wsdl:input>

- <wsdl:output>

<mime:mimeXml part="Body"/>

</wsdl:output>

</wsdl:operation>

- <wsdl:operation name="GetCityWeatherByZIP">

<http:operation location="/GetCityWeatherByZIP"/>

- <wsdl:input>

<mime:content type="application/x-www-form-urlencoded"/>

</wsdl:input>

- <wsdl:output>

<mime:mimeXml part="Body"/>

</wsdl:output>

</wsdl:operation>

</wsdl:binding>

- <wsdl:service name="Weather">

- <wsdl:port name="WeatherSoap" binding="tns:WeatherSoap">

<soap:address location="http://ws.cdyne.com/WeatherWS/Weather.asmx"/>

</wsdl:port>

- <wsdl:port name="WeatherSoap12" binding="tns:WeatherSoap12">

<soap12:address location="http://ws.cdyne.com/WeatherWS/Weather.asmx"/>

</wsdl:port>

- <wsdl:port name="WeatherHttpGet" binding="tns:WeatherHttpGet">

<http:address location="http://ws.cdyne.com/WeatherWS/Weather.asmx"/>

</wsdl:port>

- <wsdl:port name="WeatherHttpPost" binding="tns:WeatherHttpPost">

<http:address location="http://ws.cdyne.com/WeatherWS/Weather.asmx"/>

</wsdl:port>

</wsdl:service>

</wsdl:definitions>

Error:

Unable to convert imported document to WSDL

Reason: Error when parsing the XML document (Fatal Error: com.sap.engine.lib.xml.parser.ParserException: XMLParser: No data allowed here: (hex) 2d, 20, 3c(:main:, row:2, col:3))

Check the selected category

Every Helpful answer will be rewarded

Regards,

VKG

Accepted Solutions (1)

Accepted Solutions (1)

former_member200962
Active Contributor
0 Kudos

Hi,

I tried to import this wsdl into my IR and there was no error with that....was even able to activate the changes.

You can try out with some tool like XML Spy or Stylus Studio and check for any errors (i was not able to find any).

regards,

Abhishek.

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi All,

My problem got solved .Thankz a lot to all.

Regards,

VKG

Former Member
0 Kudos

hello,

validate this wsdl file using XML Spy.

Regards

Ramesh P

dharamveer_gaur2
Active Contributor
0 Kudos

Hi

this Message says that WSDL file is not valid,try to open your file in Altova XML spy,also make sure you don't have any invalid characters in it,secondly what is the encoding of file?

you might also want to add the soap envelope, soap header ..elements to it...before parsing it

santhosh_kumarv
Active Contributor
0 Kudos

Hi,

Check if you have changed any in the WSDL. Try this once.

1. Go to page http://ws.cdyne.com/WeatherWS/Weather.asmx?wsdl.

2. Choose View--> source in IE and save the notepad as <name>.wsdl and the file type as All File.

3. Now try importing this wsdl in the IR.

Thanks

SaNv...