cancel
Showing results for 
Search instead for 
Did you mean: 

How to handle CXML in PI

Bhargavakrishna
Active Contributor
0 Kudos

Hi Experts,

We have to send the PO from SRM system to the vendor web-service.. in CXML..

Vendor don't have the WSDL..

As we know the alternative approach is to generate the wsdl in PI.

My question is how to convert the xml into CXML and sent it to the web-service.

Thanks in advance for your help..

Regards

Bhargava Krishna

Accepted Solutions (1)

Accepted Solutions (1)

Dimitri
Active Contributor
0 Kudos

Hi,

Perhaps take a look at

Kind regards,

Dimitri

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi Bhargava,

Download the .dtd from the official site. Convert into .xsd e.g. by using XMLSpy (If you don't own it, there is a 30 day trial version available for free). Follow the links Dimitri Sannen provided  in his reply above to adapt the .xsd  before you import into PI as external definition. You will find the PO in the basic cXML documents.

kind regards

Andreas

Former Member
0 Kudos

Hi Krishna,

We are using Java mapping to convert xml to cXML after normal message mapping. You can also go for XSLT mapping.

Regards,

Pranav

Bhargavakrishna
Active Contributor
0 Kudos

Hi Ram,

so in ur case.. u didn't download the DTD from the CXML site..

you just define the message structure in PI, with the help of mapping .. you are converting it to cxml write..?

can you help me with the mapping code?

Regards

Bhargava krishna

Former Member
0 Kudos

Hi Bharghav,

We used Altova to convert cXml to xsd. After mapping there was issue on namespaces (ns3), used java mapping to get proper xml. You can also use XMLAnonymizerBean for namespace issues.

Regards,

Pranav

monikandan_p
Active Participant
0 Kudos

Hi Bhargava,

      Kindly follow this below blog to handle CXML in PI.

http://scn.sap.com/community/pi-and-soa-middleware/blog/2013/12/06/working-with-cxml

http://xml.cxml.org/current/cXMLUsersGuide.pdf

Best Regards,

Monikandan.

gagandeep_batra
Active Contributor
0 Kudos

Hi Bhargave,

You have to download dtd structure from CXM site and then convert it in XSD and upload to PI as External definition and then map to require structure.

Regards

Gagan

Bhargavakrishna
Active Contributor
0 Kudos

Hi Gagandeep,

thanks for the reply..

Is the  DTD structure for the purchase order available to download?

How to convert DTD to XSD?

Regards

Bhargava krishna