migration apache cxf 2.2.9 2.4.6

Informations et questions sur Apache en général.

Modérateur : Modérateurs

mathieuJ
Nouveau membre
Messages : 1
Inscription : jeu. 31 mai 2012, 17:23

migration apache cxf 2.2.9 2.4.6

Messagepar mathieuJ » jeu. 31 mai 2012, 17:30

Bonjour,

je viens de migrer ma version de apache cxf.

je rencontre du coup un probleme lors de ma réception d'attachement.

au lieu d'obtenir 1 attachment, j'en obtiens 2, dont le bon a pour valeur nul.

réponse soap:

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<ns2:getEditionResponse xmlns:ns2="http://www.suravenir.fr/ws/edition">
<editionResp>
<pdf>
<xop:Include href="cid:ab01c3af-a181-4d81-b056-bca60d267064-32@cxf.apache.org" xmlns:xop="http://www.w3.org/2004/08/xop/include"/>
</pdf>
</editionResp>
</ns2:getEditionResponse>


attachement:

name content type size part type contentID

e51a406a-f949-41ac-8158-e8f1b910f57a-115@cxf.apache.org application/pdf 120861 e51a406a-f949-41ac-8158-e8f1b910f57a-115@cxf.apache.org MIME <e51a406a-f949-41ac-8158-e8f1b910f57a-115@cxf.apache.org>
ab01c3af-a181-4d81-b056-bca60d267064-32@cxf.apache.org application/pdf 0 ab01c3af-a181-4d81-b056-bca60d267064-32@cxf.apache.org MIME <ab01c3af-a181-4d81-b056-bca60d267064-32@cxf.apache.org>
</soap:Body>
</soap:Envelope>


si quelqu'un a une idée d'ou cela peut provenir.


Avant j'obtenais un seul pdf dont le nom était le même que celui dans la réponse et il est maintenant nul.

Cordialement

Jambou Mathieu


je vous transmet ici les 2 traces que j'obtiens avec mon ancienne version, qui fonctionne, et ma nouvelle qui ne fonctionne pas.

Ancienne version


