[jboss-user] [JBoss Web Services Development] New message: "modify ENDPOINT_ADDRESS_PROPERTY at runtime"
simone bagnolesi
do-not-reply at jboss.com
Wed Mar 17 10:46:00 EDT 2010
User development,
A new message was posted in the thread "modify ENDPOINT_ADDRESS_PROPERTY at runtime":
http://community.jboss.org/message/532559#532559
Author : simone bagnolesi
Profile : http://community.jboss.org/people/bagnos
Message:
--------------------------------------------------------------
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";((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");
*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.
Someone can I help me?
thanks
*
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/532559#532559
More information about the jboss-user
mailing list