Duh!  Argh!  I hate it when I mess something up that's this obvious.  Of
course the headers look different.  Axis is doing just what I was
telling it :-) 

-----Original Message-----
From: Samisa Abeysinghe [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 16, 2007 8:29 PM
To: [email protected]
Subject: Re: Can't get the right kind of header

Samisa Abeysinghe wrote:
> 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.
See
http://spteam-lists.blogspot.com/2007/05/re-creating-axis2-soap-header.h
tml
on how to set SOAP version with options.
>
> 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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to