URL wsdlURL = new URL("http://localhost:8080/contract/contract.jsp?serviceCat=MyServiceCategory&serviceName=MyWssService&protocol=http");
//URL wsdlURL = new URL("http://127.0.0.1:8080/Quickstart_webservice_wss?wsdl");
//URL wsdlURL = new URL("http://127.0.0.1:8080/jaxws-samples-wssecurity-sign?wsdl");
Service service = Service.create(wsdlURL, serviceName);
Hello endpoint = service.getPort(Hello.class);
((StubExt) endpoint).setSecurityConfig("jboss-wsse-client.xml");
((StubExt) endpoint).setConfigName("Standard WSSecurity Client");
Map<String, Object> reqContext = ((BindingProvider) endpoint).getRequestContext();