cancel
Showing results for 
Search instead for 
Did you mean: 

Namespace prefix added by SAP PI

Former Member
0 Kudos

Hello,

we are working with SAP PI 7.11.

The interface is like this:

- sender sync connects to integration process

- integration process connects to sync receiver.

- between there is a check for the response message to decide for use of a mail interface (reason for the ccBPM)

We are using an external definition for the message we are transporting.

The sender uses a WSDL generated from SAP PI.

The receiver simply uses the same external definition as created outside PI.

We are not doing any mapping with the message between sender and receiver.

Mapping is only used to create the mail message from the response / and to create internally another

response to the sender from the request message to provide an answer for connect issues.

The send process is fine. The receiver processes the messages and returns a response.

And now the issue is there.....

In the payload the response message looks like this:

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?><!-- XML-Validierung Ausgang Response --> <ns4:PPPFeedbackResponse xmlns:ns4='http://jusit.hd.com/sys/nomia/' xmlns:ns2='http://www.xdomea.de' xmlns:ns3='http://www.xjustiz.de' xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/'>

<Returncode>E008</Returncode>

<Fehlertext>Keine Werte zur Rueckmeldung vorhanden</Fehlertext>

</ns4:PPPFeedbackResponse>

As the field tags in the message do not have a prefix (ns4, ns3) the message cannot be mapped in PI to create the mail message.

As the request message does not wear any added prefixes in tags but the response does I dont understand the response.

The prefixes with ns3 or ns4 look like they are from PI itself???

So here is an example of the payload for the request (first lines)

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

<!-- XML-Validierung Ausgang Request -->

<PPPReportRequest xmlns="http://jusit.hp.com/sys/nomia/" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<XJustiz_Daten xmlns="http://www.xjustiz.de">

<Grunddaten>

<Grunddaten XJustizVersion="1.5">

<Verfahrensdaten>

<Verfahrensnummer>neu</Verfahrensnummer>

<Instanzdaten>

<Instanznummer>0</Instanznummer>

......

to compare it with the response payload.

Can anybody give some explanation for this and tell how to add prefixes into the element tags or do something else

to get rid of this behaviour or explain what is going on here!

Best regards

Dirk

Accepted Solutions (1)

Accepted Solutions (1)

former_member854360
Active Contributor
0 Kudos

Hi,

XML Anonymizer Bean in Communication Channel to remove namespace prefix in XML Payload

http://www.saptechnical.com/Tutorials/XI/XMLPayload/Index.htm

Former Member
0 Kudos

Perfect...

your link contained the "missing link".

I was using this module but failed several times including killing the receiver service connect...

Thank you very much.

Several times I heared in this project that it is PI that makes so much trouble but we are on a good way to show

that there are more issues with WebSphere..... which can be solved by PI.

Best regards

Dirk

Answers (0)