cancel
Showing results for 
Search instead for 
Did you mean: 

Schema reference insertion to XMLs sent out?

Former Member
0 Kudos

Hello gurus,

I have a ECC - PI - External WS scenario realized by XI - SOAP adapters. The external WS is requiring to put a schema reference to the XML message in SOAP payload (main application message). Is this doable with PI?

Thank you.

Regards

Gokhan

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

of course - just add it either to your message type structure or during your mapping.

Kai

Former Member
0 Kudos

I tried to add it as an attribute to the root element in xml. PI does not let me do it because it is in xsd:schema format with semicolons. How to work around?

Former Member
0 Kudos

I think semicolons are not allowed. A XML with schema reference could look like this:

<?xml version="1.0"?>

<note xmlns="http://www.w3schools.com"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://www.w3schools.com note.xsd">

<to>Me</to>

<from>You</from>

<heading>Reminder</heading>

<body>Don't forget!</body>

</note>

See: http://www.w3schools.com/Schema/schema_schema.asp

Former Member
0 Kudos

Yes, I know the standard, and thats what I am saying.

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://www.w3schools.com note.xsd`

How will you add these two to the XML body as attributes when the semicolons are not allowed?

This is the question I am asking in this post.

Thanks

Gokhan

Former Member
0 Kudos

I think I don't get it... :o(

Where do you have semicolons? Do you have an example?

Former Member
0 Kudos

OK, to give an example using your XML:

So, to be able to have the first structure with xsd reference, we need to add to attributes to the root "note" element, first one is "xmlns:xsi" with fixed value of ="http://www.w3.org/2001/XMLSchema-instance" and the second one is xsi:schemaLocation with fixed value of "http://www.w3schools.com note.xsd". So the message type in ESR should look like:

note ComplexType

xmlns:xsi Attribute

xsi:schemaLocation Attribute

....

But as I said, you cannot use "xmlns:xsi" as an attribute name because of the semicolons.

I hope it is clear now.

Thanks

Gökhan

Former Member
0 Kudos

Solved by using Java Mapping.