Package com.google.code.magja.soap

Examples of com.google.code.magja.soap.SoapClient


public class ConnectionTest {

  @Test
  public void testProductType() throws Exception {
    ConnectionMock conn = new ConnectionMock();
    SoapClient client = conn.getClient();
    List<Map<String, Object>> productList = (List<Map<String, Object>>) client.call(ResourcePath.ProductTypeList, "");

    for (Map<String, Object> map : productList) {
      System.out.println(map.toString());
    }
  }
View Full Code Here


  @Test
  public void testConnectionRepeatCallsInSameSession() {

    ConnectionMock conn = new ConnectionMock();

    SoapClient client = conn.getClient();

    try {

      System.out.println("*** DEBUG *** Perform test 1");
      Object res1 = client.call(ResourcePath.ProductList, "");
      System.out.println("*** DEBUG *** result 1: " + res1.toString());

      System.out.println("*** DEBUG *** Perform test 2");
      Object res2 = client.call(ResourcePath.ProductList, "");
      System.out.println("*** DEBUG *** result 2: " + res2.toString());

      System.out.println("*** DEBUG *** Perform test 3");
      Object res3 = client.call(ResourcePath.ProductList, "");
      System.out.println("*** DEBUG *** result 3: " + res3.toString());

      System.out.println("*** DEBUG *** Perform test 4");
      Object res4 = client.call(ResourcePath.ProductList, "");
      System.out.println("*** DEBUG *** result 4: " + res4.toString());


    } catch (AxisFault e) {
      fail(e.getMessage());
View Full Code Here

  @Test
  public void testConnectionRepeatCallsWithLoginAndLogout() {

    ConnectionMock conn = new ConnectionMock();

    SoapClient client = conn.getClient();

    try {

      System.out.println("*** DEBUG *** Perform test 1");
      Object res1 = client.call(ResourcePath.ProductList, "");
      System.out.println("*** DEBUG *** result 1: " + res1.toString());

      System.out.println("*** DEBUG *** Perform test 2");
      Object res2 = client.call(ResourcePath.ProductList, "");
      System.out.println("*** DEBUG *** result 2: " + res2.toString());

      System.out.println("*** DEBUG *** Perform test 3");
      Object res3 = client.call(ResourcePath.ProductList, "");
      System.out.println("*** DEBUG *** result 3: " + res3.toString());

      System.out.println("*** DEBUG *** Perform test 4");
      Object res4 = client.call(ResourcePath.ProductList, "");
      System.out.println("*** DEBUG *** result 4: " + res4.toString());

    } catch (AxisFault e) {
      fail(e.getMessage());
    }
View Full Code Here

TOP

Related Classes of com.google.code.magja.soap.SoapClient

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.