How to call Java Web service using Asp.Net?
-
Add the web service url as web service as Web Reference. Create the object of Class and Access the methods. Here is an good article in Code project. Please have a look How to invoke Java web service in ASP.net using C# Hope this will help you. :)
cheers, Abhijit CodeProject MVP Web Site:abhijitjana.net
-
Add the web service url as web service as Web Reference. Create the object of Class and Access the methods. Here is an good article in Code project. Please have a look How to invoke Java web service in ASP.net using C# Hope this will help you. :)
cheers, Abhijit CodeProject MVP Web Site:abhijitjana.net
You have given good solution, but i can not add the reference of a web reference in my C# page. where you have write "using JSimpCalcWebServiceService;", i can't get my added web reference at this position. so, anything required for this?
-
You have given good solution, but i can not add the reference of a web reference in my C# page. where you have write "using JSimpCalcWebServiceService;", i can't get my added web reference at this position. so, anything required for this?
ashish bhakhar wrote:
but i can not add the reference of a web reference in my C# page.
Why? In your Web Site, Right Click on the Project > Add Web Reference > Then one popup window will come. you have to give the WSDL link on that Address bar. Now Click on the Go link. It will Create a proxy of that web service url. After successuly creation, you will get the reference name in the below text box, you can change the Reference name. Suppose you have given the reference name as MyWS. Then Click on Add Reference Button. Then Add the namespace using MyWS; Now you can create object of the class of Web service and can call the methods. Let me know if any other issue. Hope this will help you. Thanks you.
cheers, Abhijit CodeProject MVP Web Site:abhijitjana.net
-
ashish bhakhar wrote:
but i can not add the reference of a web reference in my C# page.
Why? In your Web Site, Right Click on the Project > Add Web Reference > Then one popup window will come. you have to give the WSDL link on that Address bar. Now Click on the Go link. It will Create a proxy of that web service url. After successuly creation, you will get the reference name in the below text box, you can change the Reference name. Suppose you have given the reference name as MyWS. Then Click on Add Reference Button. Then Add the namespace using MyWS; Now you can create object of the class of Web service and can call the methods. Let me know if any other issue. Hope this will help you. Thanks you.
cheers, Abhijit CodeProject MVP Web Site:abhijitjana.net
I have done, all you have written. but after adding a web reference with some name, i can't add the namespace using my given name, bcoz it can't found!
-
I have done, all you have written. but after adding a web reference with some name, i can't add the namespace using my given name, bcoz it can't found!
did you tried access via code, like say if you have given the name space like MyWS, then are you able to access it like MyWS.ClassName ? Do one think, after adding the reference, Build your application once then try ? That will resolve your issue. Thank you !!
cheers, Abhijit CodeProject MVP Web Site:abhijitjana.net
-
did you tried access via code, like say if you have given the name space like MyWS, then are you able to access it like MyWS.ClassName ? Do one think, after adding the reference, Build your application once then try ? That will resolve your issue. Thank you !!
cheers, Abhijit CodeProject MVP Web Site:abhijitjana.net
Yes, i have given the name space like MyWS, but i am not able to access it like MyWS.ClassName even after application Re Build. this is the problem.