Package org.jibx.ws.soap.testdata.basic

Examples of org.jibx.ws.soap.testdata.basic.Customer


     * @throws Throwable
     */
    public void testCallUnmarshalsSOAPResponse() throws Throwable {
        StubbedChannel.setInput(TestObjects.RESPONSE_SOAP);

        Customer result = invokeCall();

        assertEquals("Response Object:", TestObjects.RESPONSE_OBJECT, result);
    }
View Full Code Here


     * @throws Throwable
     */
    public void testCallUnmarshalsEmptySoapBody() throws Throwable {
        StubbedChannel.setInput(ENVELOPE_WITH_EMPTY_BODY);
       
        Customer result = invokeCall();

        assertEquals("Response Object:", null, result);
    }
View Full Code Here

    public void testCallUnmarshalsSOAPHeader() throws Throwable {
        StubbedChannel.setInput(TestHeaderObjects.RESPONSE_SOAP);

        UnmarshallingInHandler headerReader = new UnmarshallingInHandler(Locale.class);
        m_soapClient.addInHeaderHandler(headerReader);
        Customer result = invokeCall();

        Object header = headerReader.getPayload();
        assertEquals("Header object", TestHeaderObjects.EN_US, header);

        assertEquals("Response Object:", TestObjects.RESPONSE_OBJECT, result);
View Full Code Here

   
    private Customer invokeCall() throws JiBXException, IOException, WsException {
        m_soapClient.setOutBodyBindingFactory(BindingDirectory.getFactory(Person.class));
        m_soapClient.setInBodyBindingFactory(BindingDirectory.getFactory(Customer.class));
        m_soapClient.setOperationName("testSoapClientAction");
        Customer result = (Customer) m_soapClient.call(TestObjects.REQUEST_OBJECT);
        return result;
    }
View Full Code Here

TOP

Related Classes of org.jibx.ws.soap.testdata.basic.Customer

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.