Package er.examples.erjaxws.ws

Examples of er.examples.erjaxws.ws.StatefulAction


    URL url = new URL(WOApplication.application().directConnectURL() +
        "/ws/StatefulAction?wsdl");

    StatefulActionImplService service = new StatefulActionImplService(url,
        new QName("http://ws.erjaxws.examples.er/", "StatefulActionImplService"));
    StatefulAction sAction = service.getPort(StatefulAction.class);

    /* setting this property is essential for enabling stateful mode in our client proxy
     * after setting this, session cookies will be passed to the server on subsequent
     * requests */
    ((BindingProvider) sAction).getRequestContext().put(BindingProvider.SESSION_MAINTAIN_PROPERTY, true);

    sAction.authenticate("name", "password");
    serverOutput = sAction.testAction("test");
   
    return null;
  }
View Full Code Here

TOP

Related Classes of er.examples.erjaxws.ws.StatefulAction

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.