Win a copy of Murach's Java Programming this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to handle multiple XML message types in on Webservice  RSS feed

thomas jacob
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a webservice that receives XML messages from third party. The webservice populates 3 database tables from these XML files. Data for each table comes in a single XML file. How will I design the werbservice to receive all the three different types of messages. eg: Customer, Order, OrderItem.

My WSDL is given below:

<?xml version= '1.0' encoding= 'UTF-8' ?>
<schema xmlns="" >
<import namespace="" schemaLocation="xsd/Order.xsd" />
<wsdl:message name="requestMessage">
<wsdl:part name="request" element="inp1:Order"/>
<wsdl:portType name="execute_ptt">
<wsdlperation name="execute">
<wsdl:input message="tns:requestMessage"/>

Any similar example will be really good.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!