Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to remove an XML with a SOAP Enveloppe

Hi all,

I have the following message that PI received from an external application called Flexnet:

<?xml version="1.0" encoding="utf-8"?>

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">

   <soap:Body>

      <ProcessMessage xmlns="http://tempuri.org/">

         <xmlMessage>

            <?xml version="1.0" encoding="utf-8"?>

            <FlexNet.BusinessFacade.Common.OrderRestatuser.OrderRestatuser xmlns="http://www.Apriso.com/FlexNet.BusinessFacade.Common.OrderRestatuser.OrderRestatuser.xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema">

               <SessionContext>

                  <EmployeeID>100000017</EmployeeID>

                  <EmployeeNo>schrodere</EmployeeNo>

                  <TransactionTime>2012-10-15T12:52:21.8050190</TransactionTime>

                  <Facility>FIGUE</Facility>

                  <OperationID>100001056</OperationID>

                  <OperationRevision>1.0</OperationRevision>

                  <StepSequenceNo>2</StepSequenceNo>

                  <FunctionName>GenMessageClotureLE</FunctionName>

                  <TransactionGUID>T14015</TransactionGUID>

                  <EquipmentID>0</EquipmentID>

                  <FunctionID>100027205</FunctionID>

                  <OperationCode>ODY_FLUX_Reception_ConfirmationSAP</OperationCode>

                  <OprSequenceNo/>

                  <LocalTransactionTime>2012-10-15T14:52:21.8167382</LocalTransactionTime>

                  <PartnerInfo>

                     <RCVPOR>SAPC64</RCVPOR>

                     <SNDPRN>FLEXNET</SNDPRN>

                     <RCVPRN>CIMSAPLOG</RCVPRN>

                     <RCVPRT>LS</RCVPRT>

                     <SNDPOR>A000000022</SNDPOR>

                     <SNDPRT>LS</SNDPRT>

                     <CLNT>100</CLNT>

                  </PartnerInfo>

                  <PropertyBagV2>

                     <Item Name="OutDate">

                        <ValueList>

                           <Value>2012-10-15</Value>

                        </ValueList>

                     </Item>

                     <Item Name="Articles">

                        <ValueList>

                           <Value>900000000974</Value>

                        </ValueList>

                     </Item>

                     <Item Name="Quantites">

                        <ValueList>

                           <Value>100.0</Value>

                        </ValueList>

                     </Item>

                     <Item Name="UomCode">

                        <ValueList>

                           <Value>PCE</Value>

                        </ValueList>

                     </Item>

                     <Item Name="Poste">

                        <ValueList>

                           <Value>10</Value>

                        </ValueList>

                     </Item>

                     <Item Name="Douane">

                        <ValueList>

                           <Value>HD</Value>

                        </ValueList>

                     </Item>

                  </PropertyBagV2>

               </SessionContext>

               <FlexNet.BusinessRules.Common.Orders.OrderRestatuser.RestatusOrder xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">

                  <OrderNo>180000704</OrderNo>

                  <OrderType>17</OrderType>

                  <OrderStatus>3</OrderStatus>

               </FlexNet.BusinessRules.Common.Orders.OrderRestatuser.RestatusOrder>

               <FlexNet.BusinessRules.Common.Orders.OrderRestatuser.RestatusOrderLine xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">

                  <OrderNo>180000704</OrderNo>

                  <OrderType>17</OrderType>

                  <OrderLineNo>10</OrderLineNo>

                  <OrderStatus>3</OrderStatus>

               </FlexNet.BusinessRules.Common.Orders.OrderRestatuser.RestatusOrderLine>

            </FlexNet.BusinessFacade.Common.OrderRestatuser.OrderRestatuser>

         </xmlMessage>

         <applicationName>FlexNet.BusinessFacade.Common.OrderRestatuser.OrderRestatuser</applicationName>

      </ProcessMessage>

   </soap:Body>

</soap:Envelope>

I have to remove the SOAP Enveloppe for a mapping to an IDoc.

I have tried the SOAP adapter with the following URL provided to Flexnet to send date to PI:

http://host:port/XISOAPAdapter/MessageServlet?QOS=EO&interface=MI_FLE_PI_GLOBAL&...

PI did not receive any message.

I have tried the following URL from Flexnet

http://host:port/sap/xi/adapter_plain?QOS=EO&interface=MI_FLE_PI_GLOBAL&namespac...

PI receives the message in error in sxmb_moni with the above xml with a SOAP enveloppe.

I also tried an XSLT Mapping, but it's not working.

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>

<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">

<xsl:template match="xmlMessage">

<xsl:copy-of select="child::node()"/>

</xsl:template>

</xsl:stylesheet>

Could you please advise on the URL to use? Also, would a XSLT/Java Mapping remove the SOAP Enveloppe because we have

<?xml version="1.0" encoding="utf-8"?> occuring two times.

Thanks in advance!

Vincent

Tags:
Former Member
Former Member replied

Thanks Anupam, Michal and Iñaki.

Your answers were very helpful.

However, I investigated on Flexnet's side and they have a BizTalk adapter that, when configured with username and password and the URL to PI's interface, sends XML over HTTP to the integration engine.

However, only one BizTalk adapter in Flexnet can be configured to send data to PI and thus the need for a single entry point in PI (Especially when you have several inbound interfaces from Flexnet).

Best regards,

Vincent

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question