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

SoapFault exception:Only one operation within the same request is allowed

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="" 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.


Hi Nagendra,

Thank you for your reply. I believe I only have a single soap action declared in the XML per below.  I tried removing other methods in the class but I'm having the same error.  Please advise. 
User-added image

Thank you