Examples of RPCParam


Examples of org.apache.axis.message.RPCParam

        Document document = XMLUtils.newDocument(reqSource);
       
        String msgString = null;
       
        SOAPEnvelope msg = new SOAPEnvelope();
        RPCParam arg1 = new RPCParam("urn:myNamespace", "testParam", document.getFirstChild());
        arg1.setXSITypeGeneration(Boolean.FALSE);
       
        RPCElement body = new RPCElement("urn:myNamespace", "method1", new Object[] { arg1 });
        msg.addBodyElement(body);
        body.setEncodingStyle(Constants.URI_LITERAL_ENC);
       
View Full Code Here

Examples of org.apache.axis.message.RPCParam

        sd.setSendTypeAttr(false);

        msgContext.setServiceDescription(sd);

        SOAPEnvelope msg = new SOAPEnvelope();
        RPCParam arg1 = new RPCParam("urn:myNamespace",
                                     "testParam",
                                     "this is a string");
        RPCElement body = new RPCElement("urn:myNamespace",
                                         "method1",
                                         new Object[]{ arg1 });
View Full Code Here

Examples of org.apache.axis.message.RPCParam

    }

    public void invoke(MessageContext msgContext) throws AxisFault {
        SOAPEnvelope env = new SOAPEnvelope();

        RPCParam retVal = new RPCParam("return", new Integer(5));
        RPCParam outParam1 = new RPCParam("out1", OUTPARAM1);
        RPCParam outParam2 = new RPCParam("out2", OUTPARAM2);

        RPCElement rpc = new RPCElement("namespace", "response", new Object []
                            { retVal, outParam1, outParam2 });

        env.addBodyElement(rpc);
View Full Code Here

Examples of org.apache.axis.message.RPCParam

      ServiceClient call = new ServiceClient
            (new HTTPTransport(registryURL, "http://www.soapinterop.org/Register"));
      RPCElement body = new RPCElement( "http://www.soapinterop.org/Registry",
                                        "Register",
                                        new RPCParam[] {
                                          new RPCParam("ServiceName",
                                                       s.getServiceName()),
                                          new RPCParam("SerivceURL",
                                                       s.getServiceUrl()),
                                          new RPCParam("ServiceType",
                                                       s.getServiceType()),
                                          new RPCParam("ServiceWSDL",
                                                       s.getServiceWsdl()) } );
      call.invoke( body );
    }
    catch( Exception e ) {
      e.printStackTrace();
View Full Code Here

Examples of org.apache.axis.message.RPCParam

      ServiceClient call = new ServiceClient
            (new HTTPTransport(registryURL, "http://www.soapinterop.org/Unregister"));
      RPCElement body = new RPCElement( "http://www.soapinterop.org/Registry",
                                        "Unregister",
                                        new RPCParam[] {
                                          new RPCParam("ServiceName",
                                                       name) } );
      call.invoke( body );
    }
    catch( Exception e ) {
      e.printStackTrace();
View Full Code Here

Examples of org.apache.axis.message.RPCParam

      call.set(HTTPTransport.ACTION, "http://www.soapinterop.org/LookupAsString");
      call.setServiceDescription(sd);
      RPCElement body = new RPCElement( "http://www.soapinterop.org/Registry",
                                        "LookupAsString",
                                        new RPCParam[] {
                                          new RPCParam("ServiceType",
                                                       "Bid") } );
      String res = (String) call.invoke( body );
      if ( res == null ) return( null );
      StringTokenizer  lineParser = new StringTokenizer( res, "\n" );
View Full Code Here

Examples of org.apache.axis.message.RPCParam

                                  (serverURL, "http://www.soapinterop.org/RequestForQuote"));
      call.setServiceDescription( sd );
      RPCElement body = new RPCElement( "http://www.soapinterop.org/Bid",
                                        "RequestForQuote",
                                        new RPCParam[] {
                                          new RPCParam( "ProductName",
                                                        "widget"),
                                          new RPCParam( "Quantity",
                                                        new Integer(10) ) } );
      Object r = call.invoke( body );
      if ( r instanceof Float ) r = ((Float)r).toString();
      if ( r instanceof String ) r = new Double((String) r);
      Double res = (Double) r ;
View Full Code Here

Examples of org.apache.axis.message.RPCParam

            new ServiceClient(new HTTPTransport
                                  (serverURL, "http://www.soapinterop.org/SimpleBuy"));
      RPCElement  body = new RPCElement( "http://www.soapinterop.org/Bid",
                                         "SimpleBuy",
                                         new RPCParam[] {
                                           new RPCParam("Address",
                                                        "123 Main St."),
                                           new RPCParam("ProductName",
                                                        "Widget"),
                                           new RPCParam("Quantity",
                                                        new Integer(quantity))});
      String res = (String) call.invoke( body );
      return( res );
    }
    catch( Exception e ) {
View Full Code Here

Examples of org.apache.axis.message.RPCParam

                                             lineItems );

      RPCElement  body = new RPCElement( "http://www.soapinterop.org/Bid",
                                         "Buy",
                                         new RPCParam[]{
                                           new RPCParam("PO",
                                                        po)} );
      String res = (String) call.invoke( body );
      return( res );
    }
    catch( Exception e ) {
View Full Code Here

Examples of org.apache.axis.message.RPCParam

            // set up the argument list
            Object args[];
            if (toSend == null) {
                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);
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.