|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
  |
|
MB V6 - WebService: How do I create WSDL from XSD? |
View previous topic :: View next topic |
Author |
Message
|
scravr |
Posted: Mon Dec 17, 2007 12:17 pm Post subject: MB V6 - WebService: How do I create WSDL from XSD? |
|
|
 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 |
|
 |
scravr |
Posted: Mon Dec 24, 2007 9:43 am Post subject: MB V6 - WebService: How do I create WSDL from XSD? |
|
|
 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 |
|
 |
vsr |
Posted: Mon Dec 24, 2007 12:38 pm Post subject: |
|
|
Centurion
Joined: 04 Apr 2006 Posts: 104
|
|
Back to top |
|
 |
brokerDev |
Posted: Fri Dec 28, 2007 4:06 am Post subject: |
|
|
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 |
|
 |
|
|
  |
|
Page 1 of 1 |
|
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
|
|
|
|