Menu

#45 HttpSendRequestA with SOAPAction header

client
open
bug (54)
5
2003-01-23
2002-06-18
Anonymous
No

HttpSendRequestA (SOAPWinInetTransport.cpp)
returns false when called with the SOAPAction header
on my system. Removing the SOAPAction header fixed
the problem. I am using the May 2002 SDK.

Discussion

  • Howard Cole

    Howard Cole - 2002-09-27

    Logged In: YES
    user_id=617199

    (Version 0.6.1)
    If the SOAP action is not explicity named when you create
    the SOAPMethod object then the http header is set to
    nothing (in SOAPWinInetTransport::Write) i.e.

    "SOAPAction:\r\n"

    This fails when HttpSendRequestA is called.

    You can explicitly set the SOAP action when you create the
    SOAPMethod object by either:

    1. Declaring the SOAP action when you define the method:
    SOAPMethod m (name, namespace, action);
    2. Set the action using the SetSoapAction method of the
    SOAPMethod class
    SOAPMethod m (name, ns);
    m.SetSoapAction (action);

     
  • Peter Feltham

    Peter Feltham - 2003-01-22

    Logged In: YES
    user_id=694849

    To allow empty SOAPActions with the wininet transport, the
    line in SOAPWinInetTransport.cpp,
    "SOAPAction:\r\n"
    should be changed to
    "SOAPAction: \"\"\r\n"

    The empty double quotes are as used by axis and the MS
    Soap Toolkit, and wininet accepts it.

     
  • David Crowley

    David Crowley - 2003-01-23
    • assigned_to: nobody --> dcrowley
     

Log in to post a comment.

MongoDB Logo MongoDB