Josh:

I did the latter and it worked! Thanks!

-Andrew


On Thu, Feb 5, 2009 at 8:33 AM, Joshua Boverhof <jrboverhof@lbl.gov> wrote:
Either edit this method in TC.py directly, or import "TypeCode" and assign it a different method for "serialize_as_nil".

-josh

class TypeCode
   ...

   def serialize_as_nil(self, elt):
       '''
       Parameters:
           elt -- the current DOMWrapper element
       '''
       elt.setAttributeNS(SCHEMA.XSI3, 'nil', '1')


On Feb 4, 2009, at 3:45 PM, Andrew wrote:

Hi:

I'm using zsi (<module 'ZSI.version' from '/ati/tdm/apps/python/lib/
python2.4/site-packages/ZSI-2.0_rc3-py2.4.egg/ZSI/version.py'>) to
talk to an axis2 server. There is a problem however  when I do not
assign a member of a complex type, zsi generates 'xsi:nil='1'' in the
marshalled request and the axis2 server expects 'true' instead of
'1'.  Based on what i've read here:

http://www.w3.org/TR/2004/REC-xmlschema-2-20041028/datatypes.html#boolean

using '1' is completely acceptable. But apparently this axis2 server
doesn't like it. Is there a way I can change something in ZSI to
produce 'true' instead of '1' when a nillable field is not assigned
when it marshalls the data?

Thanks!

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Pywebsvcs-talk mailing list
Pywebsvcs-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pywebsvcs-talk
Also archived at http://groups.google.com/group/pywebsvcs