axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aravind.Yar...@equifax.com
Subject Re: how to get the xml recieved in call.invoke
Date Thu, 30 Oct 2008 19:48:22 GMT
<html><body><p><img src="cid:0__=0ABBFE61DFFF42E58f9e8a93df93@equifax.com"
width="163" height="49"><br><b><font color="#820040" face="Courier New">void</font></b><font
face="Courier New"> logRequest(MessageContext msgContext) </font><b><font
color="#820040" face="Courier New">throws</font></b><font face="Courier
New"> AxisFault</font><br><font face="Courier New">    {</font><br><font
face="Courier New">        </font><font color="#3F8080" face="Courier New">//This
step should not fail</font><br><font face="Courier New">        Message
reqMessage = msgContext.getRequestMessage();</font><br><font face="Courier
New">        </font><b><font color="#820040" face="Courier New">if</font></b><font
face="Courier New">(reqMessage==</font><b><font color="#820040" face="Courier
New">null</font></b><font face="Courier New">)</font><br><font
face="Courier New">        {</font><br><font face="Courier New">    
       </font><font color="#0021BF" face="Courier New">logger</font><font
face="Courier New">.error(</font><font color="#4200FF" face="Courier New">&quot;No
request Message available in the MessageContext&quot;</font><font face="Courier
New">);</font><br><font face="Courier New">            </font><b><font
color="#820040" face="Courier New">return</font></b><font face="Courier
New">;</font><br><font face="Courier New">        }</font><br><br><font
face="Courier New">        </font><b><font color="#820040" face="Courier
New">if</font></b><font face="Courier New">(</font><font color="#0021BF"
face="Courier New">logger</font><font face="Courier New">.isDebugEnabled())</font><br><font
face="Courier New">        {</font><br><font face="Courier New">    
       MimeHeaders mimeHeaders = reqMessage.getMimeHeaders();</font><br><font
face="Courier New">            </font><b><font color="#820040" face="Courier
New">if</font></b><font face="Courier New">(mimeHeaders!=</font><b><font
color="#820040" face="Courier New">null</font></b><font face="Courier New">)</font><br><font
face="Courier New">            {</font><br><font face="Courier New">
               Iterator headerIterator = mimeHeaders.getAllHeaders();</font><br><font
face="Courier New">                </font><b><font color="#820040" face="Courier
New">if</font></b><font face="Courier New">(headerIterator.hasNext())</font><br><font
face="Courier New">                {</font><br><font face="Courier New">
                   StringBuffer buffer = </font><b><font color="#820040" face="Courier
New">new</font></b><font face="Courier New"> StringBuffer();</font><br><font
face="Courier New">                    buffer.append(</font><font color="#4200FF"
face="Courier New">&quot;\r\n&quot;</font><font face="Courier New">).append(</font><font
color="#4200FF" face="Courier New">&quot;==== SOAP Request Header Start ====&quot;</font><font
face="Courier New">).append(</font><font color="#4200FF" face="Courier New">&quot;\r\n&quot;</font><font
face="Courier New">);</font><br><font face="Courier New">           
        </font><b><font color="#820040" face="Courier New">while</font></b><font
face="Courier New">(headerIterator.hasNext())</font><br><font face="Courier
New">                    {</font><br><font face="Courier New">      
                 MimeHeader header = (MimeHeader)headerIterator.next();</font><br><font
face="Courier New">                        buffer.append(header.getName()).append(</font><font
color="#4200FF" face="Courier New">&quot;: &quot;</font><font face="Courier
New">).append(header.getValue()).append(</font><font color="#4200FF" face="Courier
New">&quot;\r\n&quot;</font><font face="Courier New">);</font><br><font
face="Courier New">                    }</font><br><font face="Courier New">
                   buffer.append(</font><font color="#4200FF" face="Courier New">&quot;====
SOAP Request Header End ====&quot;</font><font face="Courier New">);</font><br><font
face="Courier New">                    </font><font color="#0021BF" face="Courier
New">logger</font><font face="Courier New">.debug(buffer);</font><br><font
face="Courier New">                }</font><br><br><font face="Courier
New">            }</font><br><font face="Courier New">        }</font><br><br><font
face="Courier New">        </font><b><font color="#820040" face="Courier
New">if</font></b><font face="Courier New">(</font><font color="#0021BF"
face="Courier New">logger</font><font face="Courier New">.isInfoEnabled())</font><br><font
face="Courier New">        {</font><br><font face="Courier New">    
       SOAPEnvelope env = reqMessage.getSOAPEnvelope();</font><br><font face="Courier
New">            String targetServiceName = msgContext.getTargetService();</font><br><font
face="Courier New">            String transportName     = msgContext.getTransportName();</font><br><font
face="Courier New">            StringBuffer buffer = </font><b><font color="#820040"
face="Courier New">new</font></b><font face="Courier New"> StringBuffer();</font><br><font
face="Courier New">            buffer.append(</font><font color="#4200FF" face="Courier
New">&quot;\r\n&quot;</font><font face="Courier New">).append(</font><font
color="#4200FF" face="Courier New">&quot;==== SOAP Request Detail Start ====&quot;</font><font
face="Courier New">).append(</font><font color="#4200FF" face="Courier New">&quot;\r\n&quot;</font><font
face="Courier New">)</font><br><font face="Courier New">            
     .append(</font><font color="#4200FF" face="Courier New">&quot;Target
Service Name: &quot;</font><font face="Courier New">+targetServiceName).append(</font><font
color="#4200FF" face="Courier New">&quot;\r\n&quot;</font><font face="Courier
New">)</font><br><font face="Courier New">                  .append(</font><font
color="#4200FF" face="Courier New">&quot;Transport Name: &quot;</font><font
face="Courier New">+transportName).append(</font><font color="#4200FF" face="Courier
New">&quot;\r\n&quot;</font><font face="Courier New">)</font><br><font
face="Courier New">                  .append(</font><font color="#4200FF" face="Courier
New">&quot;Soap Envelope: &quot;</font><font face="Courier New">).append(env).append(</font><font
color="#4200FF" face="Courier New">&quot;\r\n&quot;</font><font face="Courier
New">)</font><br><font face="Courier New">                  .append(</font><font
color="#4200FF" face="Courier New">&quot;==== SOAP Request Detail End ====&quot;</font><font
face="Courier New">);</font><br><font face="Courier New">           </font><font
color="#0021BF" face="Courier New">logger</font><font face="Courier New">.info(buffer);</font><br><font
face="Courier New">        }</font><br><br><br><font face="Courier
New">    }</font><br><img width="16" height="16" src="cid:1__=0ABBFE61DFFF42E58f9e8a93df93@equifax.com"
border="0" alt="Inactive hide details for piltrafeta &lt;piltrafeta@gmail.com&gt;">piltrafeta
&lt;piltrafeta@gmail.com&gt;<br><br><br><br><br>
<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr valign="top"><td
style="background-image:url(cid:2__=0ABBFE61DFFF42E58f9e8a93df93@equifax.com); background-repeat:
no-repeat; " width="40%"><ul><ul><ul><ul><b><font size="2">piltrafeta
&lt;piltrafeta@gmail.com&gt;</font></b><font size="2"> </font><p><font
size="2">10/30/2008 03:44 PM</font><table border="1"><tr valign="top"><td
width="168" bgcolor="#FFFFFF"><div align="center"><font size="2">Please respond
to<br>axis-user@ws.apache.org</font></div></td></tr></table></ul></ul></ul></ul></td><td
width="60%"><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr
valign="top"><td width="1%"><img width="58" height="1" src="cid:3__=0ABBFE61DFFF42E58f9e8a93df93@equifax.com"
border="0" alt=""><br><div align="right"><font size="2">To</font></div></td><td
width="100%"><img width="1" height="1" src="cid:3__=0ABBFE61DFFF42E58f9e8a93df93@equifax.com"
border="0" alt=""><br><font size="2">axis-user@ws.apache.org</font></td></tr>
<tr valign="top"><td width="1%"><img width="58" height="1" src="cid:3__=0ABBFE61DFFF42E58f9e8a93df93@equifax.com"
border="0" alt=""><br><div align="right"><font size="2">cc</font></div></td><td
width="100%"><img width="1" height="1" src="cid:3__=0ABBFE61DFFF42E58f9e8a93df93@equifax.com"
border="0" alt=""><br></td></tr>
<tr valign="top"><td width="1%"><img width="58" height="1" src="cid:3__=0ABBFE61DFFF42E58f9e8a93df93@equifax.com"
border="0" alt=""><br><div align="right"><font size="2">Subject</font></div></td><td
width="100%"><img width="1" height="1" src="cid:3__=0ABBFE61DFFF42E58f9e8a93df93@equifax.com"
border="0" alt=""><br><font size="2">how to get the xml recieved in call.invoke</font></td></tr></table>
<table border="0" cellspacing="0" cellpadding="0"><tr valign="top"><td width="58"><img
width="1" height="1" src="cid:3__=0ABBFE61DFFF42E58f9e8a93df93@equifax.com" border="0" alt=""></td><td
width="336"><img width="1" height="1" src="cid:3__=0ABBFE61DFFF42E58f9e8a93df93@equifax.com"
border="0" alt=""></td></tr></table></td></tr></table><br><tt><br>hello,<br>i'm
using Axis and i'm having an exception when i call the invoke method.<br><br>the
exception is :<br><br>AxisFault<br> faultCode: {<a href="http://schemas.xmlsoap.org/soap/envelope/">http://schemas.xmlsoap.org/soap/envelope/</a>}Server.userException<br>
faultSubcode: <br> faultString: org.xml.sax.SAXParseException: Character reference<br>&amp;quot;&amp;amp;#x10&amp;quot;
is an invalid XML character.<br> faultActor: <br> faultNode: <br> faultDetail:
<br>                 {<a href="http://xml.apache.org/axis/">http://xml.apache.org/axis/</a>}stackTrace:org.xml.sax.SAXParseException:<br>Character
reference &amp;quot;&amp;amp;#x10&amp;quot; is an invalid XML character.<br>
                at<br>org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown<br>Source)<br>
                at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)<br>
                at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)<br>
                at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)<br>
                at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source)<br>
                at org.apache.xerces.impl.XMLScanner.scanCharReferenceValue(Unknown Source)<br>
                at<br>org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanCharReference(Unknown<br>Source)<br>
                at<br>org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown<br>Source)<br>
                at<br>org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown<br>Source)<br>
                at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)<br>
                at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)<br>
                at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)<br>   
             at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)<br>
                at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)<br>       
         at<br>org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)<br>
                at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)<br>
                at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)<br>   
             at<br>org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:796)<br>
                at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:144)<br>
                at<br>org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)<br>
                at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)<br>
                at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)<br>     
           at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)<br>    
            at org.apache.axis.client.Call.invokeEngine(Call.java:2784)<br>        
        at org.apache.axis.client.Call.invoke(Call.java:2767)<br>                 at
