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
HeenaHeena 

consuming web services in salesforce

Hi All,

 

I am trying to generate apex classes from a WSDL, and i am getting the following error - "Error: Unsupported WSDL. Operation 'GetRouteByThumbnailIds' has more than one output element."

 

The Wsdl code is as follows:

 

 <s:element name="GetRouteByThumbnailIds">
    <s:complexType>
     <s:sequence>
      <s:element minOccurs="0" maxOccurs="1" name="licenseKey" type="s:string"/>
      <s:element minOccurs="1" maxOccurs="1" name="thumbnail1Id" type="s:string"/>
      <s:element minOccurs="1" maxOccurs="1" name="thumbnail2Id" type="s:string"/>
     </s:sequence>
    </s:complexType>
   </s:element>
   <s:element name="GetRouteByThumbnailIdsResponse">
    <s:complexType>
     <s:sequence>
      <s:element minOccurs="1" maxOccurs="1" name="ResponseStatus" type="s0:ResponseStatus"/>
      <s:element minOccurs="1" maxOccurs="1" name="RouteInfo" type="s0:RouteData"/>
      <s:element minOccurs="0" maxOccurs="1" name="Maps" type="s0:ArrayOfMapData"/>
      <s:element minOccurs="0" maxOccurs="1" name="Disclaimer" type="s:string"/>
     </s:sequence>
    </s:complexType>
   </s:element>

 

As seen it has more than one output parameter. Can apex not give more than one output? How do i resolve this ? Any help is appreciated.

 

Let me know in case you require the whole wsdl to answer my query.

 

Thanks,

Heena