cancel
Showing results for 
Search instead for 
Did you mean: 

Error while WSDL import in ESR

Former Member
0 Kudos

Hi,

I am trying to inport WSDL file provided for one of the interfaces PROXY- PI- SOAP scenario . the client has provided the WSDL URL and i saved the content on local desktop and when i try to import the wsdl file , it gives me an error like

Unable to convert imported document to WSDL

Reason:

Error when parsing an XML document (The processing instruction target matching "[xX][mM][lL]" is not allowed.)Check selected category

Please help as how to go about.

Thanks.

Regardss,

S

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

In your first WSDL for the error "The processing instruction target matching "xXmMlL" is not allowed" check if there are any new lines within the WSDL. Delete them and try uploading again.

Former Member
0 Kudos

Hi!

There is something formally wrong in your WSDL File. Please search for string "xXmMlL" and copy&paste the surrounding XML part into this post so that we can see what is exactly wrong there.

Regards,

Volker

Former Member
0 Kudos

Volker,

I searched for the string string xXmMlL in the imported document Tab . I couldn't find anything .

The message i am able to see in WSDL tab is below.

Unable to convert imported document to WSDL

Reason:

Error when parsing an XML document (The processing instruction target matching "[xX][mM][lL]" is not allowed.)Check selected category

Thanks.

Regards,

S

Former Member
0 Kudos

Volker,

There are two WSDLs. The other WSDL is giving the below error.

Unable to convert imported document to WSDL

Reason:

Error when parsing an XML document (The entity name must immediately follow the '&' in the entity reference.)Check selected category

I searched for the string & and this & is used along with some text in the WSDL.

Kindly let me know how to proceed with this.

Thanks.

Regards,

S

Former Member
0 Kudos

Please copy&paste exactly this part of WSDL into your post here. Maybe the WSDL is not well-formed.

Did you already try to watch the WSDL with another tool like XML Spy or soapUI or s.th. like that? Such tools normally give you clear hints in case there is anything not okay.

Regards,

Volker

Former Member
0 Kudos

volker,

Please find the WSDL

<?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://www.shl.com/Assessment/" 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://www.shl.com/Assessment/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">

<wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Assessment Order Request Web Service.</wsdl:documentation>

- <wsdl:types>

- <s:schema elementFormDefault="qualified" targetNamespace="http://www.shl.com/Assessment/">

- <s:element name="RegisterCandidateForAssessment">

- <s:complexType>

- <s:sequence>

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

</s:sequence>

</s:complexType>

</s:element>

- <s:element name="RegisterCandidateForAssessmentResponse">

- <s:complexType>

- <s:sequence>

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

</s:sequence>

</s:complexType>

</s:element>

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

- <s:complexType name="AuthHeader">

- <s:sequence>

<s:element minOccurs="1" maxOccurs="1" name="ClientId" type="s:int" />

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

</s:sequence>

<s:anyAttribute />

</s:complexType>

</s:schema>

</wsdl:types>

- <wsdl:message name="RegisterCandidateForAssessmentSoapIn">

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

</wsdl:message>

- <wsdl:message name="RegisterCandidateForAssessmentSoapOut">

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

</wsdl:message>

- <wsdl:message name="RegisterCandidateForAssessmentAuthHeader">

<wsdl:part name="AuthHeader" element="tns:AuthHeader" />

</wsdl:message>

- <wsdl:portType name="AssessmentOrderRequestSoap">

- <wsdl:operation name="RegisterCandidateForAssessment">

<wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Performs Assessment Order Request Processing & Registers the Candidate for the Assessment.</wsdl:documentation>

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

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

</wsdl:operation>

</wsdl:portType>

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

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

- <wsdl:operation name="RegisterCandidateForAssessment">

<soap:operation soapAction="http://www.shl.com/Assessment/RegisterCandidateForAssessment" style="document" />

- <wsdl:input>

<soap:body use="literal" />

<soap:header message="tns:RegisterCandidateForAssessmentAuthHeader" part="AuthHeader" use="literal" />

</wsdl:input>

- <wsdl:output>

<soap:body use="literal" />

</wsdl:output>

</wsdl:operation>

</wsdl:binding>

- <wsdl:service name="AssessmentOrderRequest">

<wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Assessment Order Request Web Service.</wsdl:documentation>

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

<soap:address location="http://ondemand.shl.com/AssessmentOrderRequestWS/AssessmentOrderRequest.asmx" />

</wsdl:port>

</wsdl:service>

</wsdl:definitions>

Thanks.

Rgds,

S

Former Member
0 Kudos

Volker.,

I pasted the entire wsdl.... I am not sure whether you are able to see it or not. I am pasting it again for you.

you can view via this link

http://ondemand.shl.com/AssessmentOrderRequestWS/AssessmentOrderRequest.asmx?WSDL

Former Member
0 Kudos

Volker,

I am able to import the WSDL now. Thanks for your help.

Rgds,

S

Former Member
0 Kudos

Hi Sofiaz!

Fine. Nice to hear that!

If issue is solved now then please be so kind and mark this thread as answered. And do not forget to give points to the guys who helped you. But only, if they really did.

Regards,

Volker