Community

modify ENDPOINT_ADDRESS_PROPERTY at runtime

created by simone bagnolesi in JBoss Web Services - View the full discussion

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.

 

Can you help me?

 

thanks

 

Reply to this message by going to Community

Start a new discussion in JBoss Web Services at Community