Package org.springmodules.remoting.xmlrpc.support

Examples of org.springmodules.remoting.xmlrpc.support.XmlRpcFault


    // expectation: serialize the XML-RPC response.
    byte[] serializedXmlRpcResponse = { 5, 7, 3 };
    XmlRpcException xmlRpcException = new XmlRpcInternalException(
        "Server error. Internal xml-rpc error");
    XmlRpcFault xmlRpcFault = new XmlRpcFault(xmlRpcException.getCode(),
        xmlRpcException.getMessage());
    XmlRpcResponse xmlRpcResponse = new XmlRpcResponse(xmlRpcFault);
    this.xmlRpcResponseWriter.writeResponse(xmlRpcResponse);
    this.xmlRpcResponseWriterControl.setReturnValue(serializedXmlRpcResponse);
View Full Code Here


    // expectation: serialize the XML-RPC response.
    byte[] serializedXmlRpcResponse = { 5, 7, 3 };
    XmlRpcException xmlRpcException = new XmlRpcServiceNotFoundException(
        "The service '" + notExistingServiceName + "' was not found");
    XmlRpcFault xmlRpcFault = new XmlRpcFault(xmlRpcException.getCode(),
        xmlRpcException.getMessage());
    XmlRpcResponse xmlRpcResponse = new XmlRpcResponse(xmlRpcFault);
    this.xmlRpcResponseWriter.writeResponse(xmlRpcResponse);
    this.xmlRpcResponseWriterControl.setReturnValue(serializedXmlRpcResponse);
View Full Code Here

   */
  public final void testWriteResponseWithFault() {
    int faultCode = 8453;
    String faultMessage = "A fault";

    XmlRpcFault xmlRpcFault = new XmlRpcFault(faultCode, faultMessage);

    XmlRpcResponse response = new XmlRpcResponse(xmlRpcFault);

    StringBuffer builder = new StringBuffer(256);
    builder.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
View Full Code Here

      XmlRpcElement parameter = xmlRpcElementFactory
          .createXmlRpcElement(result);
      xmlRpcResponse = new XmlRpcResponse(parameter);

    } else {
      XmlRpcFault xmlRpcFault = new XmlRpcFault(xmlRpcException.getCode(),
          xmlRpcException.getMessage());

      xmlRpcResponse = new XmlRpcResponse(xmlRpcFault);
    }
View Full Code Here

TOP

Related Classes of org.springmodules.remoting.xmlrpc.support.XmlRpcFault

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.