Hi, I have the following schema (for simplicity I used "any" to avoid any problems with schema validation). I am withdrawing by means of xsl transformation the <SwsHeader> element from <PassengerDetailsRQ> (SwsHeader is embedded in PassengerDetailsRQ). It looks like the xsl transformation returns correctlythe <SwsHeader> element, however, when assigning it to the variable $SwsHeaderRQ the SwsHeader is placed inside SwsHeader. Please see below, at the bottom of the mail there are more debug logs.
What am I doing wrong ? regards jan ... DEBUG - ASSIGN - ASSIGN Writing variable 'SwsHeaderRQ' value '<?xml version= "1.0" encoding="UTF-8"?> <SwsHeader xmlns="http://webservices.sabre.com/sabreXML/2003/07"><SwsHeader xmlns="http://webserv ices.sabre.com/sabreXML/2003/07"> ... schema ------ <?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns="http://webservices.sabre.com/sabreXML/2003/07" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://webservices.sabre.com/sabreXML/2003/07" elementFormDefault="unqualified"> <xs:element name="SwsHeader"> <xs:complexType> <xs:sequence> <xs:any namespace="##any" processContents="lax" maxOccurs="unbounded"/> </xs:sequence> </xs:complexType> </xs:element> </xs:schema> bpel snippet ------------ <bpel:import importType="http://www.w3.org/2001/XMLSchema" namespace="http://webservices.sabre.com/sabreXML/2003/07" location="SwsHeader.xsd"/> ... <bpel:variables> ... <bpel:variable name="SwsHeaderRQ" element="xsd1:SwsHeader"/> </bpel:variables> <!-- Withdrawing header from payload of the PassengerDetailsRQ --> <bpel:if> <bpel:condition>boolean($PassengerDetailsRequest.body/xsd1:SwsHeader)</b pel:condition> <bpel:sequence name="SwsHeader-Sequence"> <bpel:assign name="SwsHeader-Assign" validate="no"> <bpel:copy> <bpel:from>bpel:doXslTransform("PassengerDetailsRQ2SwsHeaderRQ.xsl", $PassengerDetailsRequest.body)</bpel:from> <bpel:to variable="SwsHeaderRQ"/> </bpel:copy> </bpel:assign> </bpel:sequence> </bpel:if> OUTPUT ------ DEBUG - ASSIGN - Evaluating FROM expression "{OXPath10Expression bpel:doXslT ransform("PassengerDetailsRQ2SwsHeaderRQ.xsl", $PassengerDetailsRequest.body)}". DEBUG - JaxpFunctionResolver - Resolving function {http://docs.oasis-open.org/wsbpel/2.0/p rocess/executable}doXslTransform DEBUG - JaxpVariableResolver - Resolving variable PassengerDetailsRequest.body DEBUG - JaxpFunctionResolver - call(context={ExprEvaluationContextImpl scopeInstance={Scop eFrame: o={OScope '__PROCESS_SCOPE:TravelItineraryCreateProcess' id=3}, id=0}, activeLinks=null} arg s=[PassengerDetailsRQ2SwsHeaderRQ.xsl, [[PassengerDetailsRQ: null]]]) DEBUG - JaxpFunctionResolver - Executing XSL sheet PassengerDetailsRQ2SwsHeaderRQ.xsl on e lement <?xml version="1.0" encoding="UTF-8"?> <PassengerDetailsRQ TimeStamp="2003-02-24T11:44:00" Version="OTA_2007A.TsabreXML1.0.1" xmlns="http:/ /webservices.sabre.com/sabreXML/2003/07"> <POS> <Source AgentSine="AWS" PseudoCityCode="IH9A"/> </POS> <HaltOnError Ind="true"/> <RedisplayReservation Ind="true"/> <TravelerInfo TransRefNumber="1"> <HaltOnError Ind="false"/> <PersonName TravelerRefNumber="1.1"> <GivenName>BRANDON</GivenName> <Surname>STEELE</Surname> </PersonName> <PersonName TravelerRefNumber="2.1"> <GivenName>SILVIA</GivenName> <Surname>REVELLO</Surname> </PersonName> <Telephone AreaCityCode="682" CountryAccessCode="011" PhoneNumber="6052187" PhoneUseType ="B" TravelerRefNumber="1.1"/> <Telephone AreaCityCode="817" CountryAccessCode="011" PhoneNumber="5551212" PhoneUseType ="H" TravelerRefNumber="1.1"/> <Telephone AreaCityCode="817" CountryAccessCode="011" PhoneNumber="5551212" PhoneUseType ="H" TravelerRefNumber="1.1"/> <Email EmailAddress="[EMAIL PROTECTED]" TravelerRefNumber="1.1"/> <Email EmailAddress="[EMAIL PROTECTED]" TravelerRefNumber="2.1"/> <Address> <TPA_Extensions> <AgencyName>ABC TRAVEL</AgencyName> </TPA_Extensions> <StreetNmbr>2147 RICHLAND</StreetNmbr> <CityName>GRAPEVINE</CityName> <PostalCode>76051</PostalCode> <StateCountyProv StateCode="TX"/> <CountryName Code="US"/> </Address> <CustomerIdentifier Identifier="1111111"/> <Ticketing TicketType="7T-"/> </TravelerInfo> <MiscSegmentSell TransRefNumber="2"> <HaltOnError Ind="false"/> <Segment Date="2007-11-22" NumberInParty="2" Type="OTH" Vendor="AA"> <MiscLocation CodeContext="IATA" LocationCode="DFW"/> <Text>TRAVELERS CHECKS</Text> </Segment> </MiscSegmentSell> <SpecialReqDetails> <SpecialServiceRequests TransRefNumber="3"> <SpecialServiceRequest SSRCode="OTHS" TravelerRefNumber="1.1"> <Airline Code="UA"/> <Text>TEST SSR</Text> </SpecialServiceRequest> </SpecialServiceRequests> <Remarks TransRefNumber="4"> <HaltOnError Ind="false"/> <Remark RemarkType="BasicRemark"> <Text>BRANDON REMARK</Text> </Remark> <Remark RemarkType="BasicRemark"> <Text>SILVIA REMARK</Text> </Remark> <PaymentDetails> <PaymentDetail Type="CK"/> </PaymentDetails> </Remarks> </SpecialReqDetails> <EndTransactionRQ TransRefNumber="5"> <HaltOnError Ind="false"/> <UpdatedBy> <TPA_Extensions> <Access> <AccessPerson> <GivenName>BRANDON</GivenName> </AccessPerson> </Access> </TPA_Extensions> </UpdatedBy> <EndTransaction Ind="false"/> </EndTransactionRQ> <Queue PseudoCityCode="7TZA" QueueNumber="499" SystemCode="11" TransRefNumber="6"> <HaltOnError Ind="false"/> </Queue> <SwsHeader> <eb:MessageHeader eb:version="1.0" soapenv:mustUnderstand="1" xmlns:eb="http://www.ebxml .org/namespaces/messageHeader" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd=" http://www.w3.org/2001/XMLSchema"> <eb:From> <eb:PartyId type="urn:x12.org:IO5:01">99999</eb:PartyId> </eb:From> <eb:To> <eb:PartyId type="urn:x12.org:IO5:01">123123</eb:PartyId> </eb:To> <eb:CPAId>7BMA</eb:CPAId> <eb:ConversationId>[EMAIL PROTECTED]</eb:ConversationId> <eb:Service eb:type="">Air</eb:Service> <eb:Action>PassengerDetailsRQ</eb:Action> <eb:MessageData> <eb:MessageId>mid:[EMAIL PROTECTED]</eb:MessageId> <eb:Timestamp>2001-02-15T11:15:12Z</eb:Timestamp> <eb:TimeToLive>2001-02-15T11:15:12Z</eb:TimeToLive> </eb:MessageData> </eb:MessageHeader> <wsse:Security xmlns:eb="http://www.ebxml.org/namespaces/messageHeader" xmlns:soapenv="h ttp://schemas.xmlsoap.org/soap/envelope/" xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/12/secext" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <SabreAth xmlns=""><?xml version="1.0" encoding="UTF-8"?> <ath createTime="-4510510353685382813" directoryID="0" sessionMgrContextName="Shared/IDL:IceSess\ /SessMgr:1\.0.IDL/Common/" sessionMgrDirectName="ICESMS\/STSA" sessionMgrLBName="ICESMSLB\/STS.LB" s essionRecordID="218152"><securityLevel appLevel="1" auditLevel="2" billingLevel="1" metricsLev el="1" securityLevel="1"/><version major="1" minor="0"/><securityContext><user aff iliationcode="1" branch="2902" domain="AA" group="7TZA" id="12345" station="925"/></securityCo ntext><sessionContext activeTimeout="0" createTime="1193412010" idleTimeout="900" lastModified Time="1193412010" sequenceNumber="0" transactionID="326520938"><sessionVersion major="1" minor ="0"/><tpfSession tpfClusterName="" tpfEnterprise="" tpfIsConfigOverridden="false" tpfIsIceCre ated="true" tpfLniata="1605096" tpfLockID="57558278" tpfPoolType="0" tpfProfileCity="" tpfProfileCod e="" tpfProfileKey="" tpfProfileName="" tpfProtocol=""/></sessionContext></ath></Sabr eAth> <wsse:BinarySecurityToken EncodingType="wsse:Base64Binary" valueType="String">Shared/ IDL:IceSess\/SessMgr:1\.0.IDL/Common/!ICESMS\/STSA!ICESMSLB\/STS.LB!-451 0510353685382813!218152!0</w sse:BinarySecurityToken> </wsse:Security> </SwsHeader> </PassengerDetailsRQ> DEBUG - JaxpFunctionResolver - Returned by XSL Sheet: <SwsHeader xmlns="http://webservices .sabre.com/sabreXML/2003/07"> <eb:MessageHeader xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:eb="http://www.ebxml.org/namespaces/messageHeader" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" eb:version="1.0" soapenv:mustUnderstand="1"> <eb:From> <eb:PartyId type="urn:x12.org:IO5:01">99999</eb:PartyId> </eb:From> <eb:To> <eb:PartyId type="urn:x12.org:IO5:01">123123</eb:PartyId> </eb:To> <eb:CPAId>7BMA</eb:CPAId> <eb:ConversationId>[EMAIL PROTECTED]</eb:ConversationId> <eb:Service eb:type="">Air</eb:Service> <eb:Action>PassengerDetailsRQ</eb:Action> <eb:MessageData> <eb:MessageId>mid:[EMAIL PROTECTED]</eb:MessageId> <eb:Timestamp>2001-02-15T11:15:12Z</eb:Timestamp> <eb:TimeToLive>2001-02-15T11:15:12Z</eb:TimeToLive> </eb:MessageData> </eb:MessageHeader> <wsse:Security xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:eb="http://www.ebxml.org/namespaces/messageHeader" xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/12/secext" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <SabreAth xmlns=""><?xml version="1.0" encoding="UTF-8"?> <ath createTime="-4510510353685382813" directoryID="0" sessionMgrContextName="Shared/IDL:IceSess\ /SessMgr:1\.0.IDL/Common/" sessionMgrDirectName="ICESMS\/STSA" sessionMgrLBName="ICESMSLB\/STS.LB" s essionRecordID="218152"><securityLevel appLevel="1" auditLevel="2" billingLevel="1" metricsLev el="1" securityLevel="1"/><version major="1" minor="0"/><securityContext><user aff iliationcode="1" branch="2902" domain="AA" group="7TZA" id="12345" station="925"/></securityCo ntext><sessionContext activeTimeout="0" createTime="1193412010" idleTimeout="900" lastModified Time="1193412010" sequenceNumber="0" transactionID="326520938"><sessionVersion major="1" minor ="0"/><tpfSession tpfClusterName="" tpfEnterprise="" tpfIsConfigOverridden="false" tpfIsIceCre ated="true" tpfLniata="1605096" tpfLockID="57558278" tpfPoolType="0" tpfProfileCity="" tpfProfileCod e="" tpfProfileKey="" tpfProfileName="" tpfProtocol=""/></sessionContext></ath></Sabr eAth> <wsse:BinarySecurityToken EncodingType="wsse:Base64Binary" valueType="String">Shared/ IDL:IceSess\/SessMgr:1\.0.IDL/Common/!ICESMS\/STSA!ICESMSLB\/STS.LB!-451 0510353685382813!218152!0</w sse:BinarySecurityToken> </wsse:Security> </SwsHeader> DEBUG - XPath20ExpressionRuntime - Expression {OXPath10Expression bpel:doXslTransform("Passeng erDetailsRQ2SwsHeaderRQ.xsl", $PassengerDetailsRequest.body)} generated result [<SwsHeader xmlns="ht tp://webservices.sabre.com/sabreXML/2003/07"> <eb:MessageHeader xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:eb="http://www.ebxml.org/namespaces/messageHeader" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" eb:version="1.0" soapenv:mustUnderstand="1"> <eb:From> <eb:PartyId type="urn:x12.org:IO5:01">99999</eb:PartyId> </eb:From> <eb:To> <eb:PartyId type="urn:x12.org:IO5:01">123123</eb:PartyId> </eb:To> <eb:CPAId>7BMA</eb:CPAId> <eb:ConversationId>[EMAIL PROTECTED]</eb:ConversationId> <eb:Service eb:type="">Air</eb:Service> <eb:Action>PassengerDetailsRQ</eb:Action> <eb:MessageData> <eb:MessageId>mid:[EMAIL PROTECTED]</eb:MessageId> <eb:Timestamp>2001-02-15T11:15:12Z</eb:Timestamp> <eb:TimeToLive>2001-02-15T11:15:12Z</eb:TimeToLive> </eb:MessageData> </eb:MessageHeader> <wsse:Security xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:eb="http://www.ebxml.org/namespaces/messageHeader" xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/12/secext" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <SabreAth xmlns=""><?xml version="1.0" encoding="UTF-8"?> <ath createTime="-4510510353685382813" directoryID="0" sessionMgrContextName="Shared/IDL:IceSess\ /SessMgr:1\.0.IDL/Common/" sessionMgrDirectName="ICESMS\/STSA" sessionMgrLBName="ICESMSLB\/STS.LB" s essionRecordID="218152"><securityLevel appLevel="1" auditLevel="2" billingLevel="1" metricsLev el="1" securityLevel="1"/><version major="1" minor="0"/><securityContext><user aff iliationcode="1" branch="2902" domain="AA" group="7TZA" id="12345" station="925"/></securityCo ntext><sessionContext activeTimeout="0" createTime="1193412010" idleTimeout="900" lastModified Time="1193412010" sequenceNumber="0" transactionID="326520938"><sessionVersion major="1" minor ="0"/><tpfSession tpfClusterName="" tpfEnterprise="" tpfIsConfigOverridden="false" tpfIsIceCre ated="true" tpfLniata="1605096" tpfLockID="57558278" tpfPoolType="0" tpfProfileCity="" tpfProfileCod e="" tpfProfileKey="" tpfProfileName="" tpfProtocol=""/></sessionContext></ath></Sabr eAth> <wsse:BinarySecurityToken EncodingType="wsse:Base64Binary" valueType="String">Shared/ IDL:IceSess\/SessMgr:1\.0.IDL/Common/!ICESMS\/STSA!ICESMSLB\/STS.LB!-451 0510353685382813!218152!0</w sse:BinarySecurityToken> </wsse:Security> </SwsHeader>] - type=java.util.ArrayList DEBUG - XPath20ExpressionRuntime - Returned list of size 1 DEBUG - ASSIGN - lvalue after eval [SwsHeader: null] DEBUG - ASSIGN - content <?xml version="1.0" encoding="UTF-8"?> <SwsHeader xmlns="http://webservices.sabre.com/sabreXML/2003/07"/> DEBUG - ASSIGN - lvaluePtr type 1 DEBUG - ASSIGN - lvaluePtr <?xml version="1.0" encoding="UTF-8"?> <SwsHeader xmlns="http://webservices.sabre.com/sabreXML/2003/07"/> DEBUG - ASSIGN - lvalue [SwsHeader: null] DEBUG - ASSIGN - rvalue <SwsHeader xmlns="http://webservices.sabre.com/sabre XML/2003/07"> <eb:MessageHeader xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:eb="http://www.ebxml.org/namespaces/messageHeader" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" eb:version="1.0" soapenv:mustUnderstand="1"> <eb:From> <eb:PartyId type="urn:x12.org:IO5:01">99999</eb:PartyId> </eb:From> <eb:To> <eb:PartyId type="urn:x12.org:IO5:01">123123</eb:PartyId> </eb:To> <eb:CPAId>7BMA</eb:CPAId> <eb:ConversationId>[EMAIL PROTECTED]</eb:ConversationId> <eb:Service eb:type="">Air</eb:Service> <eb:Action>PassengerDetailsRQ</eb:Action> <eb:MessageData> <eb:MessageId>mid:[EMAIL PROTECTED]</eb:MessageId> <eb:Timestamp>2001-02-15T11:15:12Z</eb:Timestamp> <eb:TimeToLive>2001-02-15T11:15:12Z</eb:TimeToLive> </eb:MessageData> </eb:MessageHeader> <wsse:Security xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:eb="http://www.ebxml.org/namespaces/messageHeader" xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/12/secext" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <SabreAth xmlns=""><?xml version="1.0" encoding="UTF-8"?> <ath createTime="-4510510353685382813" directoryID="0" sessionMgrContextName="Shared/IDL:IceSess\ /SessMgr:1\.0.IDL/Common/" sessionMgrDirectName="ICESMS\/STSA" sessionMgrLBName="ICESMSLB\/STS.LB" s essionRecordID="218152"><securityLevel appLevel="1" auditLevel="2" billingLevel="1" metricsLev el="1" securityLevel="1"/><version major="1" minor="0"/><securityContext><user aff iliationcode="1" branch="2902" domain="AA" group="7TZA" id="12345" station="925"/></securityCo ntext><sessionContext activeTimeout="0" createTime="1193412010" idleTimeout="900" lastModified Time="1193412010" sequenceNumber="0" transactionID="326520938"><sessionVersion major="1" minor ="0"/><tpfSession tpfClusterName="" tpfEnterprise="" tpfIsConfigOverridden="false" tpfIsIceCre ated="true" tpfLniata="1605096" tpfLockID="57558278" tpfPoolType="0" tpfProfileCity="" tpfProfileCod e="" tpfProfileKey="" tpfProfileName="" tpfProtocol=""/></sessionContext></ath></Sabr eAth> <wsse:BinarySecurityToken EncodingType="wsse:Base64Binary" valueType="String">Shared/ IDL:IceSess\/SessMgr:1\.0.IDL/Common/!ICESMS\/STSA!ICESMSLB\/STS.LB!-451 0510353685382813!218152!0</w sse:BinarySecurityToken> </wsse:Security> </SwsHeader> DEBUG - ASSIGN - ASSIGN Writing variable 'SwsHeaderRQ' value '<?xml version= "1.0" encoding="UTF-8"?> <SwsHeader xmlns="http://webservices.sabre.com/sabreXML/2003/07"><SwsHeader xmlns="http://webserv ices.sabre.com/sabreXML/2003/07"> <eb:MessageHeader xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:eb="http://www.ebxml.org/namespaces/messageHeader" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" eb:version="1.0" soapenv:mustUnderstand="1"> <eb:From> <eb:PartyId type="urn:x12.org:IO5:01">99999</eb:PartyId> </eb:From> <eb:To> <eb:PartyId type="urn:x12.org:IO5:01">123123</eb:PartyId> </eb:To> <eb:CPAId>7BMA</eb:CPAId> <eb:ConversationId>[EMAIL PROTECTED]</eb:ConversationId> <eb:Service eb:type="">Air</eb:Service> <eb:Action>PassengerDetailsRQ</eb:Action> <eb:MessageData> <eb:MessageId>mid:[EMAIL PROTECTED]</eb:Me ssageId> ; <eb:Timestamp>2001-02-15T11:15:12Z</eb:Timestamp> <eb:TimeToLive>2001-02-15T11:15:12Z</eb:TimeToLive> </eb:MessageData> </eb:MessageHeader> <wsse:Security xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:eb="http://www.ebxml.org/namespaces/messageHeader" xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/12/secext" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <SabreAth xmlns="">&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;ath createTime="-4510510353685382813" directoryID="0" sessionMgrContextName="Shared/IDL:IceS ess\/SessMgr:1\.0.IDL/Common/" sessionMgrDirectName="ICESMS\/STSA" sessionMgrLBName="ICESMSLB\/STS.L B" sessionRecordID="218152"&gt;&lt;securityLevel appLevel="1" auditLevel="2" billingLevel="1 " metricsLevel="1" securityLevel="1"/&gt;&lt;version major="1" minor="0"/&gt;&lt;sec urityContext&gt;&lt;user affiliationcode="1" branch="2902" domain="AA" group="7TZA" id="1234 5" station="925"/&gt;&lt;/securityContext&gt;&lt;sessionCon text activeTimeout="0" cr eateTime="1193412010" idleTimeout="900" lastModifiedTime="1193412010" sequenceNumber="0" transaction ID="326520938"&gt;&lt;sessionVersion major="1" minor="0"/&gt;&lt;tpfSession tpfClust erName="" tpfEnterprise="" tpfIsConfigOverridden="false" tpfIsIceCreated="true" tpfLniata="1605096" tpfLockID="57558278" tpfPoolType="0" tpfProfileCity="" tpfProfileCode="" tpfProfileKey="" tpfProfile Name="" tpfProtocol=""/&gt;&lt;/sessionContext&gt;&lt;/ath&g t;</SabreAth> <wsse:BinarySecurityToken EncodingType="wsse:Base64Binary" valueType="String">S hared/IDL:IceSess\/SessMgr:1\.0.IDL/Common/!ICESMS\/STSA!ICESMSLB\/STS.L B!-4510510353685382813!21815 2!0</wsse:BinarySecurityToken> </wsse:Security> </SwsHeader></SwsHeader>'
