> I'm having a lot of problems trying to create an web service client.
> My server is provided by an Jboss/TomCat?axis server
<snip>
> In the server side I collect the following AXIS server error:
>
> AxisFault
> faultString: no SOAPAction header!
<long boring stack dump deleted>
> The problem is clearly related with soap message header (SOAPAction
> header missing!) but I definitely can't find a good example for the
> resolution of this problem !
In on of my web-service clients I use
httpConn.setRequestProperty("SOAPAction", action);
but since you don't say anything about the classes used in your client
I've no idea how relevant this is to you.
A few seconds with Google brings up stuff like
call.setProperty(Call.SOAPACTION_USE_PROPERTY, new Boolean(true));
call.setProperty(Call.SOAPACTION_URI_PROPERTY, action);
Hope that helps.
norby - 20 Jun 2007 16:59 GMT
> > I'm having a lot of problems trying to create an web service client.
> > My server is provided by an Jboss/TomCat?axis server
[quoted text clipped - 22 lines]
>
> Hope that helps.
Hi there
Thanks for the reply Ian (true is f%*king boring the stack
message,sorry about that guys!) I'm using for the HttpsConn object and
I used the "httpSConn.setRequestProperty("SOAPAction", action);" and
still no good.
About the call.property() also try that using a different client and
still the same ID10T result.
Ian Wilson - 20 Jun 2007 17:32 GMT
>>>I'm having a lot of problems trying to create an web service client.
>>>My server is provided by an Jboss/TomCat?axis server
[quoted text clipped - 28 lines]
> I used the "httpSConn.setRequestProperty("SOAPAction", action);" and
> still no good.
Are you still getting AxisFault ... faultString: no SOAPAction header!
If so I'd use a network sniffer (or turn up the logging) to view what is
actually being transmitted.
> About the call.property() also try that using a different client and
> still the same ID10T result.
A potential issue that the action needs to have quotes
String action = "\"http://foo/bar\"";
For better help, I'd construct and post an SSCCE
http://mindprod.com/jgloss/sscce.html
P.S.
"no SOAPAction header" isn't what I would class as an 'idiotic' result
(unless of course it transpires that you are sending the correct header)
Idiotic (or at least misleadingly unhelpful) results I have seen include
SAXException: Content not allowed in prolog.
SAXParseException: Premature end of file.
Which were not caused by having content in the prolog or by ending the
transmitted data stream prematurely. They arose from misspelled
namespaces, tags or attributes.