Package org.apache.soap.rpc

Examples of org.apache.soap.rpc.Parameter


        */
        else if (detailEntry instanceof Parameter)
        {
          try
          {
            Parameter detailEntryParameter = (Parameter)detailEntry;
            Serializer s = xjmr.querySerializer(Parameter.class, inScopeEncStyle);

            if (s != null)
            {
              s.marshall(null,
View Full Code Here


                                    : inScopeEncStyle;
            Bean paramBean = xjmr.unmarshall(declEncStyle,
                                             RPCConstants.Q_ELEM_PARAMETER,
                                             el,
                                             ctx);
            Parameter param = (Parameter)paramBean.value;

            detailEntries.addElement(param);
          }
          catch (Exception e)
          {
View Full Code Here

      {
        Object detailEl = detailEntries.elementAt(i);

        if (detailEl instanceof Parameter)
        {
          Parameter param = (Parameter)detailEl;

          pw.println("[(" + i + ")=" + param +"]");
        }
        else
        {
View Full Code Here

                   ((SOAPJMSConnection) st).setJmsProperty(
              name,
              value);
        }
      } else {
                Parameter param =
                    new Parameter(
                        names[i],
                        types[i],
                        value,
                        inputEncodingStyle);
                params.addElement(param);
View Full Code Here

     * Populate the outMessage with the response return value.
     */
    private void populateOutMsgReturnPart(Response resp, WSIFMessage outMsg)
        throws WSIFException {
        if (outMsg != null && returnName != null) {
            Parameter retValue = resp.getReturnValue();
            if (retValue == null) {
                throw new WSIFException("return value not found in response message");
            }
            Object result = retValue.getValue();
            if (returnType != null) { // will be null for async responses
                if (!returnType.isPrimitive()
                    && result != null
                    && !(returnType.isAssignableFrom(result.getClass()))) {
                    throw new WSIFException(
View Full Code Here

        throws WSIFException {
        if (outMsg != null) {
            Vector respParms = resp.getParams();
            ArrayList wsdlOutParameters = getWSDLOutParams();
            if (respParms != null) {
                Parameter p;
                for (Iterator i = respParms.iterator(); i.hasNext();) {
                    p = (Parameter) i.next();
                    outMsg.setObjectPart(p.getName(), p.getValue());
                    wsdlOutParameters.remove(p.getName());
                }
            }
            // missing parts default to null
            for (Iterator i = wsdlOutParameters.iterator(); i.hasNext();) {
                outMsg.setObjectPart((String) i.next(), null);
View Full Code Here

  public synchronized void send(AbstractJmsRequest request) throws Exception {
    Hashtable h = request.soapCode();

    // Setting the call's parameters:
    Vector params = new Vector();
    params.addElement(new Parameter("name", String.class, identity.getUserName(), null));
    params.add(new Parameter("cnxId", Integer.class,
                             new Integer(cnxId), null));
    params.add(new Parameter("map", Hashtable.class, h, null));
    sendCall.setParams(params);

    // Sending the request, checking the reply:
    try {
      Response resp = sendCall.invoke(serviceUrl,"");
View Full Code Here

    try {
      h = identity.soapCode();
    } catch (IOException e) {
      throw new JMSException("EXCEPTION:: connect identity.soapCode(): " + e.getMessage());
    }
    params.add(new Parameter("identityMap", Hashtable.class, h, null));
    params.addElement(new Parameter("timeout",
                                    Integer.class,
                                    new Integer(factParams.cnxPendingTimer),
                                    null));

    checkCall.setParams(params);
View Full Code Here

    }
  }

  public AbstractJmsReply receive() throws Exception {
    Vector params = new Vector();
    params.addElement(new Parameter("name", String.class, identity.getUserName(), null));
    params.addElement(new Parameter("cnxId", int.class, new Integer(cnxId), null));   
    receiveCall.setParams(params);
   
    Response resp = null;
    AbstractJmsReply reply = null;
   
View Full Code Here

    org.apache.soap.rpc.Call call = new org.apache.soap.rpc.Call();
    call.setTargetObjectURI("urn:ProxyService");
    call.setMethodName("start");

    java.util.Vector params = new java.util.Vector();
    params.add(new Parameter("serverId", Integer.class,
                             new Integer(serverId), null));
    params.add(new Parameter("serverName", String.class, serverName, null));
    call.setParams(params);

    System.out.println("Starting the " + serverName + " embedded server.");

    call.invoke(url,"");
View Full Code Here

TOP

Related Classes of org.apache.soap.rpc.Parameter

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.