Package org.apache.muse.ws.addressing

Examples of org.apache.muse.ws.addressing.MessageHeaders


    public Element invoke(Element soapBody)
    {
        //
        // get WS-A action, which maps to a Capability's operation
        //
        MessageHeaders wsa = getEnvironment().getAddressingContext();
        String action = wsa.getAction();
       
        //
        // get the capability that owns this operation so we can
        // delegate the request
        //
View Full Code Here


   * @param opContext the OperationContext of the current invocation
   *
   */
  public Axis2Environment(OperationContext opContext) {
    super(opContext);
        MessageHeaders wsa = convertContext(opContext);
        addAddressingContext(wsa);

        MessageContext message = getInputMessageContext(opContext);


View Full Code Here

        // we can access the SOAP envelope in handleRequest()
        //
        if (!hasFailedToInitialize())
        {
            AxisEnvironment env = (AxisEnvironment)getRouter().getEnvironment();
            MessageHeaders wsa = env.convertContext(opContext);
            env.addAddressingContext(wsa);
        }
    }
View Full Code Here

        SOAPHeader axiom = getInputMessageContext(opContext).getEnvelope().getHeader();
        Element dom = convertToDOM(axiom);
       
        try
        {
            return new MessageHeaders(dom);
        }
       
        catch (SoapFault error)
        {
            throw new RuntimeException(error.getMessage(), error);
View Full Code Here

     * @param opContext
     *
     */
    public AxisEnvironment(OperationContext opContext)
    {
        MessageHeaders wsa = convertContext(opContext);       
        addAddressingContext(wsa);
       
        MessageContext message = getInputMessageContext(opContext);
       
        //
View Full Code Here

        Element soapXML = XmlUtils.createElement(doc, SoapConstants.ENVELOPE_QNAME);
       
        //
        // add WS-Addressing headers
        //
        MessageHeaders headers = new MessageHeaders(destination, action);
       
        //
        // if there's a source EPR, we can provide a wsa:From
        //
        if (source != null)
            headers.setFromAddress(source);

        Element headersXML = headers.toXML(doc);
        soapXML.appendChild(headersXML);
       
        //
        // copy data into SOAP body
        //
View Full Code Here

    protected Resource getTargetResource()
        throws SoapFault
    {
        ResourceManager manager = getResourceManager();
        Environment env = getEnvironment();
        MessageHeaders wsa = env.getAddressingContext();
       
        if (wsa == null)
            throw new RuntimeException(_MESSAGES.get("NoAddressingContext"));
       
        EndpointReference epr = wsa.getToAddress();
       
        Resource resource = manager.getResource(epr);
       
        if (resource == null)
        {
View Full Code Here

        Element soapXML = XmlUtils.createElement(doc, SoapConstants.ENVELOPE_QNAME);
       
        //
        // add WS-Addressing headers
        //
        MessageHeaders headers = new MessageHeaders(destination, action);
       
        //
        // if there's a source EPR, we can provide a wsa:From
        //
        if (source != null)
            headers.setFromAddress(source);

        Element headersXML = headers.toXML(doc);
        soapXML.appendChild(headersXML);
       
        //
        // add all of the non-WS-A SOAP headers
        //
View Full Code Here

    public Element invoke(Element soapBody)
    {
        //
        // get WS-A action, which maps to a Capability's operation
        //
        MessageHeaders wsa = getEnvironment().getAddressingContext();
        String action = wsa.getAction();
       
        //
        // get the capability that owns this operation so we can
        // delegate the request
        //
View Full Code Here

    protected Resource getTargetResource()
        throws SoapFault
    {
        ResourceManager manager = getResourceManager();
        Environment env = getEnvironment();
        MessageHeaders wsa = env.getAddressingContext();
       
        if (wsa == null)
            throw new RuntimeException(_MESSAGES.get("NoAddressingContext"));
       
        EndpointReference epr = wsa.getToAddress();
       
        Resource resource = manager.getResource(epr);
       
        if (resource == null)
        {
View Full Code Here

TOP

Related Classes of org.apache.muse.ws.addressing.MessageHeaders

Copyright © 2018 www.massapicom. 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.