aspose file tools
The moose likes Web Services and the fly likes Schema Validation on Axis Call Parameters Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "Schema Validation on Axis Call Parameters" Watch "Schema Validation on Axis Call Parameters" New topic
Author

Schema Validation on Axis Call Parameters

Shailesh Bajaj
Greenhorn

Joined: Apr 10, 2003
Posts: 2
Hi all,

I am a newbie to Webservices.
I am using Apache Axis 1.0 on Tomcat 4.0. I have just deployed my first Web Service.
I had a query,

1) I have a Single WebService exposing different methods which will be receiving XML string from Client.
2) The XML should confirm to respective Schema (Order.xsd and Invoice.xsd).
3) I am exposing different methods for the Create/Read/Update/Delete Operations on these.
<code> e.g. createOrder(orderDetails : String), </code> here orderDetails is an XML I receive from the Client.
4) I need to validate these against respective Schema before coverting them to a bean using Castor generated objects.

My Query:-
1) Can Axis Convert the XML String directly to an Object which I have generated using Castor, instead of me validating and converting to a bean assuming the Client doesnt validate the XML .
The Castor Source Generator generates a host of Class and Class Descriptr Files too.

TIA
Shailesh


Regards<br />Shailesh
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Schema Validation on Axis Call Parameters
 
Similar Threads
Castor : Is there any way to get back the namespaces when I unmarshal the object
General Document Style Validation Questions
Castor - ignore elements on Unmarshalling
need help with document based web services
Castor : The Source Code Generator