Problems accessing Web Service...

Discussion in 'ASP .Net Web Services' started by Sharon McCarty, Nov 4, 2004.

  1. 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
     
    Sharon McCarty, Nov 4, 2004
    #1
    1. Advertisements

  2. Sharon McCarty

    Martin Kulov Guest

    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
     
    Martin Kulov, Nov 5, 2004
    #2
    1. Advertisements

  3. Or try a GET rather than POST call?

    --
    Ben Strackany
    www.developmentnow.com

    <a href="http://www.developmentnow.com">dn</a>


    "Sharon McCarty" <> wrote in message
    news:...
    > 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
     
    Ben Strackany, Nov 9, 2004
    #3
    1. Advertisements

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. hocho888
    Replies:
    1
    Views:
    871
  2. Michael Averstegge
    Replies:
    0
    Views:
    4,546
    Michael Averstegge
    Jan 10, 2006
  3. Not Me
    Replies:
    1
    Views:
    3,468
    Not Me
    Jun 5, 2007
  4. Isaias Formacio Serna

    Web Service that calls an external Web Service

    Isaias Formacio Serna, Jan 28, 2004, in forum: ASP .Net Security
    Replies:
    5
    Views:
    461
  5. Replies:
    1
    Views:
    400
    Joe Kaplan \(MVP - ADSI\)
    Jun 14, 2006
  6. dgleeson422111

    Consuming local web service - ok, remote web service -problem?

    dgleeson422111, Jan 26, 2010, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    1,083
    dgleeson422111
    Jan 26, 2010
  7. David Laub

    Problems accessing dot net web service from java client

    David Laub, Jan 7, 2005, in forum: ASP .Net Web Services
    Replies:
    0
    Views:
    260
    David Laub
    Jan 7, 2005
  8. Leo Violette
    Replies:
    0
    Views:
    1,301
    Leo Violette
    Apr 17, 2009
Loading...