}
}
protected void initSoapEndpoints(boolean useJbiWrapper) throws Exception {
HttpComponent http = new HttpComponent();
HttpSoapConsumerEndpoint ep1 = new HttpSoapConsumerEndpoint();
ep1.setService(new QName("uri:HelloWorld", "HelloService"));
ep1.setEndpoint("HelloPortSoap11");
ep1.setTargetService(new QName("urn:test", "echo"));
ep1.setLocationURI("http://localhost:8192/ep1/");
ep1.setWsdl(new ClassPathResource("/org/apache/servicemix/http/HelloWorld-DOC.wsdl"));
ep1.setValidateWsdl(false); // TODO: Soap 1.2 not handled yet
ep1.setUseJbiWrapper(useJbiWrapper);
HttpSoapConsumerEndpoint ep2 = new HttpSoapConsumerEndpoint();
ep2.setService(new QName("uri:HelloWorld", "HelloService"));
ep2.setEndpoint("HelloPortSoap12");
ep2.setTargetService(new QName("urn:test", "echo"));
ep2.setLocationURI("http://localhost:8192/ep2/");
ep2.setWsdl(new ClassPathResource("/org/apache/servicemix/http/HelloWorld-DOC.wsdl"));
ep2.setValidateWsdl(false); // TODO: Soap 1.2 not handled yet
ep2.setUseJbiWrapper(useJbiWrapper);
http.setEndpoints(new HttpEndpointType[] {ep1, ep2});
container.activateComponent(http, "http");
container.start();
}