Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Calling web service from vb6

461 views
Skip to first unread message

Manni

unread,
Jan 29, 2003, 10:50:49 AM1/29/03
to
If you don't want to use an extra tool yust use the
MSXML component and build a soap header!

Manfred


Mayur Patel

unread,
Jan 29, 2003, 10:46:26 AM1/29/03
to
We have published a webservice application in dotNet. We can call the
webservice fine from vb.net.
But, I need help trying to call it from my visual basic 6 application.

Thanks in advance.

--
Mayur Patel
Application Development
Service Management Group, Inc.
403 Weathersby Rd.
Hattiesburg, MS 39402
Ph. 888.727.8726
Ph 601.268.7330
Fax 601.264.6737
ma...@servicemg.com


Mayur Patel

unread,
Jan 29, 2003, 11:52:06 AM1/29/03
to

I have not had much experience with Soap. Do know of any good references?


--
Mayur Patel
Application Development
Service Management Group, Inc.
403 Weathersby Rd.
Hattiesburg, MS 39402
Ph. 888.727.8726
Ph 601.268.7330
Fax 601.264.6737
ma...@servicemg.com

"Manni" <pcpo...@hotmail.com> wrote in message
news:Otebn46xCHA.2604@TK2MSFTNGP12...

Manni

unread,
Jan 29, 2003, 11:58:18 AM1/29/03
to

There is a lot of XML / WS information out there but maybe you start like I did!

Call the asmx file, choose a method and you will see how the service should be called!

I dont know, if there is a HTTPRequest in VB, but if it is yust give it a try by calling your service
with GET (shown in the ASMX page) like http://myserver/myservice.asmx?..........

You'l get back the XML as an easy parseable string (direkt or via XMLDOM) without a soap envelope!

You can even see it if your WS uses simple datatypes, by calling it from the ASMX page with IE.

Manfred


Trapulo

unread,
Jan 29, 2003, 12:26:15 PM1/29/03
to

install and use SOAP toolkit

"Mayur Patel" <ma...@servicemg.com> wrote in message
news:OpNpJ26xCHA.1928@TK2MSFTNGP10...

Jay B. Harlow [MVP - Outlook]

unread,
Jan 29, 2003, 9:33:00 PM1/29/03
to
Mayur,
In addition to Manni's suggestion.

The easiest way may be to load either the SOAP Toolkit 3.0 or SOAP Toolkit
2.0.

The following would be a good starting point.
http://msdn.microsoft.com/library/default.asp?url=/nhp/Default.asp?contentid
=28000523

Hope this helps
Jay

"Mayur Patel" <ma...@servicemg.com> wrote in message
news:OpNpJ26xCHA.1928@TK2MSFTNGP10...

Roman Kiss

unread,
Jan 30, 2003, 1:43:10 AM1/30/03
to

Mayur Patel

unread,
Jan 30, 2003, 11:18:03 AM1/30/03
to
Thanks for all you help so far.
I downloaded the Soap Toolkit 3.0 and got the following code to run
successfully.

Dim x As New MSSOAPLib30.SoapClient30
x.MSSoapInit ("http://192.168.1.23:8081/smgnethub/default.asmx?wsdl")
Dim hash As String
Dim sessionlength As Integer
Dim hubaddresses As String
Dim message As String
message = x.AuthenticateGateway("login", "password", "192.168.1.1",
CLng(123), hash, sessionlength, hubaddresses)

But, when I try to implement the same code in the ASP:
Dim x
set x = server.createobject("MSSOAP.SoapClient30")
Dim hash
Dim sessionlength
Dim hubaddresses
Dim message
x.MSSoapInit
("http://smgtest.servicemg.com/smgnethub/default.asmx?wsdl")

I get the following error.

Error Type:
WSDLReader (0x80020009)
WSDLReader:XML Parser failed at linenumber 1, lineposition 0, reason is: No
data is available for the requested resource. HRESULT=0x1: Incorrect
function. - WSDLReader:Loading of the WSDL file failed HRESULT=0x80070057:
The parameter is incorrect. - Client:One of the parameters supplied is
invalid. HRESULT=0x80070057: The parameter is incorrect.

Any idea why this would happen?


--
Mayur Patel
Application Development
Service Management Group, Inc.
403 Weathersby Rd.
Hattiesburg, MS 39402
Ph. 888.727.8726
Ph 601.268.7330
Fax 601.264.6737
ma...@servicemg.com

"Mayur Patel" <ma...@servicemg.com> wrote in message
news:OpNpJ26xCHA.1928@TK2MSFTNGP10...

Jay B. Harlow [MVP - Outlook]

unread,
Jan 30, 2003, 9:47:20 PM1/30/03
to

Mayur,
Unfortunately I have not used either of the SOAP Toolkits from ASP.

Can your browse to the URL you gave in the ASP, it almost sounds like its
not resolving to the server...

Hope this helps
Jay

"Mayur Patel" <ma...@servicemg.com> wrote in message

news:O#k0esHyCHA.1624@TK2MSFTNGP10...

0 new messages