Package org.apache.axis2.description

Examples of org.apache.axis2.description.OperationDescription.findOperationContext()


      OperationContext operationContext1 = axisOperation.findOperationContext(messageContext1, sessionContext);
     
      MessageContext messageContext2 = this.getBasicMessageContext();
      messageContext2.setMessageID(new Long(System.currentTimeMillis()).toString());
      messageContext2.getMessageInformationHeaders().setRelatesTo(new RelatesTo(messageContext1.getMessageID()));
      OperationContext operationContext2 = axisOperation.findOperationContext(messageContext2, sessionContext);
      assertEquals(operationContext1, operationContext2);
    }
   
    public MessageContext getBasicMessageContext() throws AxisFault{
View Full Code Here


        }

        if (msgctx.getServiceContext() != null && msgctx.getOperationContext() == null) {
            OperationDescription axisOperation = findOperation(msgctx.getServiceContext().getServiceConfig(),msgctx);
            if(axisOperation != null){
                OperationContext operationContext = axisOperation.findOperationContext(msgctx,msgctx.getServiceContext());
                msgctx.setOperationContext(operationContext);
            }
        }

    }
View Full Code Here

        messageContext1.setMessageID(
                new Long(System.currentTimeMillis()).toString());
        OperationDescription axisOperation = new OperationDescription(
                new QName("test"));
        OperationContext operationContext1 = axisOperation.findOperationContext(
                messageContext1, sessionContext);

        MessageContext messageContext2 = this.getBasicMessageContext();
        messageContext2.setMessageID(
                new Long(System.currentTimeMillis()).toString());
View Full Code Here

        MessageContext messageContext2 = this.getBasicMessageContext();
        messageContext2.setMessageID(
                new Long(System.currentTimeMillis()).toString());
        messageContext2.getMessageInformationHeaders().setRelatesTo(
                new RelatesTo(messageContext1.getMessageID()));
        OperationContext operationContext2 = axisOperation.findOperationContext(
                messageContext2, sessionContext);
        assertEquals(operationContext1, operationContext2);
    }

    public MessageContext getBasicMessageContext() throws AxisFault {
View Full Code Here

        if (msgctx.getServiceContext() != null &&
                msgctx.getOperationContext() == null) {
            OperationDescription axisOperation = findOperation(
                    msgctx.getServiceContext().getServiceConfig(), msgctx);
            if (axisOperation != null) {
                OperationContext operationContext = axisOperation.findOperationContext(
                        msgctx, msgctx.getServiceContext());
                msgctx.setOperationContext(operationContext);
            }
        }
View Full Code Here

        MessageContext response = configurationContext.createMessageContext();

        // Link the response to the request message context using the context hierarchy
        ServiceGroupContext serviceGroupContext = configurationContext.createServiceGroupContext(axisService.getAxisServiceGroup());
        ServiceContext serviceContext = serviceGroupContext.getServiceContext(axisService);
        OperationContext opContext = axisOperation.findOperationContext(request, serviceContext);
        axisOperation.registerOperationContext(request, opContext);
        request.setServiceContext(serviceContext);
        response.setServiceContext(serviceContext);
        request.setOperationContext(opContext);
        response.setOperationContext(opContext);
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.