What is the best solution (if any) for calling a vb.net web service with Java / JSP? If anyone could point me to any examples / references I would very much appreciate it.
Thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
For Java to connect to the .NET Web service, it will require that you first generate a WSDL. This can be done by prepending
?WSDLto the .asmx web service (.NET), e.g.http://localhost:8080/myApp/myService.asmx?WSDLFor Java to understand this, you will need a Web Service client: In Java 6, the JAX-WS is the latest specification.
The following client that conforms to the JAX-WS is:
These tools allows you to create a java proxy from the WSDL definition. In java 6 (in JDK_HOME/bin folder) there are tools (now standard) to convert a WSDL definition to java proxy. The wsimport (windows) allows such operation.
Once you have a java proxy, you can basically call all the exposed web service methods created to call your web service.