Package org.apache.axis.encoding

Examples of org.apache.axis.encoding.ServiceDescription


        Boolean shouldSendMultiRefs = (Boolean)engine.getOption(
                                                  AxisEngine.PROP_DOMULTIREFS);
        if (shouldSendMultiRefs != null)
            doMultiRefs = shouldSendMultiRefs.booleanValue();

        ServiceDescription sd = msgContext.getServiceDescription();
        if (sd != null) {
            sendXSIType = sd.getSendTypeAttr();
        }
    }
View Full Code Here


            ServiceClient call   = new ServiceClient
                ( new TCPTransport("localhost", "8088") );
           
            // reconstruct URL
            ServiceDescription sd = new ServiceDescription("stockQuotes", true);
            sd.addOutputParam("return", SOAPTypeMappingRegistry.XSD_FLOAT);
            call.setServiceDescription(sd);
           
            Float res = new Float(0.0F);
            //      for (int i=0; i<count; i++) {
            Object ret = call.invoke(
View Full Code Here

      String namespace = "urn:xmltoday-delayed-quotes";
      symbol = args[0] ;

      ServiceClient call = new ServiceClient(opts.getURL());
      call.setTransport(new TCPTransport());
      ServiceDescription sd = new ServiceDescription("stockQuotes", true);
      sd.addInputParam("symbol", SOAPTypeMappingRegistry.XSD_STRING);
      sd.setOutputType(SOAPTypeMappingRegistry.XSD_FLOAT);
      call.setServiceDescription(sd);
     
      // TESTING HACK BY ROBJ
      if (symbol.equals("XXX_noaction")) {
          symbol = "XXX";
View Full Code Here

      String namespace = "urn:xmltoday-delayed-quotes";
      symbol = args[0] ;

      ServiceClient call = new ServiceClient(opts.getURL());
      ServiceDescription sd = new ServiceDescription("stockQuotes", true);
      sd.addInputParam("symbol", SOAPTypeMappingRegistry.XSD_STRING);
      sd.setOutputType(SOAPTypeMappingRegistry.XSD_FLOAT);
      call.setServiceDescription(sd);
     
      // TESTING HACK BY ROBJ
      if (symbol.equals("XXX_noaction")) {
          symbol = "XXX";
View Full Code Here

                args = new Object[] {};
            } else {
                args = new Object[] {new RPCParam(arg, toSend)};

                // Default return type based on what we expect
                ServiceDescription sd = new ServiceDescription(method, true);
                sd.setOutputType(map.getTypeQName(toSend.getClass()));
                call.setServiceDescription(sd);
            }

            // set the SOAPAction, optionally appending the method name
            String action = soapAction;
View Full Code Here

        call.addSerializer(cls, liqn, new BeanSerializer(cls));
        call.addDeserializerFactory(liqn, cls, BeanSerializer.getFactory());

        try {
            // Default return type based on what we expect
            ServiceDescription sd = new ServiceDescription("Buy", true);
            sd.addInputParam("PO", poqn);
            sd.addOutputParam("return", SOAPTypeMappingRegistry.XSD_STRING);
            call.setServiceDescription(sd);

            LineItem[] li = new LineItem[2];
            li[0] = new LineItem("Tricorder", 1, "2500.95");
            li[1] = new LineItem("Phasor", 3, "7250.95");
View Full Code Here

       
        /** Now we make a plain SOAPBodyElement IF we either:
         * a) have an non-root element, or
         * b) have a non-RPC service
         */
        ServiceDescription serviceDesc = context.getMessageContext().
                                                      getServiceDescription();

        if (localName.equals(Constants.ELEM_FAULT) &&
            namespace.equals(Constants.URI_SOAP_ENV)) {
            element = new SOAPFaultElement(namespace, localName, prefix,
                                           attributes, context);
            handler = new SOAPFaultBuilder((SOAPFaultElement)element,
                                           context);
        } else if (!gotRPCElement &&
            isRoot &&
            ((serviceDesc == null) || (serviceDesc.isRPC()))) {
            gotRPCElement = true;
            element = new RPCElement(namespace, localName, prefix,
                                     attributes, context);
            //handler = new RPCHandler((RPCElement)element);
        } else {
View Full Code Here

                return null;
            }
           
            client
              .getMessageContext()
               .setServiceDescription(new ServiceDescription("Admin", false));
           
            input.close();
            SOAPEnvelope envelope =
                                   (SOAPEnvelope) outMsg.getAsSOAPEnvelope();
            SOAPBodyElement body = envelope.getFirstBody();
View Full Code Here

        /** Potential optimizations:
         *
         * - Cache typeMappingRegistry
         * - Cache service description
         */
        ServiceDescription serviceDesc = context.getMessageContext().
                                                getServiceDescription();
       
        if (DEBUG_LOG) {
            System.err.println("In RPCHandler.onStartChild()");
        }
       
        Vector params = call.getParams();
        if (serviceDesc == null && params.isEmpty()) {
            determineDefaultParams(call.getMethodName(), context);
        }
       
        // This is a param.
        currentParam = new RPCParam(namespace, localName, null);
        call.addParam(currentParam);
       
        QName type = context.getTypeFromAttributes(namespace,
                                                   localName,
                                                   attributes);
        if (DEBUG_LOG) {
            System.err.println("Type from attrs was " + type);
        }
       
        // xsi:type always overrides everything else
        if (type == null) {
            // but if we don't find one, see if the ServiceDescription
            // might shed some light...
            if (serviceDesc != null) {
                String msgType = context.getEnvelope().getMessageType();
                type = serviceDesc.getParamTypeByName(msgType, localName);
                if (DEBUG_LOG) {
                    System.err.println("Type from service desc was " + type);
                }
            }
           
View Full Code Here

            ServiceClient call   = new ServiceClient
                ( new TCPTransport("localhost", "8088") );
           
            // reconstruct URL
            ServiceDescription sd = new ServiceDescription("stockQuotes", true);
            sd.addOutputParam("return", SOAPTypeMappingRegistry.XSD_FLOAT);
            call.setServiceDescription(sd);
           
            Float res = new Float(0.0F);
            //      for (int i=0; i<count; i++) {
            Object ret = call.invoke(
View Full Code Here

TOP

Related Classes of org.apache.axis.encoding.ServiceDescription

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.