org.apache.axis.client.Call.invoke(Call.java:2443)<br>                 at org.apache.axis.client.Call.invoke(Call.java:2366)<br>
                at org.apache.axis.client.Call.invoke(Call.java:1812)<br> &nbsp;
&nbsp; &nbsp; .....<br><br>So I think that the file i'm reciving from
the web service has a problem.<br>I'd like to get this file, does anybody knows how
i can get it?<br><br>thanks!<br>-- <br>View this message in context:
</tt><tt><a href="http://www.nabble.com/how-to-get-the-xml-recieved-in-call.invoke-tp20254035p20254035.html">http://www.nabble.com/how-to-get-the-xml-recieved-in-call.invoke-tp20254035p20254035.html</a></tt><tt><br>Sent
from the Axis - User mailing list archive at Nabble.com.<br><br><br>---------------------------------------------------------------------<br>To
unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org<br>For additional commands,
e-mail: axis-user-help@ws.apache.org<br><br></tt><br>This message
contains information from Equifax Inc. which may be confidential and privileged.  If you are
not an intended recipient, please refrain from any disclosure, copying, distribution or use
of this information and note that such actions are prohibited.  If you have received this
transmission in error, please notify by e-mail postmaster@equifax.com.<BR>
<BR>
</body></html>

Mime
View raw message