Friday, August 18, 2006

Call a Apache Axis Web Service from .NET Client

Following are the steps:
1 . Make proxy class using wsdl.exe .
url = Path where the webservice wsdl file is hosted.
For now just put wsdl file path


C:\Program Files\Microsoft Visual Studio 8\VC>wsdl http://localhost/MemberService.wsdl /n:CardActWS /l:vb /out:vbCardActWebser
vice.vb

2. Make a VB.NET assembly from the vb Proxy file using the VB.NET compiler

C:\Program Files\Microsoft Visual Studio 8\VC>vbc /t:library /r:System.dll,Syste
m.web.services.dll,System.xml.dll vbCardActWebservice.vb

3. Include the VB.NET assembly as a reference in VB.NET class library project.
Use Add Reference in project menu

Further to call if from vb
4. Create COM library for VB.NET class library project
5. Call COM from vb app

No comments: