I've found a way of converting my string into an object from the QName

 

import org.apache.axis.message.RPCParam;

...

RPCParam rpcparam = new RPCParam(qname, paramValue);

Object paramValueDeserialized = rpcparam.getValue();

 

Not to sure though this is the correct approach or if there is a better more standard approach?

 

Any thoughts anyone?

 

chico.

 

-----Original Message-----
From: Charlesworth, Chico [mailto:[EMAIL PROTECTED]]
Sent: 05 November 2002 15:43
To: '[EMAIL PROTECTED]'
Subject: Deserializer a String into a Object from the Parameter XMLType

 

 

Hi,

 

I want to convert my string value into a object depending on the parameter type. I've tried the following but all I get is a nullpointer exception when invoking the makevalue method on the Deserializer instance.

 

import org.apache.axis.encoding.ser.SimpleDeserializer;

...

QName qname = new QName("http://www.w3.org/2001/XMLSchema", "string");

String paramValue = "val1";

SimpleDeserializer deserializer =

      new SimpleDeserializer(paramValue.getClass(), qname);

Object o = deserializer.makeValue(paramValue);

 

 

Does anyone know of any ideas or examples where I can do this type of conversion?

 

Cheers,

Chico.

 


--

The content of this e-mail is confidential, may contain privileged material and is intended solely for the recipient(s) named above. If you receive this in error, please notify Software AG immediately and delete this e-mail.


Software AG (UK) Limited

Registered in England & Wales 1310740

Registered Office: Hudson House, Hudson Way,

Pride Park, Derby DE24 8HS


--

The content of this e-mail is confidential, may contain privileged material and is intended solely for the recipient(s) named above. If you receive this in error, please notify Software AG immediately and delete this e-mail.


Software AG (UK) Limited

Registered in England & Wales 1310740

Registered Office: Hudson House, Hudson Way,

Pride Park, Derby DE24 8HS

Reply via email to