Hi, Sanjiva,

What do you mean "extensibility element"?

I am using the WSDL that is generated by Axis2 1.3 on-the-fly, which has 
following schema.

<xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" 
targetNamespace="http://user.types.openapi.strands.com/xsd";>
<xs:complexType name="UserBean10">
<xs:sequence>
<xs:element minOccurs="0" name="alias" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="email" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="id" type="xs:long"/>
<xs:element minOccurs="0" name="password" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:schema>

I can rewrite the wsdl on myself (I will try with the way Amila suggested),
but I would really love to use auto-generated WSDL.
So if there is any configuration property I can change that would be great.


In the mean time, I would appreciate if you could specify "extensibility 
element" in this schema.
Thanks,

- Leon


Sanjiva Weerawarana wrote:
Does the schema allow extensibility elements? If so we should be reading those in correctly; if not its a bug.

Sanjiva.

Amila Suriarachchi wrote:


On 8/30/07, *Leon Hwang* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:

    Greetings,

    I am writing a server that returns an object, say User object,
    containing only username.
    I create a client using its wsdl (with option -d adb -uw -Eosv).
    The client is able to retrieve username field correctly.

    Later I added one more field to User object, say password, and
    redeployed it to the server.
    Now the client complains about the field with "unexpected subelement
    password". (ADBException)

    This will happen a lot in business world as their spec changes.

    Is there some way (either in client or server) we can make it ignore
    extra elements?

Please try this. change your complex type to
all instead of sequence. and see.

if the above is not works then the only option is to regenerate the code with new schema. But please log a jira about this so that we will be able to provide you a better solution.

    Thanks in advance.








    ---------------------------------------------------------------------
    To unsubscribe, e-mail: [EMAIL PROTECTED]
    <mailto:[EMAIL PROTECTED]>
    For additional commands, e-mail: [EMAIL PROTECTED]
    <mailto:[EMAIL PROTECTED]>




--
Amila Suriarachchi,
WSO2 Inc.


--
Leon Hwang
Senior Tech Lead
MyStrands Inc.

work: 1.541.753.4426
mobile: 1.541.740.7511
fax: 1.541.754.6416
email: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to