Hi Sneha, Your requirement is not much clear to me , any way if you mention about a web service response validation at runtime you can use following simple steps.
1. Generate the client stub codes using Axis2 WSDL2Java tool , this will genarate client codes according to the given WSDL structure 2. use above client stub to invoke your service , if you end up with successful return value implies that your response SOAP message is valid, by any chance if your SOAP response is not a valid one your client will throw an exception something similar to "WstxParsingException" . Thanks, 2009/3/17 Håkon Sagehaug <[email protected]>: > hi > > not sure how your setup is, do you know the wsdl to validate messages from > in advance, or should it happen on the fly with possible unknown WSDL's? > > I'll give it a try if you know the WSDL's. If you are generating the client > code from the wsdl and using the xmlbeans binding, the one I know best, the > classes are generated from the schema in you wsdl and these will comply to > the schema. A thread on this topic is here [1], can be outdated since it's > from 07. Could also just complie using xmlbeans lib the XML schema into java > files and tro to parse the request into the correct object. > > Hope it helped > > cheers, Håkon > > [1] > http://mail-archives.apache.org/mod_mbox/ws-axis-dev/200708.mbox/%3c1591849069.172751187664742011.javamail.corem...@bj163app121.163.com%3e > > 2009/3/17 Sneha Nikum <[email protected]> >> >> Hi All, >> >> I am stuck up at this place. >> >> Please please do help me with this problem. Please do reply with the >> solutions to the query >> >> Thanks >> Sneha >> >> On Mon, Mar 16, 2009 at 2:42 PM, Sneha Nikum <[email protected]> wrote: >>> >>> Hi, >>> >>> I want to validate the SOAP response structure against the structure of >>> that response in the WSDL file. >>> >>> Are there any Axis APIs that would help me in achieving this task? >>> >>> Please let me know if there are any APIs that would help me do the above >>> task >>> >> > > > > -- > Håkon Sagehaug, Scientific Programmer > Parallab, Bergen Center for Computational Science (BCCS) > UNIFOB AS (University of Bergen Research Company) > -- Sagara Gunathunga Blog - http://ssagara.blogspot.com Web - http://sagaras.awardspace.com/
