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 IndexWebSphere Message Broker (ACE) SupportMB V6 - WebService: How do I create WSDL from XSD?

Post new topicReply to topic
MB V6 - WebService: How do I create WSDL from XSD? View previous topic :: View next topic
Author Message
scravr
PostPosted: Mon Dec 17, 2007 12:17 pm Post subject: MB V6 - WebService: How do I create WSDL from XSD? Reply with quote

Partisan

Joined: 03 Apr 2003
Posts: 391
Location: NY NY USA 10021

I am trying to expose an existing MessageFlow as WebService:
I like to create a diff input and output wsdl formats.

1. Created new message set and definition.

2. Imported XML file:
<?xml version="1.0" encoding="ISO-8859-1"?><Msg><Record><DepNo>R01</DepNo><DepName>Record001</DepName><AdmrDept>MB1</AdmrDept></Record><Record><DepNo>R02</DepNo><DepName>Record002</DepName><AdmrDept>MB2</AdmrDept></Record></Msg>


3. Generated XSD:
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="Msg">
<xsd:complexType>
<xsd:sequence>
<xsd:element maxOccurs="unbounded" ref="Record"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="DepNo" type="xsd:string"/>
<xsd:element name="AdmrDept" type="xsd:string"/>
<xsd:element name="DepName" type="xsd:string"/>
<xsd:element name="Record">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="DepNo"/>
<xsd:element ref="DepName"/>
<xsd:element ref="AdmrDept"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>


4. Created new WSDL (File-->New-->Other-->WebServices-->WSDL)
with wsdl skeleton, protocol HTTP, and HTTP POST


5. How do I add the XSD as part of the WSDL?
According to the HELP doc (section “Adding a part to a message”) I need to “Right-click the message and click Add Child > Part.”
But (on WSDL Editor) I do not see that option on Broker Application Development prospective.
I am on WMB Toolkit – MB Version: 6.0.2

Thanks
Moshe
Back to top
View user's profile Send private message Send e-mail MSN Messenger
scravr
PostPosted: Mon Dec 24, 2007 9:43 am Post subject: MB V6 - WebService: How do I create WSDL from XSD? Reply with quote

Partisan

Joined: 03 Apr 2003
Posts: 391
Location: NY NY USA 10021

Can anyone please post the steps needed to create a WSDL from XML file.
As far as I know:
1. create msg-set
2. created xsd from xml
3. create wsdl

see details above.
Back to top
View user's profile Send private message Send e-mail MSN Messenger
vsr
PostPosted: Mon Dec 24, 2007 12:38 pm Post subject: Reply with quote

Centurion

Joined: 04 Apr 2006
Posts: 104

Did you try these steps:

http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r0m0/index.jsp?topic=/com.ibm.etools.mft.doc/ad18211_.htm
Back to top
View user's profile Send private message
brokerDev
PostPosted: Fri Dec 28, 2007 4:06 am Post subject: Reply with quote

Acolyte

Joined: 21 Jun 2006
Posts: 53

Hi,

1)Create message set
2)Create message definition file from xsd (right click on message set)
3)Create message catregory (right click on message set) This is where you specify input, output, fault operations
4)Generate wsdl (right click on message set)

Regarding adding the xsd to the wsdl, you can manually add the xsd to the wsdl after it's been generated. Alternatively, you could just give the generated wsdl and xsd to those who want to access the webservice/message flow. I don't think there's much of an advantage in embedding the xsd in the wsdl.

Hope that helps.
Back to top
View user's profile Send private message
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexWebSphere Message Broker (ACE) SupportMB V6 - WebService: How do I create WSDL from 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.