cancel
Showing results for 
Search instead for 
Did you mean: 

WSDL issue

Former Member
0 Kudos

Hi Experts,

Mine is a Idoc to web scenerio. I requested the web team to provide me with teh WSDL target structure taht i can import in IR - external definitions and get the mapping done. The .txt file that they provided me , whn i imported the same in the external definitions , I got the following error :

Unable to convert imported document to WSDL

Reason: Error when parsing the XML document (Fatal Error: com.sap.engine.lib.xml.parser.ParserException: XML Declaration not allowed here.(:main:, row:1, col:8))

Check the selected category

Now my query is , since i am not good in WSDL issues, I wish to know ,,,, is this wsdl file supposed to be in .txt format. Because I also tried converting the file extension to .XML and .WSDL , but each time it gacve the same error.

Take a look at the content of the file and pls tell me , what exactly should I tell teh web team to provide me , because i am at teh client site and i need to say tehm specifically what exactly is teh issue .

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

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

- <wsdl:types>

- <s:schema elementFormDefault="qualified" targetNamespace="http://tempuri.org/">

- <s:element name="save_data">

- <s:complexType>

- <s:sequence>

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

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

</s:sequence>

</s:complexType>

</s:element>

- <s:element name="save_dataResponse">

- <s:complexType>

- <s:sequence>

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

</s:sequence>

</s:complexType>

</s:element>

</s:schema>

</wsdl:types>

- <wsdl:message name="save_dataSoapIn">

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

</wsdl:message>

- <wsdl:message name="save_dataSoapOut">

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

</wsdl:message>

- <wsdl:portType name="ServiceSoap">

- <wsdl:operation name="save_data">

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

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

</wsdl:operation>

</wsdl:portType>

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

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

- <wsdl:operation name="save_data">

<soap:operation soapAction="http://tempuri.org/save_data" 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="ServiceSoap12" type="tns:ServiceSoap">

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

- <wsdl:operation name="save_data">

<soap12:operation soapAction="http://tempuri.org/save_data" style="document" />

- <wsdl:input>

<soap12:body use="literal" />

</wsdl:input>

- <wsdl:output>

<soap12:body use="literal" />

</wsdl:output>

</wsdl:operation>

</wsdl:binding>

- <wsdl:service name="Service">

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

<soap:address location="http://115.119.23.132/testserv/Service.asmx" />

</wsdl:port>

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

<soap12:address location="http://115.119.23.132/testserv/Service.asmx" />

</wsdl:port>

</wsdl:service>

</wsdl:definitions>

Regards,

Arnab.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Thanks to you all !

justin_santhanam
Active Contributor
0 Kudos

Arnab,

Do you have SOAP UI ? You can try to import into the SOAP UI or XML spy and first check for the validity.

g[SOAP UI|http://soapui.org]

Former Member
0 Kudos

Raj and Raja ,, many thanks for teh prompt reply.

Many thanks for teh URL . !

rajasekhar_reddy14
Active Contributor
0 Kudos

Hi Arnab,

Check your WSDL file using XML Spy or Stylus Studios it is valid and wellformed document or not.If your WSDL satisfies Wellformed and Valid then only you can import it in to PI usinhg External Def.

Save text file in wsdl format,not text text file.

Regards,

Raj