Redwood Documentation

Product Documentation

 

›SOAP

SOAP

  • Asynchronous Web Services
  • Built-in Web Services
  • Connecting Web Services with Redwood Server
  • Calling Web Services from within Redwood Server
  • Report2Web Web Services
  • Using Web Services

REST

  • Integrating Redwood Server with REST API's
  • Connecting REST Services with Redwood Server
  • Calling REST Services from within Redwood Server
← Calling Web Services from within Redwood ServerUsing Web Services →

Report2Web Web Services

ICatalog

CreateFolder

You create a process definition of type RedwoodScript with the following parameters and source:

ParameterDescriptionExample Value
ServiceURLThe URL to the WebServicehttp://archive.example.com:8080/archive-server/services/ICatalog
UsernameThe username for authenticationsystemsuperadmin
PasswordThe password of the user. Set the Password property of this parameter to hide its value in the user interface

CatalogThe catalog to useProduction
ParentFolderThe parent folder where you want to create the folder

FolderNameThe name of the folder to create

Example Process Definition Source

package custom.ws;
import java.net.*;
import java.io.*;
import com.redwood.scheduler.api.soap.SOAP;
import com.redwood.scheduler.api.soap.SOAPRequest;

public class SOAP_ICatalog_createFolder
  extends SOAP_ICatalog_createFolderStub
{
  public void execute()
    throws Exception
  {
    String message = "<SOAP-ENV:Envelope xmlns:tns1=\"http://faults.webservice.wachabe.redwood\" xmlns:apachesoap=\"http://xml.apache.org/xml-soap\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:SOAP-ENC=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:wsdlsoap=\"http://schemas.xmlsoap.org/wsdl/soap/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:wsdl=\"http://schemas.xmlsoap.org/wsdl/\" xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:intf=\"urn:webservice.wachabe.redwood\" xmlns:tns2=\"http://types.webservice.wachabe.redwood\" SOAP-ENV:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\">\n"
                     + "  <SOAP-ENV:Header>\n"
                     + "  </SOAP-ENV:Header>\n"
                     + "  <SOAP-ENV:Body>\n"
                     + "<intf:createFolder SOAP-ENV:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\">\n"
                     + "    <in0>" + SOAP.escapeXML10(Username) + "</in0>\n"
                     + "    <in1>" + SOAP.escapeXML10(Password) + "</in1>\n"
                     + "    <in2>" + SOAP.escapeXML10(Catalog) + "</in2>\n"
                     + "    <in3>" + SOAP.escapeXML10(ParentFolder) + "</in3>\n"
                     + "    <in4>" + SOAP.escapeXML10(FolderName) + "</in4>\n"
                     + "</intf:createFolder>"
                     + "  </SOAP-ENV:Body>\n"
                     + "</SOAP-ENV:Envelope>\n"
                     + "";

    String answer = null;
    try
    {
      SOAPRequest req = SOAP.createSOAPRequestFromJob();
      StringBuffer sb = new StringBuffer();
      sb.append(message);
      req.setURL(ServiceURL);
      req.setSOAPAction("\"\"");
      jcsErrLog.debug(sb.toString());
      req.setRequest(sb.toString());
      req.send();
      answer = req.getResponseXML();
      if (answer != null)
      {
        answer = SOAP.formatXML(req.getResponseXML());
        jcsErrLog.debug(answer);
      }
      else
      {
        answer = "There is no response for this request.";
        jcsErrLog.debug(answer);
      }
    }
    catch (Exception e)
    {
      jcsErr.println("Request: " + message);
      jcsErr.println(e.getMessage());
      throw e;
    }
    jcsOut.println("Request:");
    jcsOut.println(message);
    jcsOut.println("Response:");
    jcsOut.println(answer);
  }

  private static String getArrayValues(final String tag, final String[] __pArr)
  {
    final StringBuffer buffer = new StringBuffer();
    for (int i = 0; i < __pArr.length; i++)
    {
      buffer.append('<').append(tag).append('>');
      if (__pArr[i] != null)
      {
        buffer.append(SOAP.escapeXML10(__pArr[i]));
      }
      buffer.append('<').append('/').append(tag).append('>').append('\n');
    }
    return buffer.toString();
  }
}

Example SOAP envelope:

<SOAP-ENV:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:intf="urn:webservice.wachabe.redwood">
   <SOAP-ENV:Header/>
   <SOAP-ENV:Body>
      <urn:createFolder SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
         <in0 xsi:type="xsd:string">admin</in0>
         <in1 xsi:type="xsd:string">admin</in1>
         <in2 xsi:type="xsd:string">Enterprise</in2>
         <in3 xsi:type="xsd:string">/</in3>
         <in4 xsi:type="xsd:string">Test</in4>
      </urn:createFolder>
   </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

deleteWorkArea

ParameterDescriptionExample Value
ServiceURLThe URL to the WebServicehttp://archive.example.com:8080/archive-server/services/ICatalog
UsernameThe username for authenticationsystemsuperadmin
PasswordThe password of the user. Set the Password property of this parameter to hide its value in the user interface

CatalogThe catalog to useProduction
WorkAreaIdThe ID of the work area0

Example SOAP envelope:

<SOAP-ENV:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:intf="urn:webservice.wachabe.redwood">
   <SOAP-ENV:Header/>
   <SOAP-ENV:Body>
      <urn:deleteWorkArea SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
         <in0 xsi:type="xsd:string">admin</in0>
         <in1 xsi:type="xsd:string">admin</in1>
         <in2 xsi:type="xsd:string">Enterprise</in2>
         <in3 xsi:type="xsd:int">0</in3>
      </urn:deleteWorkArea>
   </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

getCatalogList

Example SOAP envelope:

<SOAP-ENV:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:intf="urn:webservice.wachabe.redwood">
   <SOAP-ENV:Header/>
   <SOAP-ENV:Body>
      <urn:getCatalogList SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
   </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

getCatalogListForUser

ParameterDescriptionExample Value
ServiceURLThe URL to the WebServicehttp://archive.example.com:8080/archive-server/services/ICatalog
UsernameThe catalog list list to retrieve for usersystemsuperadmin

Example SOAP envelope:

<SOAP-ENV:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:intf="urn:webservice.wachabe.redwood">
   <SOAP-ENV:Header/>
   <SOAP-ENV:Body>
      <urn:getCatalogListForUser SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
        <username xsi:type="xsd:string">admin</username>
      </urn:getCatalogListForUser>
   </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

getFile

ParameterDescriptionExample Value
ServiceURLThe URL to the WebServicehttp://archive.example.com:8080/archive-server/services/ICatalog
UsernameThe username for authenticationsystemsuperadmin
PasswordThe password of the user. Set the Password property of this parameter to hide its value in the user interface

CatalogThe catalog to useProduction
FilePathThe path of the file/Production/System Reports/System Reports for Enterprise.pdf
Targetlocationthe target location of the file./Production/System Reports

getFolder

This web service is used to test access to a folder.

ParameterDescriptionExample Value
usernameThe username for authenticationsystemsuperadmin
passwordThe password of the user. Set the Password property of this parameter to hide its value in the user interface

catalogThe catalog to useProduction
folderpathThe path to the folder/ or /Processes

Example SOAP envelope:

<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xmlns:xsd="http://www.w3.org/2001/XMLSchema"
 xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:webservice.wachabe.redwood">
   <soapenv:Header/>
   <soapenv:Body>
      <urn:getFolder soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
         <username xsi:type="xsd:string">?</username>
         <password xsi:type="xsd:string">?</password>
         <catalog xsi:type="xsd:string">?</catalog>
         <folderpath xsi:type="xsd:string">?</folderpath>
      </urn:getFolder>
   </soapenv:Body>
</soapenv:Envelope>

getFormats

ParameterDescriptionExample Value
in0The username for authenticationsystemsuperadmin
in1The password of the user. Set the Password property of this parameter to hide its value in the user interface

in2The catalog to useProduction

Example SOAP envelope:

<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:webservice.wachabe.redwood">
   <soapenv:Header/>
   <soapenv:Body>
      <urn:getFormats soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
         <in0 xsi:type="xsd:string">?</in0>
         <in1 xsi:type="xsd:string">?</in1>
         <in2 xsi:type="xsd:string">?</in2>
      </urn:getFormats>
   </soapenv:Body>
</soapenv:Envelope>

getSubFolderList

ParameterDescriptionExample Value
in0The username for authenticationsystemsuperadmin
in1The password of the user. Set the Password property of this parameter to hide its value in the user interface

in2The catalog to useProduction
in3The path to the folder/ or /Processes

Example SOAP envelope:

<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xmlns:xsd="http://www.w3.org/2001/XMLSchema"
 xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:webservice.wachabe.redwood">
   <soapenv:Header/>
   <soapenv:Body>
      <urn:getSubFolderList soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
         <in0 xsi:type="xsd:string">?</in0>
         <in1 xsi:type="xsd:string">?</in1>
         <in2 xsi:type="xsd:string">?</in2>
         <in3 xsi:type="xsd:string">?</in3>
      </urn:getSubFolderList>
   </soapenv:Body>
</soapenv:Envelope>

getWorkArea

ParameterDescriptionExample Value
ServiceURLThe URL to the WebServicehttp://archive.example.com:8080/archive-server/services/ICatalog
UsernameThe username for authenticationsystemsuperadmin
PasswordThe password of the user. Set the Password property of this parameter to hide its value in the user interface

CatalogThe catalog to useProduction
DescriptionThe description of the work areaPublish Finance Reports

Example Process Definition Source:

package custom.ws;
import java.net.*;
import java.io.*;
import com.redwood.scheduler.api.soap.SOAP;
import com.redwood.scheduler.api.soap.SOAPRequest;

public class SOAP_ICatalog_getWorkArea
  extends SOAP_ICatalog_getWorkAreaStub
{
  public void execute()
    throws Exception
  {
    String message = "<SOAP-ENV:Envelope xmlns:tns1=\"http://faults.webservice.wachabe.redwood\" xmlns:apachesoap=\"http://xml.apache.org/xml-soap\"
                     xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:SOAP-ENC=\"http://schemas.xmlsoap.org/soap/encoding/\"
                     xmlns:wsdlsoap=\"http://schemas.xmlsoap.org/wsdl/soap/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"
                     xmlns:wsdl=\"http://schemas.xmlsoap.org/wsdl/\" xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\"
                     xmlns:intf=\"urn:webservice.wachabe.redwood\" xmlns:tns2=\"http://types.webservice.wachabe.redwood\"
                     SOAP-ENV:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\">\n"
                     + "  <SOAP-ENV:Header>\n"
                     + "  </SOAP-ENV:Header>\n"
                     + "  <SOAP-ENV:Body>\n"
                     + "<intf:getWorkArea SOAP-ENV:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\">\n"
                     + "    <in0>" + SOAP.escapeXML10(Username) + "</in0>\n"
                     + "    <in1>" + SOAP.escapeXML10(Password) + "</in1>\n"
                     + "    <in2>" + SOAP.escapeXML10(Catalog) + "</in2>\n"
                     + "    <in3>" + SOAP.escapeXML10(Description) + "</in3>\n"
                     + "</intf:getWorkArea>"
                     + "  </SOAP-ENV:Body>\n"
                     + "</SOAP-ENV:Envelope>\n"
                     + "";

    String answer = null;
    try
    {
      SOAPRequest req = SOAP.createSOAPRequestFromJob();
      StringBuffer sb = new StringBuffer();
      sb.append(message);
      req.setURL(ServiceURL);
      req.setSOAPAction("\"\"");
      jcsErrLog.debug(sb.toString());
      req.setRequest(sb.toString());
      req.send();
      answer = req.getResponseXML();
      if (answer != null)
      {
        answer = SOAP.formatXML(req.getResponseXML());
        jcsErrLog.info(answer);
        req.populateNamespacesFromResponse();
        getWorkAreaReturnOut = req.getStringByXPath("//" + req.getNSPrefixForURI("urn:webservice.wachabe.redwood") + ":getWorkAreaReturn");
        if (getWorkAreaReturnOut == null || getWorkAreaReturnOut.trim().length() == 0)
        {
          getWorkAreaReturnOut = req.getStringByXPath("//" + "getWorkAreaReturn");
        }

      }
      else
      {
        answer = "There is no response for this request.";
        jcsErrLog.debug(answer);
      }
    }
    catch (Exception e)
    {
      jcsErr.println("Request: " + message);
      jcsErr.println(e.getMessage());
      throw e;
    }
    jcsOut.println("Request:");
    jcsOut.println(message);
    jcsOut.println("Response:");
    jcsOut.println(answer);
  }

  private static String getArrayValues(final String tag, final String[] __pArr)
  {
    final StringBuffer buffer = new StringBuffer();
    for (int i = 0; i < __pArr.length; i++)
    {
      buffer.append('<').append(tag).append('>');
      if (__pArr[i] != null)
      {
        buffer.append(SOAP.escapeXML10(__pArr[i]));
      }
      buffer.append('<').append('/').append(tag).append('>').append('\n');
    }
    return buffer.toString();
  }
}

webservice

← Calling Web Services from within Redwood ServerUsing Web Services →
  • ICatalog
  • CreateFolder
  • deleteWorkArea
  • getCatalogList
  • getCatalogListForUser
  • getFile
  • getFolder
  • getFormats
  • getSubFolderList
  • getWorkArea
Docs
Getting StartedInstallationFinance InstallationConcepts
TroubleshootingArchiving
Learn and Connect
Support Portal
BlogEventsResources
ISO/ IEC 27001 Information Security Management
Automate to be human

2023 All Rights Reserved |

Terms of Service | Policies | Cookies | Glossary | Third-party Software | Contact | Copyright | Impressum |