[jboss-user] [JBoss Web Services] - modify ENDPOINT_ADDRESS_PROPERTY at runtime
simone bagnolesi
do-not-reply at jboss.com
Fri Mar 19 06:55:22 EDT 2010
simone bagnolesi [http://community.jboss.org/people/bagnos] created the discussion
"modify ENDPOINT_ADDRESS_PROPERTY at runtime"
To view the discussion, visit: http://community.jboss.org/message/532994#532994
--------------------------------------------------------------
hi,
i have some problems about changing ENDPOINT_ADDRESS_PROPERTY inside client soap handler, i have jbossws native and jboss-5.1.0.GA.
It works outside the handler with the follow instructions:
Sample port1 =
service.getSamplePort();
String newAddress=
" http://-contesto-:8080/COPERGMPS.SOA/PTGateway http://-contesto-:8080/COPERGMPS.SOA/PTGateway";
((BindingProvider)port1).getRequestContext().put(BindingProvider.
+ENDPOINT_ADDRESS_PROPERTY+, newAddress);
inside the handler, with the follow:
**public
**
*
*boolean* handleMessage(SOAPMessageContext arg0) {
arg0.put(BindingProvider.
+ENDPOINT_ADDRESS_PROPERTY+, " http://-contesto-:8080/COPERGMPS.SOA/PTGateway http://-contesto-:8080/COPERGMPS.SOA/PTGateway");
*return* *true*;
}
the above instruction doesn't work.
The +ENDPOINT_ADDRESS_PROPERTY + remains the same as the orginal wsdl soap address.
The above instruction works with websphere 7.0 , tomcat and jdk.
Can you help me?
thanks
*
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/532994#532994]
Start a new discussion in JBoss Web Services at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2044]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100319/02aa63a1/attachment.html
More information about the jboss-user
mailing list