aspose file tools*
The moose likes Web Services and the fly likes How to handle multiple XML message types in on Webservice Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "How to handle multiple XML message types in on Webservice" Watch "How to handle multiple XML message types in on Webservice" New topic
Author

How to handle multiple XML message types in on Webservice

thomas jacob
Ranch Hand

Joined: May 19, 2005
Posts: 91
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' ?>
<wsdl:definitions
name="receiveData"
targetNamespace="http://xmlns.oracle.com/sca/soapservice/receiveData"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:inp1="http://xmlns.oracle.com/pcbpel/adapter/db/top/Order"
xmlns:tns="http://xmlns.oracle.com/sca/soapservice/ESTAProcessing/receiveData"
>
<wsdl:types>
<schema xmlns="http://www.w3.org/2001/XMLSchema" >
<import namespace="http://xmlns.oracle.com/pcbpel/adapter/db/top/Order" schemaLocation="xsd/Order.xsd" />
</schema>
</wsdl:types>
<wsdl:message name="requestMessage">
<wsdl:part name="request" element="inp1:Order"/>
</wsdl:message>
<wsdl:portType name="execute_ptt">
<wsdlperation name="execute">
<wsdl:input message="tns:requestMessage"/>
</wsdlperation>
</wsdl:portType>
</wsdl:definitions>

Any similar example will be really good.
 
 
subject: How to handle multiple XML message types in on Webservice