java.sql.Timestamp does not have a default constructor, which Apache SOAP requires for instantiation. An alternative for you would be to return a java.util.Date, which Apache SOAP knows how to serialize and de-serialize.
On 2 Jun 2003 at 10:54, Jonathan Roberts wrote: > Hi. > > I'm getting the following errors on the response from the soap server : > > on the > r = c.invoke ( new URL( mstrHostString + "/soap/servlet/rpcrouter"), "" ); > call > where Response r; > and Call c; > --------------------------------------------------------------------------- > > Error report : > 1. If information exists and is returned : > > Unable to instantiate 'java.sql.Timestamp': java.sql.Timestamp > > You chose fetchAccountUsingAccountNo 10015301 > > Exception = [SOAPException: faultCode=SOAP-ENV:Client; msg=Unable to instantiate > 'java.sql.Timestamp': java.sql.Timestamp; targetException=java.lang.IllegalAr > > gumentException: Unable to instantiate 'java.sql.Timestamp': java.sql.Timestamp]. > > ---------------------------------------------------------------------------------------------------- > 2. If no information: > > Exception = [SOAPException: faultCode=SOAP-ENV:Client; msg= > > Can't yet deserialize non-null Objects; > > targetException=java.lang.IllegalArgumentException: Can't yet deserialize non-null > Objects] > > ------------------------------------------ > > Isssues : > > 1. I'm aware of problems with the timestamp and have set it up in the client side > thus have named it explicitly : > > QName qn9 = new QName("urn:xml-IVR-App", "java.sql.Timestamp"); > //map the type > smr.mapTypes(Constants.NS_URI_SOAP_ENC, qn9, java.sql.Timestamp.class, bsr, bsr); > //telling the call object to use this mapping > c.setSOAPMappingRegistry(smr); > > 2. and the xml > > <isd:map encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" > > xmlns:x="urn:xml-IVR-App" > > qname="x:java.sql.Timestamp" > > javaType="java.sql.Timestamp" > > java2XMLClassName="org.apache.soap.encoding.soapenc.BeanSerializer" > > xml2JavaClassName="org.apache.soap.encoding.soapenc.BeanSerializer" > > /> > > 3. Wierder - this works on the development machine but not on the stand-alone Test > Server. > > Any help would be appreciated. > > Jonathan > > > > > > > --------------------------------- > Yahoo! Plus - For a better Internet experience > Scott Nichol Do not reply directly to this e-mail address, as it is filtered to only receive e-mail from specific mailing lists.