void logRequest(MessageContext msgContext) throws AxisFault
{
//This step should not fail
Message reqMessage = msgContext.getRequestMessage();
if(reqMessage==null)
{
logger.error("No request Message available in the MessageContext");
return;
}

if(logger.isDebugEnabled())
{
MimeHeaders mimeHeaders = reqMessage.getMimeHeaders();
if(mimeHeaders!=null)
{
Iterator headerIterator = mimeHeaders.getAllHeaders();
if(headerIterator.hasNext())
{
StringBuffer buffer = new StringBuffer();
buffer.append("\r\n").append("==== SOAP Request Header Start ====").append("\r\n");
while(headerIterator.hasNext())
{
MimeHeader header = (MimeHeader)headerIterator.next();
buffer.append(header.getName()).append(": ").append(header.getValue()).append("\r\n");
}
buffer.append("==== SOAP Request Header End ====");
logger.debug(buffer);
}

}
}

if(logger.isInfoEnabled())
{
SOAPEnvelope env = reqMessage.getSOAPEnvelope();
String targetServiceName = msgContext.getTargetService();
String transportName = msgContext.getTransportName();
StringBuffer buffer = new StringBuffer();
buffer.append("\r\n").append("==== SOAP Request Detail Start ====").append("\r\n")
.append("Target Service Name: "+targetServiceName).append("\r\n")
.append("Transport Name: "+transportName).append("\r\n")
.append("Soap Envelope: ").append(env).append("\r\n")
.append("==== SOAP Request Detail End ====");
logger.info(buffer);
}


}
Inactive hide details for piltrafeta <[EMAIL PROTECTED]>piltrafeta <[EMAIL PROTECTED]>





To

[email protected]

cc


Subject

how to get the xml recieved in call.invoke


hello,
i'm using Axis and i'm having an exception when i call the invoke method.

the exception is :

AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: org.xml.sax.SAXParseException: Character reference
&quot;&amp;#x10&quot; is an invalid XML character.
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXParseException:
Character reference &quot;&amp;#x10&quot; is an invalid XML character.
at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
Source)
at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source)
at org.apache.xerces.impl.XMLScanner.scanCharReferenceValue(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanCharReference(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
at
org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
at
org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:796)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:144)
at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
      .....

So I think that the file i'm reciving from the web service has a problem.
I'd like to get this file, does anybody knows how i can get it?

thanks!
--
View this message in context:
http://www.nabble.com/how-to-get-the-xml-recieved-in-call.invoke-tp20254035p20254035.html
Sent from the Axis - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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 [EMAIL PROTECTED]

<<inline: pic18538.gif>>

Reply via email to