You need to sign in to do that
Don't have an account?
Mike Leach
Generating ApexService.SessionHeader
The Apex Developers Deployment guide has some psuedo code for generating an ApexService SessionHeader, but nothing specific.
I've discovered that I can only generate valid SessionHeaders logging into the Org from which the WSDL was generated.
Is there anything in the Apex.wsdl that binds the service to a particular Org end point, like an Enterprise WSDL does?
Can Apex.wsdl be used by partners across multiple orgs? I'm guessing the ApexService.URL property perhaps needs setting?
Thoughts? Suggestions?
Thx
Any ideas?
URL url = new URL(lr.serverUrl);
m_apexBinding.Url = "https://" + url.Host + "/services/Soap/s/11.1";
The resulting binding does not work. I continue to get the error:
No operation available for request {https://na5-api.salesforce.com/services/Soap/c/11.1/461600D70000000IVGU/schemas/class/WakeUP}wakeUP
This is the same error I received before I modified the hostname and the url then was:
"http://soap.sforce.com/schemas/class/WakeUP"
I had to add the setUrl method to the binding stub as it originally had the host hardcoded "http://soap.sforce.com/schemas/class/WakeUP".