Автор оригинала: Ярослав
вот дамп запроса:
дамп то выложил некоректный

вот правильный дамп:
Запрос:
Код:
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns4="http://www.jaspersoft.com/client"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body>
<ns4:runReport>
<request xsi:type="xsd:string"><request operationName="runReport"><argument name="RUN_OUTPUT_FORMAT">PDF</argument>
<argument name="USE_DIME_ATTACHMENTS"><![CDATA[1]]></argument><resourceDescriptor name="" wsType="reportUnit" uriString="/reports/samples/studentcourse" isNew="false"><label></label><parameter name="module"><![CDATA[report]]></parameter><parameter name="controller"><![CDATA[index]]></parameter><parameter name="action"><![CDATA[get-rep]]></parameter><parameter name="rep"><![CDATA[studentcourse]]></parameter></resourceDescriptor></request></request></ns4:runReport>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
ответ 1: (USE_DIME_ATTACHMENTS отключен)
Код:
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Type: multipart/related; type="text/xml"; start="<4B4EDF24923CF74098D6DE4550EDBDEB>"; boundary="----=_Part_23_3418658.1223966898302"
Transfer-Encoding: chunked
Date: Tue, 14 Oct 2008 06:48:17 GMT
------=_Part_23_3418658.1223966898302
Content-Type: text/xml; charset=UTF-8
Content-Transfer-Encoding: binary
Content-Id: <4B4EDF24923CF74098D6DE4550EDBDEB>
<?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"><soapenv:Body><ns1:runReportResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://www.jaspersoft.com/client"><runReportReturn xsi:type="xsd:string"><?xml version="1.0" encoding="UTF-8"?>
<operationResult version="2.0.1">
<returnCode><![CDATA[0]]></returnCode>
</operationResult>
</runReportReturn></ns1:runReportResponse></soapenv:Body></soapenv:Envelope>
------=_Part_23_3418658.1223966898302
Content-Type: application/pdf
Content-Transfer-Encoding: binary
Content-Id: <report>
%PDF-1.4
%вгПУ
... pdf content...
Когда смотрю в soapUI 2.5 то есть атачмент и я его могу скачать
Но это при условии что USE_DIME_ATTACHMENTS отключен
А когда с флагом USE_DIME_ATTACHMENTS то вот ответ
ответ 2: (USE_DIME_ATTACHMENTS включен)
Код:
" ���)�)���uuid:714C6C40-4531-442E-A498-3AC614200295���[url]http://schemas.xmlsoap.org/soap/envelope/���[/url]<?xml version="1.0" encoding="utf-8"?><soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><ns1:runReportResponse soapenv:encodingStyle="http://www.w3.org/2003/05/soap-encoding" xmlns:ns1="http://axis2.ws.jasperserver.jaspersoft.com"><ns2:result xmlns:ns2="http://www.w3.org/2003/05/soap-rpc">runReportReturn</ns2:result><runReportReturn xsi:type="xsd:string"><?xml version="1.0" encoding="UTF-8"?>
<operationResult version="2.0.1">
<returnCode><![CDATA[0]]></returnCode>
</operationResult>
</runReportReturn></ns1:runReportResponse></soapenv:Body></soapenv:Envelope>
������аreport��application/pdf�%PDF-1.4
%туЯг
3 0 obj <</Filter/FlateDecode/Length 395>>stream
x�е�OO�0Ця§яqdmщ?МЙejLL]<h<рЦ&fРТ�Цoo[dnШЊ\��M�їэѓыл�RИF� "�ѕmо�Q�$Ј�A�шжѕN&ЏhdBожби�о^ЂЧ'§�!Њs�яqH�ќЋНDw[]ч8rЅФлмВ§#ЗBУ0Mva)�P ѓЈ_ASa KЃ|�zwХfЅГMО�ЬX0,Ъёьѕ{и{ЊGїHЈЖ�SЂ �а|ЪЪ�ъиН*#Y в0щ��CАlЄ1ВІЊNg4ит|�Лqте4�uB"K~�DўB2���0|ZbЈцщБВc��ёВІз�хP�Vvq�ѓј-,"XНdiгУnyds]ЌьтYgг8\І�фљ(�њ~ѕYнъћ2ИПjia6ЁЫ�иы�џX�XW-%ДeЙЙ/Р7Ie�k-ћg*№HрД��HGfѓі+Ч9м'Ќ�g<�ѓ�?Й}ц}�Ц
endstream
endobj
1 0 obj<</Type/Page/Contents 3 0 R/Parent 4 0 R/Resources<</ProcSet [/PDF /Text /ImageB /ImageC /ImageI]/Font<</F1 2 0 R>>>>/MediaBox[0 0 595 842]>>
endobj
5 0 obj[1 0 R/XYZ 0 854 0]
endobj
2 0 obj<</Type/Font/BaseFont/Helvetica/Subtype/Type1/Encoding/WinAnsiEncoding>>
endobj
4 0 obj<</Count 1/Type/Pages/Kids[1 0 R]>>
endobj
6 0 obj<</Names[(JR_PAGE_ANCHOR_0_1) 5 0 R]>>
endobj
7 0 obj<</Dests 6 0 R>>
endobj
8 0 obj<</Type/Catalog/Pages 4 0 R/Names 7 0 R>>
endobj
9 0 obj<</CreationDate(D:20081014095944+02'00')/Producer(iText1.3.1 by lowagie.com \(based on itext-paulo-154\))/Creator(JasperReports \(studentcourse\))/ModDate(D:20081014095944+02'00')>>
endobj
xref
0 10
0000000000 65535 f
0000000477 00000 n
0000000667 00000 n
0000000015 00000 n
0000000754 00000 n
0000000633 00000 n
0000000804 00000 n
0000000857 00000 n
0000000888 00000 n
0000000944 00000 n
trailer
<</ID [<057f5ea9975837aac39ef8028d1f385e><057f5ea9975837aac39ef8028d1f385e>]/Root 8 0 R/Size 10/Info 9 0 R>>
startxref
1140
%%EOF
"
Причем я исполовал именно полследний вариант с флагом USE_DIME_ATTACHMENTS в pear и все работает
а soapui показывает ошибку именно в этом случае оО
line 1: Illegal XML character: 0xc
org.apache.xmlbeans.impl.piccolo.io.IllegalCharException: Illegal XML character: 0xc
at org.apache.xmlbeans.impl.piccolo.xml.XMLReaderReader.read(XMLReaderReader.java:169)
at org.apache.xmlbeans.impl.piccolo.xml.PiccoloLexer.yy_refill(PiccoloLexer.java:3474)
...
Возможно ли достать аттачменты из какого либо ответа?
P.S. Извините что розтянул форум
