1 Reply Latest reply on Oct 17, 2007 1:41 AM by kittuokkade

    Help with Web Service and Action Script

    iconst-0
      Hi! I have a Web Service to which I should pass multiple parameters. I would like to implement it completely in Action Script for studing. What's happening is that in the call I pass 3 parameters and the soap message created is repeating the first parameter. Let me explain better:

      Here is the declaration of the webService:
      quote:


      <mx:WebService
      id="ws"
      wsdl=" http://127.0.0.1:8080/WS1/pessoaService/pessoa.wsdl">
      <mx:operation name="PesquisarPessoa">
      <mx:request>
      <PesquisarPessoaRequest>
      <id>{fieldId0.text}</id>
      <nome>{fieldNome0.text}</nome>
      <endereco>{fieldEndereco0.text}</endereco>
      </PesquisarPessoaRequest>
      </mx:request>
      </mx:operation>
      </mx:WebService>



      Here is my action script which invokes the PesquisarPessoa operation:
      quote:


      private function exibirAlterarRegistro():void {
      ws.PesquisarPessoa(fieldId0.text, fieldNome0.text, fieldEndereco0.text);
      }


      Here is the message catched by the web service (It repeats the first parameter):
      quote:


      <SOAP-ENV:Body>
      <schema:PesquisarPessoaRequest xmlns:schema=" http://www.example.org/Pessoa">
      <schema:id>3</schema:id>
      <schema:nome>3</schema:nome>
      <schema:endereco>3</schema:endereco>
      </schema:PesquisarPessoaRequest>
      </SOAP-ENV:Body>



      Thanks!