Tuesday, 15 May 2012

java - How can I associate and inbound and outbound soaphandler with each-other -



java - How can I associate and inbound and outbound soaphandler with each-other -

http://docs.oracle.com/javaee/5/api/javax/xml/ws/handler/soap/soaphandler.html

how can associate inbound handlemessage(soapmessagecontext) phone call , outbound handlemessage(soapmessagecontext).

i've tried few things, weblogic doesn't reuse context object reference checking doesn't work. can't find property indicates request distinctly , therefor can't seem create link between request , response.

alternatively there improve way request , response on web-logic problematically , associated such can dumped database future debugging purposes.

okay, may not work on implementations of jax-ws weblogic does.

what i've done

public final boolean handlemessage(soapmessagecontext context) { // using `object` type don't have need import servlet libraries jax-ws library object o = context.get(messagecontext.servlet_request); // o hold reference request // if inbound.o == outbound.o request objects identical , therefor can associate them. homecoming true; }

i don't see why wouldn't work in other containers please double check before using method.

java soap weblogic

No comments:

Post a Comment