Clarity Service Management

Expand all | Collapse all

Web Service - Error when I create a Request

Jump to Best Answer
  • 1.  Web Service - Error when I create a Request

    Posted 09-05-2018 10:58 AM

    Hello dear communite, I'm having some issues creating a request.

    Here is my code to create a Request:

     

    <ser:createRequest>
             <sid>833877740</sid>
             <creatorHandle>cnt:5E54CE3FF09EBD4883A324F8A5EC552C</creatorHandle>
             <attrVals>
                <!--1 or more repetitions:-->
                <string>log_agent</string>
                <string>cnt:5E54CE3FF09EBD4883A324F8A5EC552C</string>
              <string>requested_by</string>
              <string>cnt:5E54CE3FF09EBD4883A324F8A5EC552C</string>
              <string>customer</string>
              <string>cnt:5E54CE3FF09EBD4883A324F8A5EC552C</string>
              <string>zreporting_met</string>
              <string>rptmeth:7300</string>
              <string>category</string>
              <string>pcat:1121068945</string>
              <string>group</string>
              <string>grp:0BE4AB1153264B48A4F7C0D313E708EC</string>
              <string>status</string>
              <string>crs:5200</string>
              <string>priority</string>
              <string>pri:503</string>
              <string>summary</string>
              <string>'Prueba Resumen Webservice'</string>
              <string>description</string>
              <string>'Prueba de Descripcion WebService'</string>
             </attrVals>
             <template></template>
             <propertyValues>
             </propertyValues>         
             <attributes>
             </attributes>
          </ser:createRequest>

    But when I run it, this returns me:

     

                <ErrorMessage>INVALID zMotorSLA.spl:129:cr::procesa_por_categoria | zMotorSLA.spl:34:cr::asigna_slazMotorSLA.spl:129:cr::procesa_por_categoria | zMotorSLA.spl:34:cr::asigna_sla</ErrorMessage>
                <ErrorCode>11</ErrorCode>

     

    Somebody knows what's happens? This error is for my parameters or permissons or something like that?

    Please help me!!!

    Forwards thanks!



  • 2.  Re: Web Service - Error when I create a Request

    Posted 09-06-2018 01:27 AM

    There is an error in your custom spel script site/mods/zMotorSLA.spl on line 129. I would guess that some attribute that is not required is not passed in your webservice call, scripts get's null value and does not have logic to handle such situation.



  • 3.  Re: Web Service - Error when I create a Request

     
    Posted 09-06-2018 05:47 AM

    Hello!

     

    this error message is from custom 'spel' code running on your server.  Can you share the contents of 'zMotorSLA.spl' and 'asigna_slazMotorSLA.spl'?  They will be in site\mods\majic under the SDM install folder.  When we can see what happens at lines 34 and 129 we'll have a better idea of what the issue might be.  But if you can create a Request through the SDM UI without this sort of error occurring then the issue is most likely with your parameters.

     

    Regards,

    James



  • 4.  Re: Web Service - Error when I create a Request
    Best Answer

    Posted 09-07-2018 09:05 AM

    I don't know what happen.... but now I'm able to create request... thanks guys for the help!!!!