Package org.apache.axis.encoding

Examples of org.apache.axis.encoding.XMLType


            MessageContext msgContext = context.getMessageContext();
            Message        msg = msgContext.getCurrentMessage();
            if ( msg != null && msg.getMessageType() == Message.RESPONSE ) {
                Call c = (Call) msgContext.getProperty( MessageContext.CALL );
                if ( c != null ) {
                    XMLType xmlType = null ;

                    // First look for this param by name
                    xmlType = (XMLType) c.getParameterTypeByName(localName);

                    // If we can't find it by name then assume it must
                    // be the return type - is this correct/safe????
                    if ( xmlType == null )
                        xmlType = (XMLType) c.getReturnType();

                    // Now get the QName
                    if ( xmlType != null )
                        type = xmlType.getType();
                }
            }

            if (type == null && defaultParamTypes!=null &&
                params.size()<=defaultParamTypes.length) {
View Full Code Here


        String result;
        try {
            call.setTargetEndpointAddress( new java.net.URL(options.getURL()) );
            call.setProperty( Call.NAMESPACE, "OrderProcessor" );
            call.setOperationName( "processOrder" );
            call.addParameter( "arg1", new XMLType(qn), Call.PARAM_MODE_IN );

            result = (String) call.invoke( new Object[] { order } );
        } catch (AxisFault fault) {
            result = "Error : " + fault.toString();
        }
View Full Code Here

            new JAFDataHandlerSerializer());

        call.addDeserializerFactory(qnameAttachment, dhSource.getClass(),
            JAFDataHandlerDeserializer.getFactory());

        call.addParameter( "source", new XMLType(qnameAttachment),
            Call.PARAM_MODE_IN ); //Add the file.

        call.setReturnType( new XMLType(qnameAttachment));

        call.setProperty( Transport.USER, opts.getUser());

        call.setProperty( Transport.PASSWORD, opts.getPassword() );
View Full Code Here

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

                // Default return type based on what we expect
                QName qn = map.getTypeQName(toSend.getClass());
                XMLType  xt = new XMLType( qn );

                call.addParameter( arg, xt, Call.PARAM_MODE_IN);
                call.setReturnType( xt );
                args = new Object[] { toSend } ;
            }
View Full Code Here

                                                         "Weston",
                                                         "CT",
                                                         "06883"),
                                             lineItems );

      call.addParameter( "PO", new XMLType(poqn), Call.PARAM_MODE_IN );
      call.setOperationName( "Buy" );

      String res = (String) call.invoke( new Object[] { po } );

      return( res );
View Full Code Here

        try {
            // Default return type based on what we expect
            call.setOperationName( "Buy" );
            call.setProperty( Call.NAMESPACE, "http://www.soapinterop.org/Bid");
            call.addParameter( "PO", new XMLType(poqn), Call.PARAM_MODE_IN );
            call.setReturnType( XMLType.XSD_STRING );

            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

TOP

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

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.