cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Message Mapping Namespaces in CPI

rene_kramp1
Participant
10,166

Hello Experts,

I'm trying to map an XML to an IDoc. I downloaded the wanted IDoc as WSDL
(SE38 SRT_IDOC_WSDL_NS) and uploaded it on CPI. The Message Mapping automatically assign the namespace ns1 on the right hand side.

I want to get rid of the ns1 in CPI. The out-of-the-box iflows don't have these namespaces.

Any idea?

WSDL Payload

<?xml version="1.0" encoding="utf-8"?>
<wsdl:definitions
	targetNamespace="urn:sap-com:document:sap:idoc:soap:messages"
	xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
	xmlns:xsd="http://www.w3.org/2001/XMLSchema"
	xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
	xmlns:wsoap12="http://schemas.xmlsoap.org/wsdl/soap12/"
	xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
	xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
	xmlns:tns="urn:sap-com:document:sap:idoc:soap:messages">
 <wsdl:documentation>[...]

Best regards

René S

Accepted Solutions (1)

Accepted Solutions (1)

Sriprasadsbhat
Active Contributor

Hello Rene,

May be you can edit the WSDL using Notepad ++ and change the below highlighted value to "unqualified" it might work if you dont want to write XSLT.

Regards,

Sriprasad Shivaram Bhat

rene_kramp1
Participant
0 Likes

Thanks this helps me a lot! Is there any disadvantages I should mind?

Answers (3)

Answers (3)

Hi Rene,

Would like to understand where you facing the issue.

if its on the receiver system which is not accepting the message with name space you could use xslt mapping to remove it.

Other wise you can add the namespace in the runtime configuration.

Hope this helps !

thanks and regards,

Praveen T

rene_kramp1
Participant
0 Likes

If I want to deploy the iflow I receive: "The Integration Flow is not operational"

Can you give me an example how ns1 in the runtime configuration should look?

vinaykumardigaveedi
Participant
0 Likes

Hello Experts,

We are replicating contracts from ECC to C4C

Where the contracts should be replicated in Sales Quote (WorkCentre) this has a WSDL.

In Sales Quote at Item Level, we have a BILLING PLAN tab, this has another WSDL.

In CPI Message Mapping

Source – IDOC

Target- 2 WSDL files(different)

I used 2 message mappings (IDOC- WSDL 1) & (IDOC- WSDL 2).

I used Join and Gather function in CPI to merge the data and send to C4C system

In C4C Web Service message monitoring I am getting the below error

Could u please help me, sort this issue

Thanks,

Vinay

Sriprasadsbhat
Active Contributor
0 Likes

Hello Rene,

Nothing as such.You might need to put a note to developer who is going to maintain your iflows later ( just to make sure you made a change to standard WSDL imported in to SAP CPI ).

Regards,

Sriprasad Shivaram Bhat