all groups > macromedia flash flash remoting > september 2005 >
You're in the

macromedia flash flash remoting

group:

Getting a WSDL.MultiplePorts Error, EEEEK


Getting a WSDL.MultiplePorts Error, EEEEK cewingCME
9/8/2005 12:00:00 AM
macromedia flash flash remoting:
I've been working on an interface to a .net-coded web service to support an
application I'm working on. Up until this morning, everything was working
fine, I could call a service defined by the WSDL from the web service and get
the expected results.

This morning, after working for an hour or two, suddenly things stopped
working. Calls to defined services from the WSDL suddenly began generating
faults, giving the following errors:

faultCode->WSDL.MultiplePorts
faultString->There are multiple possible ports in the WSDL file; please
specify a service name and port name!

The code I am using to get the web service and make the call is posted here.
Let me know if anything seems wrong.
(and sorry for the ridiculous formatting and that stupid emoticon. I didn't
put it there, it should be a capital P. Also, there shouldn't be a > in front
of the URL for the WSDL file, but it seems to be showing up in preview, nice
interface here!).


import mx.services.*;
_global.dwService = new
WebService("http://www.digitalwell.washington.edu/wsapi/frontendapi.asmx?wsdl");

dwResultObj = _global.dwService.EnumPublicOnly(123, 3,"Folder", 79, 19,
"Folder:CollectionID;Folder:ParentCollectionID;Folder:Name", "Folder","");

dwResultObj.onResult = function (result) {
//examine the bits and pieces returned by the SOAP call
for (val in result) {
trace(val+": "+result[val]);
}
}

dwResultObj.onFault = function (fault) {
// see what errors get generated, if any
trace(fault.faultcode+'->'+fault.faultstring);
}

Re: Getting a WSDL.MultiplePorts Error, EEEEK cewingCME
9/8/2005 12:00:00 AM
Oh boy, never mind.

the answer had to do with a method I'd added to the prototype for the Object
class. Somehow, adding this method seems to have interfered with the workings
of the SOAPCall object or perhaps the workings of the WebService Class
instance. I'm not really sure which.

Is it really a problem to add methods to the Object class prototype? Why did
this break the functioning of the child classes in the WebServices package?

C
AddThis Social Bookmark Button