Examples of SoapClient


Examples of com.arjuna.webservices.SoapClient

        final SoapService soapService)
        throws SoapFault, IOException
    {
        final String toURI = getDestinationURI(addressingContext) ;
        final MessageContext messageContext = createMessageContext(addressingContext) ;
        final SoapClient client = getSoapClient(toURI) ;
       
        final SoapFaultMessage fault = new SoapFaultMessage(soapFault, soapDetails, soapService, messageContext) ;
        client.invokeOneWay(fault, toURI) ;
    }
View Full Code Here

Examples of com.arjuna.webservices.SoapClient

    private static SoapClient getSoapClient(final String destinationURI)
        throws IOException
    {
        final SoapRegistry soapRegistry = SoapRegistry.getRegistry() ;
        final String scheme = soapRegistry.getScheme(destinationURI) ;
        final SoapClient client = soapRegistry.getSoapClient(scheme) ;
       
        if (client == null)
        {
            final String pattern = WSCLogger.log_mesg.getString("com.arjuna.webservices.wsaddr2005.client.WSAddr2005Client_3") ;
            final String message = MessageFormat.format(pattern, new Object[] {scheme}) ;
View Full Code Here

Examples of com.arjuna.webservices.SoapClient

        final String scheme = soapRegistry.getScheme(toURL) ;
        final NamedElement contents = new NamedElement(bodyName, request) ;
        final SoapBody soapBody = new SoapBody(contents, actionValue) ;
        final SoapBodyMessage soapBodyMessage = new SoapBodyMessage(soapBody, null, soapService, messageContext) ;
       
        final SoapClient client = soapRegistry.getSoapClient(scheme) ;
        return client.invoke(soapBodyMessage, toURL) ;
    }
View Full Code Here

Examples of com.arjuna.webservices.SoapClient

        final String scheme = soapRegistry.getScheme(toURL) ;
        final NamedElement contents = new NamedElement(bodyName, request) ;
        final SoapBody soapBody = new SoapBody(contents, actionValue) ;
        final SoapBodyMessage soapBodyMessage = new SoapBodyMessage(soapBody, null, soapService, messageContext) ;
       
        final SoapClient client = soapRegistry.getSoapClient(scheme) ;
        client.invokeOneWay(soapBodyMessage, toURL) ;
    }
View Full Code Here

Examples of com.arjuna.webservices.SoapClient

        final SoapRegistry soapRegistry = SoapRegistry.getRegistry() ;
       
        final String scheme = soapRegistry.getScheme(toURL) ;
        final SoapFaultMessage fault = new SoapFaultMessage(soapFault, null, soapService, messageContext) ;
       
        final SoapClient client = soapRegistry.getSoapClient(scheme) ;
        client.invokeOneWay(fault, toURL) ;
    }
View Full Code Here

Examples of com.arjuna.webservices.SoapClient

     * @param servletContextEvent The servlet context event.
     */
    public void contextInitialized(final ServletContextEvent servletContextEvent)
    {
        final SoapRegistry soapRegistry = SoapRegistry.getRegistry() ;
        final SoapClient client = new HttpClient() ;
        soapRegistry.registerSoapClient(HttpUtils.HTTP_SCHEME, client) ;
        soapRegistry.registerSoapClient(HttpUtils.HTTPS_SCHEME, client) ;
    }
View Full Code Here

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

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

  @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

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

  @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

Examples of org.apache.qpid.info.util.SoapClient

                    Properties props = new Properties();
                    props.putAll(defaultProps);
                    props.putAll(ifr.getSections().get(section));
                    if (isValid(protocol, props))
                    {
                        new SoapClient(info.toMap(), props).sendSOAPMessage();
                    }
                }
            }
        }
    }
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.