Furash Gary wrote:
Yes, before you ask, I know I'm just supposed to use WSDL2Java, but I'm
just trying to get a feel for this first :-)
I'm calling a .NET service from Java. The header I'm generating in AXIS
doesn't look like the header the .NET service wants, so it's failing
with "Unable to handle request without a valid action parameter".
The .NET service wants this in the HTTP header:
POST /objacctwebservices/Login.asmx HTTP/1.1
Host: mcaosappstest
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://xml.objacct.com/GetLoginKey"
Instead, my code does something like this:
Content-Type: application/soap+xml; charset=utf-8;
action="http://xml.objacct.com/GetLoginKey"
And doesn't have a "SOAPAction: " parameter.
You have to use SOAP 1.1 version. By default Axis2/C use SOAP 1.2.
Samisa...
--
Samisa Abeysinghe : http://www.wso2.org/ (WSO2 Oxygen Tank - Web Services
Developers' Portal)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]