Problems accessing Web Service...

S

Sharon McCarty

Hi Everyone,

I have the default HelloWorld webservice in asp.net. I'm trying to
access it using VBSCript, with the code:

-------------------------------------------------------------
dim oX
set oX = CreateObject("Microsoft.XMLHTTP")
oX.open "POST", "http://localhost/SampleWebServiceinC/SampleWebServiceinC.asmx?HelloWorld",
false
oX.setRequestHeader "Content-Type", "text/xml"
ox.send
MsgBox oX.responseText
-------------------------------------------------------------


I'm trying to grab the string, "Hello World" from the MsgBox.

Running this, I get the error message:

System.Web.Services.Protocols.SoapException: Unable to handle request
without a valid action parameter. Please supply a valid soap action.

Does anyone know about this?

Thank you~
Sharon
 
M

Martin Kulov

Hi Sharon,
Your web service requires correct soap requests. You should use the soap toolkit instead of manually create xml packet.

Kind regards,
Martin Kulov
www.codeattest.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top