473,412 Members | 2,306 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,412 software developers and data experts.

Calling Web Service from VB6

Hi,

I'm building a web service for a client and would like to know if it's
possible to achieve it the way they'd like it.

Basically I need to call a dotnet web service from a client application
written in VB6 and (if possible) avoid packaging a dotnet component with this
VB6 application.

The client wants the client app used on sales machines which don't have the
dotnet framework installed and wants to avoid installing it on these machines.

Is it possible to call a Web Service directly from VB6?

Alternatively could I create a COM wrapper class with dotnet in a central
location (i.e. a machine with dotnet installed on it) on their network and
then reference that wrapper class from the various client machine's VB6 app?

Any help/pointers would be appreciated.

Thanks.
Nov 23 '05 #1
4 10939
"=?Utf-8?B?bG96ZA==?=" <lo**@discussions.microsoft.com> wrote in
news:B4**********************************@microsof t.com:
Basically I need to call a dotnet web service from a client application
written in VB6 and (if possible) avoid packaging a dotnet component with
this VB6 application.
Its possible, but its a LOT more difficult because VB6 AFAIK doesnt have
native webservice support. Interpreting WSDL is not a trivial task.
Is it possible to call a Web Service directly from VB6?
Yes. But the question should be "how hard is it"? A lot also depends on the
complexity of the webservice you want to call. Simple ones can be easily hand
hacked with HTTP.
Alternatively could I create a COM wrapper class with dotnet in a
central location (i.e. a machine with dotnet installed on it) on their
network and then reference that wrapper class from the various client
machine's VB6 app?


Using DCOM yes, but I wouldnt recommend it. Thats just another weak link that
will get broken.

Why not just install .NET framework? The users will never even notice.

--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"

Blog: http://blogs.atozed.com/kudzu
Nov 23 '05 #2
Thanks for the response.
Why not just install .NET framework? The users will never even notice.
If it were my choice I'd be doing this but unfortunately people higher up
won't allow this without a fair bit of reviewing, etc.

The webservice isn't too complex, basically providing a set of details to
the webservice to be written to a DB at the webservices end and waiting on a
boolean response. Since there could be a large number of fields being sent
I'm guessing hand-hacking with HTTP would be quite awkward.

The problem is the details are collected in a large VB6 app (which is
installed and used over most of the network) so I need some way to present
them to the webservice.

I'll try pushing for installing the .NET framework on a wider basis but
failing that I think I'll be forced to try the DCOM approach :-(

Thanks for the clarification, I appreciate it a lot.

"Chad Z. Hower aka Kudzu" wrote:
"=?Utf-8?B?bG96ZA==?=" <lo**@discussions.microsoft.com> wrote in
news:B4**********************************@microsof t.com:
Basically I need to call a dotnet web service from a client application
written in VB6 and (if possible) avoid packaging a dotnet component with
this VB6 application.


Its possible, but its a LOT more difficult because VB6 AFAIK doesnt have
native webservice support. Interpreting WSDL is not a trivial task.
Is it possible to call a Web Service directly from VB6?


Yes. But the question should be "how hard is it"? A lot also depends on the
complexity of the webservice you want to call. Simple ones can be easily hand
hacked with HTTP.
Alternatively could I create a COM wrapper class with dotnet in a
central location (i.e. a machine with dotnet installed on it) on their
network and then reference that wrapper class from the various client
machine's VB6 app?


Using DCOM yes, but I wouldnt recommend it. Thats just another weak link that
will get broken.

Why not just install .NET framework? The users will never even notice.

--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"

Blog: http://blogs.atozed.com/kudzu

Nov 23 '05 #3
"=?Utf-8?B?bG96ZA==?=" <lo**@discussions.microsoft.com> wrote in
news:15**********************************@microsof t.com:
The webservice isn't too complex, basically providing a set of details
to the webservice to be written to a DB at the webservices end and
waiting on a boolean response. Since there could be a large number of
fields being sent I'm guessing hand-hacking with HTTP would be quite
awkward.


Sending is easy, its the response that proves more difficult. If its return
value is simple, you can easily use a soap spy and look at whats submitted.
Cosntruct a string with the same, and POST it. Get response, extract. Pretty
easy - and use a C#/VB.NET client to make the initial go.

For HTTP post you might consider Indy, its free:
http://www.indyproject.org/

--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"

Blog: http://blogs.atozed.com/kudzu
Nov 23 '05 #4
Thanks a lot, I'll give that a try. Aside from my two thoughts (calling from
VB6 directly or using a central COM wrapper) I was short on ideas.

Cheers, you've been more than helpful!

"Chad Z. Hower aka Kudzu" wrote:
"=?Utf-8?B?bG96ZA==?=" <lo**@discussions.microsoft.com> wrote in
news:15**********************************@microsof t.com:
The webservice isn't too complex, basically providing a set of details
to the webservice to be written to a DB at the webservices end and
waiting on a boolean response. Since there could be a large number of
fields being sent I'm guessing hand-hacking with HTTP would be quite
awkward.


Sending is easy, its the response that proves more difficult. If its return
value is simple, you can easily use a soap spy and look at whats submitted.
Cosntruct a string with the same, and POST it. Get response, extract. Pretty
easy - and use a C#/VB.NET client to make the initial go.

For HTTP post you might consider Indy, its free:
http://www.indyproject.org/

--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"

Blog: http://blogs.atozed.com/kudzu

Nov 23 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: jarmopy | last post by:
Hi, I have made a service with C# and calling that service class from another C# program with remoting. (Referendes from the calling program) That service class is configured so that garpage...
0
by: Cleo | last post by:
Hi, I am trying to call a WebService Method written in Weblogic from VB.NET and I am getting the following error. I am using SOAP Caal s from VB.NET. Please find the wsdl file and my code. ...
3
by: Mike | last post by:
Timeout Calling Web Service I am calling a .NET 1.1 web service from an aspx page. The web service can take several minutes to complete its tasks before returning a message to the aspx page. ...
3
by: Jerome Cohen | last post by:
AI am trying to call a third-party web service. this service expects an XML fragment that contains the request plus other parameter. adding the web reference created the syntax below(reference.vb)....
7
by: Stu | last post by:
Hi, I have a web service which returns a record set and works well integrated with an asp dot net page. However if I decided to develop a unix app will i be able to read the dataset as it is...
5
by: joeblast | last post by:
I have a Web service that gets the financial periods and hold a reference to a disconnected dataset built at initialization. Web methods work on the dataset inside the web service. Everything is...
1
by: fallenidol | last post by:
hi i'm looking for some heads up info regarding calling and using a web service from within another web service. is this acceptable practice? if not why? what should i be thinking about here? ...
2
by: Johan | last post by:
We have run into problems calling a web service from a client running .NET framework 2.0. The problem is that the first call to the web service, after the client has been started, takes very long...
1
by: ananth | last post by:
Hi All, I have a web service created in Notes Database and i am calling the web service in Visual studio.Net application by adding a web reference. I need to have authentication...
7
by: =?Utf-8?B?UVNJRGV2ZWxvcGVy?= | last post by:
I have a C# logging assembly with a static constructor and methods that is called from another C# Assembly that is used as a COM interface for a VB6 Application. Ideally I need to build a file...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.