ok,
i see, maybe jboss-wsse-client.xml or standard-jaxws-client-config.xml not loaded ,so i
copied the both xml into META-INF and also changed the client code like this:
|
| Service s = Service.create(url, qn);
| Test port = s.getPort(Test.class);
|
| URL securityURL = new File("META-INF/jboss-wsse-client.xml").toURL();
| URL securityConfig= new
File("META-INF/standard-jaxws-client-config.xml").toURL();
| ((StubExt) port).setSecurityConfig(securityURL.toExternalForm());
| ((StubExt) port).setConfigName("Standard WSSecurity
Client",securityConfig.toExternalForm());
|
|
| ((BindingProvider) port).getRequestContext().put(BindingProvider.USERNAME_PROPERTY,
"kermit");
| ((BindingProvider) port).getRequestContext().put(BindingProvider.PASSWORD_PROPERTY,
"thefrog");
| ((BindingProvider)
port).getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY,
"http://localhost:4040/miguoWS/TestBean");
but in soap monitor i found <wsse: Security> is still missing in request.
(jboss4.2.1GA, jbossws-3.0.1-native-2.0.4.GA, jdk1.5 update 15)
Really nobody can help me out here ?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4148096#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...