Hi,

I have a webservice GetEmployeeDetails 
here is the SOAP response. so how do i access this using mx:webservice ?

here is my sample code:
<mx:WebService id="WeatherService"
wsdl="http://localhost:4581/MyWebService/Service.asmx?WSDL";
useProxy="false" >

ActionScript:
WeatherService.GetEmployeeDetails.send();
txtA.text = 
WeatherService.GetEmployeeDetails.lastResult.GetEmployeeDetailsResult.Person.Name;

<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";>
  <soap:Body>
    <GetEmployeeDetailsResponse xmlns="http://tempuri.org/";>
      <GetEmployeeDetailsResult>
        <EmpId>int</EmpId>
        <Name>string</Name>
      </GetEmployeeDetailsResult>
    </GetEmployeeDetailsResponse>
  </soap:Body>
</soap:Envelope>

Thanks
Raghavendra

Reply via email to