Author: heiko.braun(a)jboss.com
Date: 2007-01-08 11:04:22 -0500 (Mon, 08 Jan 2007)
New Revision: 1866
Modified:
trunk/jbossws-core/src/main/java/org/jboss/ws/core/CommonSOAPBinding.java
trunk/jbossws-core/src/main/java/org/jboss/ws/core/server/AbstractServiceEndpointInvoker.java
Log:
Added default pivot processing for endpoint invocations
Modified: trunk/jbossws-core/src/main/java/org/jboss/ws/core/CommonSOAPBinding.java
===================================================================
--- trunk/jbossws-core/src/main/java/org/jboss/ws/core/CommonSOAPBinding.java 2007-01-08
15:41:34 UTC (rev 1865)
+++ trunk/jbossws-core/src/main/java/org/jboss/ws/core/CommonSOAPBinding.java 2007-01-08
16:04:22 UTC (rev 1866)
@@ -304,7 +304,7 @@
if (opMetaData.isRPCEncoded())
XOPContext.setMTOMEnabled(false);
else
- XOPContext.setMTOMEnabled( isMTOMEnabled() );
+ XOPContext.setMTOMEnabled( isMTOMEnabled() ); // TODO: shouldn't this
depend on the request encoding?
// Associate current message with message context
SOAPMessageImpl resMessage = (SOAPMessageImpl)createMessage(opMetaData);
Modified:
trunk/jbossws-core/src/main/java/org/jboss/ws/core/server/AbstractServiceEndpointInvoker.java
===================================================================
---
trunk/jbossws-core/src/main/java/org/jboss/ws/core/server/AbstractServiceEndpointInvoker.java 2007-01-08
15:41:34 UTC (rev 1865)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/core/server/AbstractServiceEndpointInvoker.java 2007-01-08
16:04:22 UTC (rev 1866)
@@ -25,15 +25,16 @@
import org.jboss.logging.Logger;
import org.jboss.ws.Constants;
-import org.jboss.ws.extensions.xop.XOPContext;
import org.jboss.ws.core.*;
import org.jboss.ws.core.jaxrpc.handler.HandlerDelegateJAXRPC;
import org.jboss.ws.core.jaxws.binding.BindingProviderImpl;
import org.jboss.ws.core.jaxws.handler.HandlerDelegateJAXWS;
+import org.jboss.ws.core.jaxws.handler.MessageContextJAXWS;
import org.jboss.ws.core.soap.MessageContextAssociation;
import org.jboss.ws.core.soap.SOAPBodyImpl;
import org.jboss.ws.core.soap.SOAPMessageImpl;
import org.jboss.ws.core.utils.JavaUtils;
+import org.jboss.ws.extensions.xop.XOPContext;
import org.jboss.ws.metadata.umdm.EndpointMetaData;
import org.jboss.ws.metadata.umdm.HandlerMetaData.HandlerType;
import org.jboss.ws.metadata.umdm.OperationMetaData;
@@ -170,6 +171,8 @@
msgContext.removeProperty(CommonMessageContext.ALLOW_EXPAND_TO_DOM);
}
+ msgContext = processPivot(msgContext);
+
// Set the outbound property
if (epMetaData.getType() == EndpointMetaData.Type.JAXWS)
msgContext.setProperty(MessageContext.MESSAGE_OUTBOUND_PROPERTY, new
Boolean(true));
@@ -217,6 +220,13 @@
}
}
+ protected CommonMessageContext processPivot(CommonMessageContext requestContext)
+ {
+ log.debug("Begin response processing");
+ // TODO: implement
+ return requestContext;
+ }
+
private OperationMetaData getDispatchDestination(EndpointMetaData epMetaData,
SOAPMessageImpl reqMessage) throws SOAPException
{
OperationMetaData opMetaData = reqMessage.getOperationMetaData(epMetaData);
Show replies by date