Welcome, Guest. Please login or register.
Did you miss your activation email?
05/21/12, 04:19
Home Help Search Login Register
News: Parsley Flex framework review featuring quiz application, in our Flex frameworks series
Flex SDK 4.5 mobile roadmap: begin with your mobile development
Swiz Flex framework review featuring quiz application
New homepage we release our new Homepage, take a look ...

+  Flash-db
|-+  Server side Scripting and Database Support
| |-+  Web Services: XML, Soap, WSDL, UDDI, and Flash Integration (Moderators: Flash-db, Musicman, vesa kortelainen, Ronald Wernecke, Jorge Solis)
| | |-+  WSDL AS 2 Class
0 Members and 2 Guests are viewing this topic. « previous next »
Pages: 1 2 [3] Print
Author Topic: WSDL AS 2 Class  (Read 23745 times)
Cameron
Server what's that
*
Posts: 28


View Profile WWW
« Reply #30 on: 05/16/06, 00:46 »

When it is doing this:

Code:
var pc:PendingCall = this.service.dns(domainname);
pc.responder = new RelayResponder(this, "handleResult", "handleError");

the service.dns might be getting lost because it is say that isn't defined.
Logged

Save Water
Drink Beer
nothingGrinder
Mods
Systems Administrator
*****
Posts: 823


Automatic websites with social media distribution


View Profile WWW
« Reply #31 on: 05/16/06, 02:07 »

maybe try creating a Log(); for the non remoting service call as well and compare the two, see if they are the same or not.
Logged

nothingGrinder
Mods
Systems Administrator
*****
Posts: 823


Automatic websites with social media distribution


View Profile WWW
« Reply #32 on: 05/20/06, 10:29 »

well, i got the webservice to connect through the remoting gateway. I think it was just the service that was messed up.
Logged

Cameron
Server what's that
*
Posts: 28


View Profile WWW
« Reply #33 on: 05/22/06, 18:34 »

Hi what services did you use so I can try it out.
Logged

Save Water
Drink Beer
nothingGrinder
Mods
Systems Administrator
*****
Posts: 823


Automatic websites with social media distribution


View Profile WWW
« Reply #34 on: 05/22/06, 18:43 »

i used secpay, its a payment gateway.

https://www.secpay.com/java-bin/services/SECCardService?wsdl

is the wsdl
Logged

Cameron
Server what's that
*
Posts: 28


View Profile WWW
« Reply #35 on: 05/24/06, 18:32 »

Hi I am having a new problem, it works fine in the Flash IDE but when I try use it in a browser it doesn't work.

The debugger outputs this how do I fix this?

*** Security Sandbox Violation ***
Connection to http://www.cosme.nu/services/dns.php?wsdl halted - not permitted from http://www.ispot.co.nz/test.swf
5/25 11:34:50 [INFO] : Faulting previously queued call dns
Warning: Reference to undeclared property, 'faultCode'
-- Probably a case mismatch.
undefined,Could not load WSDL
Logged

Save Water
Drink Beer
nothingGrinder
Mods
Systems Administrator
*****
Posts: 823


Automatic websites with social media distribution


View Profile WWW
« Reply #36 on: 05/24/06, 18:46 »

are you using remoting?

if so try calling your service without an onFault handler..
Logged

Cameron
Server what's that
*
Posts: 28


View Profile WWW
« Reply #37 on: 05/24/06, 19:00 »

The wsdl I am using doesn't work with remoting so I am using web services.
Logged

Save Water
Drink Beer
nothingGrinder
Mods
Systems Administrator
*****
Posts: 823


Automatic websites with social media distribution


View Profile WWW
« Reply #38 on: 05/24/06, 19:04 »

ok, you need a crossdomain.xml policy file on the server that the WSDL file resides, otherwise the .swf cant access the service. This is a security restriction of the new API. It will work fine from the Flash IDE but when going live, if the crossdomain.xml file isnt there, it will return nothing.
Logged

Cameron
Server what's that
*
Posts: 28


View Profile WWW
« Reply #39 on: 05/24/06, 19:11 »

So I can't do anything to fix this, do you need the samething when you use remoting?
Logged

Save Water
Drink Beer
nothingGrinder
Mods
Systems Administrator
*****
Posts: 823


Automatic websites with social media distribution


View Profile WWW
« Reply #40 on: 05/24/06, 19:24 »

no  you dont, not with remoting, because the call goes by way of PHP or XML so its not an issue. Im unable to connect to your service via NuSoap, i think there is some problem with the NuSoap output. The service im using cannot parse the XML that NuSOAP sends so you  might try SOAPobject(PHP 5) or PEAR or just create a function taht sends XML if  you need to use remoting. Luckily for me, the service provider is paid for so placing the crossdomain.xml policy file on the server is no issue.
Logged

cosmicbdog
Server what's that
*
Posts: 11


View Profile Email
« Reply #41 on: 04/28/07, 01:29 »

hey guys, interesting read and thanks for the info.

i am using amfphp as well and have got it all connected and can do the basics of filling up a datagrid.

My challenge however is with not just filling up a list or a datagrid but to be able to put data from the query into a texfield or something.

My php sql code looks like :

   function displayEventTypeInfo($loctype) {
      
         $sql = "SELECT description FROM eventtypes WHERE loctype='" . $loctype . "' LIMIT 1";
   
   
         NetDebug::trace($sql);
         
   
         $query = mysql_query($sql);
         
         return $query;
         
      }



Once doing the ussual amfphp protocol stuff I an fill up a grid with:
dgEvents.dataProvider = re.result

I wish it were just as easy to populate the textArea i have but I'm trying things like...

   var myText:String = re.result._items[0];
   testtext.htmlText = myText;
which doesn't work

Any help greatly appreciated!!!

Thanks
Logged
cosmicbdog
Server what's that
*
Posts: 11


View Profile Email
« Reply #42 on: 04/28/07, 02:11 »

My understanding with php says that you need to convert a result into a row to get the data out of it. I'm assuming this fancy amfphp is doing all of that for me since it can populate a grid purely off that result.

I feel like there are all these objects to afmphp that I'm unaware of. For example, where does re.result come from? is that an actionscript thing or amfphp?

Another super newbie question, but when you guys were talking about using " re.result._items[0] " is the "._items" like a mysql row in php?

So instead of having to do something like...

$row = mysql_fetch_array($res);

Does flash just create these rows automatically?

Please excuse the reptition in my wording... having trouble explaining this
Logged
Jorge Solis
Administrator
Systems Administrator
*****
Posts: 14600


View Profile
« Reply #43 on: 04/28/07, 05:22 »

re.result._items[0] is an AS array with keys, so to thow in a textfield you should add the property (column), i.e:

mytextfield.text = re.result._items[0].Name

Jorge
Logged

cosmicbdog
Server what's that
*
Posts: 11


View Profile Email
« Reply #44 on: 04/28/07, 10:59 »

hey presto!!!!!!!!!!!!  Cheesy
Logged
Pages: 1 2 [3] Print 
« previous next »
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
anything