ID: 8
Address: http://o000081173.saturne.platine.org:1 ... es/edition
Encoding: UTF-8
Content-Type: text/xml
Headers: {SOAPAction=[""], Connection=[Keep-Alive], Accept=[*/*]}
Payload: <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><ns2:getEdition xmlns:ns2="http://suravenir.fr/ws/odet/services/edition"><token>PFA-A001110000006125620120504092246</token></ns2:getEdition></soap:Body></soap:Envelope>
--------------------------------------
Response-Code: 200
Encoding: ISO-8859-1
Content-Type: multipart/related; type="application/xop+xml"; boundary="uuid:e5ab53cd-d7f2-438d-a8b3-e9799f00f15d"; start="<root.message@cxf.apache.org>"; start-info="text/xml"
Headers: {content-type=[multipart/related; type="application/xop+xml"; boundary="uuid:e5ab53cd-d7f2-438d-a8b3-e9799f00f15d"; start="<root.message@cxf.apache.org>"; start-info="text/xml"], Date=[Mon, 04 Jun 2012 07:33:44 GMT], Via=[1.0 10.154.30.104 (squid/3.0.STABLE20)], X-Cache-Lookup=[MISS from proxy-lb.gicm.net:3128], X-Cache=[MISS from proxy-lb.gicm.net], Server=[Apache-Coyote/1.1], Proxy-Connection=[close]}
Messages:
Message (saved to tmp file):
Filename: C:\Users\C4271\AppData\Local\Temp\cxf-tmp-696438\cos5726584995678754811tmp
(message truncated to 102400 bytes)

Payload:
--uuid:e5ab53cd-d7f2-438d-a8b3-e9799f00f15d
Content-Type: application/xop+xml; charset=UTF-8; type="text/xml";
Content-Transfer-Encoding: binary
Content-ID: <root.message@cxf.apache.org>

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><ns2:getEditionResponse xmlns:ns2="http://suravenir.fr/ws/odet/services/edition"><StatusPdfBean><pdf><xop:Include xmlns:xop="http://www.w3.org/2004/08/xop/include" href="cid:e51a406a-f949-41ac-8158-e8f1b910f57a-146@cxf.apache.org"/></pdf><status>true</status></StatusPdfBean></ns2:getEditionResponse></soap:Body></soap:Envelope>
--uuid:e5ab53cd-d7f2-438d-a8b3-e9799f00f15d
Content-Type: application/pdf
Content-Transfer-Encoding: binary
Content-ID: <e51a406a-f949-41ac-8158-e8f1b910f57a-146@cxf.apache.org>

%PDF-1.4
%????
1 0 obj
<</Parent 3 0 R/Contents 4 0 R/Type/Page/Resources 5 0 R/MediaBox[0 0 595 842]>>
endobj
4 0 obj
<</Length 15968/Filter[/ASCII85Decode/FlateDecode]>>stream
GauHq=a-ApP3"cT7D@GtNg7Vue=0X-X451$]-UJO/=m*8U@%=+U*<&#o'>Jq)u-iu.EQXA<`QUaK3/1?+Q>j5JGc=s-XV<CG<YBLme'@'NrPW?\D>IYIcp3- .... \*6n9Mf-gS/eJ\a6~>

endstream
endobj
5 0 obj
<</XObject<</Im1 6 0 R>>/ProcSet[/PDF/ImageC/Text]/Font<</F1 7 0 R/F2 8 0 R/F3 9 0 R/F4 10 0 R/F5 11 0 R/F9 12 0 R/F7 13 0 R>>>>
endobj
6 0 obj
<</Type/XObject/ColorSpace/DeviceRGB/Subtype/Image/Name/Im1/BitsPerComponent 8/Width 381/Length 42781/Height 107/Filter[/ASCII85Decode/FlateDecode]>>stream
Gb"-6rR5%PRHONE4MOSidSJClc4%uCe^K'&'G2?.9dN3U,XB4N9JIchF\n`(0W8[e(aP(dC.C!D@hbW9FG&DX,"c?B*>5+i%E+US",5)gTS%<9H]NqLcC+-)T=)E1gA@C%5QpuKY-(rNC>\ ..... G5!p/[GM.7uMALm0'=nI4=*D7I~>
endstream
endobj
7 0 obj
<</BaseFont/Helvetica/Type/Font/Encoding/WinAnsiEncoding/Subtype/Type1/Name/F1>>
endobj
8 0 obj
<</BaseFont/Helvetica-Oblique/Type/Font/Encoding/WinAnsiEncoding/Subtype/Type1/Name/F2>>
endobj
9 0 obj
<</BaseFont/Helvetica-Bold/Type/Font/Encoding/WinAnsiEncoding/Subtype/Type1/Name/F3>>
endobj
10 0 obj
<</BaseFont/Helvetica-BoldOblique/Type/Font/Encoding/WinAnsiEncoding/Subtype/Type1/Name/F4>>
endobj
11 0 obj
<</BaseFont/Times-Roman/Type/Font/Encoding/WinAnsiEncoding/Subtype/Type1/Name/F5>>
endobj
12 0 obj
<</BaseFont/Courier/Type/Font/Encoding/WinAnsiEncoding/Subtype/Type1/Name/F9>>
endobj
13 0 obj
<</BaseFont/Times-Bold/Type/Font/Encoding/WinAnsiEncoding/Subtype/Type1/Name/F7>>
endobj
2 0 obj
<</Parent 3 0 R/Contents 14 0 R/Type/Page/Resources 15 0 R/MediaBox[0 0 595 842]>>
endobj
14 0 obj
<</Length 15968/Filter[/ASCII85Decode/FlateDecode]>>stream
GauHq=a-ApP3"cT7D@GtNg7Vue=0X-X451$]-UJO/=m*8U@%=+U*<&#o'>Jq)u-iu.EQXA<`QUaK3/1?+Q>j5JGc=s-XV<CG<YBLme'@'NrPW?\D>IYIcp3- .... \*6n9Mf-gS/eJ\a6~>

endstream
endobj
15 0 obj
<</XObject<</Im1 16 0 R>>/ProcSet[/PDF/ImageC/Text]/Font<</F1 17 0 R/F2 18 0 R/F3 19 0 R/F4 20 0 R/F5 21 0 R/F9 22 0 R/F7 23 0 R>>>>
endobj
16 0 obj
<</Type/XObject/ColorSpace/DeviceRGB/Subtype/Image/Name/Im1/BitsPerComponent 8/Width 381/Length 42781/Height 107/Filter[/ASCII85Decode/FlateDecode]>>stream
Gb"-6rR5%PRHONE4MOSidSJClc4%uCe^K'&'G2?.9dN3U,XB4N9JIchF\n`(0W8[e(aP(dC.C!D@hbW9FG&DX,"c?B*>5+i%E+US",5)gTS%<9H]NqLcC+-)T=)E1gA@C%5QpuKY-(rNC>\ ..... /<s73'@r2WG%?M!7%9&b?nMQV5E]#8>hoVY@NRGP]+:!;@A(\aL#ng$qM+8mSeNU;Sqq\*ssikKl]c#[=/4m]it`o2e"j%<SVoYYQEY5u<aj"/,]VVd8:M`6&IoDZrd9])9+A,P?1lSs=l@W-YRJ
--------------------------------------
2012-06-04 09:33:45,074 | INFO | 59@qtp-6194433-0 | Tracer | rg.apache.camel.processor.Logger 88 | 0f2725bf-8caf-44a3-94fc-035ba017fc2b >>> (direct:getEditionRoute) http://o000081173.saturne.platine.org:1 ... es/edition --> ref:getEditionTransformerBean method: editionOut <<< Pattern:InOut, Headers:{operationName=getEdition, Server=Apache-Coyote/1.1, content-type=multipart/related; type="application/xop+xml"; boundary="uuid:e5ab53cd-d7f2-438d-a8b3-e9799f00f15d"; start="<root.message@cxf.apache.org>"; start-info="text/xml", X-Cache=MISS from proxy-lb.gicm.net, Proxy-Connection=close, Date=Mon, 04 Jun 2012 07:33:44 GMT, org.apache.cxf.headers.Header.list=[], ResponseContext={javax.xml.ws.wsdl.port={http://suravenir.fr/ws/odet/services/edition}ImpressionImplPort, org.apache.cxf.service.model.MessageInfo=[MessageInfo OUTPUT: {http://suravenir.fr/ws/odet/services/edition}getEditionResponse], org.apache.cxf.client=true, org.apache.cxf.message.inbound=true, org.apache.cxf.message.Message.PROTOCOL_HEADERS={content-type=[multipart/related; type="application/xop+xml"; boundary="uuid:e5ab53cd-d7f2-438d-a8b3-e9799f00f15d"; start="<root.message@cxf.apache.org>"; start-info="text/xml"], Date=[Mon, 04 Jun 2012 07:33:44 GMT], Via=[1.0 10.154.30.104 (squid/3.0.STABLE20)], X-Cache-Lookup=[MISS from proxy-lb.gicm.net:3128], X-Cache=[MISS from proxy-lb.gicm.net], Server=[Apache-Coyote/1.1], Proxy-Connection=[close]}, javax.xml.ws.wsdl.service={http://suravenir.fr/ws/odet/services/edition}ImpressionImplService, org.apache.cxf.interceptor.LoggingMessage.ID=8, org.apache.cxf.message.Message.ENCODING=UTF-8, org.apache.cxf.message.Message.ATTACHMENTS=org.apache.cxf.attachment.LazyAttachmentCollection@bd8d79, javax.mail.internet.InternetHeaders=javax.mail.internet.InternetHeaders@93055d, javax.xml.ws.wsdl.interface={http://suravenir.fr/ws/odet/services/edition}Impression, javax.xml.ws.wsdl.operation={http://suravenir.fr/ws/odet/services/edition}getEdition, javax.xml.ws.wsdl.description=http://o000081173.saturne.platine.org:10080/wsodet/services/edition?wsdl, org.apache.cxf.service.model.BindingMessageInfo=org.apache.cxf.service.model.BindingMessageInfo@ec607c, Content-Type=multipart/related; type="application/xop+xml"; boundary="uuid:e5ab53cd-d7f2-438d-a8b3-e9799f00f15d"; start="<root.message@cxf.apache.org>"; start-info="text/xml", org.apache.cxf.headers.Header.list=[], org.apache.cxf.message.Message.RESPONSE_CODE=200}, CamelBeanMethodName=null, X-Cache-Lookup=MISS from proxy-lb.gicm.net:3128, Via=1.0 10.154.30.104 (squid/3.0.STABLE20)}, BodyType:org.apache.cxf.message.MessageContentsList, Body:[fr.suravenir.ws.odet.model.StatusPdfBean@4539af]
2012-06-04 09:33:45,136 | INFO | 59@qtp-6194433-0 | LoggingOutInterceptor | ngOutInterceptor$LoggingCallback 170 | Outbound Message
---------------------------
ID: 7
Encoding: UTF-8
Content-Type: multipart/related; type="application/xop+xml"; boundary="uuid:3a3f8abc-f7ab-4760-986a-82fd3eec84a1"; start="<root.message@cxf.apache.org>"; start-info="text/xml"
Headers: {}
Messages: Outbound Message (saved to tmp file):
Filename: C:\Users\C4271\AppData\Local\Temp\cxf-tmp-696438\cos7406621442984820234tmp
(message truncated to 102400 bytes)

Payload:
--uuid:3a3f8abc-f7ab-4760-986a-82fd3eec84a1
Content-Type: application/xop+xml; charset=UTF-8; type="text/xml";
Content-Transfer-Encoding: binary
Content-ID: <root.message@cxf.apache.org>

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><ns2:getEditionResponse xmlns:ns2="http://www.suravenir.fr/ws/edition"><editionResp><pdf><xop:Include xmlns:xop="http://www.w3.org/2004/08/xop/include" href="cid:fbf61655-921e-462e-9a07-4c722111bc46-2@cxf.apache.org"/></pdf></editionResp></ns2:getEditionResponse></soap:Body></soap:Envelope>
--uuid:3a3f8abc-f7ab-4760-986a-82fd3eec84a1
Content-Type: application/pdf
Content-Transfer-Encoding: binary
Content-ID: <fbf61655-921e-462e-9a07-4c722111bc46-2@cxf.apache.org>

%PDF-1.4
%????
1 0 obj
<</Parent 3 0 R/Contents 4 0 R/Type/Page/Resources 5 0 R/MediaBox[0 0 595 842]>>
endobj
4 0 obj
<</Length 15968/Filter[/ASCII85Decode/FlateDecode]>>stream
GauHq=a-ApP3"cT7D@GtNg7Vue=0X-X451$]-UJO/=m*8U@%=+U*<&#o'>Jq)u-iu.EQXA<`QUaK3/1?+Q>j5JGc=s-XV<CG<YBLme'@'NrPW?\D>IYIcp3- ..... \*6n9Mf-gS/eJ\a6~>

endstream
endobj
5 0 obj
<</XObject<</Im1 6 0 R>>/ProcSet[/PDF/ImageC/Text]/Font<</F1 7 0 R/F2 8 0 R/F3 9 0 R/F4 10 0 R/F5 11 0 R/F9 12 0 R/F7 13 0 R>>>>
endobj
6 0 obj
<</Type/XObject/ColorSpace/DeviceRGB/Subtype/Image/Name/Im1/BitsPerComponent 8/Width 381/Length 42781/Height 107/Filter[/ASCII85Decode/FlateDecode]>>stream
Gb"-6rR5%P .... )oP04%C;G5!p/[GM.7uMALm0'=nI4=*D7I~>
endstream
endobj
7 0 obj
<</BaseFont/Helvetica/Type/Font/Encoding/WinAnsiEncoding/Subtype/Type1/Name/F1>>
endobj
8 0 obj
<</BaseFont/Helvetica-Oblique/Type/Font/Encoding/WinAnsiEncoding/Subtype/Type1/Name/F2>>
endobj
9 0 obj
<</BaseFont/Helvetica-Bold/Type/Font/Encoding/WinAnsiEncoding/Subtype/Type1/Name/F3>>
endobj
10 0 obj
<</BaseFont/Helvetica-BoldOblique/Type/Font/Encoding/WinAnsiEncoding/Subtype/Type1/Name/F4>>
endobj
11 0 obj
<</BaseFont/Times-Roman/Type/Font/Encoding/WinAnsiEncoding/Subtype/Type1/Name/F5>>
endobj
12 0 obj
<</BaseFont/Courier/Type/Font/Encoding/WinAnsiEncoding/Subtype/Type1/Name/F9>>
endobj
13 0 obj
<</BaseFont/Times-Bold/Type/Font/Encoding/WinAnsiEncoding/Subtype/Type1/Name/F7>>
endobj
2 0 obj
<</Parent 3 0 R/Contents 14 0 R/Type/Page/Resources 15 0 R/MediaBox[0 0 595 842]>>
endobj
14 0 obj
<</Length 15968/Filter[/ASCII85Decode/FlateDecode]>>stream
GauHq=a-ApP3"cT7D@GtNg7Vue=0X-X451$]-UJO/=m*8U@%=+U*<&#o'>Jq)u-iu.EQXA<`QUaK3/1?+Q>j5JGc=s-XV<CG<YBLme'@'NrPW?\D>IYIcp3- ..... \*6n9Mf-gS/eJ\a6~>

endstream
endobj
15 0 obj
<</XObject<</Im1 16 0 R>>/ProcSet[/PDF/ImageC/Text]/Font<</F1 17 0 R/F2 18 0 R/F3 19 0 R/F4 20 0 R/F5 21 0 R/F9 22 0 R/F7 23 0 R>>>>
endobj
16 0 obj
<</Type/XObject/ColorSpace/DeviceRGB/Subtype/Image/Name/Im1/BitsPerComponent 8/Width 381/Length 42781/Height 107/Filter[/ASCII85Decode/FlateDecode]>>stream
... ZSEkD3.u^8@CS58mW9O,;CX)NKF!RmP
--------------------------------------

nouvelle version

ID: 33
Address: http://o000081173.saturne.platine.org:1 ... es/edition
Encoding: UTF-8
Content-Type: text/xml
Headers: {Accept=[*/*], Connection=[Keep-Alive], SOAPAction=[""]}
Payload: <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><ns2:getEdition xmlns:ns2="http://suravenir.fr/ws/odet/services/edition"><token>PFA-A001110000006125620120504092246</token></ns2:getEdition></soap:Body></soap:Envelope>
--------------------------------------
09:29:56,442 | INFO | ault-workqueue-2 | LoggingInInterceptor | - - | Inbound Message
----------------------------
ID: 33
Response-Code: 200
Encoding: ISO-8859-1
Content-Type: multipart/related; type="application/xop+xml"; boundary="uuid:8b543ee5-a1b5-42da-bdd7-4d8c81e4e317"; start="<root.message@cxf.apache.org>"; start-info="text/xml"
Headers: {content-type=[multipart/related; type="application/xop+xml"; boundary="uuid:8b543ee5-a1b5-42da-bdd7-4d8c81e4e317"; start="<root.message@cxf.apache.org>"; start-info="text/xml"], Date=[Mon, 04 Jun 2012 07:29:57 GMT], Proxy-Connection=[close], Server=[Apache-Coyote/1.1], Via=[1.0 10.154.30.104 (squid/3.0.STABLE20)], X-Cache=[MISS from proxy-lb.gicm.net], X-Cache-Lookup=[MISS from proxy-lb.gicm.net:3128]}
Messages:
Message (saved to tmp file):
Filename: C:\Users\C4271\AppData\Local\Temp\cxf-tmp-518276\cos4881209933353125569tmp
(message truncated to 102400 bytes)

