Examples of xml()


Examples of sos.spooler.Order.xml()

            if (spooler_task.params().value("response_stylesheet") != null && spooler_task.params().value("response_stylesheet").length() > 0) {
                // .. either transform the response from order parameters and payload
                Xslt_stylesheet stylesheet = spooler.create_xslt_stylesheet();
                stylesheet.load_file( spooler_task.params().value("response_stylesheet") );
                xml_document = stylesheet.apply_xml( order.xml() );
                spooler_log.debug3( "content of response transformation:\n" + xml_document );
                response.set_string_content( xml_document );
            } else {
                // .. or send an individual response (use order.params().xml() or order.xml_payload() to access order data)
                response.set_string_content( "<response state=\"success\">" + order.params().xml() + "</response>" );
View Full Code Here

Examples of sos.spooler.Order.xml()

       
        try { // to map order configuration to this job
            this.setLogger(new SOSSchedulerLogger(spooler_log));           
            Order order = spooler_task.order();
            String liveFolder="";
            String orderXML = order.xml();
        SOSXMLXPath xp = new SOSXMLXPath(new StringBuffer(orderXML));                     
        String jobChainPath = xp.selectSingleNodeValue("/order/@job_chain");
            if (order.params().value("configuration_path") != null && order.params().value("configuration_path").length() > 0) {
                this.setConfigurationPath(order.params().value("configuration_path"));
            } else if (spooler_task.params().value("configuration_path") != null && spooler_task.params().value("configuration_path").length() > 0) {
View Full Code Here

Examples of sos.spooler.Variable_set.xml()

    //     classic or order queue driven? return true for order queue driven invocation, return false for classic job start       
        rc = !(spooler_task.job().order_queue() == null);
        Variable_set params = spooler_task.params();
        spooler_log.info("Params for task: "+spooler_task.id());
        if (params!=null){
          spooler_log.info("Job params: \n"+params.xml());
        }
        Order order = spooler_task.order();
        Variable_set payload=null;
        if (order!=null){
          Object oPayload = order.payload();
View Full Code Here

Examples of sos.spooler.Variable_set.xml()

        if (order!=null){
          Object oPayload = order.payload();
          if (oPayload!=nullpayload=(Variable_set) oPayload;
        }
        if(payload!=null){
          spooler_log.info("Order payload: \n"+payload.xml());
        } else spooler_log.info("No order payload.");
        return rc;
  }
 
 
View Full Code Here

Examples of us.monoid.web.Resty.xml()

public class RestyXmlTest {

  @Test
  public void testXml() throws Exception {
    Resty r = new Resty();
    NodeList nl = r.xml("http://rss.slashdot.org/Slashdot/slashdotGamesatom").get("feed/entry/link");
    assertNotNull(nl);
    for (int i = 0, len = nl.getLength(); i < len; i++) {
      System.out.println(((Element)nl.item(i)).getAttribute("href"));
    }
  }
View Full Code Here

Examples of xsul5.wsdl.WsdlBindingOperation.xml()

        Iterator<WsdlBindingOperation> operationsItr = wsdlBinding
            .operations().iterator();
        while (operationsItr.hasNext()) {
          WsdlBindingOperation wsdlBindingOperation = (WsdlBindingOperation) operationsItr
              .next();
          org.xmlpull.infoset.XmlElement input = wsdlBindingOperation
              .xml().element(INPUT);
          org.xmlpull.infoset.XmlElement body = input.element(BODY);
          if(body == null){
            //This is a HTTP binding so continue with the next
            continue;
View Full Code Here

Examples of xsul5.wsdl.WsdlDefinitions.xml()

                .create("http://host/2005/11/09/workflowinstace"));
        leadContext.setNodeId("decoder1");
        leadContext.setTimeStep("5");
        leadContext.setServiceInstanceId(URI.create("decoder-instance-10"));

        XmlElement element3 = XMLUtil.xmlElement5ToXmlElement3(definitions
                .xml());
        xsul.wsdl.WsdlDefinitions definitions3 = new xsul.wsdl.WsdlDefinitions(
                element3);

        WSIFClient wclient = WSIFRuntime.getDefault().newClientFor(
View Full Code Here

Examples of xsul5.wsdl.WsdlDefinitions.xml()

        writer.write(processString);
        writer.close();
       
        WsdlDefinitions workflowWSDL = wf.getOdeWorkflowWSDL(this.engine.getConfiguration().getDSCURL(),
            this.engine.getConfiguration().getODEURL());
        String workflowWsdlStr = XmlConstants.BUILDER.serializeToStringPretty(workflowWSDL.xml());
        writer = new FileWriter(wsdlFile);
        writer.write(workflowWsdlStr);
       
        Map<String, WsdlDefinitions> wsdlMap = wf.getOdeServiceWSDLs(
            this.engine.getConfiguration().getDSCURL(),
View Full Code Here

Examples of xsul5.wsdl.WsdlDefinitions.xml()

    XmlElement wsdlsElement = workflowElement.addElement(NS_XWF, WSDLS_TAG);
    for (String id : wsdls.keySet()) {
      WsdlDefinitions wsdl = wsdls.get(id);
      XmlElement wsdlElement = wsdlsElement.addElement(NS_XWF, WSDL_TAG);
      wsdlElement.setAttributeValue(NS_XWF, ID_ATTRIBUTE, id);
      wsdlElement.setText(XMLUtil.xmlElementToString(wsdl.xml()));
    }

    // Image
    if (this.image != null) {
      try {
View Full Code Here

Examples of xsul5.wsdl.WsdlDefinitions.xml()

            || (id.startsWith("{") && id.endsWith("}"))) {
          QName wsdlQname = new QName(NS_XWF.getName(),
              WSDLUtil.getFirstOperationName(wsdl,
                  WSDLUtil.getFirstPortTypeQName(wsdl)));
          id = wsdlQname.toString();
          wsdl.xml().setAttributeValue("name",
              wsdlQname.getLocalPart());
        }
      }
      WSDLCleaner.cleanWSDL(wsdl);
      this.odeWsdlMap.put(id, wsdl);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.