Examples of registerCustomBuilderForPayload()


Examples of org.apache.axiom.om.impl.builder.StAXOMBuilder.registerCustomBuilderForPayload()

        JAXBDSContext jdsContext = new JAXBDSContext(contextPackages);
        JAXBCustomBuilder jcb = new JAXBCustomBuilder(jdsContext);
       
        // Register the JAXBCustomBuilder...this will intercept the payload
        // and build a jaxb element
        builder.registerCustomBuilderForPayload(jcb);
       
        // Get the OM element
        OMElement om = builder.getDocumentElement()
       
        // Verify that the OM Element is backed by an unmarshalled jaxb object
View Full Code Here

Examples of org.apache.axiom.om.impl.builder.StAXOMBuilder.registerCustomBuilderForPayload()

        JAXBDSContext jdsContext = new JAXBDSContext(contextPackages);
        JAXBCustomBuilder jcb = new JAXBCustomBuilder(jdsContext);
       
        // Register the JAXBCustomBuilder...this will intercept the payload
        // and build a jaxb element
        builder.registerCustomBuilderForPayload(jcb);
       
        // Get the OM element
        OMElement om = builder.getDocumentElement()
       
        // Verify that the OM Element is backed by an unmarshalled jaxb object
View Full Code Here

Examples of org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.registerCustomBuilderForPayload()

        // not cause inteference with the custom builder processing
        envelope.getBody().hasFault();

        // Do the registration here...this simulates when it could occure in the engine
        // (After the fault check and during phase processing...probably dispatch phase)
        builder.registerCustomBuilderForPayload(new ByteArrayCustomBuilder("utf-8"));
       
        OMElement bodyElement = envelope.getBody().getFirstElement();
        assertTrue(bodyElement instanceof OMSourcedElement);
    }
}
View Full Code Here

Examples of org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.registerCustomBuilderForPayload()

     * @throws Exception
     */
    protected SOAPEnvelope createEnvelope(InputStream in) throws Exception {
        XMLStreamReader parser = StAXUtils.createXMLStreamReader(in);
        StAXSOAPModelBuilder builder = new StAXSOAPModelBuilder(parser, null);
        builder.registerCustomBuilderForPayload(new ByteArrayCustomBuilder("utf-8"));
        return (SOAPEnvelope) builder.getDocumentElement();
    }
   
    /**
     * Make a copy of the source envelope and validate the target tree
View Full Code Here

Examples of org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.registerCustomBuilderForPayload()

        OMElement omElement = builder.getSOAPEnvelope();
       
        if (installJAXBCustomBuilder) {
            JAXBDSContext jds = new JAXBDSContext(EchoStringResponse.class.getPackage().getName());
            JAXBCustomBuilder jcb = new JAXBCustomBuilder(jds);
            builder.registerCustomBuilderForPayload(jcb);
        }
       
        // Create a SOAP 1.1 Message from the sample incoming XML
        MessageFactory mf = (MessageFactory)
            FactoryRegistry.getFactory(MessageFactory.class);
View Full Code Here

Examples of org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.registerCustomBuilderForPayload()

            sourceEnv.getBody().hasFault();
        }
       
        // Do the registration here...this simulates when it could occure in the engine
        // (After the fault check and during phase processing...probably dispatch phase)
        builder.registerCustomBuilderForPayload(new ByteArrayCustomBuilder("utf-8"));
        return sourceEnv;
    }
   
    /**
     * Make a copy of the source envelope and validate the target tree
View Full Code Here

Examples of org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.registerCustomBuilderForPayload()

            sourceEnv.getBody().hasFault();
        }
       
        // Do the registration here...this simulates when it could occure in the engine
        // (After the fault check and during phase processing...probably dispatch phase)
        builder.registerCustomBuilderForPayload(new ByteArrayCustomBuilder("utf-8"));
        return sourceEnv;
    }
   
    /**
     * Make a copy of the source envelope and validate the target tree
View Full Code Here

Examples of org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.registerCustomBuilderForPayload()

       
        JAXBDSContext jds = null;
        if (installJAXBCustomBuilder) {
            jds = new JAXBDSContext(EchoStringResponse.class.getPackage().getName());
            JAXBCustomBuilder jcb = new JAXBCustomBuilder(jds);
            builder.registerCustomBuilderForPayload(jcb);
        }
       
        // Create a SOAP 1.1 Message from the sample incoming XML
        MessageFactory mf = (MessageFactory)
            FactoryRegistry.getFactory(MessageFactory.class);
View Full Code Here

Examples of org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.registerCustomBuilderForPayload()

       
        JAXBDSContext jds = null;
        if (installJAXBCustomBuilder) {
            jds = new JAXBDSContext(EchoStringResponse.class.getPackage().getName());
            JAXBCustomBuilder jcb = new JAXBCustomBuilder(jds);
            builder.registerCustomBuilderForPayload(jcb);
        }
       
        // Create a SOAP 1.1 Message from the sample incoming XML
        MessageFactory mf = (MessageFactory)
            FactoryRegistry.getFactory(MessageFactory.class);
View Full Code Here

Examples of org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.registerCustomBuilderForPayload()

            sourceEnv.getBody().hasFault();
        }
       
        // Do the registration here...this simulates when it could occure in the engine
        // (After the fault check and during phase processing...probably dispatch phase)
        builder.registerCustomBuilderForPayload(new ByteArrayCustomBuilder("utf-8"));
        return sourceEnv;
    }
   
    /**
     * Make a copy of the source envelope and validate the target tree
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.