Payload:
--uuid:8b543ee5-a1b5-42da-bdd7-4d8c81e4e317
Content-Type: application/xop+xml; charset=UTF-8; type="text/xml";
Content-Transfer-Encoding: binary
Content-ID: <root.message@cxf.apache.org>

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><ns2:getEditionResponse xmlns:ns2="http://suravenir.fr/ws/odet/services/edition"><StatusPdfBean><pdf><xop:Include xmlns:xop="http://www.w3.org/2004/08/xop/include" href="cid:e51a406a-f949-41ac-8158-e8f1b910f57a-144@cxf.apache.org"/></pdf><status>true</status></StatusPdfBean></ns2:getEditionResponse></soap:Body></soap:Envelope>
--uuid:8b543ee5-a1b5-42da-bdd7-4d8c81e4e317
Content-Type: application/pdf
Content-Transfer-Encoding: binary
Content-ID: <e51a406a-f949-41ac-8158-e8f1b910f57a-144@cxf.apache.org>

%PDF-1.4
%âãÏÓ
1 0 obj
<</Parent 3 0 R/Contents 4 0 R/Type/Page/Resources 5 0 R/MediaBox[0 0 595 842]>>
endobj
4 0 obj
<</Length 15968/Filter[/ASCII85Decode/FlateDecode]>>stream
GauHq=a-ApP3"cT7D@GtNg7Vue=0X-X451$]-UJO/=m*8U@%=+U*<&#o'>Jq)u-iu.EQXA<`QUaK3/1?+Q>j5JGc=s-XV<CG<YBLme'@'NrPW?\D>IYIcp3- .... \*6n9Mf-gS/eJ\a6~>

