• Post Reply Bookmark Topic Watch Topic
  • New Topic

Calling Java webservices from VB app

 
Ravi Nistala
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a requirement where we need to call webservices (written in java and exposed through wsdl from websphere) from VB 6.0 app.
I want to know what are preferred ways through which we can access it from a VB app.

I was thinking of providing wsdl file and the VB app will be calling using SOAP.But i dont have much knowledge form the VB side of it.
If anybody can tell me if it is the way to do or there is any other prefered way .also if it is the prefered way then what needs to be done from the VB side of it.(I mean how to doa SOAP call from VB app).

Any help is appreciated.
 
Dave Clark
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I did a WebSphere 6.0 Server <-> C# / .NET Web Services Client system a little over a year ago, and the development was easier than you'd imagine in regards to getting the two technologies to talk to each other.

The main tricks -
- stick to the WS-I Basic Profile (or the Basic Security Profile if you need to pass security context between the client and the server). So don't use Lists and fancy stuff in your interfaces - stick to arrays
- use Document/Literal binding for your WSDL
- write your Java/WebSphere services first, then generate your WSDL (this is easier that hand-crafting WSDL, then generating Java skeletons)
- import your WebSphere-generated WSDL into Visual Studio .NET and it'll generate client-side stubs for calling your WebSphere services.
- write your .NET client app/GUI/whatever that uses these generated stubs to invoke the services, and you're done!

It's really quite a good marraige of the technologies - WebSphere/J2EE is rock solid for scalable, robust server-side business logic. Microsoft makes great tools for easily and quickly building pretty user interfaces (as long as you're OK about locking your clients into Windows)

PS - I hope you meant VB.NET rather than VB 6, because I don't think that MS gives you a lot of support for web services in their dead-ended old VB platform.

cheers,

Dave
 
Ravi Nistala
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Dav :

Thank you for the reply.I can understand what you said. But there is a constraint here. The client app is a VB 6 app not a VB .NET,and here the client is a IBM shop so they dont want to go to .NET.so i was thinking in terms of how to call wsdl file / soap request from VB 6 client. it could be a DLL or a COM object sending SOAP requests or directly calling wsdl file.

Actually .NET was my firts option but when i came to know that there cannot be a .NET then i was looking other good alternatives.
 
Dave Clark
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Microsoft have SOAP toolkit for older COM-based apps, so maybe this is what you need -

http://www.microsoft.com/downloads/details.aspx?FamilyId=C943C0DD-CEEC-4088-9753-86F052EC8450&displaylang=en

cheers,

Dave.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!