But in the log file i have this : 

...
2008-10-30 17:25:02 DEBUG HTTPSender - 
XML received:
2008-10-30 17:25:02 DEBUG HTTPSender -
-----------------------------------------------
2008-10-30 17:25:02 DEBUG SOAPPart - Enter: SOAPPart::getAsSOAPEnvelope()
2008-10-30 17:25:02 DEBUG ProjectResourceBundle -
org.apache.axis.i18n.resource::handleGetObject(currForm)
2008-10-30 17:25:02 DEBUG SOAPPart - current form is FORM_INPUTSTREAM
2008-10-30 17:25:02 DEBUG ProjectResourceBundle -
org.apache.axis.i18n.resource::handleGetObject(pushHandler00)
2008-10-30 17:25:02 DEBUG DeserializationContext - Pushing handler
[EMAIL PROTECTED]
2008-10-30 17:25:02 DEBUG DeserializationContext - Enter:
DeserializationContext::startPrefixMapping(soap,
http://schemas.xmlsoap.org/soap/envelope/)
2008-10-30 17:25:02 DEBUG NSStack - NSPush (32)
2008-10-30 17:25:02 DEBUG NSStack - NSPush (32)
2008-10-30 17:25:02 DEBUG DeserializationContext - Exit:
DeserializationContext::startPrefixMapping()
2008-10-30 17:25:02 DEBUG DeserializationContext - Enter:
DeserializationContext::startPrefixMapping(xsi,
http://www.w3.org/2001/XMLSchema-instance)
2008-10-30 17:25:02 DEBUG NSStack - NSPush (32)
2008-10-30 17:25:02 DEBUG DeserializationContext - Exit:
DeserializationContext::startPrefixMapping()
2008-10-30 17:25:02 DEBUG DeserializationContext - Enter:
DeserializationContext::startPrefixMapping(xsd,
http://www.w3.org/2001/XMLSchema)
2008-10-30 17:25:02 DEBUG NSStack - NSPush (32)
2008-10-30 17:25:02 DEBUG DeserializationContext - Exit:
DeserializationContext::startPrefixMapping()
2008-10-30 17:25:02 DEBUG DeserializationContext - Enter:
DeserializationContext::startElement(http://schemas.xmlsoap.org/soap/envelope/,
Envelope)
2008-10-30 17:25:02 DEBUG ProjectResourceBundle -
org.apache.axis.i18n.resource::handleGetObject(pushHandler00)
2008-10-30 17:25:02 DEBUG DeserializationContext - Pushing handler
[EMAIL PROTECTED]
2008-10-30 17:25:02 DEBUG DeserializationContext - Pushing element Envelope
2008-10-30 17:25:02 DEBUG DeserializationContext - Exit:
DeserializationContext::startElement()
2008-10-30 17:25:02 DEBUG DeserializationContext - Enter:
DeserializationContext::startElement(http://schemas.xmlsoap.org/soap/envelope/,
Body)
2008-10-30 17:25:02 DEBUG ProjectResourceBundle -
org.apache.axis.i18n.resource::handleGetObject(pushHandler00)
2008-10-30 17:25:02 DEBUG DeserializationContext - Pushing handler
[EMAIL PROTECTED]
2008-10-30 17:25:02 DEBUG ProjectResourceBundle -
org.apache.axis.i18n.resource::handleGetObject(newElem00)
2008-10-30 17:25:02 DEBUG MessageElement - New MessageElement
([EMAIL PROTECTED]) named {soap}Body
...

so i understand that i'm recieving a xml file, and it's while parsing it
when i have the exception.
So i'd like to be able to have a look to this file.





Taariq Levack wrote:
> 
> Do you need it for testing or debugging?
> You can use something like tcpmon for that.
> 
> BTW if you caught the exception there is no response message, everything
> is in the fault you caught.
> If your call was successful only then do you have a response object.
> 
> 
> -----Original Message-----
> From: piltrafeta [mailto:[EMAIL PROTECTED] 
> Sent: 30 October 2008 22:12
> To: [email protected]
> Subject: Re: how to get the xml recieved in call.invoke
> 
> 
> I'm sorry but i don't knows exactly what to do with this...
> 
> my application is the client, so what i'm doing in my code is:
> 
>    org.apache.axis.client.Call _call = createCall();
>    ....
>    setRequestHeaders(_call);
>    setAttachments(_call);
>    try {        
>        java.lang.Object _resp = _call.invoke(new java.lang.Object[]
> {autentica, idSumaria});
>        ....
>    } catch (org.apache.axis.AxisFault axisFaultException) {
>        throw axisFaultException;
>    }
> 
> So when i execute the invoke the exception is catched and i'd like to
> view
> the response soap message.
> How i have to integrate your code in mine??
> 
> Thanks!
> 
> 
> Aravind.Yarram wrote:
>> 
>> 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);         }     } piltrafeta
>> <[EMAIL PROTECTED]> 
>> piltrafeta <[EMAIL PROTECTED]> 10/30/2008 03:44 PM Please
> respond
>> to [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 "&#x10" is an invalid XML
> character. 
>> faultActor:  faultNode:  faultDetail:                  {
>> http://xml.apache.org/axis/ }stackTrace:org.xml.sax.SAXParseException:
>> Character reference "&#x10" is an invalid
> XML
>> character.                  at
>>
> org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unkno
> wn
>> 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$FragmentContentDis
> patcher.dispatch(Unknown
>> Source)                  at
>>
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkno
> wn
>> 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(DeserializationCon
> text.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.j
> ava: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-tp20254
> 035p20254035.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] 
>> 
>> 
>> 
>>  
>>  
>>  
>>  
>> 
> 
> -- 
> View this message in context:
> http://www.nabble.com/how-to-get-the-xml-recieved-in-call.invoke-tp20254
> 035p20254530.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]
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/how-to-get-the-xml-recieved-in-call.invoke-tp20254035p20264025.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]

Reply via email to