Examples of toOM()


Examples of org.apache.axis2.addressing.EndpointReference.toOM()

            requestMC.setFrom(fromEPR); //who knows why two ways ?

            //For now do this the brute force method. Need to figure out how to do axis addressing .. configure mar in flow.
            SOAPEnvelope sev = requestMC.getEnvelope();
            SOAPHeader sh = sev.getHeader();
            OMElement el = fromEPR.toOM(AddressingConstants.Final.WSA_NAMESPACE,
                                        AddressingConstants.WSA_FROM,
                                        AddressingConstants.WSA_DEFAULT_PREFIX);
            sh.addChild(el);
        }
View Full Code Here

Examples of org.apache.axis2.addressing.EndpointReference.toOM()

            //For now do this the brute force method. Need to figure out how to do axis addressing .. configure mar in flow.
            SOAPEnvelope sev = requestMC.getEnvelope();
            SOAPHeader sh = sev.getHeader();
            OMElement el =
                fromEPR.toOM(AddressingConstants.Final.WSA_NAMESPACE,
                             AddressingConstants.WSA_FROM,
                             AddressingConstants.WSA_DEFAULT_PREFIX);
            sh.addChild(el);
        }
View Full Code Here

Examples of org.apache.axis2.addressing.EndpointReference.toOM()

        } else if (msg.getFrom() != null)  {
            EndpointReference fromEpr = new EndpointReference(msg.getFrom().getURI());
            requestMC.setFrom(fromEpr);
            SOAPEnvelope sev = requestMC.getEnvelope();
            SOAPHeader sh = sev.getHeader();
            OMElement el = fromEpr.toOM(AddressingConstants.Final.WSA_NAMESPACE,
                                        AddressingConstants.WSA_FROM,
                                        AddressingConstants.WSA_DEFAULT_PREFIX);
            sh.addChild(el);
        } else {
            // the from field remains blank
View Full Code Here

Examples of org.apache.axis2.jaxws.message.util.SAAJConverter.toOM()

    // Step 2a: Simple assertion check to ensure correctness.
    String name = saajEnvelope.getBody().getFirstChild().getLocalName();
    assertTrue("a".equals(name));
   
    // Step 3: Convert the SAAJ SOAPEnvelope to an OM SOAPEnvelope
    omEnvelope = converter.toOM(saajEnvelope);
   
    // Step 3a: Simple assertion check to ensure correctness
    name = omEnvelope.getBody().getFirstElement().getLocalName();
    assertTrue("a".equals(name));
   
View Full Code Here

Examples of org.apache.axis2.jaxws.message.util.SAAJConverter.toOM()

   
    // Step 4: Rinse and repeat
    saajEnvelope = converter.toSAAJ(omEnvelope);
    name = saajEnvelope.getBody().getFirstChild().getLocalName();
    assertTrue("a".equals(name));
    omEnvelope = converter.toOM(saajEnvelope);
    name = omEnvelope.getBody().getFirstElement().getLocalName();
    assertTrue("a".equals(name));
  }
 
  /**
 
View Full Code Here

Examples of org.apache.axis2.jaxws.message.util.SAAJConverter.toOM()

    // Step 2a: Verify
    assertTrue(se instanceof SOAPBodyElement);
    assertTrue(se.getLocalName().equals("a"));
   
    // Step 3: Convert SAAJ to OM
    om = converter.toOM(se);
   
    // Step 3a: Verify
    assertTrue(om.getLocalName().equals("a"));
   
    // Step 4: Rinse and Repeat
View Full Code Here

Examples of org.apache.axis2.jaxws.message.util.SAAJConverter.toOM()

   
    // Step 4: Rinse and Repeat
    se = converter.toSAAJ(om, body);
    assertTrue(se instanceof SOAPBodyElement);
    assertTrue(se.getLocalName().equals("a"));
    om = converter.toOM(se);
    assertTrue(om.getLocalName().equals("a"));
  }
 
  /**
   * @testStrategy: Create an OMElement, without using a builder.  Verification of AXIS2-970
View Full Code Here

Examples of org.apache.axis2.jaxws.message.util.SAAJConverter.toOM()

    // Step 2a: Simple assertion check to ensure correctness.
    String name = saajEnvelope.getBody().getFirstChild().getLocalName();
    assertTrue("a".equals(name));
   
    // Step 3: Convert the SAAJ SOAPEnvelope to an OM SOAPEnvelope
    omEnvelope = converter.toOM(saajEnvelope);
   
    // Step 3a: Simple assertion check to ensure correctness
    name = omEnvelope.getBody().getFirstElement().getLocalName();
    assertTrue("a".equals(name));
   
View Full Code Here

Examples of org.apache.axis2.jaxws.message.util.SAAJConverter.toOM()

   
    // Step 4: Rinse and repeat
    saajEnvelope = converter.toSAAJ(omEnvelope);
    name = saajEnvelope.getBody().getFirstChild().getLocalName();
    assertTrue("a".equals(name));
    omEnvelope = converter.toOM(saajEnvelope);
    name = omEnvelope.getBody().getFirstElement().getLocalName();
    assertTrue("a".equals(name));
  }
 
  /**
 
View Full Code Here

Examples of org.apache.axis2.jaxws.message.util.SAAJConverter.toOM()

    // Step 2a: Verify
    assertTrue(se instanceof SOAPBodyElement);
    assertTrue(se.getLocalName().equals("a"));
   
    // Step 3: Convert SAAJ to OM
    om = converter.toOM(se);
   
    // Step 3a: Verify
    assertTrue(om.getLocalName().equals("a"));
   
    // Step 4: Rinse and Repeat
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.