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