unfortunately no. please log jira as an ADB improvement.

Anyway isn't possible to talk to them and ask them to put minOccurs = 0 if
the send empty messages?

Amila.

On 7/25/07, Wayne <[EMAIL PROTECTED]> wrote:

 Hi there,

I've used WSDL2Java (Axis2) to generate my code using a WSDL that is
supplied by a rather large company that I have no control over.

However when I use the service that they expose they don't send some
elements if they are empty (in their system). However in their WSDL they
don't say these elements do not have the minOccurs="0" attribute. There
when I receive the response the code throws the dreaded unexpected
subelement exception.

So there is no way I can change the WSDL unless I do it manually  - which
I don't want to do every time they send a upadate.

Is there any way to stop Axis from doing this? ie just ignore and carry on
parsing the response? Any pointers much appecriated as I'm a newbe here.
Thanks




--
Amila Suriarachchi,
WSO2 Inc.

Reply via email to