Examples of SAAJConverterFactory


Examples of org.apache.axis2.jaxws.message.factory.SAAJConverterFactory

     * @return SAAJConverter
     */
    SAAJConverter converter = null;
    private SAAJConverter getSAAJConverter() {
        if (converter == null) {
            SAAJConverterFactory factory = (
                    SAAJConverterFactory)FactoryRegistry.getFactory(SAAJConverterFactory.class);
            converter = factory.getSAAJConverter();
        }
        return converter;
    }
View Full Code Here

Examples of org.apache.axis2.jaxws.message.factory.SAAJConverterFactory

    XMLStreamReader inflow = inputFactory.createXMLStreamReader(sr);
    StAXSOAPModelBuilder builder = new StAXSOAPModelBuilder(inflow, null);
    org.apache.axiom.soap.SOAPEnvelope omEnvelope = builder.getSOAPEnvelope();
   
    // Step 1: Get the SAAJConverter object from the Factory
    SAAJConverterFactory f = (SAAJConverterFactory)
      FactoryRegistry.getFactory(SAAJConverterFactory.class);
    SAAJConverter converter = f.getSAAJConverter();
   
    // Step 2: Convert the OM SOAPEnvelope to an SAAJ SOAPEnvelope
    SOAPEnvelope saajEnvelope = converter.toSAAJ(omEnvelope);
   
    // Step 2a: Simple assertion check to ensure correctness.
View Full Code Here

Examples of org.apache.axis2.jaxws.message.factory.SAAJConverterFactory

    MessageFactory msgFactory = MessageFactory.newInstance();
    SOAPMessage message = msgFactory.createMessage();
    SOAPBody body = message.getSOAPBody();
   
    // Step 1: Get the SAAJConverter object from the Factory
    SAAJConverterFactory f = (SAAJConverterFactory)
      FactoryRegistry.getFactory(SAAJConverterFactory.class);
    SAAJConverter converter = f.getSAAJConverter();
   
    // Step 2: Convert OM to SAAJ
    SOAPElement se = converter.toSAAJ(om, body);
   
    // Step 2a: Verify
View Full Code Here

Examples of org.apache.axis2.jaxws.message.factory.SAAJConverterFactory

   * @testStrategy: Create an OMElement, without using a builder.  Verification of AXIS2-970
   */
    public void test3() throws Exception {
     
//       Step 1: Get the SAAJConverter object from the Factory
    SAAJConverterFactory f = (SAAJConverterFactory)
      FactoryRegistry.getFactory(SAAJConverterFactory.class);
    SAAJConverter converter = f.getSAAJConverter();
   
    // Stept 2: Create OM and parent SOAPElement
        OMFactory fac = OMAbstractFactory.getOMFactory();
        OMNamespace wrapNs = fac.createOMNamespace("namespace", "prefix");
        OMElement ome = fac.createOMElement("localname", wrapNs);
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.