You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@ws.apache.org by Steve Pruitt <SP...@exstream.com> on 2003/07/03 22:09:31 UTC
need MIME attachment help
All,
I am trying to get a simple hello world test going. My client can possibly be executing without access to any of the soap messaging api's, so I am trying to write the raw soap request my self.
The service takes two args, a string and an integer.
Any insight would be highly appreciated.
-Steve Pruitt
In Tomcat console, I get the stack trace:
at org.apache.axis.Message.setup(Message.java:325)
at org.apache.axis.Message.<init>(Message.java:234)
at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:810)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:339)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
....
>From TcpTunnel my request looks like:
POST /axis/services/bank HTTP/1.1
SOAPAction:
Content-Type: Multipart/Related; boundary=MIME_boundary; type=text/xml; start="<urn:customer-list-service.xml@somesite.com">
User-Agent: Java/1.4.1_03 Host: localhost:8070
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 887
--MIME_boundary
Content-Type: text/xml
<?xml version='1.0' encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<ns1:processReport xmlns:ns1="urn:customer-list-service"
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<report xsi:type="xsd:string" href="cid:<ur...@somesite.com>"/>
<limit xsi:type="xsd:int"
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">2</limit>
</ns1:processReport>
</soapenv:Body>
</soapenv:Envelope>
--MIME_boundary
Content-Type: text/plain
Content-ID: <ur...@somesite.com>
Hello
--MIME_boundary--