I also fail to understand why such a basic thing like null string should be considered as edge case.
Recently I evaluated two market leading App Servers providing web services features. All of them failed for null java.lang.String. I feel SOAP serialization/deserialization implementations are still immature and there needs to be a lot of improvements in this area to foster interoperability. I had tested application servers just for echo of integer (it can not get any simpler) and still they failed to interoperate based on WSDL contract. Regards, Soumen Sarkar. -----Original Message----- From: Brian Gilman [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 05, 2001 9:37 AM To: [EMAIL PROTECTED] Subject: Re: NullPointerException when serializing null String objects Hello all, I'm sorry to be such a dim light here but can you tell us why this is considered an "edge case"?? I'd think that most people who are writing code to marshall/unmarshall objects on the wire would encounter this problem. What am I missing?? Is there, in your estimation of our code that we sent, some better way of doing things?? Thanks in advance! -B ----------------------- Brian Gilman <[EMAIL PROTECTED]> Sr. Software Engineer MIT/Whitehead Inst. Center for Genome Research One Kendall Square, Bldg. 300 / Cambridge, MA 02139-1561 USA phone +1 617 252 1069 / fax +1 617 252 1902 On Wed, 5 Dec 2001, Sam Ruby wrote: > David Turner wrote: > > > > I ran into a problem with SOAP's current String serialization when it > > encounters null String objects. I couldn't find anything in either the > > user or dev archives regarding this so I don't know if this is a bug or > > not. > > > > I ended up writing my own String serializer which handled the null > > situation. I only used my String serializer on the client side when > > sending data to the service -- the soap service just uses the default > > soap String serializer/deseralizer. I have attached the source code > > for my String serializer in case it can be incorporated into SOAP. > > > > What I would like to know is if this is currently an issue or not? Is > > SOAP currently able to handle null String objects during serializing? > > I'd classify this as a known bug. It is present in a number of SOAP > implementations - something you can graphically see by looking at the third > row of http://www.mds.rmit.edu.au/~ajk/soap/interop-results.htm#r2a > > The particular implementation you sent is missing a key element of the > current Apache SOAP 2.2 implementation - namely a call to > Utils.cleanString. > > In any case, the problem you have reported and a number of other important > "edge cases" have been addressed in Apache Axis. > > - Sam Ruby > >