Package org.apache.soap.util

Examples of org.apache.soap.util.Bean


      respEncStyle = Constants.NS_URI_SOAP_ENC;
    }
   
    // invoke the method (directly for Java and via InvokeBSF for script
    // methods)
    Bean result = null;
    try {
      if (providerType == DeploymentDescriptor.PROVIDER_JAVA) {
  Method m = MethodUtils.getMethod (targetObject, call.getMethodName (),
            argTypes);
  result = new Bean (m.getReturnType (), m.invoke (targetObject, args));
      } else {
  // find the class that provides the BSF services (done
  // this way via reflection to avoid a compile-time dependency on BSF)
  Class bc = Class.forName ("org.apache.soap.server.InvokeBSF");
View Full Code Here


    Iterator it = objects.iterator();

    Object o;
    // assumethat there was one object encoded at most
    if( it.hasNext() )
      return new Bean((o=it.next()).getClass(), o);
    else
      throw new IllegalArgumentException("Unable to unmarshall XMI-encoded " +
                                         "object.");
              
  }
View Full Code Here

    Iterator it = objects.iterator();

    Object o;
    // assumethat there was one object encoded at most
    if( it.hasNext() )
      return new Bean((o=it.next()).getClass(), o);
    else
      throw new IllegalArgumentException("Unable to unmarshall XMI-encoded " +
                                         "object.");
                           
  }
View Full Code Here

        throw new IllegalArgumentException ("unknown element '" +
                                            tagName + "' while " +
                                            "unmarshalling a TypeMapping");
      }
    }
    return new Bean (TypeMapping.class,
                     new TypeMapping (encodingStyle,
                                      new QName (elTypeNS, elTypeLP),
                                      javaType,
                                      java2XMLClassName, xml2JavaClassName));
  }
View Full Code Here

      respEncStyle = Constants.NS_URI_SOAP_ENC;
    }
   
    // invoke the method (directly for Java and via InvokeBSF for script
    // methods)
    Bean result = null;
    try {
      if (providerType == DeploymentDescriptor.PROVIDER_JAVA) {
        Method m = MethodUtils.getMethod (targetObject, call.getMethodName (),
                                          argTypes);
        result = new Bean (m.getReturnType (), m.invoke (targetObject, args));
      } else {
        // find the class that provides the BSF services (done
        // this way via reflection to avoid a compile-time dependency on BSF)
        Class bc = Class.forName ("org.apache.soap.server.InvokeBSF");
View Full Code Here

    String prefix = value.substring(0,idx);
    String uri = DOMUtils.getNamespaceURIFromPrefix(src, prefix);
   
    QName qName = new QName(uri, value.substring(idx + 1));
    System.err.println(">> Unpacked QName '" + qName + "'");
    return new Bean(QName.class, qName);
 
View Full Code Here

        throw new IllegalArgumentException ("unknown element '" +
                                            tagName + "' while " +
                                            "unmarshalling a TypeMapping");
      }
    }
    return new Bean (TypeMapping.class,
                     new TypeMapping (encodingStyle,
                                      new QName (elTypeNS, elTypeLP),
                                      javaType,
                                      java2XMLClassName, xml2JavaClassName));
  }
View Full Code Here

TOP

Related Classes of org.apache.soap.util.Bean

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.