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.
(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);
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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);
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.