You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by "Deppen, Jeff" <je...@paytec.com> on 2004/06/14 22:12:30 UTC

Posting XML to AxisServlet

Help!

I'm trying to write an automated testing tool that will post Soap messages
to the AxisServlet.   When I attempt to post the XML directly to the
AxisServlet, I receive an AxisFault with a faultString: "no SOAPAction
header!"

The soap call works fine when I use the AXIS client side libraries.  It's
when I try to post XML that it goes haywire.  (I should note that I copied
the XML from the server log when I ran the client-side library test - so it
should be the exact XML the axis servlet is processing.)

So, can anyone:
1. tell me if posting soap/xml requests directly to the AxisServlet should
work
2. is the XML that shoes up in the AxisServlet (when using the axis client
side libraries) the EXACT XML that the servlet receives?
3. does anyone have any recommendations for an open source web services
tester?  

thanks!
jeff

RE: Posting XML to AxisServlet

Posted by Abhinav Maheshwari <ab...@contata.co.in>.
Jeff,
In addition to posting the XML to the web service, you also need to put the
HTTP Header "SOAPAction". Please check if you are sending this header while
posting your request.

For testing your web services, if you are looking for a GUI based tool, you
can have a look at the Webservice Studio 2.0
http://www.gotdotnet.com/Community/UserSamples/Details.aspx?SampleGuid=65a1d
4ea-0f7a-41bd-8494-e916ebc4159c

This generates a form by inspecting the WSDL which can be used to send a
request to the web service.

You can also have a look at PushToTest TestMaker.
http://www.pushtotest.com/ptt

Warm regards,
Abhinav Maheshwari

-----Original Message-----
From: Deppen, Jeff [mailto:jeff.deppen@paytec.com] 
Sent: Tuesday, June 15, 2004 1:43 AM
To: 'axis-user@ws.apache.org'
Subject: Posting XML to AxisServlet

Help!

I'm trying to write an automated testing tool that will post Soap messages
to the AxisServlet.   When I attempt to post the XML directly to the
AxisServlet, I receive an AxisFault with a faultString: "no SOAPAction
header!"

The soap call works fine when I use the AXIS client side libraries.  It's
when I try to post XML that it goes haywire.  (I should note that I copied
the XML from the server log when I ran the client-side library test - so it
should be the exact XML the axis servlet is processing.)

So, can anyone:
1. tell me if posting soap/xml requests directly to the AxisServlet should
work 2. is the XML that shoes up in the AxisServlet (when using the axis
client side libraries) the EXACT XML that the servlet receives?
3. does anyone have any recommendations for an open source web services
tester?  

thanks!
jeff