You need to sign in to do that
Don't have an account?
EPSWDEV
Calling a Apex class method exposed as a webservice.
Hi,
I have a APEX Class whose one method I have exposed as a webservice and I am trying to call it using Java. What are the general steps I need to do in order to call this service successfully. I have seen various examples on the wiki where a java client would can access and perfrom operations on various salesforce objects using the Web Service API, However none of them show how to call a apex class exposed as a webserivce and pass data to it and recieve a response. (my Data operations are done in the method exposed as the webservice). Looking for the phptoolkit equivalent for java.
Thanks,
I have a APEX Class whose one method I have exposed as a webservice and I am trying to call it using Java. What are the general steps I need to do in order to call this service successfully. I have seen various examples on the wiki where a java client would can access and perfrom operations on various salesforce objects using the Web Service API, However none of them show how to call a apex class exposed as a webserivce and pass data to it and recieve a response. (my Data operations are done in the method exposed as the webservice). Looking for the phptoolkit equivalent for java.
Thanks,
Also, the custom WSDL will include any inner classes or members that were labeled "webService".
To generate the WSDL from the salesforce.com User Interface, login, go to Setup->App Setup->Develop->Apex Classes. Find the specific class where the web service is defined and click on the WSDL hyperlink. This will download the WSDL which can then be imported into the external application(s) that will be invoking the web service.
My question is what does WSDL2Java do? when I ran it, it generated a lot of classes and am not sure if anything needs to be modified in it before I build it. Does it generate like a 'proxy' to the <my web svc> that once compiled I can use elsewhere in my java code refer and make calls to the websvc? or am I wrong.
Thank you