ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » How to convert oagis xsd to a single xsd?

Post new topic  Reply to topic
 How to convert oagis xsd to a single xsd? « View previous topic :: View next topic » 
Author Message
nthepak
PostPosted: Wed Feb 15, 2012 9:25 pm    Post subject: How to convert oagis xsd to a single xsd? Reply with quote

Voyager

Joined: 19 Dec 2005
Posts: 79
Location: India

Hi,

We have requirement to convert the oagsi standard xsd schema which has references to other xsd schemas in its folder structure, to a single xsd file. we want this single xsd file to have all the dependent xsd schema definitions defined instead of refering from another schema in the folder structure location.

Can somebody help me out whether it is valid to do such a kind of conversions and if yes then is it possible to do in Altova.

This requirement is because SAP PI does not support oagis standard schema file for parsing a related XML file. Thank you.
_________________
BR,
Deepak N
Back to top
View user's profile Send private message Send e-mail
lancelotlinc
PostPosted: Thu Feb 16, 2012 6:09 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

I don't think whomever diagnosed the problem is accurate with their proposed resolution. Push back on the troubleshooter. Imports are not the root cause.
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
mqsiuser
PostPosted: Thu Feb 16, 2012 6:47 am    Post subject: Re: How to convert oagis xsd to a single xsd? Reply with quote

Yatiri

Joined: 15 Apr 2008
Posts: 637
Location: Germany

There actually is a requirement like that: http://wiki.sdn.sap.com/wiki/display/XI/Converting+XSD+to+SAP-PI+compatible+XSD

Well ... they are inferring the single XSD from (multiple?) (instance) XML(s): "The idea is to create XML instance from XSD. And then later on, we create back the XSD using the XML created from the previous step."

Use XML-Spy or oXygen and do it manually.

Make sure a couple of (representative(!)) sample XML validate (to the old xsds) and then to your newly created one. Make sure you understand how xsd is linked in (<xsd:import> and <xsd:include>) and how to resolve this by directly putting (copy and pasting) the linked xsds into the root xsd.

Read the XML Schema Recommendation Part 1 and Part 2.
_________________
Just use REFERENCEs


Last edited by mqsiuser on Thu Feb 16, 2012 7:19 am; edited 1 time in total
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Thu Feb 16, 2012 7:09 am    Post subject: Re: How to convert oagis xsd to a single xsd? Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

mqsiuser wrote:
There actually is a requirement like that: http://wiki.sdn.sap.com/wiki/display/XI/Converting+XSD+to+SAP-PI+compatible+XSD.

Well ... they are inferring the single XSD from (multiple?) (instance) XML(s): "The idea is to create XML instance from XSD. And then later on, we create back the XSD using the XML created from the previous step."

Use XML-Spy or oXygen and do it manually.

Make sure a couple of sample XML validate (to the old xsds) and then to you newly created one. Make sure you understand how xsd is linked in (<xsd:import> and <xsd:include>) and how to resolve this by directly (copy and pasting) the linked xsds into the root xsd.

Read the XML Schema Recommendation Part 1 and Part 2.


This is wasted effort. SAP handles imports from WSDLs and XSDs. There is no reason to flatten the file.
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
mqsiuser
PostPosted: Thu Feb 16, 2012 7:20 am    Post subject: Re: How to convert oagis xsd to a single xsd? Reply with quote

Yatiri

Joined: 15 Apr 2008
Posts: 637
Location: Germany

Follow the link: "SAP-PI currently on works with one single XSD file, not with multiple modularized XSDs"

@lancelotlinc / @OP: Probably it is about the version. Which version of SAP-PI do each of you use ?


Unfortunately... it seems that you have to have one schema (one XSD-file(?)) for each (target-)namespace !?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » How to convert oagis xsd to a single xsd?
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.