cancel
Showing results for 
Search instead for 
Did you mean: 

Question regarding XSD

Former Member
0 Kudos

Hi ,

I have an XML file to IDOC scenario.

Now I got an xml , However on converting it into a xsd using altova xml spy i saw that the xml has two attributes and a choice.I am not sure wether xi supports a choice.I have generaly designed xsd's with sequence.

Kindly tell me wether it will be okay to import this xsd with a choice into xi.

Regards

Deepak

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

To get the list of supported XSD types refer to the following document.

service.sap.com/xi -> Media Library->Documentation: SAP XI 3.0 (SP11)

-> Supported XML schema and WSDL

As per SAP for element choice

XML Schema Elements: choice

ABAP Proxies: Not Supported

Java Proxies: Not Supported

Data Type Editor: Not Supported

"Message Interface and Context Objects": Supported

"Message Mapping Editor": Supported

Satish

Former Member
0 Kudos

Hi ,

I am on XI 7.0 SP09..

I hope it is supported ..becoz I am just going to import this and start

mappinng it idoc.

Regards,

Deepak

Former Member
0 Kudos

If you are going to import the XSD(with choice) and use the graphical mapping editor to do mappings you will not have any issues.

But if you are planning to generate ABAP or JAVA proxies based on the imported XSD you will run into trouble.

Satish

Former Member
0 Kudos

Hi ,

Thanks Satish ..

I only need to to do mappng using graphical tool .

This being a plain file to idoc scenario that's all so no question of proxies.

However after generating the xsd in Altova xml spy ,

I wonder if I have to make any changes in the first three lines

like

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

<!W3C Schema generated by XMLSpy v2006 rel. 3 sp1 (http://www.altova.com)>

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"

as---

><?xml version="1.0" encoding="ISO-8859-1"?>

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://ABC.com/xi"

" elementFormDefault="qualified" targetNamespace=="http://ABC.com/xi"

><xs:import namespace="http://www.w3.org/XML/1998/namespace" />

Regards ,

Deepak

Former Member
0 Kudos

Hi Deepak

There is no mandatory requirement to modify the XSD generated by XML spy.

But if you requirement is such that you need to change encoding format or add namesapce qualifiers then you can edit the XSD.

Make sure you validate the XSD before loading to XI.

Satish.

Answers (0)