axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sagara Gunathunga <>
Subject Re: Regarding validating SOAP responses against the WSDL
Date Tue, 17 Mar 2009 10:00:02 GMT
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" .


2009/3/17 Håkon Sagehaug <>:
> 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]
> 2009/3/17 Sneha Nikum <>
>> 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 <> 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 -
Web -

View raw message