This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to handle multiple XML message types in on Webservice
 
Similar Threads
Axis2 Unable to parse wsdl
Calling Web Service Method using SAAJ
Regarding Spring-WS
creating a SOAP request from WSDL
Namespace based element identification