Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Mar 01, 2012 02:45 PM by vckreddyece
Mar 01, 2012 01:47 PM|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 01:53 PM|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 02:45 PM|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