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

Need help in parse wsdl



I am trying to parse the wsdl in salesforce and get struck with this error


Failed to parse wsdl: attribute name can not be null at: 42:94. The following is the part of the WSDLand the line in red where the error is throwing.


<complexType name="ArrayOfReplyInfo">
<restriction base="soapenc:Array">
<attribute ref="soapenc:arrayType" wsdl:arrayType="intf:ReplyInfo[]"/>

Best Answer chosen by Admin (Salesforce Developers) 

It seems like your WSDL is written in RPC style.  Is this correct?  Apex supports only the document literal wrapped WSDL style.


If you're not sure, look for the <wsdlsoap:binding /> tag in your WSDL?  Is the style attribute on this element set to "rpc"?