On Mon, 2007-09-17 at 11:14 +0800, Elmer Mirano wrote:
> Hello, 
> 
>    I'm using AXIS2 in creating web service, I'm creating AXIS2 web
> service using AXIOM. My program runs smoothly, the only problem that I
> encountered is when I pass numeric parameters with decimals. I get these
> errors :
> 
>       org.apache.axis2.AxisFault: For input string: "10.50"
> 
> Could anyone help me on this ?

Here's a sample of my code :

OMFactory fac = OMAbstractFactory.getOMFactory();
OMNamespace omNs =
fac.createOMNamespace("http://com.site.webservices/xsd";, "tns");

OMElement omelement = fac.createOMElement("createAccount", omNs);
......
OMElement price = fac.createOMElement("price", "10.50");
....
omelement.addChild(price);


Options options = new Options();
options.setTo(targetEPRlink );
options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
ServiceClient sender = new ServiceClient();
sender.setOptions(options);
OMElement result = sender.sendReceive(omelement);

The error occurs on the last line of this sample code.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to