*/
private Service createService()
{
String serviceId = "proxy-service";
String serviceClass = "flex.messaging.services.HTTPProxyService";
Service httpProxyService = broker.createService(serviceId, serviceClass);
// Note that <properties> are not set on the service since they are
// adapter related properties and will be configured at adapter level
httpProxyService.registerAdapter("http-proxy", "flex.messaging.services.http.HTTPProxyAdapter");
httpProxyService.registerAdapter("soap-proxy", "flex.messaging.services.http.SOAPProxyAdapter");
httpProxyService.setDefaultAdapter("http-proxy");
httpProxyService.addDefaultChannel("my-http");
httpProxyService.addDefaultChannel("my-amf");
return httpProxyService;
}