example1/MyService:

1) no headers added:
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Set-Cookie: JSESSIONID=CF2A6A3A366706087FBBD8818E91A62C; Path=/axis2
Content-Type: multipart/related;
boundary=MIMEBoundaryurn_uuid_1CAAD3F62EB8F21F2011478815557861;
type="application/xop+xml";
start="<0.urn:uuid:[EMAIL PROTECTED]>";
start-info="text/xml";charset=UTF-8
Transfer-Encoding: chunked
Date: Wed, 17 May 2006 15:59:15 GMT

23e
--MIMEBoundaryurn_uuid_1CAAD3F62EB8F21F2011478815557861
content-type:application/xop+xml; charset=UTF-8; type="text/xml";
content-transfer-encoding:binary
content-id:<0.urn:uuid:[EMAIL PROTECTED]>

<?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";><soapenv:Header
/><soapenv:Body><example1:echo
xmlns:example1="http://example1.org/example1";
xmlns:tns="http://ws.apache.org/axis2";><example1:Text>Axis2 Echo String
</example1:Text></example1:echo></soapenv:Body></soapenv:Envelope>
3b

--MIMEBoundaryurn_uuid_1CAAD3F62EB8F21F2011478815557861--
0



2) sender.addHeader(OMElement), where the OMElement is very similar to
the object returned by ClientUtil.getEchoElement():


HTTP/1.1 500 Internal Server Error
Server: Apache-Coyote/1.1
Content-Type: text/html;charset=utf-8
Content-Length: 2118
Date: Wed, 17 May 2006 16:01:31 GMT
Connection: close

<html><head><title>Apache Tomcat/5.5.15 - Error
report</title><style><!--H1
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;}
H2
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;}
H3
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;}
BODY
{font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;}
B
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;}
P
{font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A
{color : black;}A.name {color : black;}HR {color : #525D76;}--></style>
</head><body><h1>HTTP Status 500 - </h1><HR size="1"
noshade="noshade"><p><b>type</b> Exception report</p><p><b>message</b>
<u></u></p><p><b>description</b> <u>The server encountered an internal
error () that prevented it from fulfilling this
request.</u></p><p><b>exception</b>
<pre>org.apache.axiom.om.OMException:
com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character
'&gt;' (code 62) expected '='
 at [row,col {unknown-source}]: [1,226]
        
org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:207)
        
org.apache.axiom.om.impl.llom.OMElementImpl.getNextOMSibling(OMElementImpl.java:263)
        
org.apache.axiom.om.impl.traverse.OMChildrenQNameIterator.next(OMChildrenQNameIterator.java:101)
        
org.apache.axiom.om.impl.llom.OMElementImpl.getFirstChildWithName(OMElementImpl.java:223)
        
org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.getHeader(SOAPEnvelopeImpl.java:76)
        
org.apache.axis2.engine.AxisEngine.createFaultMessageContext(AxisEngine.java:194)
        
org.apache.axis2.transport.http.AxisServlet.handleFault(AxisServlet.java:168)
        org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:153)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
</pre></p><p><b>note</b> <u>The full stack trace of the root cause is
available in the Apache Tomcat/5.5.15 logs.</u></p><HR size="1"
noshade="noshade"><h3>Apache Tomcat/5.5.15</h3></body></html>




3) sender.addStringHeader(new QName("qname"), "Header text"):

HTTP/1.1 500 Internal Server Error
Server: Apache-Coyote/1.1
Content-Type: text/html;charset=utf-8
Content-Length: 1857
Date: Wed, 17 May 2006 16:06:42 GMT
Connection: close

<html><head><title>Apache Tomcat/5.5.15 - Error
report</title><style><!--H1
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;}
H2
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;}
H3
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;}
BODY
{font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;}
B
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;}
P
{font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A
{color : black;}A.name {color : black;}HR {color : #525D76;}--></style>
</head><body><h1>HTTP Status 500 - </h1><HR size="1"
noshade="noshade"><p><b>type</b> Exception report</p><p><b>message</b>
<u></u></p><p><b>description</b> <u>The server encountered an internal
error () that prevented it from fulfilling this
request.</u></p><p><b>exception</b> <pre>java.lang.NullPointerException
        
org.apache.axiom.soap.impl.llom.SOAPHeaderImpl.getHeaderBlocksWithNSURI(SOAPHeaderImpl.java:217)
        
org.apache.axis2.handlers.addressing.AddressingInHandler.invoke(AddressingInHandler.java:64)
        org.apache.axis2.engine.Phase.invoke(Phase.java:378)
        org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:492)
        org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:462)
        
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:283)
        org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:137)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
</pre></p><p><b>note</b> <u>The full stack trace of the root cause is
available in the Apache Tomcat/5.5.15 logs.</u></p><HR size="1"
noshade="noshade"><h3>Apache Tomcat/5.5.15</h3></body></html>



Michele

Davanum Srinivas wrote:
> What do you see on the wire? can u please try tcpmon or some other
> mechanism to look at the actual soap messages?
> 
> thanks.,
> dims
> 
> On 5/17/06, Michele Mazzucco <[EMAIL PROTECTED]> wrote:
>> Hi all,
>>
>> I noticed that the calls ServiceClient.addStringHeader() and
>> ServiceClient.addHeader() cause the message to be not received.
>>
>> Any idea?
>>
>> Michele
>>
> 
> 

Reply via email to