I created a web service in salesforce as below:
global class HelloWorldWebService{
webService static string sayHello(){
return 'Hello World';
}
}
I can consume wsdl file of this service in SOAP UI and test it easily.First I have to get session id through Enterprise wsdl and then pass this session id in my web service. In real time scenario,how this service will consume outside salesforce, how third party application like java or .net will consume this service. Because that session id will be expired after some time, so we can't provide session id to third party after every 2 hours. Please also tell me how can we consume this service within salesorce.
Thanks in advance !