endstream
endobj
5 0 obj
<</XObject<</Im1 6 0 R>>/ProcSet[/PDF/ImageC/Text]/Font<</F1 7 0 R/F2 8 0 R/F3 9 0 R/F4 10 0 R/F5 11 0 R/F9 12 0 R/F7 13 0 R>>>>
endobj
6 0 obj
<</Type/XObject/ColorSpace/DeviceRGB/Subtype/Image/Name/Im1/BitsPerComponent 8/Width 381/Length 42781/Height 107/Filter[/ASCII85Decode/FlateDecode]>>stream
Gb"-6rR5%PRHONE4MOSidSJClc4%uCe^K'&'G2?.9dN3U,XB4N9JIchF\n`(0W8[e(aP(dC.C!D@hbW9FG&DX,"c?B*>5+i%E+US",5)gTS%<9H]NqLcC+-)T=)E1gA@C%5QpuKY-(rNC> .... G5!p/[GM.7uMALm0'=nI4=*D7I~>
endstream
endobj
7 0 obj
<</BaseFont/Helvetica/Type/Font/Encoding/WinAnsiEncoding/Subtype/Type1/Name/F1>>
endobj
8 0 obj
<</BaseFont/Helvetica-Oblique/Type/Font/Encoding/WinAnsiEncoding/Subtype/Type1/Name/F2>>
endobj
9 0 obj
<</BaseFont/Helvetica-Bold/Type/Font/Encoding/WinAnsiEncoding/Subtype/Type1/Name/F3>>
endobj
10 0 obj
<</BaseFont/Helvetica-BoldOblique/Type/Font/Encoding/WinAnsiEncoding/Subtype/Type1/Name/F4>>
endobj
11 0 obj
<</BaseFont/Times-Roman/Type/Font/Encoding/WinAnsiEncoding/Subtype/Type1/Name/F5>>
endobj
12 0 obj
<</BaseFont/Courier/Type/Font/Encoding/WinAnsiEncoding/Subtype/Type1/Name/F9>>
endobj
13 0 obj
<</BaseFont/Times-Bold/Type/Font/Encoding/WinAnsiEncoding/Subtype/Type1/Name/F7>>
endobj
2 0 obj
<</Parent 3 0 R/Contents 14 0 R/Type/Page/Resources 15 0 R/MediaBox[0 0 595 842]>>
endobj
14 0 obj
<</Length 15968/Filter[/ASCII85Decode/FlateDecode]>>stream
GauHq=a-ApP3"cT7D@GtNg7Vue=0X-X451$]-UJO/=m*8U@%=+U*<&#o'>Jq)u-iu.EQXA<`QUaK3/1?+Q>j5JGc=s-XV<CG<YBLme'@'NrPW?\D>IYIcp3- ... \*6n9Mf-gS/eJ\a6~>

