aspose file tools
The moose likes Web Services and the fly likes VB Client for Java Web Service implemented using Apache Axis Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "VB Client for Java Web Service implemented using Apache Axis" Watch "VB Client for Java Web Service implemented using Apache Axis" New topic
Author

VB Client for Java Web Service implemented using Apache Axis

Raghuveer Rawat
Ranch Hand

Joined: Apr 03, 2003
Posts: 102
hi
I have implemented my first Hello World Web Service using apache axis.
i m able to call it from my java client without any problem.
but Now I want to call it from VB and VB.NET client.
Can someone who have done this before help me.
Thanx


Raghuveer Rawat<br />SCJP2
Cory Wilkerson
Ranch Hand

Joined: Aug 14, 2001
Posts: 84
Have you downloaded the .NET framework SDK? There's a tool called wsdl (wsdl.exe) that you can run from the command line that will generate stubs from your service and allow you to use the service objects in your VB class (if class is a valid word when discussing vb).
Raghuveer Rawat
Ranch Hand

Joined: Apr 03, 2003
Posts: 102
hi cory
Thanx for reply.
Yes I have .NET framework installed on my machine. But how can I use wsdl.exe to generate Stub. Does merely running it will generate Stub for me.
Actually I could not get how to use it for assessing webservie form VB.NET and VB Client.
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
You need to point wsdl.exe into the .wsdl document describing the web service. Then it will generate you some stubs in the preferred language. You write your application code by calling the generated stubs.
For how to use wsdl.exe, check out this link.


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Cory Wilkerson
Ranch Hand

Joined: Aug 14, 2001
Posts: 84
wsdl.exe /o:FileName.vb /n:Namespace.You.Want http://location.of.wsdl
If you run this you'll wind up with a file in your current directory (FileName.vb) that should consist of the entire service representation. You should then be able to write another vb "class" using the service definitions in FileName.vb, compile with the VB compiler (I think it's vbc) and you'll be good to go.
If you're wanting to use this from a .NET application, I believe that you can create a DLL via vbc with the /target:libary option that you can then register on IIS and go to town.
[ August 26, 2003: Message edited by: Cory Wilkerson ]
Raghuveer Rawat
Ranch Hand

Joined: Apr 03, 2003
Posts: 102
I tried these solutions to use with my VB Client. But I am unable to solve my problem. As when I use wsdl.exe to generate filename.vb class file. I can not use this file .vb with my VB6 Client. I think I can use it with VB.NET client but is there any way to access axis webservice from VB6 Client.
Cory Wilkerson
Ranch Hand

Joined: Aug 14, 2001
Posts: 84
Ahh - now you're in a realm that I'm not qualified to answer. I know there are SOAP toolkits for VB 6 -- you'll just have to dig. I would imagine they'll be packaged with similar tools to generate your client stubs.
Raghuveer Rawat
Ranch Hand

Joined: Apr 03, 2003
Posts: 102
Thanx Cory and Lasse for help. I got it working.
Swati Raje
Greenhorn

Joined: Feb 13, 2004
Posts: 3
Appreciate if you give me tips on how you got it to work. Greatly appreciate if you could send me the sample code.-thanks.
 
I agree. Here's the link: jrebel
 
subject: VB Client for Java Web Service implemented using Apache Axis
 
Similar Threads
INVOKE A .NET WEB SERVICE FROM JAVA
Run Servlet on deployment
.Net WS from Java
Microsoft SOAP vs Oracle/Apache SOAP
how to invoke web service implemented in MS.NET