File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes Capture request xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Capture request xml" Watch "Capture request xml" New topic
Author

Capture request xml

M Mehta
Ranch Hand

Joined: Aug 03, 2006
Posts: 92
Hi,

I have a requirement where in I want to access the incoming request xml before it gets deserialized and the webservice method is called. Its is poosible to achieve with axis webservices?

Thanks in advance,
Me
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42929
    
  68
What is the actual requirement that drives this? Meaning, what do you hope to achieve by getting at the XML?
M Mehta
Ranch Hand

Joined: Aug 03, 2006
Posts: 92
There is a business requirement where I need compare the incoming XML with the expected predefined XML. If the XMLs doesn't match further processing of the web service is to be stopped.
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
Have you considered using a handler?
http://www.packtpub.com/article/handler-and-phase-in-apache-axis
Best wishes!
M Mehta
Ranch Hand

Joined: Aug 03, 2006
Posts: 92
thanks a lot . I have requestFlow handler. Its working for me.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Capture request xml