Error in proxy configuration for a WebService
cortlander1 Oct 25, 2010 2:55 PMThis is my first attempt at working with a WebService in Flash.
The services, which are on a local machine work fine when I call them directly, i.e. with useProxy="false".
However, when I attempt to call them through BlazeDS, setting useProxy="true", I get the following error as soon as the app loads. Seems I have not set up channels correctly, but I cannot figure out what I am doing wrong. The proxy-config file is at the end of this message.
[RPC Fault faultString="[MessagingError message='Destination 'groupWS' either does not exist or the destination has no channels defined (and the application does not define any default channels.)']" faultCode="InvokeFailed" faultDetail="Unable to load WSDL. If currently online, please verify the URI and/or format of the WSDL (http://localhost:8080/idm-ws/idmsrvc/GroupDataWebService?wsdl)"]
at mx.rpc.wsdl::WSDLLoader/faultHandler()[E:\dev\4.0.0\frameworks\projects\rpc\src\mx\rpc\ws dl\WSDLLoader.as:103]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at HTTPOperation/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()[E:\dev\4.0.0\frameworks\pro jects\rpc\src\mx\rpc\http\HTTPService.as:989]
at Function/http://adobe.com/AS3/2006/builtin::apply()
at mx.rpc::AsyncDispatcher/timerEventHandler()[E:\dev\4.0.0\frameworks\projects\rpc\src\mx\r pc\AsyncDispatcher.as:50]
at flash.utils::Timer/_timerDispatch()
at flash.utils::Timer/tick()
MXML
...
<s:WebService id="groupRO"
wsdl="http://localhost:8080/idm-ws/idmsrvc/GroupDataWebService?wsdl"
useProxy="true"
destination="groupWS"
result="serviceResult(event);"
showBusyCursor="true"/>
...
proxy-config.xml
<?xml version="1.0" encoding="UTF-8"?>
<service id="proxy-service"
class="flex.messaging.services.HTTPProxyService">
<properties>
<connection-manager>
<max-total-connections>100</max-total-connections>
<default-max-connections-per-host>2</default-max-connections-per-host>
</connection-manager>
<allow-lax-ssl>true</allow-lax-ssl>
</properties>
<adapters>
<adapter-definition id="http-proxy" class="flex.messaging.services.http.HTTPProxyAdapter" default="true"/>
<adapter-definition id="soap-proxy" class="flex.messaging.services.http.SOAPProxyAdapter"/>
</adapters>
<default-channels>
<channel ref="my-amf"/>
</default-channels>
<destination id="DefaultHTTP">
</destination>
<destination id="groupWS">
<properties>
<wsdl>http://localhost:8080/idm-ws/idmsrvc/GroupDataWebService?wsdl</wsdl>
<soap>http://localhost:8080/idm-ws/idmsrvc/*</soap>
</properties>
<adapter ref="soap-proxy"/>
</destination>
</service>
Any help will me much appreciated.
Thanks.
cortlander


