Forums Register Login

Calling Java webservices from VB app

+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
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.
No matter. Try again. Fail again. Fail better. This time, do it with this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 2673 times.
Similar Threads
how to handle exception propagation in webservice client?
How to use java to invoke an external webservices (soap, soap1.2)?
How to call a Java program in SQLServer?
XML vs Value Objects
same targetnamespace problem with wsdl2java tool
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 08:53:21.