Forum Moderators: open

Message Too Old, No Replies

I cannot see "Add Web Reference" in VB6 SP6

         

kijkij

4:24 am on Apr 7, 2010 (gmt 0)

10+ Year Member






Please VB coders help me, I have a problem to connect my vb code to wsdl application.

I have a 3rd party application who provides wsdl url to get and send info to the application.

In their documentation they say that "Add web reference" or simpley "web reference" to set the wsdl url but I cannot see these two options in "Project" menu or anywhere else in VB. I have VB6 with SP6. In the project menu there are other options but not "Add Web Reference".

I also tried SOAP but it also dont work, my code hangs on the line where I add the wsdl url and If I close wsdl application, it becomes active and give the error that given resource not found. I used the following code:

Dim SoapClient As New MSSOAPLib30.SoapClient30
On Error Resume Next
SoapClient.MSSoapInit ("http://127.0.0.1:8018/service.wsdl")

I also tried some other codes but all hangs on the wsdl url line until my wsdl application running.

So help me to find or install:"Add Web Reference" option in "Project" menu

marcel

5:00 am on Apr 7, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



So help me to find or install:"Add Web Reference" option in "Project" menu

It's been some time since I last used VB6, but I'm pretty sure that importing a Web Reference is not possible.
You can download a modern version of Visual Studio for free from Microsoft:
[microsoft.com...]

Ocean10000

2:04 pm on Apr 7, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Try this. (I pulled from some old vba code I had done)
SoapClient.MSSoapInit (par_WSDLFile:="http://example.com/example.wsdl")

I have seen newer webservices which ouput wsdl which this vba code could not handle. In my case I retired the old vba code instead of trying to struggle with it.

kijkij

6:08 am on Apr 9, 2010 (gmt 0)

10+ Year Member




Thanks for your replies.

Yes I knew that this can be done easily in .NET but right now I dont want to use .NET. I tried many different SOAP codes but not success. So anyone can help to overcome this problem in VB6.

Ocean10000

7:32 pm on Apr 9, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Microsoft officially retired this toolkit. So at this point its use at your own risk, and windows updates can and probably will break it.

Mainstream SOAP Toolkit support will now be retired in March 31, 2005 with extended support lasting until March 31, 2008.
SOAP Toolkit 3.0 [microsoft.com]

With that being said have you tried to manually download the wsdl file and then open the saved version via the toolkit? It could be something the webservice is doing to deny access to the toolkit.