endstream
endobj
15 0 obj
<</XObject<</Im1 16 0 R>>/ProcSet[/PDF/ImageC/Text]/Font<</F1 17 0 R/F2 18 0 R/F3 19 0 R/F4 20 0 R/F5 21 0 R/F9 22 0 R/F7 23 0 R>>>>
endobj
16 0 obj
<</Type/XObject/ColorSpace/DeviceRGB/Subtype/Image/Name/Im1/BitsPerComponent 8/Width 381/Length 42781/Height 107/Filter[/ASCII85Decode/FlateDecode]>>stream
.... /<s73'@r2WG%?M!7%9&b?nMQV5E]#8>hoVY@NRGP]+:!;@A(\aL#ng$qM+8mSeNU;Sqq\*ssikKl]c#[=/4m]it`o2e"j%<SVoYYQEY5u<aj"/,]VVd8:M`6&IoDZrd9])9+A,P?1lSs=l@W-YRJ
--------------------------------------
09:29:56,447 | INFO | ault-workqueue-2 | Tracer | 89 - org.apache.camel.camel-core - 2.8.0.fuse-03-06 | ID-O000088874-57531-1338793812043-14-27 >>> (direct:getEditionRoute) cxf://bean:editionEndpoint --> ref:getEditionTransformerBean method: editionOut <<< Pattern:InOut, Headers:{Date=Mon, 04 Jun 2012 07:29:57 GMT, Via=1.0 10.154.30.104 (squid/3.0.STABLE20), org.apache.cxf.headers.Header.list=[], Proxy-Connection=close, CamelCxfMessage={javax.xml.ws.wsdl.port={http://suravenir.fr/ws/odet/services/edition}ImpressionImplPort, org.apache.cxf.service.model.MessageInfo=[MessageInfo OUTPUT: {http://suravenir.fr/ws/odet/services/edition}getEditionResponse], org.apache.cxf.client=true, org.apache.cxf.message.Message.PROTOCOL_HEADERS={content-type=[multipart/related; type="application/xop+xml"; boundary="uuid:8b543ee5-a1b5-42da-bdd7-4d8c81e4e317"; start="<root.message@cxf.apache.org>"; start-info="text/xml"], Date=[Mon, 04 Jun 2012 07:29:57 GMT], Proxy-Connection=[close], Server=[Apache-Coyote/1.1], Via=[1.0 10.154.30.104 (squid/3.0.STABLE20)], X-Cache=[MISS from proxy-lb.gicm.net], X-Cache-Lookup=[MISS from proxy-lb.gicm.net:3128]}, org.apache.cxf.message.inbound=true, javax.xml.ws.wsdl.service={http://suravenir.fr/ws/odet/services/edition}ImpressionImplService, org.apache.cxf.interceptor.LoggingMessage.ID=33, org.apache.cxf.message.Message.ENCODING=UTF-8, org.apache.cxf.binding.soap.SoapVersion=org.apache.cxf.binding.soap.Soap11@91e661, org.apache.cxf.ws.policy.AssertionInfoMap={}, org.apache.cxf.message.Message.ATTACHMENTS=org.apache.cxf.attachment.LazyAttachmentCollection@1f91fcd, javax.mail.internet.InternetHeaders=javax.mail.internet.InternetHeaders@96ea7d, javax.xml.ws.wsdl.interface={http://suravenir.fr/ws/odet/services/edition}Impression, javax.xml.ws.wsdl.operation={http://suravenir.fr/ws/odet/services/edition}getEdition, javax.xml.ws.wsdl.description=http://o000081173.saturne.platine.org:10080/wsodet/services/edition?wsdl, org.apache.cxf.service.model.BindingMessageInfo=org.apache.cxf.service.model.BindingMessageInfo@1e1b0f4, Content-Type=multipart/related; type="application/xop+xml"; boundary="uuid:8b543ee5-a1b5-42da-bdd7-4d8c81e4e317"; start="<root.message@cxf.apache.org>"; start-info="text/xml", org.apache.cxf.message.Message.RESPONSE_CODE=200, org.apache.cxf.headers.Header.list=[]}, operationName=getEdition, X-Cache-Lookup=MISS from proxy-lb.gicm.net:3128, ResponseContext={javax.xml.ws.wsdl.port={http://suravenir.fr/ws/odet/services/edition}ImpressionImplPort, org.apache.cxf.service.model.MessageInfo=[MessageInfo OUTPUT: {http://suravenir.fr/ws/odet/services/edition}getEditionResponse], org.apache.cxf.client=true, org.apache.cxf.message.inbound=true, org.apache.cxf.message.Message.PROTOCOL_HEADERS={content-type=[multipart/related; type="application/xop+xml"; boundary="uuid:8b543ee5-a1b5-42da-bdd7-4d8c81e4e317"; start="<root.message@cxf.apache.org>"; start-info="text/xml"], Date=[Mon, 04 Jun 2012 07:29:57 GMT], Proxy-Connection=[close], Server=[Apache-Coyote/1.1], Via=[1.0 10.154.30.104 (squid/3.0.STABLE20)], X-Cache=[MISS from proxy-lb.gicm.net], X-Cache-Lookup=[MISS from proxy-lb.gicm.net:3128]}, org.apache.cxf.interceptor.LoggingMessage.ID=33, javax.xml.ws.wsdl.service={http://suravenir.fr/ws/odet/services/edition}ImpressionImplService, org.apache.cxf.ws.policy.AssertionInfoMap={}, org.apache.cxf.binding.soap.SoapVersion=org.apache.cxf.binding.soap.Soap11@91e661, org.apache.cxf.message.Message.ENCODING=UTF-8, org.apache.cxf.message.Message.ATTACHMENTS=org.apache.cxf.attachment.LazyAttachmentCollection@1f91fcd, javax.mail.internet.InternetHeaders=javax.mail.internet.InternetHeaders@96ea7d, javax.xml.ws.wsdl.interface={http://suravenir.fr/ws/odet/services/edition}Impression, javax.xml.ws.wsdl.operation={http://suravenir.fr/ws/odet/services/edition}getEdition, javax.xml.ws.wsdl.description=http://o000081173.saturne.platine.org:10080/wsodet/services/edition?wsdl, org.apache.cxf.service.model.BindingMessageInfo=org.apache.cxf.service.model.BindingMessageInfo@1e1b0f4, Content-Type=multipart/related; type="application/xop+xml"; boundary="uuid:8b543ee5-a1b5-42da-bdd7-4d8c81e4e317"; start="<root.message@cxf.apache.org>"; start-info="text/xml", org.apache.cxf.headers.Header.list=[], org.apache.cxf.message.Message.RESPONSE_CODE=200}, Server=Apache-Coyote/1.1, X-Cache=MISS from proxy-lb.gicm.net, content-type=application/xop+xml}, BodyType:org.apache.cxf.message.MessageContentsList, Body:[fr.suravenir.ws.odet.model.StatusPdfBean@1fce615]
09:29:56,508 | INFO | qtp2015338-225 | LoggingOutInterceptor | - - | Outbound Message
---------------------------
ID: 32
Response-Code: 200
Encoding: UTF-8
Content-Type: multipart/related; type="text/xml"; boundary="uuid:bed311dc-45c9-4e3e-af91-7591128cfd63"; start="<root.message@cxf.apache.org>"; start-info="text/xml"
Headers: {Proxy-Connection=[close], Server=[Apache-Coyote/1.1], X-Cache=[MISS from proxy-lb.gicm.net], X-Cache-Lookup=[MISS from proxy-lb.gicm.net:3128]}
Messages: Outbound Message (saved to tmp file):
Filename: C:\Users\C4271\AppData\Local\Temp\cxf-tmp-518276\cos2584137252584643741tmp
(message truncated to 102400 bytes)

Payload:
--uuid:bed311dc-45c9-4e3e-af91-7591128cfd63
Content-Type: text/xml; charset=UTF-8; type="text/xml";
Content-Transfer-Encoding: binary
Content-ID: <root.message@cxf.apache.org>

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><ns2:getEditionResponse xmlns:ns2="http://www.suravenir.fr/ws/edition"><editionResp><pdf><xop:Include xmlns:xop="http://www.w3.org/2004/08/xop/include" href="cid:66b0ea4d-ff08-411b-a523-7a77432a5892-2@cxf.apache.org"/></pdf></editionResp></ns2:getEditionResponse></soap:Body></soap:Envelope>
--uuid:bed311dc-45c9-4e3e-af91-7591128cfd63
Content-Type: application/pdf
Content-Transfer-Encoding: binary
Content-ID: <e51a406a-f949-41ac-8158-e8f1b910f57a-144@cxf.apache.org>

%PDF-1.4
%????
1 0 obj
<</Parent 3 0 R/Contents 4 0 R/Type/Page/Resources 5 0 R/MediaBox[0 0 595 842]>>
endobj
4 0 obj
<</Length 15968/Filter[/ASCII85Decode/FlateDecode]>>stream
GauHq=a-ApP3"cT7D@GtNg7Vue=0X-X451$]-UJO/=m*8U@%=+U*<&#o'>Jq)u-iu.EQXA<`QUaK3/1?+Q>j5JGc=s-XV<CG<YBLme'@'NrPW?\D>IYIcp3- .... \*6n9Mf-gS/eJ\a6~>

endstream
endobj
5 0 obj
<</XObject<</Im1 6 0 R>>/ProcSet[/PDF/ImageC/Text]/Font<</F1 7 0 R/F2 8 0 R/F3 9 0 R/F4 10 0 R/F5 11 0 R/F9 12 0 R/F7 13 0 R>>>>
endobj
6 0 obj
<</Type/XObject/ColorSpace/DeviceRGB/Subtype/Image/Name/Im1/BitsPerComponent 8/Width 381/Length 42781/Height 107/Filter[/ASCII85Decode/FlateDecode]>>stream
.... G5!p/[GM.7uMALm0'=nI4=*D7I~>
endstream
endobj
7 0 obj
<</BaseFont/Helvetica/Type/Font/Encoding/WinAnsiEncoding/Subtype/Type1/Name/F1>>
endobj
8 0 obj
<</BaseFont/Helvetica-Oblique/Type/Font/Encoding/WinAnsiEncoding/Subtype/Type1/Name/F2>>
endobj
9 0 obj
<</BaseFont/Helvetica-Bold/Type/Font/Encoding/WinAnsiEncoding/Subtype/Type1/Name/F3>>
endobj
10 0 obj
<</BaseFont/Helvetica-BoldOblique/Type/Font/Encoding/WinAnsiEncoding/Subtype/Type1/Name/F4>>
endobj
11 0 obj
<</BaseFont/Times-Roman/Type/Font/Encoding/WinAnsiEncoding/Subtype/Type1/Name/F5>>
endobj
12 0 obj
<</BaseFont/Courier/Type/Font/Encoding/WinAnsiEncoding/Subtype/Type1/Name/F9>>
endobj
13 0 obj
<</BaseFont/Times-Bold/Type/Font/Encoding/WinAnsiEncoding/Subtype/Type1/Name/F7>>
endobj
2 0 obj
<</Parent 3 0 R/Contents 14 0 R/Type/Page/Resources 15 0 R/MediaBox[0 0 595 842]>>
endobj
14 0 obj
<</Length 15968/Filter[/ASCII85Decode/FlateDecode]>>stream
GauHq=a-ApP3"cT7D@GtNg7Vue=0X-X451$]-UJO/=m*8U@%=+U*<&#o'>Jq)u-iu.EQXA<`QUaK3/1?+Q>j5JGc=s-XV<CG<YBLme'@'NrPW?\D>IYIcp3- .... \*6n9Mf-gS/eJ\a6~>

endstream
endobj
15 0 obj
<</XObject<</Im1 16 0 R>>/ProcSet[/PDF/ImageC/Text]/Font<</F1 17 0 R/F2 18 0 R/F3 19 0 R/F4 20 0 R/F5 21 0 R/F9 22 0 R/F7 23 0 R>>>>
endobj
16 0 obj
<</Type/XObject/ColorSpace/DeviceRGB/Subtype/Image/Name/Im1/BitsPerComponent 8/Width 381/Length 42781/Height 107/Filter[/ASCII85Decode/FlateDecode]>>stream
.... ZSEkD3.u^8@CS58mW9O,;CX)NKF!RmPlfhsqVt`b
--------------------------------------

et voici le code utilisé


private void directGetEditionRoute() {
from(SERVICE_ENDPOINT_GET_EDITION).routeId(SERVICE_ENDPOINT_GET_EDITION)

.process(new RequestProcessor())

// transform to internal format
.beanRef(GET_EDITION_TRANSFORMER, EDITION_IN)



.to("cxf:bean:editionEndpoint") //$NON-NLS-1$
// Transformation en format interne de sortie
.beanRef(GET_EDITION_TRANSFORMER, EDITION_OUT);
}

public List<String> editionIn(final Exchange inputData) throws OdeonFuseException {
GetEditionRequest req = (GetEditionRequest) inputData.getIn().getBody();
final List<String> response = new ArrayList<String>();

inputData.getOut().setHeader(CxfConstants.OPERATION_NAME, WsFunction.GET_EDITION);
response.add(req.getTokenEdition());

return response;
}

public Object editionOut(Exchange outputData) throws GetEditionFault {
final List<MessageApplication> messages = new ArrayList<MessageApplication>();
final MessageContentsList response = outputData.getIn().getBody(MessageContentsList.class);
final StatusPdfBean result = (StatusPdfBean) response.get(0);
final GetEditionResp resp = new GetEditionResp();

if (result.isStatus()) {
resp.setPdf(result.getPdf());
}
else {
if (StringUtils.isBlank(result.getErrorMessage())) {
final MessageApplication message = new MessageApplication();
message.setType(INFORMATION);
message.setCodeService(WSODET);
message.setLibelle(EDITION_NON_DISPO);
messages.add(message);
}
else {
final MessageApplication message = new MessageApplication();
message.setType(ERROR);
message.setCodeService(WSODET);
message.setLibelle(result.getErrorMessage());
messages.add(message);
}
}
resp.getLstMessages().addAll(messages);
outputData.getOut().setBody(resp);

return resp;
}

Revenir vers « Général »

Qui est en ligne ?

Utilisateurs parcourant ce forum : Aucun utilisateur inscrit et 4 invités