Package org.jibx.ws.io

Examples of org.jibx.ws.io.MarshallingPayloadWriter


        m_payload = payload;
    }

    /** {@inheritDoc} */
    public void invoke(OutContext context, IXMLWriter xmlWriter) throws IOException, WsException {
        MarshallingPayloadWriter marshaller = new MarshallingPayloadWriter(m_payload.getClass());
        marshaller.invoke(xmlWriter, m_payload);
    }
View Full Code Here


     * @param clazz the target class
     * @param attributeName the key to retrieve the object to be marshalled from the current context
     * @throws WsBindingException on any error in finding or accessing factory, or creating marshaller
     */
    public ContextAttributeMarshallingOutHandler(Class clazz, String attributeName) throws WsBindingException {
        m_marshaller = new MarshallingPayloadWriter(clazz);
        m_attributeName = attributeName;
    }
View Full Code Here

    public ContextAttributeMarshallingOutHandler(String className, String attributeName) throws WsBindingException,
        WsConfigurationException {

        try {
            Class clazz = Class.forName(className);
            m_marshaller = new MarshallingPayloadWriter(clazz);
            m_attributeName = attributeName;
        } catch (ClassNotFoundException e) {
            throw new WsConfigurationException("Unable to create ContextualPayloadMarshaller.  Class not found: "
                + className);
        }
View Full Code Here

     * @param attributeName the key to retrieve the object to be marshalled from the current context
     * @throws WsBindingException on any error in finding or accessing factory, or creating marshaller
     */
    public ContextAttributeMarshallingOutHandler(String bindingName, String packageName, String attributeName)
        throws WsBindingException {
        m_marshaller = new MarshallingPayloadWriter(bindingName, packageName);
        m_attributeName = attributeName;
    }
View Full Code Here

     * @param attributeName the key to retrieve the object to be marshalled from the current context
     * @throws WsBindingException on any error in creating marshaller
     */
    public ContextAttributeMarshallingOutHandler(IBindingFactory factory, String attributeName)
            throws WsBindingException {
        m_marshaller = new MarshallingPayloadWriter(factory);
        m_attributeName = attributeName;
    }
View Full Code Here

     * @throws WsBindingException on error creating handlers
     */
    protected void createBodyHandlers(InContext inCtx, OutContext outCtx) throws WsBindingException {
        IBindingFactory outBodyBindingFactory = getOutBodyBindingFactory();
        if (outBodyBindingFactory != null) {
            outCtx.setBodyWriter(new MarshallingPayloadWriter(outBodyBindingFactory));
        }
   
        IBindingFactory inBodyBindingFactory = getInBodyBindingFactory();
        if (inBodyBindingFactory != null) {
            inCtx.setBodyReader(new UnmarshallingPayloadReader(inBodyBindingFactory));
View Full Code Here

     *
     * @param factory the JiBX binding factory to use for writing the outbound body
     * @throws WsBindingException if marshaller cannot be created due to an error with the JiBX bindings
     */
    public final void setOutBodyBindingFactory(IBindingFactory factory) throws WsBindingException {
        setBodyWriter(new MarshallingPayloadWriter(factory));
    }
View Full Code Here

    private MarshallingPayloadWriter m_outBodyHandler;
    private SoapProcessor m_processor;

    protected void setUp() throws Exception {
        StubbedChannel.getInstance().close();
        m_outBodyHandler = new MarshallingPayloadWriter(Person.class);
        OutContext outCtx = new OutContext();
        outCtx.setBodyWriter(m_outBodyHandler);

        UnmarshallingPayloadReader inBodyHandler = new UnmarshallingPayloadReader(Customer.class);
        InContext inCtx = new InContext();
View Full Code Here

    private SoapProcessor m_InOnlyProcessor;
    private InContext m_inCtx;

    protected void setUp() throws Exception {
        StubbedChannel.getInstance().close();
        m_outBodyHandler = new MarshallingPayloadWriter(Person.class);
        OutContext outCtx = new OutContext();
        outCtx.setBodyWriter(m_outBodyHandler);

        UnmarshallingPayloadReader inBodyHandler = new UnmarshallingPayloadReader(Customer.class);
        m_inCtx = new InContext();
View Full Code Here

    /**
     * @throws WsBindingException
     */
    public LocaleMarshaller() throws WsBindingException {
        m_marshaller = new MarshallingPayloadWriter(Locale.class);
    }
View Full Code Here

TOP

Related Classes of org.jibx.ws.io.MarshallingPayloadWriter

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.