Passing parameters to .NET Web Services from Java client
-
How do I pass a parameter to a .NET Web Service from a Java client using the Apache Soap libraries? When I try to pass a simple string to a method, it receive the parameter as NULL.
-
Answer:
Hi there! I'm happy to help you with this issue! After searching Google and various Web Services related sites, I found a zip file containing sample code which should help solve your problem. http://www.XMLWebServices.cc is site providing many Web Services code samples and articles. There, I found the following zip file in the "Samples" section: http://hosting.msugs.ch/eyesoft/ws/v1/apache_interop/Apache_.NET_Interop_Demo.zip This file was written by a Microsoft engineer to demonstrate interopability between Java clients using Apache SOAP and a .NET Web Service. I have reviewed the code, and it contains exactly what you're looking for. Specifically, "EchoClient.java" is where you will find the best way to do it. Additionally, the following tutorial at "Gopalan Suresh Raj's Web Cornucopia" also provides a step-by-step example: http://gsraj.tripod.com/dotnet/webservices/webservice_java_client.html CSharphelp.com also provides a tutorial showing several methods for consuming a .NET Web Service, including a Java client (about half way down the page): http://www.csharphelp.com/archives/archive53.html Search terms I used: apache soap .net web service .net web service java parameter I hope I've satisfactorily answered your question. Good luck in your coding endeavours! Axe
scooper-ga at Google Answers Visit the source
Related Q & A:
- How to create a Restful web service in .Net Using MySQL?Best solution by stackoverflow.com
- How to load a Java web app in the terminal?Best solution by stackoverflow.com
- How do I uninstall Client Services for NetWare?Best solution by Yahoo! Answers
- How do I make my web browser java compatible?Best solution by answers.yahoo.com
- Which has more scope in future: Java or .Net?Best solution by Quora
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.