veja se na tag mx:WebService num tem um atributo para fault, é interessante
implementar o fault pra ver os erros que chegam :)

dá uma olhada na documentação do bicho tb é uma ótima.

[s]
George

2009/6/29 Vinicius <vinu...@gmail.com>

>
> George: fiz a mudana e não deu o erro.
>
> Marcel, o parâmetro de entrada é uma String e meu código ficou assim:
>
> <?xml version="1.0" encoding="utf-8"?>
> <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml";
> layout="absolute">
>
> <mx:Script>
>        <![CDATA[
>                import mx.rpc.events.ResultEvent;
>                import mx.controls.Alert;
>
>                private function resultHandler(event:ResultEvent):void{
>
>                        var result:String = event.result as String;
>                        Alert.show(result);
>
>
>
>
>                }
>
>        ]]>
> </mx:Script>
>
> <mx:WebService
>        id="PPService"
>        wsdl="http://webcasting.giga.cpqd.com.br/axis2/services/PPService?
> wsdl"
>        result="resultHandler(event);"
>        showBusyCursor="true"
> >
>
> <mx:operation name="testando">
>
> <mx:request xmlns="">
>
> <testando>{'ola'}</testando>
>
> </mx:request>
>
>
> </mx:operation>
>
>
>
> </mx:WebService>
>
> </mx:WindowedApplication>
>
>
> Achei que iria printar a resposta com o Alert, tenho q fazer algum
> tipo de execução para testar a operação, pois como antes estava dando
> o erro, eu achei que estava tentando executar a operaçõa.
>
> Obrigado,
> Vinicius.
>
> On 29 jun, 13:52, Marcel Pigozzi <marcelpsara...@gmail.com> wrote:
> > Lembrando que: <testando>(ola)</testando>, na verdade é com chave:
> > <testando>{ola}</testando>
> >
> > abraços
> >
> > 2009/6/29 Vinicius <vinu...@gmail.com>
> >
> >
> >
> >
> >
> > > Pessoal este é meu código:
> >
> > > <?xml version="1.0" encoding="utf-8"?>
> > > <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml";
> > > layout="absolute">
> >
> > > <mx:Script>
> > >        <![CDATA[
> > >                import mx.rpc.events.ResultEvent;
> >
> > >                private function resultHandler(event:ResultEvent):void{
> >
> > >                }
> >
> > >        ]]>
> > > </mx:Script>
> >
> > > <mx:WebService
> > >        id="PPService"
> > >        wsdl="http://www.empresa.com.br/axis2/services/PPService";
> > >        result="resultHandler(event);"
> > >        showBusyCursor="true"
> >
> > > <mx:operation name="testando">
> >
> > > <mx:request xmlns="">
> >
> > > <testando>(ola)</testando>
> >
> > > </mx:request>
> >
> > > </mx:operation>
> >
> > > </mx:WebService>
> >
> > > </mx:WindowedApplication>
> >
> > > Dá esse erro:
> > > [RPC Fault faultString="HTTP request error"
> > > faultCode="Server.Error.Request" faultDetail="Unable to load WSDL. If
> > > currently online, please verify the URI and/or format of the WSDL
> > > (http://webcasting.giga.cpqd.com.br/axis2/services/PPService)"]
> > >        at mx.rpc.wsdl::WSDLLoader/faultHandler()[C:\autobuild
> > > \3.2.0\frameworks\projects\rpc\src\mx\rpc\wsdl\WSDLLoader.as:98]
> > >        at flash.events::EventDispatcher/dispatchEventFunction()
> > >        at flash.events::EventDispatcher/dispatchEvent()
> > >        at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/
> > > internal::dispatchRpcEvent()[C:\autobuild\3.2.0\frameworks\projects\rpc
> > > \src\mx\rpc\AbstractInvoker.as:170]
> > >        at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/
> > > internal::faultHandler()[C:\autobuild\3.2.0\frameworks\projects\rpc\src
> > > \mx\rpc\AbstractInvoker.as:225]
> > >        at
> mx.rpc::Responder/fault()[C:\autobuild\3.2.0\frameworks\projects
> > > \rpc\src\mx\rpc\Responder.as:53]
> > >        at
> > > mx.rpc::AsyncRequest/fault()[C:\autobuild\3.2.0\frameworks\projects
> > > \rpc\src\mx\rpc\AsyncRequest.as:103]
> > >        at DirectHTTPMessageResponder/errorHandler()[C:\autobuild
> > > \3.2.0\frameworks\projects\rpc\src\mx\messaging\channels
> > > \DirectHTTPChannel.as:362]
> > >        at flash.events::EventDispatcher/dispatchEventFunction()
> > >        at flash.events::EventDispatcher/dispatchEvent()
> >
> > > O serviço está certinho, pois com um cliente Java não tive problemas.
> >
> > > Alguém pod eme ajudar?
> >
> > > Obrigado.
> >
> > --
> > Marcel Pigozzihttp://thegeekers.wordpress.com/
> >
> > "Procure ser uma pessoa de valor, em vez de procurar ser uma pessoa de
> > sucesso. O sucesso é conseqüência"
> >
>

--~--~---------~--~----~------------~-------~--~----~
Você recebeu esta mensagem porque está inscrito na lista "flexdev"
Para enviar uma mensagem, envie um e-mail para flexdev@googlegroups.com
Para sair da lista, envie um email em branco para 
flexdev-unsubscr...@googlegroups.com
Mais opções estão disponíveis em http://groups.google.com/group/flexdev
-~----------~----~----~----~------~----~------~--~---

Responder a