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
crusader2016crusader2016 

SoapFault exception: [soapenv:Client] Only one operation within the same request is allowed.

Dear Community, 

We're exposing an Apex WDSL in a wordpress platform to call an update method in the Apex WSDL through PHP. The update method will accept lead id and array of fields. However, the call  is raising the following error: 
SoapFault exception: [soapenv:Client] Only one operation within the same request is allowed. 

Is this an error in Salesforce or error in Wordpress/PHP?  Please help
NagendraNagendra (Salesforce Developers) 
Hi Crusader,

When your Web service generates the XML file or you follow code first approach then,
<binding name="**************" type="tns:*********"> <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/> <operation name="*******"> <soap:operation soapAction=""/> ............... ...... </ closing all the tags ...>
Make sure there is only single <soap:operation soapAction=""/> used according to the hierarchy mentioned above.

Hope this helps.

Please mark this as solved if it's resolved so that it gets removed from the unanswered queue which results in helping others who are encountering a similar issue.

Thanks,
Nagendra