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

Reply via email to