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
admin Affinityadmin Affinity 

Parsing WSDL to Apex error: Apex Generation Failed Unsupported WSDL. Found more than one part for message

Hello all,
I'm trying to use the WSDL2Apex standard function with a WSDL from BusinessObjects.
When in the last step, it raises me an error saying:
 
Apex Generation Failed
Unsupported WSDL. Found more than one part for message GetReportBlock_tarariSoapIn

I looked at the WSDL and there's only one portType, one binding and one service (as SF requires), and this is the part where the mentioned error occurs:
   
<message name="GetReportBlock_tarariSoapIn">
      <part name="parameters" element="s0:GetReportBlock_tarari" />
      <part name="request_header" element="s0:QaaWSHeader" />
</message>

Anyone can please help me out with this? Thanks a lot in advance!
Best Answer chosen by admin Affinity
SandhyaSandhya (Salesforce Developers) 
Hi,

As error says there are two part for message as you posted 
<message name="GetReportBlock_tarariSoapIn">
     1. <part name="parameters" element="s0:GetReportBlock_tarari" />
      2. <part name="request_header" element="s0:QaaWSHeader" />
</message>

Refer below link for solution.

https://salesforce.stackexchange.com/questions/4000/importing-ups-street-address-wsdl-into-apex
 
https://developer.salesforce.com/forums/?id=906F00000008y4rIAA
 
Please mark it as solved if my reply was helpful, it will make it available
for others as a proper solution.

Best Regards,
​Sandhya
 

All Answers

SandhyaSandhya (Salesforce Developers) 
Hi,

As error says there are two part for message as you posted 
<message name="GetReportBlock_tarariSoapIn">
     1. <part name="parameters" element="s0:GetReportBlock_tarari" />
      2. <part name="request_header" element="s0:QaaWSHeader" />
</message>

Refer below link for solution.

https://salesforce.stackexchange.com/questions/4000/importing-ups-street-address-wsdl-into-apex
 
https://developer.salesforce.com/forums/?id=906F00000008y4rIAA
 
Please mark it as solved if my reply was helpful, it will make it available
for others as a proper solution.

Best Regards,
​Sandhya
 
This was selected as the best answer
admin Affinityadmin Affinity
Both comment and links were useful and therefore my problem was solved.
Thanks!