"for some critical problems there is simple solution" :)
and this problem falls in this category,
the solutions is use double quotes for your number like string :)
means the xml should be like this

<securityMasterByCusipResponse xmlns="http://ftgsmt040vwin/RSSXSD/";>
<securityMasterByCusip>
<masterList>
<cusip>"26144E101"</cusip>
<price>0.068</price>
<symbol>DRGG</symbol>
<securityName>DRAGON INTL GROUP</securityName>
</masterList>
</securityMasterByCusip>
</securityMasterByCusipResponse>

This has been tested using HTTPService.
Want to test
I hosted two file abc.xml and abc2.xml (http://
imtiyaz.ms.googlepages.com/abc.xml  and 
http://imtiyaz.ms.googlepages.com/abc2.xml)
and calling them in httpservice to see the result
http://imtiyaz.ms.googlepages.com/serviceexample.html

Regards,
Imtiyaz Basha M S

On Sep 25, 6:50 pm, Sailaja <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Did you get a solution to this.
> I face the same problem. pl let us know.
>
> Regards,
> Sailaja
>
> On Aug 8, 10:42 am, Vikram <[EMAIL PROTECTED]> wrote:
>
> > Hi,
>
> > Thanks for replying. But that does not work because by the time
> > objectproxy creates the object the data is alrady converted so
> > object.cusip.toString() returns me the string representation of the
> > converted value. I need to make sure that when Flex creates the object
> > from the XML returned, it should not convert this value to numeric.
>
> > By the way I am using Cairngorm framework and the callback method
> > which gets the response back from the web service is inside a command
> > object.
>
> > This is the class
>
> > public class GetSecurityMasterByCusipCommand implements IResponder,
> > ICommand
> > {
> >   private var model : RSSModel = RSSModel.getInstance();
> >   public function execute(event : CairngormEvent) : void
> >   {
> >     var gde : DocumentDetailsEvent = event as DocumentDetailsEvent;
> >     var delegate : RSSDelegate = new RSSDelegate( this );
> >     delegate.getSecurityMasterByCusip(gde.request as
> > SecurityMasterByCusipRequestVO);
> >   }
>
> >   /**
> >    * Result function. Used to get and process the response from
> >    * the server.  Called by the Cairngorm framework.
> >    *
> >    * @param event
> >    */
> >   public function result(data:Object):void
> >   {
> >    var contentObject:Object =
>
> > data.result.securityMasterByCusipResponse.securityMasterByCusip.masterList;
> >    model.cusip = Object.cusip; //This Model is used by the User
> > Interface to populate the textbox
> >    //model.cusip shows the converted value irrespective of whether I
> > cast the value or not
> >   }
>
> > }
>
> > Regards
> > Vikram
>
> > On Aug 8, 3:27 am, "<mx:AnandVardhan/>" <[EMAIL PROTECTED]>
> > wrote:
>
> > > Hi,
> > > String(Object.cusip)
> > > or Object.cusip.toString()
>
> > > will solve your problem.
>
> > > Anand
> > > (Adobe Certifed Developer)
>
> > > On 8 Aug, 01:43, Vikram <[EMAIL PROTECTED]> wrote:
>
> > > > Hi everyone,
>
> > > > I am a newbie at flex and I was trying to write a small program which
> > > > calls a .NET web service which returns the information in a xml format
> > > > and the XML is returned to the Flex method. everything works fine but
> > > > sometimes when the Data contains something like 122345E104, Flex
> > > > converts this data into a numerical value automatically, because of
> > > > the "E" it thinks it is an Exponential symbol. How can I prevent this
> > > > from happenning.
>
> > > > Eg if the data returned from the web service is as following
>
> > > > <securityMasterByCusipResponse xmlns="http://ftgsmt040vwin/RSSXSD/";>
> > > > <securityMasterByCusip>
> > > > <masterList>
> > > > <cusip>26144E101</cusip>
> > > > <price>0.068</price>
> > > > <symbol>DRGG</symbol>
> > > > <securityName>DRAGON INTL GROUP</securityName>
> > > > </masterList>
> > > > </securityMasterByCusip>
> > > > </securityMasterByCusipResponse>
>
> > > > I have a method like this to read the data which is called as a
> > > > callback to the aysnchronous web service call
>
> > > > public function result(data:Object):void
> > > > {
> > > > var contentObject:Object =
> > > > data.result.securityMasterByCusipResponse.securityMasterByCusip.masterList;
> > > > cusipText.Text = Object.cusip; // this returns 2.61440000000000e+105
> > > > instead of 26144E101
>
> > > > }
>
> > > > Please help me to resolve this issue.
>
> > > > Thanks in advance
>
> > > > Regards
> > > > Vikram- Hide quoted text -
>
> > > - Show quoted text -- Hide quoted text -
>
> > - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to