Last post Mar 01, 2012 03:45 PM by vckreddyece
Mar 01, 2012 02:47 PM|samya|LINK
I have created a C# Web service in ASP.net. I am using a IIS web server. I have successfully deployed the service by creating a .net website application.
The service takes an input parameter which is the file name and returns a string.
public string ProcessResults(string filename)
NOW I need to call the ASP.net service from Java. How do I make a reference to the web service and call a function from it. What tools do I need to download and the code to execute.
I am a beginner in web services. Any help in this matter will be appreciated.
Mar 01, 2012 02:53 PM|sreejukg|LINK
Since you have successfully deployed the web service, now it is from Java side to call the web service. It is better to post in java forums to call web services...
Any way refer this
Mar 01, 2012 03:45 PM|vckreddyece|LINK
1) First we need proxy/stub classes and for this
a) We can use eclipse IDE web service client creation technique by giving our WSDL.
b) We can enerate stub classes by using any WSDL2Java converters
2) Use the above generated classes to invoke the service.
// setting up request
ServiceRequest dcr =
//Set the service details
URL endpoint = new URL("<SERVICE_URL>");
//Invoke the operation
Fault f = response.getFault();
//Good, handle the response