Package org.jboss.ws.core

Examples of org.jboss.ws.core.CommonBinding.unbindRequestMessage()


      CommonMessageContext msgContext = MessageContextAssociation.peekMessageContext();
      msgContext.setSOAPMessage(reqMessage);

      CommonBindingProvider bindingProvider = new CommonBindingProvider(CommonSOAPBinding.SOAP12HTTP_BINDING, Type.JAXRPC);
      CommonBinding binding = (CommonBinding)bindingProvider.getCommonBinding();
      EndpointInvocation epInv = binding.unbindRequestMessage(opMetaData, reqMessage);
      assertNotNull(epInv);

      Object[] args = epInv.getRequestPayload();
      assertEquals(2, args.length);
      assertEquals("Hello World!", args[0]);
View Full Code Here


      CommonMessageContext msgContext = MessageContextAssociation.peekMessageContext();
      msgContext.setSOAPMessage(reqMessage);

      CommonBindingProvider bindingProvider = new CommonBindingProvider(CommonSOAPBinding.SOAP12HTTP_BINDING, Type.JAXRPC);
      CommonBinding binding = (CommonBinding)bindingProvider.getCommonBinding();
      EndpointInvocation epInv = binding.unbindRequestMessage(opMetaData, reqMessage);
      assertNotNull(epInv);

      Object[] args = epInv.getRequestPayload();
      assertEquals(1, args.length);
      assertEquals("Hello World!", args[0]);
View Full Code Here

             */
            if (binding instanceof CommonSOAPBinding)
               ((CommonSOAPBinding)binding).checkMustUnderstand(opMetaData);

            // Unbind the request message
            sepInv = binding.unbindRequestMessage(opMetaData, reqMessage);
         }

         handlersPass = handlersPass && callRequestHandlerChain(sepMetaData, handlerType[1]);
         handlersPass = handlersPass && callRequestHandlerChain(sepMetaData, handlerType[2]);

View Full Code Here

               // Check if protocol handlers modified the payload
               if (msgContext.isModified())
               {
                  log.debug("Handler modified payload, unbind message again");
                  reqMessage = msgContext.getMessageAbstraction();
                  sepInv = binding.unbindRequestMessage(opMetaData, reqMessage);
               }
               //JBWS-2969:check if the RPC/Lit input paramter is null
               if (opMetaData.getEndpointMetaData().getType() != EndpointMetaData.Type.JAXRPC
                     && opMetaData.isRPCLiteral() && sepInv.getRequestParamNames() != null)
               { 
View Full Code Here

             */
            if (binding instanceof CommonSOAPBinding)
               ((CommonSOAPBinding)binding).checkMustUnderstand(opMetaData);

            // Unbind the request message
            sepInv = binding.unbindRequestMessage(opMetaData, reqMessage);
         }

         handlersPass = handlersPass && callRequestHandlerChain(sepMetaData, handlerType[1]);
         handlersPass = handlersPass && callRequestHandlerChain(sepMetaData, handlerType[2]);

View Full Code Here

               // Check if protocol handlers modified the payload
               if (msgContext.isModified())
               {
                  log.debug("Handler modified payload, unbind message again");
                  reqMessage = msgContext.getMessageAbstraction();
                  sepInv = binding.unbindRequestMessage(opMetaData, reqMessage);
               }

               // Invoke an instance of the SEI implementation bean
               Invocation inv = setupInvocation(endpoint, sepInv, invContext);
               InvocationHandler invHandler = endpoint.getInvocationHandler();
View Full Code Here

/*     */
/* 191 */         if ((binding instanceof CommonSOAPBinding)) {
/* 192 */           ((CommonSOAPBinding)binding).checkMustUnderstand(opMetaData);
/*     */         }
/*     */
/* 195 */         sepInv = binding.unbindRequestMessage(opMetaData, reqMessage);
/*     */       }
/*     */
/* 198 */       handlersPass = (handlersPass) && (callRequestHandlerChain(sepMetaData, handlerType[1]));
/* 199 */       handlersPass = (handlersPass) && (callRequestHandlerChain(sepMetaData, handlerType[2]));
/*     */
View Full Code Here

/*     */         {
/* 207 */           if (msgContext.isModified())
/*     */           {
/* 209 */             log.debug("Handler modified payload, unbind message again");
/* 210 */             reqMessage = msgContext.getMessageAbstraction();
/* 211 */             sepInv = binding.unbindRequestMessage(opMetaData, reqMessage);
/*     */           }
/*     */
/* 215 */           Invocation inv = setupInvocation(this.endpoint, sepInv, invContext);
/* 216 */           InvocationHandler invHandler = this.endpoint.getInvocationHandler();
/*     */           try
View Full Code Here

/* 120 */             OperationMetaData opMetaData = messageContext.getOperationMetaData();
/* 121 */             CommonBindingProvider bindingProvider = new CommonBindingProvider(opMetaData.getEndpointMetaData());
/* 122 */             CommonBinding binding = bindingProvider.getCommonBinding();
/*     */
/* 124 */             ServiceEndpointInvokerEJB21.log.debug("Handler modified payload, unbind message and update invocation args");
/* 125 */             EndpointInvocation epInv = binding.unbindRequestMessage(opMetaData, messageContext.getMessageAbstraction());
/* 126 */             wsInv.getInvocationContext().addAttachment(EndpointInvocation.class, epInv);
/*     */           }
/*     */           catch (BindingException ex)
/*     */           {
/* 130 */             throw new WSException(ex);
View Full Code Here

             */
            if (binding instanceof CommonSOAPBinding)
               ((CommonSOAPBinding)binding).checkMustUnderstand(opMetaData);

            // Unbind the request message
            sepInv = binding.unbindRequestMessage(opMetaData, reqMessage);
         }

         handlersPass = handlersPass && callRequestHandlerChain(sepMetaData, handlerType[1]);
         handlersPass = handlersPass && callRequestHandlerChain(sepMetaData, handlerType[2]);

View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.