function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Legendary PerformanceLegendary Performance 

Integration Problem - Parsing Error

 

Hi
  Can any body please tell me the reason behind the below parsing error
Error: Failed to parse wsdl: Parse error: Found invalid XML. could not determine namespace bound to element prefix wsdl (position: START_DOCUMENT seen ...ns targetNamespace="http://www.xyz.com/CancelPolicyService/">... @1:81)
Chamil MadusankaChamil Madusanka

Hi,

 

It is better if you can post your code here.

Legendary PerformanceLegendary Performance

Hi Chamil,

          Below  is the xml I need to parse. I am on the way to implement the data exchane between salesforce and new system.  Once parsing is done what shall I do to see the data communication(easy steps with some sample codes)

 

 

<wsdl:definitions targetNamespace="http://www.xyz.com/CancelPolicyService/">
?
<!--
WSDL created by Apache Axis version: 1.4
Built on Apr 22, 2006 (06:55:48 PDT)
-->
?
<wsdl:types>
?
<schema targetNamespace="http://www.xyz.com/CancelPolicyService.xsd">
?
<element name="CancelPolicyRequest">
?
<complexType>
?
<sequence>
<element name="UserId" type="xsd:string"/>
<element name="Password" type="xsd:string"/>
<element name="CountryCode" nillable="true" type="xsd:string"/>
<element name="PolicyNo" nillable="true" type="xsd:string"/>
<element name="CoverStartDate" nillable="true" type="xsd:string"/>
<element name="CancelCode" nillable="true" type="xsd:string"/>
<element maxOccurs="1" minOccurs="0" name="CancelText" nillable="true" type="xsd:string"/>
<element name="AgencyIdNo" nillable="true" type="xsd:string"/>
<element name="AgencyAgreementNo" nillable="true" type="xsd:string"/>
<element name="ProductId" nillable="true" type="xsd:string"/>
</sequence>
</complexType>
</element>
?
<element name="CancelPolicyResponse">
?
<complexType>
?
<sequence>
<element maxOccurs="1" minOccurs="0" name="MessageId" nillable="true" type="xsd:string"/>
<element maxOccurs="1" minOccurs="0" name="Message" nillable="true" type="xsd:string"/>
</sequence>
</complexType>
</element>
?
<element name="ServiceException">
?
<complexType>
?
<sequence>
<element name="errorCode" type="xsd:string"/>
<element name="errorString" nillable="true" type="xsd:string"/>
</sequence>
</complexType>
</element>
</schema>
</wsdl:types>
?
<wsdl:message name="ServiceException">
<wsdl:part element="tns1:ServiceException" name="ServiceException"/>
</wsdl:message>
?
<wsdl:message name="cancelPolicyResponse">
<wsdl:part element="tns1:CancelPolicyResponse" name="CancelPolicyResponse"/>
</wsdl:message>
?
<wsdl:message name="cancelPolicyRequest">
<wsdl:part element="tns1:CancelPolicyRequest" name="CancelPolicyRequest"/>
</wsdl:message>
?
<wsdl:portType name="CancelPolicy">
?
<wsdl:operation name="cancelPolicy" parameterOrder="CancelPolicyRequest">
<wsdl:input message="impl:cancelPolicyRequest" name="cancelPolicyRequest"/>
<wsdl:output message="impl:cancelPolicyResponse" name="cancelPolicyResponse"/>
<wsdl:fault message="impl:ServiceException" name="ServiceException"/>
</wsdl:operation>
</wsdl:portType>
?
<wsdl:binding name="CancelPolicyServiceSoapBinding" type="impl:CancelPolicy">
<wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
?
<wsdl:operation name="cancelPolicy">
<wsdlsoap:operation soapAction="http://localhost:8080/axis/services/cancelPolicy"/>
?
<wsdl:input name="cancelPolicyRequest">
<wsdlsoap:body use="literal"/>
</wsdl:input>
?
<wsdl:output name="cancelPolicyResponse">
<wsdlsoap:body use="literal"/>
</wsdl:output>
?
<wsdl:fault name="ServiceException">
<wsdlsoap:fault name="ServiceException" use="literal"/>
</wsdl:fault>
</wsdl:operation>
</wsdl:binding>
?
<wsdl:service name="CancelPolicyService">
?
<wsdl:port binding="impl:CancelPolicyServiceSoapBinding" name="CancelPolicyService">
<wsdlsoap:address location="http://10.20.209.186:8080/axis/services/CancelPolicyService"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>