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
gribisgribis 

Access APEX webservice from PHP

Does anyone have sample code for accessing APEX functions exposed as webservice from PHP?
kewljedikewljedi
Please tell me someone will answer this question. I have been trying to do this myself. I am not sure how to get a session id and still use the wsdl created for the class. I can't find any documentation that covers this.
gribisgribis
I have been able to come up with a crude verion of calling WebServices... We leverage the session ID that is used
for calling SalesForce APIs for other reasons. We use the same session id to call webservices using a generic HTTP object, parse the response using the XMLDOM model. It's crude, but it works. If someone has a model leveraging the SOAP objects library I would love to hear about it. Not sure how to post files here, so please feel free to request the samples via email (sgribi@kazeon.com).