[jboss-user] [JBossWS] - Re: setHeader and setServerURL, using javax.xml.ws.Service?
thomas.diesler@jboss.com
do-not-reply at jboss.com
Mon Jul 30 16:55:23 EDT 2007
We have support to bound and unbound headers.
| public void testUnboundInHeader() throws Exception
| {
| // Add a header to the stub
| StubExt stub = (StubExt)port;
| QName xmlName = new QName("http://otherns", "HeaderValue");
| stub.addUnboundHeader(xmlName, Constants.TYPE_LITERAL_STRING, String.class, ParameterMode.IN);
| stub.setUnboundHeaderValue(xmlName, "Unbound IN header message");
|
| port.testInHeader("Hello world!", "IN header message");
|
| String unboundRet = (String)stub.getUnboundHeaderValue(xmlName);
| assertEquals("Unbound OUT header message", unboundRet);
| }
|
This should work for jaxrpc and jaxws
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4068897#4068897
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4068897
More information about the jboss-user
mailing list