OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

wsrp-webservice message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: [wsrp-webservice] optional desiredLocales parameter


After yesterdays call I decided to go ahead and give a "minOccurs='0'
desiredLocales" a quick test .NET <--> Axis 1.0.

using: 
<element name="desiredLocales" type="xsd:string" minOccurs="0"
maxOccurs="unbounded" />

instead of (3 uses):
<element name="desiredLocales" type="xsd:string" nillable="true"
maxOccurs="unbounded" />

results (same for all .NET <--> Axis combinations):

sending null for desiredLocales - received desiredLocales == null
sending new String[0] for desiredLocales - received desiredLocales == null
sending new String[] { "ga" } - received desiredLocales.length == 1
desiredLocales[0].equals("ga"}
sending new String[] { "ga", "de" } - you get the picture, I'm sure.

So (if Axis is used with the --noWrapped flag) having an optional array
param is ok (note: the optional array is always in the last param position -
for above test & our wsdl).

regards,
Andre


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]