You need to sign in to do that
Don't have an account?
KrishnakumarJ
Example Sample HelloWorld WebService needed
I need examples for the foll:
1) How to create Sample HelloWorld WebService using Apex?.
2) How to generate WSDL for this Sample HelloWorld WebService ?.
3) How to consume that Sample HelloWorldWebService in VisualForce page?..
Any Help would be appreciated.
Thank you for Replying to my ques.
Can you please send me the complete code for consume the Webservice in VisualSource Page (BestPractices)?.
Will be waiting for ur reply:)
Hi ,
While invking the HelloWorld WebService from page I am getting the foll exception.
exception occured after webservc call.System.CalloutException: IO Exception: Unauthorized endpoint, please check Setup->Security->Remote site settings. endpoint = https://ap1-api.salesforce.com/services/Soap/class/HelloWorldWebService
After adding external server to Remote Sites, i am getting the following exception:
exception occured after webservc call.System.CalloutException: Web service callout failed: WebService returned a SOAP Fault: INVALID_SESSION_ID: Invalid Session ID found in SessionHeader: Illegal Session faultcode=sf:INVALID_SESSION_ID faultactor=
Hello, KrishnakumarJ. I believe you need to set the sessionId after logging in, as shown in the code for the wrapper class in the following tutorial.
"NO-SOFTWARE Tutorial for Salesforce Web Services"
http://frombelvideres4thfloor.blogspot.com/2010/11/no-software-tutorial-for-salesforce-web.html
Hello Krishna,
Have you used two salesforce instances for this?
Even im working on same, can u brief the process of executing it.
Thanks.
hey street,
were you able to make this working?
even i need one example
Thanks,
16
same question to krishna too!!
were u able to solve this??
I was working on two sandbox instances.
Hi KrishnaKumar,
i executed above code but i am getting some error
please tell me what i will do for execute that code
Thanks&Regards
ANWAR
Hello Krishna can u provide your complete code, i am also trying to implement webservice..
Hi am also getting the same error when I try to execute this one.
Error: HelloWorldWSContoller Compile Error: Invalid type: HelloworldServiceWSDL2Apex.HelloWorldWebService at line 9 column 67
can anyone solve this?
Hi,
Did you execute these code? Is it code correct.
because
i have error occurred while save my apex class.
I have created web service please go through the below code.
and create the remote site settings as HelloWorldWebservice after generating WSDL from HelloWorldWebservice class.
thanks,
Ramesh