Skip to Content

JXBPWebService execute job parameters issue

Hi all,

I am trying to execute JXBPWebService from external job scheduler however I am getting error when I try . Could some one have any suggestion kindly let me know .

endpoint :

http://host/scheduler~runtime~gate~web/JXBPWebService

  • executeJob

is the service

Payload :

and Output error I am getting is

"

Required job parameter "AggregateAlerts" for job "sap.com/com.sap.aii.af.service.alert.app:AlertConsumerJobV2" not specified.

"

Even after having this parameters .

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://sap.com/engine/services/scheduler/jxbp/ws/">
   <soapenv:Header/>
   <soapenv:Body>
      <ws:executeJob>
         <jobDefId>
            <bytes>jobid</bytes>
         </jobDefId>
         
       <jobParametersWS>
            <booleanValue></booleanValue>
            <dateValue></dateValue>
           <doubleValue></doubleValue>
            <floatValue></floatValue>
            <integerValue></integerValue>
           <jobParameterDefinitionWS>
               <direction>IN</direction>
               <display>true</display>
               <localizationInfoMap>
                 <entry>
                    
                     <key/>
                    <value>yyy@xx.com</value>
                  </entry>
               </localizationInfoMap>
               <name>MailTo</name>
               <nullable>false</nullable>
               <type>string</type>
            </jobParameterDefinitionWS>
<jobParameterDefinitionWS>
               <direction>IN</direction>
               <display>true</display>
               <localizationInfoMap>
                <entry>
                    <key></key>
                    <value></value>
                  </entry>
               </localizationInfoMap>
               <name>AggregateAlerts</name>
               <nullable>false</nullable>
               <type>boolean</type>
</jobParameterDefinitionWS>
<jobParameterDefinitionWS>
      <direction>IN</direction>
               <display>true</display>
               <localizationInfoMap>
                <entry>
                    <key></key>
                    <value>yyy@xx.com</value>
                  </entry>
               </localizationInfoMap>
               <name>MailFrom</name>
               <nullable>false</nullable>
               <type>string</type>
</jobParameterDefinitionWS>

            <longValue></longValue>
            <propertiesValue>
               <item></item>
            </propertiesValue>
            <stringValue></stringValue>
         </jobParametersWS>
       <retentionPeriod></retentionPeriod>
      </ws:executeJob>
   </soapenv:Body>
