Re: There is a problem with the dataFormat MESSAGE and an XSLT transformation?
I would suggest you to remove the Soap Envelop from the XSLT. After doing that, a little more way to doing things clean would be to use messageFormat=PAYLOAD like camel:to uri=cxf:bean:ClubPremierEndpoint?dataFormat=MESSAGEamp;allowStreaming=true / It works flawless for me. -- View this message in context: http://camel.465427.n5.nabble.com/There-is-a-problem-with-the-dataFormat-MESSAGE-and-an-XSLT-transformation-tp5758477p5758629.html Sent from the Camel - Users mailing list archive at Nabble.com.
Re: There is a problem with the dataFormat MESSAGE and an XSLT transformation?
Hi, You cannot turn a MESSAGE data format message into a PAYLOAD as the first one is a stream which has the SOAP Envelop and last one doesn’t has any SOAP Envelop. Regards, -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (English) http://jnn.iteye.com (Chinese) Twitter: willemjiang Weibo: 姜宁willem On November 4, 2014 at 1:35:56 PM, aioria3077 (aioria3...@gmail.com) wrote: Good day to all I have the following request: xmlns:ws=http://ws.ampersand.mx; xmlns:mod=http://modelo.ampersand.mx; 6508 2014-09-01T00:00:00 1500 Id unico Grupo Posadas my camel route command to call the transformation: xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:ws=http://ws.ampersand.mx; xmlns:mod=http://modelo.ampersand.mx; xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; xmlns:mer=http://skywards.com/Mercator.CRIS.WS; false false false 0 false false true * select=ws:PointsExchangeFR2CPCion/ws:request/mod:amountKM/* false false true * select=ws:PointsExchangeFR2CPCion/ws:request/mod:activityDate/* false false false 0001-01-01T00:00:00 COMP false false false 0 * select=ws:PointsExchangeFR2CPCion/ws:request/mod:accountNumber/* false false false * select=ws:PointsExchangeFR2CPCion/ws:request/mod:externalAuthorizationCode/* false false false 0 ? camel route looks like this endpoint with dataFormat MESSAGE address=/PointsExchangeFR2CPService wsdlURL=wsdl/proxy.wsdl/ address=http://cr5w5cptest.clubpremier.com/Mercator.CRIS.WebService.TESTCRIS/MemberWebService.asmx; wsdlURL=wsdl/MemberWebService.wsdl bindingId=s:tns:MemberWebServiceSoap / class=net.sf.saxon.TransformerFactoryImpl / id=mx.ampersand.fiestarewardsservices.PointsExchangeFR2CP-Proxy xmlns=http://camel.apache.org/schema/spring; streamCache=true uri=cxf:bean:PointsExchangeFR2CPProxy?dataFormat=MESSAGEloggingFeatureEnabled=true / uri=xslt:xslt/ClubPremier/request.xslt?transformerFactory=#transformerFactoryImpl / uri=cxf:bean:ClubPremierEndpoint?dataFormat=MESSAGEallowStreaming=true / / type=org.apache.camel.component.cxf.CxfPayload/ these things I miss looking at different sites and does not make me request_proxy mapping to request_original, xslt will not use much and I feel that the problem is out there, I miss this kind of changes but when the services, I stuck with dataFormat PAYLOAD, this specific service I did not work with that format. -- View this message in context: http://camel.465427.n5.nabble.com/There-is-a-problem-with-the-dataFormat-MESSAGE-and-an-XSLT-transformation-tp5758477.html Sent from the Camel - Users mailing list archive at Nabble.com.
There is a problem with the dataFormat MESSAGE and an XSLT transformation?
Good day to all I have the following request: soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; xmlns:ws=http://ws.ampersand.mx; xmlns:mod=http://modelo.ampersand.mx; soapenv:Header/ soapenv:Body ws:PointsExchangeFR2CPCion ws:request mod:accountNumber6508/mod:accountNumber mod:activityDate2014-09-01T00:00:00/mod:activityDate mod:amountKM1500/mod:amountKM mod:externalAuthorizationCodeId unico Grupo Posadas/mod:externalAuthorizationCode /ws:request /ws:PointsExchangeFR2CPCion /soapenv:Body /soapenv:Envelope my camel route command to call the transformation: ?xml version=1.0 encoding=UTF-8? xsl:stylesheet version=2.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:ws=http://ws.ampersand.mx; xmlns:mod=http://modelo.ampersand.mx; xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; xsl:template match=/ soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; xmlns:mer=http://skywards.com/Mercator.CRIS.WS; soapenv:Body mer:CreateAccrualActivity mer:programmeMemberEntities mer:ProgrammeMemberActivity mer:PersonID mer:IsQueryfalse/mer:IsQuery mer:QueryString/mer:QueryString mer:ContainsQueryOperatorsfalse/mer:ContainsQueryOperators mer:HasValuefalse/mer:HasValue mer:Value0/mer:Value /mer:PersonID mer:NumberOfActivityUnits mer:IsQueryfalse/mer:IsQuery mer:QueryString/mer:QueryString mer:ContainsQueryOperatorsfalse/mer:ContainsQueryOperators mer:HasValuetrue/mer:HasValue *mer:Valuexsl:value-of select=ws:PointsExchangeFR2CPCion/ws:request/mod:amountKM//mer:Value* /mer:NumberOfActivityUnits mer:Bcp/mer:Bcp mer:PmaDate mer:IsQueryfalse/mer:IsQuery mer:QueryString/mer:QueryString mer:ContainsQueryOperatorsfalse/mer:ContainsQueryOperators mer:HasValuetrue/mer:HasValue *mer:Valuexsl:value-of select=ws:PointsExchangeFR2CPCion/ws:request/mod:activityDate//mer:Value* /mer:PmaDate mer:RedeemedStatus/mer:RedeemedStatus mer:FareBasis/mer:FareBasis mer:Inv_by_ptnr_date mer:IsQueryfalse/mer:IsQuery mer:QueryString/mer:QueryString mer:ContainsQueryOperatorsfalse/mer:ContainsQueryOperators mer:HasValuefalse/mer:HasValue mer:Value0001-01-01T00:00:00/mer:Value /mer:Inv_by_ptnr_date mer:RevCodeCOMP/mer:RevCode mer:PNRName/mer:PNRName mer:HuetCode/mer:HuetCode mer:RpsCode/mer:RpsCode mer:Rps_code_after_time_limit/mer:Rps_code_after_time_limit mer:BilledCancelledAct/mer:BilledCancelledAct mer:CouponNumber mer:IsQueryfalse/mer:IsQuery mer:QueryString/mer:QueryString mer:ContainsQueryOperatorsfalse/mer:ContainsQueryOperators mer:HasValuefalse/mer:HasValue mer:Value0/mer:Value /mer:CouponNumber mer:Diff/mer:Diff *mer:ActiveCardNoxsl:value-of select=ws:PointsExchangeFR2CPCion/ws:request/mod:accountNumber//mer:ActiveCardNo* mer:InsertRejectedActivitiesfalse/mer:InsertRejectedActivities mer:NewRowStatusfalse/mer:NewRowStatus mer:ForceUpdatefalse/mer:ForceUpdate mer:TerminalID/mer:TerminalID *mer:ExternalAuthorizationCodexsl:value-of select=ws:PointsExchangeFR2CPCion/ws:request/mod:externalAuthorizationCode//mer:ExternalAuthorizationCode* mer:NumberOfUnits mer:IsQueryfalse/mer:IsQuery mer:QueryString/mer:QueryString mer:ContainsQueryOperatorsfalse/mer:ContainsQueryOperators mer:HasValuefalse/mer:HasValue mer:Value0/mer:Value /mer:NumberOfUnits mer:IsCurrency/mer:IsCurrency mer:Source?/mer:Source /mer:ProgrammeMemberActivity /mer:programmeMemberEntities /mer:CreateAccrualActivity /soapenv:Body /soapenv:Envelope /xsl:template /xsl:stylesheet camel route looks like this endpoint with dataFormat MESSAGE cxf:cxfEndpoint id=PointsExchangeFR2CPProxy address=/PointsExchangeFR2CPService wsdlURL=wsdl/proxy.wsdl/ cxf:cxfEndpoint id=ClubPremierEndpoint address=http://cr5w5cptest.clubpremier.com/Mercator.CRIS.WebService.TESTCRIS/MemberWebService.asmx; wsdlURL=wsdl/MemberWebService.wsdl