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. 4 10962
"=?Utf-8?B?bG96ZA==?=" <lo**@discussio ns.microsoft.co m> wrote in
news:B4******** *************** ***********@mic rosoft.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/
"Programmin g is an art form that fights back"
Blog: http://blogs.atozed.com/kudzu
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**@discussio ns.microsoft.co m> wrote in news:B4******** *************** ***********@mic rosoft.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/ "Programmin g is an art form that fights back"
Blog: http://blogs.atozed.com/kudzu
"=?Utf-8?B?bG96ZA==?=" <lo**@discussio ns.microsoft.co m> wrote in
news:15******** *************** ***********@mic rosoft.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/
"Programmin g is an art form that fights back"
Blog: http://blogs.atozed.com/kudzu
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**@discussio ns.microsoft.co m> wrote in news:15******** *************** ***********@mic rosoft.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/ "Programmin g is an art form that fights back"
Blog: http://blogs.atozed.com/kudzu This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 collection is not used in
this class.
(singleton class + override InitializeLifetimeService )
The service class uses C++ unmanaged function from dll (using DLLimport).
|
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.
Any help would really be appreciated.
Thx
|
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.
If the web service is taking a long time to complete, the aspx page returns
a ‘The operation has timed-out.’ Message to the web browser after 100 seconds.
I’ve added: <httpRuntime executionTimeout="300" /> to the web.config files
|
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).
I changed the data type for the structure that contains the XML data from
the default "String" to "xml.xmldocument" to enable easy filling of the
data.
my client code creates an XML document class, fills the data using standard
xml dom...
|
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
or do i need to write the xml as text from the web service and supply a DTD.
Also any other pitfalls
TIA
| |
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 fine so far.
My problem is that when I call a web method to modify the dataset inside the
Web service it is never updated and I get no errors.
currentPeriods method will always give me 1 even if I call ChangeDataset and
call currentPeriods...
|
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?
cheers
|
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 time, something like 15 to 30
seconds. All subsequent calls are really fast (about 10 milliseconds). But
when the client is restarted, the first call once more takes long time.
We have been testing a few different scenarios to figure out what is...
|
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 mechanism before calling the methods within the web service.I used the NetworkCredentials Property for authenticating but the user name and password is not authenticating.I am able to access the web service methods directly the authentication mechanism...
|
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 name based on the name of the
VB6 application. A second choice would be a file name based on the # COM
interface assembly. I have tried calling Assembly.GetCallingAssembly() but
this fails when I use the VB6 client. Is there a way to get this...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
| |
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |