Re: [Flashcoders] AS2 SOAP web service

2008-04-01 Thread Jason Van Cleave
you can try and authenticate before you go to the page or hardcode your
user/pass like

var url:String = http://user:[EMAIL PROTECTED];

On Mon, Mar 31, 2008 at 11:32 AM, Gert-Jan van der Wel 
[EMAIL PROTECTED] wrote:

 Hi everybody,

 I'm having some trouble with connecting to a SOAP web service from my
 AS2 app. I need to log in on the web service to use it, but I don't
 know when I should use the login/pass. I use this script:

 var service:WebService = new WebService( url );
 var call:PendingCall = service.doSomething();

 call.onResult = function( result:XML ) {
trace( result );
 };
 call.onFault = function( fault:SOAPFault ) {
trace(Webservice fault: + fault.faultcode + , +
 fault.faultstring );
 }

 When I run it on my local machine there's no problem, but when I run
 it from our server a html dialog appears and I get a SOAPFault.

 Any suggestions?

 Cheers,
 Gert-Jan



 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] AS2 SOAP web service

2008-04-01 Thread Gert-Jan van der Wel
Thanks for your suggestion, but it doesn't seem to work...

Gert-Jan

2008/4/1, Jason Van Cleave [EMAIL PROTECTED]:

 you can try and authenticate before you go to the page or hardcode your
 user/pass like

 var url:String = http://user:[EMAIL PROTECTED];


 On Mon, Mar 31, 2008 at 11:32 AM, Gert-Jan van der Wel 
 [EMAIL PROTECTED] wrote:

  Hi everybody,
 
  I'm having some trouble with connecting to a SOAP web service from my
  AS2 app. I need to log in on the web service to use it, but I don't
  know when I should use the login/pass. I use this script:
 
  var service:WebService = new WebService( url );
  var call:PendingCall = service.doSomething();
 
  call.onResult = function( result:XML ) {
 trace( result );
  };
  call.onFault = function( fault:SOAPFault ) {
 trace(Webservice fault: + fault.faultcode + , +
  fault.faultstring );
  }
 
  When I run it on my local machine there's no problem, but when I run
  it from our server a html dialog appears and I get a SOAPFault.
 
  Any suggestions?
 
  Cheers,
  Gert-Jan
 
 
 

  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




-- 
Gert-Jan van der Wel
Co-Founder  CTO

Floorplanner.com
+31 (0)10 281 0799
+31 (0)6 1665 0338
[EMAIL PROTECTED]
http://www.floorplanner.com
skype: gertjan-floorplanner
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] AS2 SOAP web service

2008-04-01 Thread Hans Wichman
hi,
creating a webservice is asynchronous, at least in as2, you will have
to wait for the creation to complete.
That probably doesnt solve your problem ,but is a prerequisite anyway

greetz
JC

On Tue, Apr 1, 2008 at 11:46 AM, Gert-Jan van der Wel
[EMAIL PROTECTED] wrote:
 Thanks for your suggestion, but it doesn't seem to work...

 Gert-Jan

 2008/4/1, Jason Van Cleave [EMAIL PROTECTED]:

 
  you can try and authenticate before you go to the page or hardcode your
  user/pass like
 
  var url:String = http://user:[EMAIL PROTECTED];
 
 
  On Mon, Mar 31, 2008 at 11:32 AM, Gert-Jan van der Wel 
  [EMAIL PROTECTED] wrote:
 
   Hi everybody,
  
   I'm having some trouble with connecting to a SOAP web service from my
   AS2 app. I need to log in on the web service to use it, but I don't
   know when I should use the login/pass. I use this script:
  
   var service:WebService = new WebService( url );
   var call:PendingCall = service.doSomething();
  
   call.onResult = function( result:XML ) {
  trace( result );
   };
   call.onFault = function( fault:SOAPFault ) {
  trace(Webservice fault: + fault.faultcode + , +
   fault.faultstring );
   }
  
   When I run it on my local machine there's no problem, but when I run
   it from our server a html dialog appears and I get a SOAPFault.
  
   Any suggestions?
  
   Cheers,
   Gert-Jan
  
  
  
 
   ___
   Flashcoders mailing list
   Flashcoders@chattyfig.figleaf.com
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 



 --
 Gert-Jan van der Wel
 Co-Founder  CTO

 Floorplanner.com
 +31 (0)10 281 0799
 +31 (0)6 1665 0338
 [EMAIL PROTECTED]
 http://www.floorplanner.com
 skype: gertjan-floorplanner

 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] AS2 SOAP web service

2008-04-01 Thread Kevin Newman

Is the posted swf and the webservice on the same servers (url)?

If not, you may have a crossdomain.xml policy  issue.

Kevin N.


Gert-Jan van der Wel wrote:

Thanks for your suggestion, but it doesn't seem to work...

Gert-Jan

2008/4/1, Jason Van Cleave [EMAIL PROTECTED]:
  

you can try and authenticate before you go to the page or hardcode your
user/pass like

var url:String = http://user:[EMAIL PROTECTED];


On Mon, Mar 31, 2008 at 11:32 AM, Gert-Jan van der Wel 
[EMAIL PROTECTED] wrote:



Hi everybody,

I'm having some trouble with connecting to a SOAP web service from my
AS2 app. I need to log in on the web service to use it, but I don't
know when I should use the login/pass. I use this script:

var service:WebService = new WebService( url );
var call:PendingCall = service.doSomething();

call.onResult = function( result:XML ) {
   trace( result );
};
call.onFault = function( fault:SOAPFault ) {
   trace(Webservice fault: + fault.faultcode + , +
fault.faultstring );
}

When I run it on my local machine there's no problem, but when I run
it from our server a html dialog appears and I get a SOAPFault.

Any suggestions?

Cheers,
Gert-Jan


  



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] AS2 SOAP web service

2008-04-01 Thread Gert-Jan van der Wel
No, they're not on the same domain. I thought that you only needed a
crossdomain.xml when communicating between swf's. Do you also need one with
web services?

Gert-Jan

2008/4/1, Kevin Newman [EMAIL PROTECTED]:

 Is the posted swf and the webservice on the same servers (url)?

 If not, you may have a crossdomain.xml policy  issue.

 Kevin N.



 Gert-Jan van der Wel wrote:
  Thanks for your suggestion, but it doesn't seem to work...
 
  Gert-Jan
 
  2008/4/1, Jason Van Cleave [EMAIL PROTECTED]:
 
  you can try and authenticate before you go to the page or hardcode your
  user/pass like
 
  var url:String = http://user:[EMAIL PROTECTED];
 
 
  On Mon, Mar 31, 2008 at 11:32 AM, Gert-Jan van der Wel 
  [EMAIL PROTECTED] wrote:
 
 
  Hi everybody,
 
  I'm having some trouble with connecting to a SOAP web service from my
  AS2 app. I need to log in on the web service to use it, but I don't
  know when I should use the login/pass. I use this script:
 
  var service:WebService = new WebService( url );
  var call:PendingCall = service.doSomething();
 
  call.onResult = function( result:XML ) {
 trace( result );
  };
  call.onFault = function( fault:SOAPFault ) {
 trace(Webservice fault: + fault.faultcode + , +
  fault.faultstring );
  }
 
  When I run it on my local machine there's no problem, but when I run
  it from our server a html dialog appears and I get a SOAPFault.
 
  Any suggestions?
 
  Cheers,
  Gert-Jan
 
 
 


 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] AS2 SOAP web service

2008-03-31 Thread Gert-Jan van der Wel

Hi everybody,

I'm having some trouble with connecting to a SOAP web service from my  
AS2 app. I need to log in on the web service to use it, but I don't  
know when I should use the login/pass. I use this script:


var service:WebService = new WebService( url );
var call:PendingCall = service.doSomething();

call.onResult = function( result:XML ) {
trace( result );
};
call.onFault = function( fault:SOAPFault ) {
	trace(Webservice fault: + fault.faultcode + , +  
fault.faultstring );

}

When I run it on my local machine there's no problem, but when I run  
it from our server a html dialog appears and I get a SOAPFault.


Any suggestions?

Cheers,
Gert-Jan



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders