Hi acxjbertr,
After struggling with JBOSS 4.0.1 without any gain, I have started using JBoss
4.0.4 with JBOSS WS-1.0.0 GA. And I am successful in configuring the server so
that it accepts only signed message.
Now I want to sign all the requests originating from a client. My client
program is
import com.ws.Hello;
import javax.xml.rpc.Service;
import javax.xml.rpc.ServiceFactory;
import javax.xml.namespace.QName;
import java.net.URL;
public class HelloClient
{
public static void main(String[] args)
throws Exception
{
String urlstr = args[0];
System.out.println("Contacting webservice at " + urlstr);
URL url = new URL(urlstr);
QName qname = new QName("http://127.0.0.1:8080/jboss-at-work",
"HelloService");
ServiceFactory factory = ServiceFactory.newInstance();
Service service = factory.createService(url, qname);
Hello hello = (Hello) service.getPort(Hello.class);
String argument = "Say HELLO";
System.out.println("hello.echoHello(" + argument + ")");
System.out.println("output:" + hello.echoHello(argument));
}
}
And my jboss-wsse-client.xml is here:
<jboss-ws-security xmlns="http://www.jboss.com/ws-security/config"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.jboss.com/ws-security/config
http://www.jboss.com/ws-security/schema/jboss-ws-security_1_0.xsd">
</jboss-ws-security>
How should I make the client sign its request. Are you successful in this. If
so guide me.
Thanks
Sathish
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3955040#3955040
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3955040
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user