Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

VB Client for Java Web Service implemented using Apache Axis  RSS feed

 
Raghuveer Rawat
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Cory Wilkerson
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Cory Wilkerson
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanx Cory and Lasse for help. I got it working.
 
Swati Raje
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Appreciate if you give me tips on how you got it to work. Greatly appreciate if you could send me the sample code.-thanks.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!