Uploaded image for project: 'JS - JobScheduler'
  1. JS - JobScheduler
  2. JS-1183

when using asynchronous webservice the parameter for the job chain is not set correctly

    XMLWordPrintable

Details

    • Fix
    • Status: Released (View Workflow)
    • Major
    • Resolution: Fixed
    • None
    • 1.8
    • None

    Description

      When defining a webservice in scheduler.xml like this described below, the job chain name will not set correctly. It will be included with "" and after the style sheet transformation the add_order_command looks like

      Execute <add_order job_chain=""test"" web_service="web-service-test"/>

      Post a body with a rest client http://localhost:4000/web-service-test

      <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
          <soapenv:Header>
              <wsa:To xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing">http://www.sos-berlin.com:10110/order_service</wsa:To>
              <wsa:ReplyTo xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing">
                  <wsa:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:Address>
              </wsa:ReplyTo>
          </soapenv:Header>
          <soapenv:Body>
              <addOrder xmlns="http://www.sos-berlin.com/scheduler"></addOrder>
          </soapenv:Body>
      </soapenv:Envelope>
      

      That throws the error message
      <faultstring>SCHEDULER-161 There is no Job_chain '/"test"'</faultstring>

      Webservice Declaration in scheduler.xml:

        <http_server >
                  <web_service  name="web-service-test" 
                  debug="yes" 
                  url_path="/web-service-test" 
                  request_xslt_stylesheet = "config/scheduler_soap_request.xslt"
                  response_xslt_stylesheet = "config/scheduler_soap_response.xslt">
                   <params>
                   <param name = "jobchain"   value="test"/>
                  </params>
                  </web_service>
      
                  <http_directory  path="${SCHEDULER_DATA}/" url_path="/scheduler_data/"/>
                  <http_directory  path="${SCHEDULER_HOME}/" url_path="/scheduler_home/"/>
              </http_server>
      

      Attachments

        Issue Links

          Activity

            People

              ur Uwe Risse
              ur Uwe Risse
              Oliver Haufe Oliver Haufe
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: