RE: [flexcoders] WebService call with more than one argument in call
"Positional" parameters work fine for me against my dot.net web service. Though I use the send() syntax: atCall = wsOperation.send(sKey1,sKey2,_sSId); Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Josh McDonald Sent: Monday, June 30, 2008 6:56 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] WebService call with more than one argument in call You want: myService.myOperation.arguments = { parm1: value1, parm2: value2 }; myService.myOperation.send(); -Josh On Mon, Jun 30, 2008 at 5:39 PM, dsb1971 <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > wrote: Hello group, I am new to Flex and try to play around with WebServcies. Everything is ok when I only have one paramter as an argument for the service. But when I try to use more than one parameter to hand over to the service-operation, the value of the first argument overwrites the second argument. I do call the Service in this way: webService.myoperation('D','990'); I did some traffic-sniffing using fiddler and the sent request looks like this: http://schemas.xmlsoap.org/soap/envelope/ <http://schemas.xmlsoap.org/soap/envelope/> " xmlns:xs="http://www.w3.org/2001/XMLSchema <http://www.w3.org/2001/XMLSchema> " xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance <http://www.w3.org/2001/XMLSchema-instance> "> http://sv.wsbeans.iseries/xsd <http://sv.wsbeans.iseries/xsd> "> D D Whereas it should look like this: ... D 990 ... Am I doing something wrong or is this a bug in Flex when dealing with more than one parameter in the service call? I couldn't find an example where a webservice uses more than one argument but my call is just the way it is described in the manual. Does anybody have a link to a working example that uses webservices with more than one argument? Btw.: up to now I do use the trial version of Flex Builder 3 - maybe this is a limitation of the trial version? Thanks in advance for any hint, Daniel Schlichtholz -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt <http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt> Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo <http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo> ! Groups Links (Yahoo! ID required) mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> -- "Therefore, send not to know For whom the bell tolls. It tolls for thee." :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
Re: [flexcoders] WebService call with more than one argument in call
You want: myService.myOperation.arguments = { parm1: value1, parm2: value2 }; myService.myOperation.send(); -Josh On Mon, Jun 30, 2008 at 5:39 PM, dsb1971 <[EMAIL PROTECTED]> wrote: > Hello group, > > I am new to Flex and try to play around with WebServcies. Everything > is ok when I only have one paramter as an argument for the service. > But when I try to use more than one parameter to hand over to the > service-operation, the value of the first argument overwrites the > second argument. I do call the Service in this way: > > webService.myoperation('D','990'); > > I did some traffic-sniffing using fiddler and the sent request looks > like this: > > ENV="http://schemas.xmlsoap.org/soap/envelope/"; > xmlns:xs="http://www.w3.org/2001/XMLSchema"; > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";> > >http://sv.wsbeans.iseries/xsd";> > >D >D > > > > > Whereas it should look like this: > ... >D >990 > ... > Am I doing something wrong or is this a bug in Flex when dealing with > more than one parameter in the service call? I couldn't find an > example where a webservice uses more than one argument but my call is > just the way it is described in the manual. Does anybody have a link > to a working example that uses webservices with more than one > argument? > > Btw.: up to now I do use the trial version of Flex Builder 3 - maybe > this is a limitation of the trial version? > > Thanks in advance for any hint, > > Daniel Schlichtholz > > > > > -- > Flexcoders Mailing List > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > Search Archives: > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups > Links > > > > -- "Therefore, send not to know For whom the bell tolls. It tolls for thee." :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED]
[flexcoders] WebService call with more than one argument in call
Hello group, I am new to Flex and try to play around with WebServcies. Everything is ok when I only have one paramter as an argument for the service. But when I try to use more than one parameter to hand over to the service-operation, the value of the first argument overwrites the second argument. I do call the Service in this way: webService.myoperation('D','990'); I did some traffic-sniffing using fiddler and the sent request looks like this: http://schemas.xmlsoap.org/soap/envelope/"; xmlns:xs="http://www.w3.org/2001/XMLSchema"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";> http://sv.wsbeans.iseries/xsd";> D D Whereas it should look like this: ... D 990 ... Am I doing something wrong or is this a bug in Flex when dealing with more than one parameter in the service call? I couldn't find an example where a webservice uses more than one argument but my call is just the way it is described in the manual. Does anybody have a link to a working example that uses webservices with more than one argument? Btw.: up to now I do use the trial version of Flex Builder 3 - maybe this is a limitation of the trial version? Thanks in advance for any hint, Daniel Schlichtholz
[flexcoders] WebService call
I have a webservice running on a local glassfish server. I can access the url from the browser and retreive the wsdl xml manually. When I run the swf from the webpage nothing happens (no responce or error), when I run swf on my local system it gives me this error [RPC Fault faultString="Security error accessing url"... I have tried using a crossdomain.xml, thinking this may be the problem, but it isn't. In my flex code I have the following. This is based on some Cairgorm examples that I found online. Services.mxml ~ http://localhost:8084/ffsys/DataProvider?wsdl"; useProxy="false"> LoginDelegate.as ~ public function LoginDelegate( responder:IResponder ) { this.responder = responder; this.svc = ServiceLocator.getInstance().getWebService("wServ"); } public function login(loginAttempt:LoginAttempt):void { this.service.loadWsdl(); var token:AsyncToken = this.service.getUser(); token.addResponder( responder ); } ~ One more thing I would like to point out is that my wsdl referes to a strange url sometimes refered to as the servicename which is usually in the format http://{the jave package the service is in}/{Service Name}, I know this is out of the scope of flex programming but maybe it will help. I can utilize HTTPService requests fine as well, just not WebService requests
Re: [flexcoders] WebService Call
Yeah, Try something more like (I'm not sure what your 'FlexData' object was supposed to refer to... ): id="wsTest" wsdl="http://localhost:9126/SOAP " fault="{trace(-1);}" result="{trace(1);}"/> On 7/26/06, richmcgillicuddy <[EMAIL PROTECTED]> wrote: I have a simple web service calling a SOAP web service on my localmachine. The call looks like:wsdl=" http://localhost:9126/SOAP"load="wsTest.FlexData.getData()"fault="trace(-1);" />It seems to hang waiting for localhost and if I let it wait longenough, it will give me the following error: ReferenceError: Error #1069: Property getData not found onmx.rpc.soap.mxml.Operation and there is no default value.at Step2/__wsTest_load()...On the Web Server side, I am looking for client connects from flash and do not seem to get even the client connect. Any ideas?Is there anything that looks odd with the WebService statement?Rich -- : : ) Scott __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
RE: [flexcoders] WebService Call
Don’t Webservices require an operation? Tracy From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of richmcgillicuddy Sent: Wednesday, July 26, 2006 7:58 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] WebService Call I have a simple web service calling a SOAP web service on my local machine. The call looks like: wsdl="http://localhost:9126/SOAP" load="wsTest.FlexData.getData()" fault="trace(-1);" /> It seems to hang waiting for localhost and if I let it wait long enough, it will give me the following error: ReferenceError: Error #1069: Property getData not found on mx.rpc.soap.mxml.Operation and there is no default value. at Step2/__wsTest_load() ... On the Web Server side, I am looking for client connects from flash and do not seem to get even the client connect. Any ideas? Is there anything that looks odd with the WebService statement? Rich __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
[flexcoders] WebService Call
I have a simple web service calling a SOAP web service on my local machine. The call looks like: http://localhost:9126/SOAP"; load="wsTest.FlexData.getData()" fault="trace(-1);" /> It seems to hang waiting for localhost and if I let it wait long enough, it will give me the following error: ReferenceError: Error #1069: Property getData not found on mx.rpc.soap.mxml.Operation and there is no default value. at Step2/__wsTest_load() ... On the Web Server side, I am looking for client connects from flash and do not seem to get even the client connect. Any ideas? Is there anything that looks odd with the WebService statement? Rich -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/