</soapenv:Envelope>

 


		
Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • Best Answer
    Posted on Jun 25 at 06:17 PM

    Hi all,

    finally it worked we need to repeat

    <jobParametersWS> for each parameter

    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://sap.com/engine/services/scheduler/jxbp/ws/">
       <soapenv:Header/>
       <soapenv:Body>
          <ws:executeJob>
             <!--Optional:-->
             <jobDefId>
                <!--Optional:-->
                <bytes></bytes>
             </jobDefId>
             <!--Zero or more repetitions:-->
    
    
    
    <jobParametersWS>
             <jobParameterDefinitionWS>
                   <direction>IN</direction>
                   <display>true</display>
                   <name>MailTo</name>
                   <nullable>false</nullable>
                   <type>string</type>
    </jobParameterDefinitionWS>          
          <propertiesValue>
                   <item/>
                </propertiesValue>
                <stringValue>yyy@xx.com</stringValue>
    </jobParametersWS>
    
    <jobParametersWS>
             <jobParameterDefinitionWS>
          <direction>IN</direction>
                   <display>true</display>
                   <name>MailFrom</name>
                   <nullable>false</nullable>
                   <type>string</type>
       </jobParameterDefinitionWS>          
          <propertiesValue>
                   <item/>
                </propertiesValue>
                <stringValue>yyy@xx.com</stringValue>
    </jobParametersWS>
    
    <jobParametersWS>
             <integerValue>20</integerValue>
       <jobParameterDefinitionWS>
                    <defaultData>20</defaultData>
                    <direction>IN</direction>
                   <display>true</display>
                   <name>AlertsToMailLimit</name>
                   <nullable>true</nullable>
                   <type>integer</type>
       </jobParameterDefinitionWS>           
          <propertiesValue>
                   <item/>
                </propertiesValue>
    </jobParametersWS>
    
    
    <jobParametersWS>
             <jobParameterDefinitionWS>
                   <direction>IN</direction>
                   <display>true</display>
                   <name>Consumer</name>
                   <nullable>true</nullable>
                   <type>string</type>
       </jobParameterDefinitionWS>          
          <propertiesValue>
                   <item/>
                </propertiesValue>
                <stringValue>ALERT-TO-TEST</stringValue>
    </jobParametersWS>
    
    <jobParametersWS>
             <booleanValue>false</booleanValue>
       <jobParameterDefinitionWS>
                    <direction>IN</direction>
                   <display>true</display>
                   <name>SupressAlerts</name>
                   <nullable>false</nullable>
                   <type>boolean</type>
    </jobParameterDefinitionWS>          
          <propertiesValue>
                   <item/>
                </propertiesValue>
            </jobParametersWS>
    
    <jobParametersWS>
             <booleanValue>false</booleanValue>
    <jobParameterDefinitionWS>
                   <direction>IN</direction>
                   <display>true</display>
                   <name>AggregateAlerts</name>
                   <nullable>false</nullable>
                   <type>boolean</type>
    </jobParameterDefinitionWS>           
       <propertiesValue>
                   <item/>
                </propertiesValue>
    </jobParametersWS>
    
    <jobParametersWS>
             <jobParameterDefinitionWS>
             <defaultData>Normal</defaultData>
                    <description>Email priority. Possible values: High, Normal, Low</description>
                    <direction>IN</direction>
                   <display>true</display>
                  <name>Priority</name>
                   <nullable>true</nullable>
                   <type>string</type>
    </jobParameterDefinitionWS>          
       <propertiesValue>
                   <item/>
                </propertiesValue>
                <stringValue>Normal</stringValue>
    </jobParametersWS>
    
    <jobParametersWS>
           
     <jobParameterDefinitionWS>
                    <defaultData>Normal</defaultData>
                    <description>Email sensitivity. Possible values: Normal, Confidential, Private, Personal</description>
                    <direction>IN</direction>
                   <display>true</display>
                  <name>Sensitivity</name>
                   <nullable>true</nullable>
                   <type>string</type>
    </jobParameterDefinitionWS>          
       <propertiesValue>
                   <item/>
                </propertiesValue>
                <stringValue>Normal</stringValue>
    </jobParametersWS>
    
    <jobParametersWS>
    <jobParameterDefinitionWS>
                    <description>Language code for system generated texts. Possible values: en, de, ja, cn, ...</description>
                    <direction>IN</direction>
                   <display>true</display>
                  <name>Language</name>
                   <nullable>true</nullable>
                   <type>string</type>
    </jobParameterDefinitionWS>           
          <propertiesValue>
                   <item/>
                </propertiesValue>
                <stringValue>en</stringValue>
    </jobParametersWS>
    <jobParametersWS>
              <jobParameterDefinitionWS>
                    <description>Path to Email template file.</description>
                    <direction>IN</direction>
                   <display>true</display>
                  <name>EmailTemplateFile</name>
                   <nullable>true</nullable>
                   <type>string</type>
       </jobParameterDefinitionWS>          
                <propertiesValue>
                   <item/>
                </propertiesValue>
                <stringValue></stringValue>
    </jobParametersWS>
    <jobParametersWS>
           <jobParameterDefinitionWS>
                    <description>Additional properties. For internal use only.</description>
                    <direction>IN</direction>
                   <display>true</display>
                   <name>Additional</name>
                   <nullable>true</nullable>
                   <type>string</type>
    </jobParameterDefinitionWS>
             <propertiesValue>
                   <item/>
                </propertiesValue>
                <stringValue></stringValue>
    </jobParametersWS>
    
            <!--Optional:-->
             <retentionPeriod/>
          </ws:executeJob>
       </soapenv:Body>
    </soapenv:Envelope>
    

    Regards

    Vijay

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 24 at 09:28 PM

    Hi vijay Kumar,

    Perhaps, you need to specify a boolean value as 'true' or 'false'. In your payload, the value is blank.

    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://sap.com/engine/services/scheduler/jxbp/ws/">
        <soapenv:Header/>
        <soapenv:Body>
            <ws:executeJob>
                <jobDefId>
                    <bytes>jobid</bytes>
                </jobDefId>
                <jobParametersWS>
                    <booleanValue></booleanValue>
                    <dateValue></dateValue>
                    <doubleValue></doubleValue>
                    <floatValue></floatValue>
                    <integerValue></integerValue>
                    ...
                    <jobParameterDefinitionWS>
                        <direction>IN</direction>
                        <display>true</display>
                        <localizationInfoMap>
                            <entry>
                                <key></key>
                                <value></value> <!-- <<<=== Put true or false here -->
                            </entry>
                        </localizationInfoMap>
                        <name>AggregateAlerts</name>
                        <nullable>false</nullable>
                        <type>boolean</type>
                    </jobParameterDefinitionWS>
                    ...
                    <longValue></longValue>
                    <propertiesValue>
                        <item></item>
                    </propertiesValue>
                    <stringValue></stringValue>
                </jobParametersWS>
                <retentionPeriod></retentionPeriod>
            </ws:executeJob>
        </soapenv:Body>
    </soapenv:Envelope>
    

    Hope this helps,

    Bala

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 24 at 09:46 PM

    Hi Bala ,

    I tried all ways if I change the sequence of

    AggregateAlerts and MailFrom the error is keep switching but not giving exact error what I am missing .

    Regards

    Vijay

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 24 at 10:03 PM

    Hi ,

    when I change the sequence the error change but its keep repeating with out giving a clue.

     <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://sap.com/engine/services/scheduler/jxbp/ws/">
       <soapenv:Header/>
       <soapenv:Body>
          <ws:executeJob>
             <jobDefId>
                <bytes>jobid</bytes>
             </jobDefId>
             
           <jobParametersWS>
                <booleanValue></booleanValue>
                <dateValue></dateValue>
               <doubleValue></doubleValue>
                <floatValue></floatValue>
                <integerValue></integerValue>
               <jobParameterDefinitionWS>
                   <direction>IN</direction>
                   <display>true</display>
                   <localizationInfoMap>
                     <entry>
                        
                         <key/>
                        <value>yy@xx.com</value>
                      </entry>
                   </localizationInfoMap>
                   <name>MailTo</name>
                   <nullable>false</nullable>
                   <type>string</type>
                </jobParameterDefinitionWS>
    <jobParameterDefinitionWS>
          <direction>IN</direction>
                   <display>true</display>
                   <localizationInfoMap>
                    <entry>
                        <key></key>
                        <value>yy@xx.com</value>
                      </entry>
                   </localizationInfoMap>
                   <name>MailFrom</name>
                   <nullable>false</nullable>
                   <type>string</type>
    </jobParameterDefinitionWS>
    <jobParameterDefinitionWS>
                   <direction>IN</direction>
                   <display>true</display>
                   <localizationInfoMap>
                    <entry>
                        <key></key>
                        <value>true</value>
                      </entry>
                   </localizationInfoMap>
                   <name>AggregateAlerts</name>
                   <nullable>false</nullable>
                   <type>boolean</type>
    </jobParameterDefinitionWS>
                <longValue></longValue>
                <propertiesValue>
                   <item></item>
                </propertiesValue>
                <stringValue></stringValue>
             </jobParametersWS>
           <retentionPeriod></retentionPeriod>
          </ws:executeJob>
       </soapenv:Body>
    </soapenv:Envelope>
    

    the error now I see is as below .

     <SOAP-ENV:Envelope xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
       <SOAP-ENV:Body>
          <SOAP-ENV:Fault>
             <faultcode>SOAP-ENV:Server</faultcode>
             <faultstring>Required job parameter "MailFrom" for job "sap.com/com.sap.aii.af.service.alert.app:AlertConsumerJobV2" not specified.</faultstring>
             <detail>
                <ns2:ParameterValidationException xmlns:ns2="http://sap.com/engine/services/scheduler/jxbp/ws/">
                   <message>Required job parameter "MailFrom" for job "sap.com/com.sap.aii.af.service.alert.app:AlertConsumerJobV2" not specified.</message>
                </ns2:ParameterValidationException>
             </detail>
          </SOAP-ENV:Fault>
       </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>

    If we move mailfrom to last it will through same error for

    AggregateAlerts I tried with lot of combinations but its not working some thing I am missing may be .

    Regards

    Vijay

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.