Skip to main content
Participant
April 4, 2007
Question

WebService bug

  • April 4, 2007
  • 3 replies
  • 436 views
I am trying to execute the following code:

var wsdlURI = " http://queue.amazonaws.com/doc/2006-04-01/QueueService.wsdl";
sqsService = new WebService(wsdlURI);

// If the WSDL fails to load the onFault event is fired.
sqsService.onFault = function(fault){
trace("Impossible to load sqs webservice: " + fault.faultstring);
}

sqsService.onLoad = function(wsdl){
trace("loaded wsdl:" +wsdl);
}


And get the following trace:

WebServices Loaded successfully.
Sending error message: /opt/macromedia/fms/scriptlib/webservices/XMLSchema.asc: line 81: ReferenceError: document is not defined
Failed to execute method (XML.onData).

I don't know if this is due to a malformed WSDL or if it's an FMS bug.

Any ideas?

Thanks,

Mark
    This topic has been closed for replies.

    3 replies

    Participant
    August 3, 2007
    ...replacing document.location to rootElement.document.location.

    If you dont want to edit adobe file you can use my workaround of this proble by adding the following line before youe web service initialization.

    if (!document) document = { location : "/" };

    //make new WebService(wsdlUlr); cal here.
    Participant
    August 3, 2007
    I had the same problem when using WSDL from WCF service with basicHttpBinding. This is a FMS bug. When XML Schema parser try to resolve imported schemas at o.processImports function, it address to document variable that undefined. You can edit the AMLSchema.asc file by replacing document.location
    markk03Author
    Participant
    May 4, 2007
    Well, it seems like nobody is able to help on this one?