Package com.cordys.cpc.bsf.soap

Examples of com.cordys.cpc.bsf.soap.SOAPRequestObject


 
  private static void createSDFTransaction(CALLS thisCalls)
  {
      int paramValue = 0
      int response = 0;
      SOAPRequestObject soapObject = new SOAPRequestObject("http://schemas.cordys.com/Ucf/Metering/OrganizationDomain/1.0",
                        "InsertTransaction",null,null);
     
      String parameterString = "<Transaction>" +
                    "<Transaction xmlns=\"http://schemas.cordys.com/Ucf/Metering/GlobalDomain/1.0\">" +
                      "<applicationid>com.cordys.demo.servicedesk</applicationid>" +
                      "<type>Call Inserted</type>"
                      "<username>" + BSF.getUser() + "</username>" +
                      "<reference>" + thisCalls.getREFERENCE() + "</reference>" +
                      "<Attribute>" +
                        "<name>Product</name>" +
                        "<value>" + thisCalls.getPRODUCT() + "</value>" +
                      "</Attribute>" +
                    "</Transaction>" +
                  "</Transaction>";
     
      try
      {
        paramValue = BSF.getXMLDocument().parseString(parameterString);
        soapObject.addParameterAsXml(paramValue);
        soapObject.setUser("cn=provisioning,cn=organizational users,"+BSF.getOrganization());
        response = soapObject.execute();
      }
      catch (UnsupportedEncodingException e)
      {
       
      }
View Full Code Here


      private static void startBPM(String bpmName, String inputMessage)
    {     
        int message = 0;
        Document document = BSF.getXMLDocument();
     
        SOAPRequestObject soapRequestObject = new SOAPRequestObject("http://schemas.cordys.com/bpm/execution/1.0",
        "ExecuteProcess",null,null);
    soapRequestObject.addParameterAsXml(document.createTextElement("type", "definition"));
    soapRequestObject.addParameterAsXml(document.createTextElement("receiver", bpmName));
    try
    {
      message = BSF.getXMLDocument().parseString(inputMessage);
      soapRequestObject.addParameterAsXml(message);   
      soapRequestObject.addParameterAsXml(document.createTextElement("source", "Run from Process Designer"));
        soapRequestObject.execute();       
    }
    catch (Exception e){}       
  }
View Full Code Here

TOP

Related Classes of com.cordys.cpc.bsf.soap.SOAPRequestObject

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.