0 Replies Latest reply on Sep 20, 2007 2:05 AM by kittuokkade

    how to input xmlstring to webservice from flex

    kittuokkade Level 1
      hi ,

      i want to send xml string as input to a webservice .i had a problem with this. iam pasting the code iam using.

      public var sResult:String="<?xml version='1.0' encoding='UTF-8' ?>
      <mx:WebService id="myws"
      wsdl=" http://localhost:8080/myws/method?wsdl"
      <mx:operation name="getCD" result="resultHandler(event)" fault="Alert.show(event.fault.message)">
      <String_1> {sResult} </String_1>
      <mx:Panel width="652" height="408">
      <mx:Button x="368" y="2" label="Lot_id" id="mybutton" click="myws.getCD.send()"/>

      when i use any string for sResult .it is working fine.but when i use xml string it is giving the error SOAP request error.
      i need ur help.