cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Extracting data from SOAP envelope and creating new SOAP envelope for multiple targets

aditya_gupta41
Contributor

I have a development requirement which states as follow:

Sample Input data:

<?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:SIE_FT_1AA_GET_ASSET xmlns:ns1='urn:sap-com:document:sap:rfc:functions' 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'>
    <IH_COMPANYCODE>0101</IH_COMPANYCODE>
    <IH_KOSTL/>
     <IH_REQ_TABLES>
        <GENERALDATA>X</GENERALDATA>
        <INVENTORY>X</INVENTORY>
        <POSTINGINFORMATION>X</POSTINGINFORMATION>
        <TIMEDEPENDENTDATA>X</TIMEDEPENDENTDATA>
        <ALLOCATIONS>X</ALLOCATIONS>
        <ORIGIN>X</ORIGIN>
        <DEPRECIATIONAREAS>X</DEPRECIATIONAREAS>
        <DEPRECIATIONAREAVALS>X</DEPRECIATIONAREAVALS>
    </IH_REQ_TABLES>
    <IH_SEARCH>00110011</IH_SEARCH>
    <SYSTEMID>XYZ</SYSTEMID>
    <CLIENTID>100</CLIENTID>
</ns1:SIE_FT_1AA_GET_ASSET>
</soapenv:Body>
</soapenv:Envelope>

As per the requirement, I have to send the data enclosed in โ€œIH_REQ_TABLESโ€ in a format mention in this xsl:
AssetQuery_Out_OrigMessContent_1.txt (1.1 KB)

While using XSLT snap, I am getting this error:

Failure: Processing terminated by xsl:message at line 111 in , Reason: Processing terminated by xsl:message at line 111 in , Resolution: Please check your input data.

Also, the โ€œSYSTEMIDโ€ and โ€œCLIENTIDโ€ represents the target of this interface.
There will be multiple targets coming for different inputs to which we have to introduce expression library.

Can anyone please suggest what will be the best way possible to achieve this.

Thanks in Advance

0 REPLIES 0