cancel
Showing results for 
Search instead for 
Did you mean: 

Sterling Integrator Webservice call to PO_AEX

Former Member
0 Kudos

Sterling Integrator is calling PI webservice ( SOAP Sender ) but it has all kinds of namespaces and is not recognizable in PI as message has to go thru mapping. I tried several options Like XSLT and XMLAnonymizerBean without success.

Option 1: Using XMLAnonymizerbean option

Source Message:

<MT_Superior_invoice xmlns='urn:abc.com:10'

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'>

    <Invoice_recs>

        <Invoice_header>

            <comp_code>8000</comp_code>

     .............

SOAP Sender: (sequence)

1. AF_Modules/XMLAnonymizerBean     LEB    Anonymizer

2. CallSapAdapter

Module Config

Anonymizer           anonymizer.acceptNamespaces               urn:abc.com:10 ns0 

Result:

With this option ns0 is being added to MT_Superior_invoice   as well as Child nodes as follows

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

<ns0:MT_Superior_invoice xmlns:ns0='urn:abc.com:10'>

    <ns0:Invoice_recs>

        <ns0:Invoice_header>

            <ns0:comp_code>8000</ns0:comp_code>

           ...........

Due to ns0 at child notes Mapping wouldn't be successful.

I tried XSLT Option as well with no success.

Appreciate any help on using XMLAnonymizerBean and useful answer will be rewarded.

Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Sreenivas,

You can try JAVA mapping to meet your requirement.

Follow the below link to create a java mapping from scratch.

Java Mapping in SAP PI 7.11 - LukCAD

If you don not want to use namespace in mapping, you can follow below link

How to remove namespaces in Mapping - XI | SCN

Thanks,

Krupa

Former Member
0 Kudos

Krupa,

2nd option will not work. Before mapping receiver determination is performed and without namespace it will fail ( I tried this option already ). I'm exploring XSLT option only at this time. Any ideas ?

Harish
Active Contributor
0 Kudos

Hi Sreenivas,

you can use the second option with enhance receiver determination. Please refer the below wiki for enhance receiver determination

Step by Step guide to Explain Enhanced Receiver Determination - Application Server Infrastructure - ...

regards,

Harish

Answers (0)