Running the SOAP/JMS Web Services sample
Before running the sample make sure you have done the JNDI setup and
deployed the Retail.bar file on the Broker's Execution group without
failure.
Check the event log or system log for any JMS binding failure.
Input test messages
All the test messages used in running this sample are based on
the following XML format:
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:c="http://www.retailShop.com"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<c:RetailIN>
<ItemID>ID101</ItemID>
<Description></Description>
<TechDescription></TechDescription>
<Associaries></Associaries>
<Availability></Availability>
<Price></Price>
</c:RetailIN>
</soapenv:Body>
</soapenv:Envelope>
Running the sample
Checklist :
- Make sure to create the RETAIL database and retailtable using the
SQL file "RetailInformation.sql".if you are using Legacy Broker.
- Make sure to create the required JNDI Objects and MQ Queues
present in the Setup
instructions link.
- Open the Message flow project "RetailMsgFlowProjet", goto the Enqueues\objects folder and open the Enqueue
Message file "message.enqueue".
- Make sure QueueManager, Host, Port and Queue Names (RETAIL_REQ)
are
correct if you are using Legacy Broker. No need to change anything if
you are using default Broker Configurartion.
- Click on "Write to Queue" button to put the Message in
"RETAIL_REQ"
of the
"client\RETAIL_CLIENT" Message Flow. It will put the message in
the RETAIL_REQ queue.
Output test messages
The output message will be available in CLIENT_REPLY_Q queue. The
output message contains an item details as SOAP reply message which has
the following format:
<?xml version="1.0"?>
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:tns="http://www.retailShop.com"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<tns:RetailOut>
<ItemID>ID101</ItemID>
<Description>Mobile Model 8810</Description>
<TechDescription>CAMERA WITH 1 Mega Pixel,
FMRadio</TechDescription>
<Associaries>speaker,microphone</Associaries>
<Availability>100</Availability>
<Price>17000</Price>
</tns:RetailOut>
</soapenv:Body>
</soapenv:Envelope>