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 » XSD and Message Set

Post new topic  Reply to topic
 XSD and Message Set « View previous topic :: View next topic » 
Author Message
Gideon
PostPosted: Wed Jan 27, 2010 1:14 pm    Post subject: XSD and Message Set Reply with quote

Chevalier

Joined: 18 Aug 2009
Posts: 403

I am using WMB 7. I have worked with Flow, but never message sets until now.

I need to validate the XML files that come into my flows (new requirement).

So I start by attempting to define a message set

I have an XSD file, So I define a message set

I hit File->new_Message Definition From

However, I get a list of options (XML, IBM msg, DTD, C header, COBOL, WSDL, and SCA import or Export), however, I do not see an option for XSD

How do I define a message set based upon an XSD ?
Back to top
View user's profile Send private message Send e-mail
Vitor
PostPosted: Wed Jan 27, 2010 1:30 pm    Post subject: Re: XSD and Message Set Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

Gideon wrote:
How do I define a message set based upon an XSD ?


If you're using WMBv7 why use a message set? Why not use XMLNSC & validate the XML directly?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Gideon
PostPosted: Wed Jan 27, 2010 1:38 pm    Post subject: Reply with quote

Chevalier

Joined: 18 Aug 2009
Posts: 403

My requirement is to validate the incoming XML against a specific XSD file. Can this be done without using a message set ?

(I switched to XMLNSC on the input node, and it seems to want a message st)
Back to top
View user's profile Send private message Send e-mail
Vitor
PostPosted: Wed Jan 27, 2010 1:48 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

I thought you could deploy the XSD with the flow and use that.

I'm prepared to be corrected, especially by someone with direct WMBv7 experience of this topic.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
kimbert
PostPosted: Wed Jan 27, 2010 3:39 pm    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Vitor: In message broker, all deployed schemas must be within a message set. That's true for MRM / SOAP / XMLNSC / SCA.

Quote:
I hit File->new_Message Definition From

However, I get a list of options (XML, IBM msg, DTD, C header, COBOL, WSDL, and SCA import or Export), however, I do not see an option for XSD
I admit to being baffled - you should get an option for XSD. You could try Window/Reset Perspective' in case some setting has got changed accidentally.

Others might have better suggestions.
Back to top
View user's profile Send private message
Gideon
PostPosted: Thu Jan 28, 2010 7:55 am    Post subject: Reply with quote

Chevalier

Joined: 18 Aug 2009
Posts: 403

I found out what I can do is to create a new message set and Message Flow Project as follows:

Code:
File -> New -> Project -> Start from WSDL and/or XSD files


This creates a message set from an XSD and associates it with the new Messsage Flow Project

That's good

However, I have an existing project with about 50 flows in it.

When I try to create a message set as follows:

Code:
File -> New -> Message Set


It will not create the set upon an XSD, it only gives me the following options: XML, Binary (C, COBOL, Text data (CSV, SWIFT, HL7), MIME, or Data for WebSphere Adapters

Additionally, it will not associate the message set to the message flow project, so the Message flow project can not see (or have access to) the set in order to associate it with validation.

Since I have 50 existing flows in my existing project, and I do not want to recode them into a new project, is there any way to create a new message set and associate it with the Message flow Project ?

(I tried typing in the name of the existing Message Flow Project, but it will not accept this)

Thanks
Back to top
View user's profile Send private message Send e-mail
smdavies99
PostPosted: Thu Jan 28, 2010 8:34 am    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

I'm just wondering if you are confusing a Workspace with a project?

A workspace can contain many projects.

I normally make a separate project for every flow & subflow and message set.

Try creating a message set project and then in it create the message set
You can use the topmost project options to rerefence the message set project.

Having a single project with 50 flows inside is my idea of a manageability nightmare.
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
Gideon
PostPosted: Thu Jan 28, 2010 9:59 am    Post subject: Reply with quote

Chevalier

Joined: 18 Aug 2009
Posts: 403

GOt it. It works great. Thanks

I went into my project, and hit

Code:
Project -> Properties -> Project References


After I clicked on the correct message Set, everything is perfectly visable

Thanks again
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » XSD and Message Set
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.