ep.setService(new QName("http://test", "MyConsumerService"));
ep.setEndpoint("myConsumer");
ep.setRoleAsString("consumer");
ep.setLocationURI("http://localhost:8196/Service/");
ep.setDefaultMep(MessageExchangeSupport.IN_OUT);
ep.setWsdlResource(new UrlResource(
"http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/Retailer.wsdl"));
HttpComponent http = new HttpComponent();
http.setEndpoints(new HttpEndpoint[] {ep});
container.activateComponent(http, "HttpWsdlTest");