Welcome, Guest. Please login or register.
Did you miss your activation email?
05/23/12, 12:36
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
| |-+  Flash Remoting with AMF (Moderators: Flash-db, Musicman, Jorge Solis, papachan, nothingGrinder)
| | |-+  AMFPHP fail to access wsdl once migrated from subdomain to domain !!?!
0 Members and 2 Guests are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: AMFPHP fail to access wsdl once migrated from subdomain to domain !!?!  (Read 1486 times)
kouri
Server what's that
*
Posts: 2



View Profile Email
« on: 08/07/04, 16:48 »

Hi,

I set up an AMFPHP app that connect simultaneously to a MySQL db(conn1) and to a webservice wsdl (conn2)

I set up all this into my subdomain with setDefaultGatewayUrl pointing to my subdomain /flahservices/

NetServices.setDefaultGatewayUrl("http://dev.mydomain.com/.../flashservices/gateway.php");

conn1= NetServices.createGatewayConnection();
conn2= NetServices.createGatewayConnection();

service1 = conn1.getService("GetDataFromMyDb",this);
service2 = conn2.getService("http://<absolute_path_to_the_wsdl>.wsdl",this);
...

As everything works fine I copied everything into my domain once of course having updated my setDefaultGatewayUrl ( pointing now to the domain one)

NetServices.setDefaultGatewayUrl("http://www.mydomain.com/.../flashservices/gateway.php");

Accessing through IE 6, the conn1 works fine and it retrieves all my db data (that means gateway is OK)
but webservice conn2 doesn't work anymore !?!?!

Suspecting a difference in the two AMFPHP files set I  then duplicated all /flashservices files from subdir /dev pat to root domain but no way, it still fails...

Is my trouble linked to Flash sand box and all security changes stuff ?!?
I don't see why! ???
Thx for your help




Logged
Ronald Wernecke
Administrator
Systems Administrator
*****
Posts: 6175


View Profile WWW Email
« Reply #1 on: 08/23/04, 14:43 »

Everything, SWFs and data sources have to come from the same subdomain.
This is a security feature!
Logged

happy flashing
Cool
Ronald
Pages: [1] 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!