Author: heiko.braun(a)jboss.com
Date: 2008-02-26 09:09:09 -0500 (Tue, 26 Feb 2008)
New Revision: 5809
Modified:
stack/native/trunk/src/main/java/org/jboss/ws/core/jaxrpc/client/ServiceReferenceable.java
Log:
Use VFS to pull WSSE resources from ServiceRef bindings
Modified:
stack/native/trunk/src/main/java/org/jboss/ws/core/jaxrpc/client/ServiceReferenceable.java
===================================================================
---
stack/native/trunk/src/main/java/org/jboss/ws/core/jaxrpc/client/ServiceReferenceable.java 2008-02-26
11:43:42 UTC (rev 5808)
+++
stack/native/trunk/src/main/java/org/jboss/ws/core/jaxrpc/client/ServiceReferenceable.java 2008-02-26
14:09:09 UTC (rev 5809)
@@ -39,6 +39,7 @@
import org.jboss.logging.Logger;
import org.jboss.ws.metadata.wsse.WSSecurityConfiguration;
import org.jboss.ws.metadata.wsse.WSSecurityOMFactory;
+import org.jboss.ws.metadata.wsse.WSSecurityConfigFactory;
import org.jboss.wsf.spi.deployment.UnifiedVirtualFile;
import org.jboss.wsf.spi.management.ServerConfig;
import org.jboss.wsf.spi.management.ServerConfigFactory;
@@ -148,9 +149,11 @@
ByteArrayOutputStream baos = new ByteArrayOutputStream(512);
try
{
+ WSSecurityConfiguration securityConfig =
WSSecurityConfigFactory.newInstance().createConfiguration(
+ refMetaData.getVfsRoot(), WSSecurityOMFactory.CLIENT_RESOURCE_NAME
+ );
+
ObjectOutputStream oos = new ObjectOutputStream(baos);
- WSSecurityOMFactory factory = WSSecurityOMFactory.newInstance();
- WSSecurityConfiguration securityConfig = factory.parse(getSecurityConfig());
oos.writeObject(securityConfig);
oos.close();
}
Show replies by date