Hi,

I am trying to use Axis2 to upload and download files from a server
which uses the SOAP with Attachments protocol.  Uploading works fine.
The server thinks it is getting a SOAP message with an attachment
and it processes it correctly. (I have no idea how they implemented
the server and it is not something I can change.)

When downloading files, the incoming message runs into an exception
before I can get a handle to the attachment.  I have include debugging
output below.  It appears to me that the attachment has, for
some reason been sent to the XML parser.

Does anyone know how to convince the client not to send attachments
to the XML processor, but to put them directly to disk?

Thanks!

-- Greg


528 [Axis2 Task] DEBUG httpclient.wire.content  - << "[0xc]
[0x0][0x0][0x0])[0x0])[0x0][0x0][0x4][0x14]uuid:714C6C40-4531-442E-A498-3AC614200295[0x0][0x0][0x0]http://schemas.xmlsoap.org/soap/envelope/[0x0][0x0][0x0]<?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";
xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing";><soapenv:Header>
--- snip --- </soapenv:Header><soapenv:Body> --- snip ---
</soapenv:Body></soapenv:Envelope>[0x9][0x10][0x0][0x0][0x0]
[0x0][0x13][0x0][0x0][0x93][0x10]C26CBDFD1551CF6FF95E746D20CAF"
org.apache.axis2.AxisFault: com.ctc.wstx.exc.WstxUnexpectedCharException:
Illegal character ((CTRL-CHAR, code 12))
 at [row,col {unknown-source}]: [1,1]; nested exception is:
        org.apache.axiom.om.OMException:
com.ctc.wstx.exc.WstxUnexpectedCharException: Illegal character ((CTRL-CHAR,
code 12))
 at [row,col {unknown-source}]: [1,1]
        at
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:126)
        at
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:67)
        at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:349)
        at
org.apache.axis2.description.OutInAxisOperationClient.access$000(OutInAxisOperation.java:95)
        at
org.apache.axis2.description.OutInAxisOperationClient$NonBlockingInvocationWorker.run(OutInAxisOperation.java:412)
        at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
        at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
                                                              at
java.lang.Thread.run(Thread.java:595)                                Caused by:
org.apache.axiom.om.OMException:
com.ctc.wstx.exc.WstxUnexpectedCharException: Illegal character ((CTRL-CHAR,
code 12))
 at [row,col {unknown-source}]: [1,1]
        at
org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:206)
        at
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.getSOAPEnvelope(StAXSOAPModelBuilder.java:155)
                                                                 at

org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.identifySOAPVersion(StAXSOAPModelBuilder.java:131)
                                                             at

org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.<init>(StAXSOAPModelBuilder.java:106)
                                                                          at

org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:120)

   ... 7 more
Caused by: com.ctc.wstx.exc.WstxUnexpectedCharException: Illegal character
((CTRL-CHAR, code 12))
 at [row,col {unknown-source}]: [1,1]
        at
com.ctc.wstx.sr.StreamScanner.throwInvalidSpace(StreamScanner.java:621)
        at
com.ctc.wstx.sr.BasicStreamReader.readSpacePrimary(BasicStreamReader.java:4519)
        at
com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.java:1846)
        at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1026)
        at
org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:123)
        ... 11 more

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

Reply via email to