You need to sign in to do that
Don't have an account?
Error: Unsupported WSDL. Found more than one part for message
Hello Salesforce gurus,
I am new to SFDC and I am running into a roadblock with the following WSDL which I am trying to generate APEX code.
The WSDL successfully got parsed but the APEX code generation failed fatally.
The error message while generating the APEX code is
Error: Unsupported WSDL. Found more than one part for message CostaAuthenticatorInput
Any workaround to solve this would be awesome. Your help is hightly appreciated.
Thanks in advance.
Sk_rk
The actual WSDL is below
<?xml version = '1.0' encoding = 'UTF-8'?>
<definitions name="CostaFinder" targetNamespace="http://xmlns.costamesa.com/module/" xmlns:tns="http://xmlns.costamesa.com/module/" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns1="http://xmlns.costamesa.com/module/test/">
<types>
<schema targetNamespace="http://xmlns.costamesa.com/module/test/" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:db="http://xmlns.costamesa.com/module/test/" elementFormDefault="qualified">
<element name="CostaIn">
<complexType>
<sequence>
<element name="Param1" type="string" db:index="1" db:type="VARCHAR2" minOccurs="0" nillable="true"/>
<element name="Param2" type="string" db:index="2" db:type="VARCHAR2" minOccurs="0" nillable="true"/>
</sequence>
</complexType>
</element>
<element name="CostaOut">
<complexType>
<sequence>
<element name="CostaAuthenticator" type="string" db:index="0" db:type="VARCHAR2" minOccurs="0" nillable="true"/>
</sequence>
</complexType>
</element>
<element name="MyHeader">
<complexType>
<sequence>
<element name="Param3" minOccurs="0" type="string"/>
<element name="Param4" minOccurs="0" type="string"/>
</sequence>
</complexType>
</element>
</schema>
</types>
<message name="CostaAuthenticatorInput">
<part name="header" element="tns1:MyHeader"/>
<part name="body" element="tns1:CostaIn"/>
</message>
<message name="CostaAuthenticatorOutput">
<part name="body" element="tns1:CostaOut"/>
</message>
<portType name="CostaFinder_PortType">
<operation name="CostaAuthenticator">
<input message="tns:CostaAuthenticatorInput"/>
<output message="tns:CostaAuthenticatorOutput"/>
</operation>
</portType>
<binding name="CostaFinder_Binding" type="tns:CostaFinder_PortType">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="CostaAuthenticator">
<soap:operation soapAction="http://costamesa:8076/webservices/server"/>
<input>
<soap:header message="tns:CostaAuthenticatorInput" part="header" use="literal"/>
<soap:body parts="body" use="literal"/>
</input>
<output>
<soap:body use="literal"/>
</output>
</operation>
</binding>
<service name="CostaFinder_Service">
<port name="CostaFinder_Port" binding="tns:CostaFinder_Binding">
<soap:address location="http://costamesa:8076/webservices/server"/>
</port>
</service>
</definitions>
I was able to solve the more than one part issue by adding a new <message> element for each part. Will post the WSDL later.
Sanjeev
Does anyone know of a solution to this, that doesn't involve changing the wsdl?
Sanjeev,
Can you post the modified WSDL file? Appreciated.
Regards,
http://salesforce.stackexchange.com/questions/4000/importing-ups-street-address-wsdl-into-apex
Regards,
Anil