Package org.apache.axis2.jaxws.sample.nonwrap.sei

Examples of org.apache.axis2.jaxws.sample.nonwrap.sei.DocLitNonWrapService


            twh.setTwoWayHolderInt(new Integer(0));
            twh.setTwoWayHolderStr(new String("Request Holder String"));
            Holder<TwoWayHolder> holder = new Holder<TwoWayHolder>(twh);
            TwoWay twoWay = new ObjectFactory().createTwoWay();
            twoWay.setTwowayStr("testing sync call for java bean non wrap endpoint");
            DocLitNonWrapService service = new DocLitNonWrapService();
            DocLitNonWrapPortType proxy = service.getDocLitNonWrapPort();

            BindingProvider p =  (BindingProvider)proxy;
            p.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, axisEndpoint);

            proxy.twoWayHolder(holder);
View Full Code Here


            twh.setTwoWayHolderInt(new Integer(0));
            twh.setTwoWayHolderStr(new String("Request Holder String"));
            Holder<TwoWayHolder> holder = new Holder<TwoWayHolder>(twh);
            TwoWay twoWay = new ObjectFactory().createTwoWay();
            twoWay.setTwowayStr("testing sync call for java bean non wrap endpoint");
            DocLitNonWrapService service = new DocLitNonWrapService();
            DocLitNonWrapPortType proxy = service.getDocLitNonWrapPort();

            BindingProvider p =  (BindingProvider)proxy;
            p.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, axisEndpoint);

            AsyncCallback callback = new AsyncCallback();
View Full Code Here

        TestLogger.logger.debug("------------------------------");
        TestLogger.logger.debug("Test : " + getName());
    try{
      TwoWay twoWay = new ObjectFactory().createTwoWay();
      twoWay.setTwowayStr("testing sync call for java bean non wrap endpoint");
      DocLitNonWrapService service = new DocLitNonWrapService();
      DocLitNonWrapPortType proxy = service.getDocLitNonWrapPort();
      ReturnType returnValue = proxy.twoWay(twoWay);
            TestLogger.logger.debug(returnValue.getReturnStr());
            TestLogger.logger.debug("------------------------------");
    }catch(Exception e){
      e.printStackTrace();
View Full Code Here

    public void testTwoWaySyncNull() throws Exception{
        TestLogger.logger.debug("------------------------------");
        TestLogger.logger.debug("Test : " + getName());
        try{
            TwoWay twoWay = null// This should cause an WebServiceException
            DocLitNonWrapService service = new DocLitNonWrapService();
            DocLitNonWrapPortType proxy = service.getDocLitNonWrapPort();
            ReturnType returnValue = proxy.twoWay(twoWay);
           
            // TODO Revisit JAXB validation
            // JAXWS does not make the decision of whether a
            // null parameter can be marshalled.  This decision is
View Full Code Here

        TestLogger.logger.debug("------------------------------");
        TestLogger.logger.debug("Test : " + getName());
    try{
      TwoWay twoWay = new ObjectFactory().createTwoWay();
      twoWay.setTwowayStr("testing Async call for java bean non wrap endpoint");
      DocLitNonWrapService service = new DocLitNonWrapService();
      DocLitNonWrapPortType proxy = service.getDocLitNonWrapPort();
      AsyncCallback callback = new AsyncCallback();
      Future<?> monitor = proxy.twoWayAsync(twoWay, callback);
      assertNotNull(monitor);
            TestLogger.logger.debug("------------------------------");
    }catch(Exception e){
View Full Code Here

      twh.setTwoWayHolderInt(new Integer(0));
      twh.setTwoWayHolderStr(new String("Request Holder String"));
      Holder<TwoWayHolder> holder = new Holder<TwoWayHolder>(twh);
      TwoWay twoWay = new ObjectFactory().createTwoWay();
      twoWay.setTwowayStr("testing sync call for java bean non wrap endpoint");
      DocLitNonWrapService service = new DocLitNonWrapService();
      DocLitNonWrapPortType proxy = service.getDocLitNonWrapPort();
      proxy.twoWayHolder(holder);
      twh = holder.value;
            TestLogger.logger.debug("Holder string =" + twh.getTwoWayHolderStr());
            TestLogger.logger.debug("Holder int =" + twh.getTwoWayHolderInt());
View Full Code Here

      twh.setTwoWayHolderInt(new Integer(0));
      twh.setTwoWayHolderStr(new String("Request Holder String"));
      Holder<TwoWayHolder> holder = new Holder<TwoWayHolder>(twh);
      TwoWay twoWay = new ObjectFactory().createTwoWay();
      twoWay.setTwowayStr("testing sync call for java bean non wrap endpoint");
      DocLitNonWrapService service = new DocLitNonWrapService();
      DocLitNonWrapPortType proxy = service.getDocLitNonWrapPort();
      AsyncCallback callback = new AsyncCallback();
      Future<?> monitor =proxy.twoWayHolderAsync(twh, callback);
      while(!monitor.isDone()){
        Thread.sleep(1000);
      }
View Full Code Here

            String charSetEncoding = BuilderUtil.getCharSetEncoding(contentTypeStr);
            msgContext.setProperty(
                    Constants.Configuration.CHARACTER_SET_ENCODING, charSetEncoding);
            boolean eprFound = false;
            if (endpointsConfiguration != null) {
                URLEndpoint epr = endpointsConfiguration.getEndpoint(request.getRequestLine().getUri());
                if (epr != null) {
                    eprFound = true;
                    String type = TransportUtils.getContentType(contentTypeStr, msgContext);
                    msgContext.setProperty(Constants.Configuration.MESSAGE_TYPE, type);
                    epr.setParameters(msgContext);

                    Builder builder = epr.getBuilder(type);
                    if (HTTPTransportUtils.isRESTRequest(contentTypeStr)) {
                        RESTUtil.processPOSTRequest(msgContext, is, os,
                                request.getRequestLine().getUri(), contentType, builder, isRestDispatching);
                    } else {
View Full Code Here

            String contentTypeStr = contentType != null ?
                    contentType.getValue() : inferContentType();

            boolean eprFound = false;
            if (endpointsConfiguration != null) {
                URLEndpoint epr = endpointsConfiguration.getEndpoint(request.getRequestLine().getUri());
                if (epr != null) {
                    eprFound = true;
                    String type = TransportUtils.getContentType(contentTypeStr, msgContext);
                    msgContext.setProperty(Constants.Configuration.MESSAGE_TYPE, type);

                    epr.setParameters(msgContext);

                    Builder builder = epr.getBuilder(type);
                    RESTUtil.processGetAndDeleteRequest(
                            msgContext, os, request.getRequestLine().getUri(),
                            request.getFirstHeader(HTTP.CONTENT_TYPE), builder,
                            method, isRestDispatching);
                }
View Full Code Here

        params = getListenerParameters();


        param = transportIn.getParameter(NhttpConstants.ENDPOINTS_CONFIGURATION);
        if (param != null && param.getValue() != null) {
            endpoints = new URLEndpointsConfigurationFactory().create(param.getValue().toString());
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.axis2.jaxws.sample.nonwrap.sei.DocLitNonWrapService

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.