How about a String[] some of them containing null String. I encountered failure with some AppServers. I don't know the status for Apache SOAP servlet.
By the way, does Axis or SOAP do multi-ref serilization? If I send a String[] containing identical strings, will I see use of XML id/href in the wire? Regards, Soumen Sarkar. -----Original Message----- From: Sanjiva Weerawarana [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 06, 2001 11:37 AM To: [EMAIL PROTECTED] Subject: Re: NullPointerException when serializing null String objects Sam Ruby writes: > Here's a wiredump of a client trying to pass nulls to an Apache SOAP 2.2: > > http://www.mds.rmit.edu.au/~ajk/soap/interop/r2/Apache%25202.2/echoString%25 20(null).txt > > True, it is not an Apache SOAP 2.2 client, but I am under the opinion that > SOAP is all about interoperability. One should not have the perception > that Apache SOAP 2.2 server only works if there is an Apache SOAP 2.2 > client. I just tried that with the current CVS and it appears to work correctly (dumps shown below). You must've committed a fix .. but I don't see what fix was needed; I traced thru the logic and echoString with null strings should work just fine. Here's the input: ===== POST /soap/servlet/rpcrouter HTTP/1.0 Host: localhost Content-Type: text/xml; charset=utf-8 Content-Length: 470 SOAPAction: "http://soapinterop.org/" <?xml version='1.0' encoding='UTF-8'?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <SOAP-ENV:Body> <ns1:echoString xmlns:ns1="http://soapinterop.org/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <inputString xsi:type="xsd:string" xsi:null="true"/> </ns1:echoString> </SOAP-ENV:Body> </SOAP-ENV:Envelope> ===== And the output: ===== HTTP/1.0 200 OK Date: Thu, 06 Dec 2001 19:30:15 GMT Status: 200 Set-Cookie2: JSESSIONID=To1042mC4836555284322869At;Version=1;Discard;Path="/soap" Servlet-Engine: Tomcat Web Server/3.1 (JSP 1.1; Servlet 2.2; Java 1.3.0_02; Windows 2000 5.0 x86; java.vendor=Sun Microsystems Inc.) Set-Cookie: JSESSIONID=To1042mC4836555284322869At;Path=/soap Content-Type: text/xml; charset=utf-8 Content-Length: 483 Content-Language: en <?xml version='1.0' encoding='UTF-8'?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <SOAP-ENV:Body> <ns1:echoStringResponse xmlns:ns1="http://soapinterop.org/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <return xsi:type="xsd:string" xsi:null="true"/> </ns1:echoStringResponse> </SOAP-ENV:Body> </SOAP-ENV:Envelope> ===== Sanjiva.