Server did not recognize the value of HTTP Header SOAPAction:

Discussion in 'Ruby' started by akvmurlai@gmail.com, Apr 22, 2006.

  1. Guest

    Hi,

    I am trying to invoke yellowpages webservice using SOAP4R and getting
    the following error.

    Server did not recognize the value of HTTP Header SOAPAction:

    I tried the suggestions in
    http://groups.google.com/group/comp...ader SOAPAction&rnum=1&hl=en#1c75bbd325fffd80
    But, that gives
    d:/ruby/lib/ruby/1.8/soap/rpc/proxy.rb:487:in `+': can't convert
    IDhandleWebSear
    chRequest into String (TypeError)

    Any ideas?

    What I did:
    Generated client and associated classes using
    wsdl2ruby.rb --wsdl
    http://atlncan02.ncanservices.com/IDWebService/PhoneDBService.wsdl
    --type client

    and changed the client code as
    transaction_request =
    TransactionRequest.new(nil,nil,nil,nil,nil,nil,'BR','Doubledyno','srchName',50,nil,nil,nil,nil,nil)
    parameters = IDhandleWebSearchRequest.new(transaction_request)
    puts obj.iDhandleWebSearchRequest(parameters)

    The request being sent is
    <?xml version="1.0" encoding="utf-8" ?>
    <env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <env:Body>
    <IDhandleWebSearchRequest xmlns="http://66.45.113.60/IDWebService">
    <NewRequest>
    <queryType>BR</queryType>
    <referenceClass>Doubledyno</referenceClass>
    <referenceCode>srchName</referenceCode>
    <requestCount>50</requestCount>
    </NewRequest>
    </IDhandleWebSearchRequest>
    </env:Body>
    </env:Envelope>


    --
    Murali Vivekanandan
    650 483 7811
    , Apr 22, 2006
    #1
    1. Advertising

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. =?Utf-8?B?TWlndWVsIElzaWRvcm8=?=

    Server did not recognize the value of HTTP Header SOAPAction

    =?Utf-8?B?TWlndWVsIElzaWRvcm8=?=, May 25, 2007, in forum: ASP .Net
    Replies:
    2
    Views:
    28,677
    =?Utf-8?B?TWlndWVsIElzaWRvcm8=?=
    May 25, 2007
  2. Juan Rodriguez

    Server did not recognize the value of HTTP Header SOAPAction

    Juan Rodriguez, Aug 28, 2003, in forum: ASP .Net Web Services
    Replies:
    0
    Views:
    149
    Juan Rodriguez
    Aug 28, 2003
  3. Hazzard
    Replies:
    3
    Views:
    200
    Hazzard
    Sep 13, 2003
  4. Steve Evans
    Replies:
    2
    Views:
    146
    Steve Evans
    Jan 20, 2004
  5. Matt Greer
    Replies:
    2
    Views:
    253
    chriso
    Feb 6, 2004
Loading...

Share This Page