RE: wrapped doc/literal and Object vs. primitive types

2005-04-14 Thread Dino Chiesa
 
 Is it OK to use the wrapper objects and arrays of wrapper objects,
e.g. 
Long and Long[] vs. long and long[] for wrapped doc/literal? Will this
work with .NET?

Yes. 

 Will wrapped doc/literal make this possible and allow sending null
values which is not possible with the primitive types?

No. 

 Or is the recommendation to always use primitive types and forget
about the wrapper objects?

Either works, but what is it that you want to accomplish? 


-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Tim K. (Gmane)
Sent: Tuesday, April 05, 2005 10:31 PM
To: axis-user@ws.apache.org
Subject: wrapped doc/literal and Object vs. primitive types

Hello,

Is it OK to use the wrapper objects and arrays of wrapper objects, e.g. 
Long and Long[] vs. long and long[] for wrapped doc/literal? Will this
work with .NET?

I know that it doesn't work for rpc/encoded with .NET as .NET will send
xsd:long rather than soapenc:long so if a method takes a Long argument
Axis will expect soapenc:long and instead it gets xsd:long.

Will wrapped doc/literal make this possible and allow sending null
values which is not possible with the primitive types? Or is the
recommendation to always use primitive types and forget about the
wrapper objects?

Thank you for your answers.

--
Tim



wrapped doc/literal and Object vs. primitive types

2005-04-05 Thread Tim K. (Gmane)
Hello,
Is it OK to use the wrapper objects and arrays of wrapper objects, e.g. 
Long and Long[] vs. long and long[] for wrapped doc/literal? Will this 
work with .NET?

I know that it doesn't work for rpc/encoded with .NET as .NET will send 
xsd:long rather than soapenc:long so if a method takes a Long argument 
Axis will expect soapenc:long and instead it gets xsd:long.

Will wrapped doc/literal make this possible and allow sending null 
values which is not possible with the primitive types? Or is the 
recommendation to always use primitive types and forget about the 
wrapper objects?

Thank you for your answers.
--
Tim