Examples of Hello


Examples of org.jboss.test.hello.interfaces.Hello

   public void testServerExceptionDoesntFailOver()
      throws Exception
   {
      HelloHome home = (HelloHome)getInitialContext().lookup(JNDI_NAME);
      Hello hello = home.create();
      try
      {
         hello.throwException();
      }
      catch(Exception e)
      {
         getLog().debug("Caught IOException as expected", e);
      }
      hello.hello("server exception error");
   }
View Full Code Here

Examples of org.jboss.test.helloiiop.interfaces.Hello

      throws Exception
   {
      HelloHome home = (HelloHome)PortableRemoteObject.narrow(
                               getInitialContext().lookup(HelloHome.JNDI_NAME),
                               HelloHome.class);
      Hello hello = home.create();
      getLog().debug(hello.hello("World"));
      hello.remove();
   }
View Full Code Here

Examples of org.jboss.test.ws.jaxws.samples.wssecurity.Hello

* @author <a href="mailto:tom.fennelly@jboss.com">tom.fennelly@jboss.com</a>
*/
public class WSSClient {

    public static void main(String[] args) throws MalformedURLException, RemoteException {
        Hello hello = getEndpointPort();

        UserType userType = new UserType();
        userType.setMsg("Hello ESB");
        UserType retObj = hello.echoUserType(userType);
        System.out.println("Echo received '" + retObj.getMsg() "'.");
    }
View Full Code Here

Examples of org.jboss.test.ws.jaxws.samples.wssecurity.Hello

        URL wsdlURL = new URL("http://localhost:8080/contract/contract.jsp?serviceCat=MyServiceCategory&serviceName=MyWssService&protocol=http");
        //URL wsdlURL = new URL("http://127.0.0.1:8080/Quickstart_webservice_wss?wsdl");
        //URL wsdlURL = new URL("http://127.0.0.1:8080/jaxws-samples-wssecurity-sign?wsdl");

        Service service = Service.create(wsdlURL, serviceName);
        Hello endpoint = service.getPort(Hello.class);

        ((StubExt) endpoint).setSecurityConfig("jboss-wsse-client.xml");
        ((StubExt) endpoint).setConfigName("Standard WSSecurity Client");

        Map<String, Object> reqContext = ((BindingProvider) endpoint).getRequestContext();
View Full Code Here

Examples of org.jboss.test.ws.jaxws.samples.wssecurity.Hello

* @author <a href="mailto:mageshbk@jboss.com">mageshbk@jboss.com</a>
*/
public class WSSClient {

    public static void main(String[] args) throws MalformedURLException, RemoteException {
        Hello hello = getEndpointPort();

        UserType userType = new UserType();
        userType.setMsg("Hello ESB");
        UserType retObj = hello.echoUserType(userType);
        System.out.println("Echo received '" + retObj.getMsg() "'.");
    }
View Full Code Here

Examples of org.jboss.test.ws.jaxws.samples.wssecurity.Hello

    private static Hello getEndpointPort() throws MalformedURLException {
        QName serviceName = new QName(Hello.SERVICE_NAMESPACE, Hello.SERVICE_NAME);
        URL wsdlURL = new URL("http://localhost:8080/contract/contract.jsp?serviceCat=MyServiceCategory&serviceName=MyWssService&protocol=http");

        Service service = Service.create(wsdlURL, serviceName);
        Hello endpoint = service.getPort(Hello.class);
        setupWsse(endpoint);

        Map<String, Object> reqContext = ((BindingProvider) endpoint).getRequestContext();
        reqContext.put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, "http://localhost:9876/");
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.