AppWorx, Dollar Universe and Sysload Community

 View Only

Need to get Status/Message for Failed AUTOMIC Soap Request

  • 1.  Need to get Status/Message for Failed AUTOMIC Soap Request

    Posted May 02, 2019 06:02 AM

    Hi Everybody,


    I need to call a SOAP API for provisioning a tenant in Blaze-meter product.


    So, I Created a SOAP job with WEBSERVICESSOAP as Agent. The call is working fine and if the SOAP API call is success then I am able to parse the data into a variable.
    But the Problem comes when the API got failed, and it gives a response as 

     An error occured - after the request 2019-05-02 02:22:41
     Response error code: 400 (Response family:CLIENT_ERROR), Exception: { 2019-05-02 02:22:41                
    "error": { 2019-05-02 02:22:41                     "code": 400, 2019-05-02 02:22:41                    
    "message": "Bad Request: Following mandatory fields are missing: email" 2019-05-02 02:22:41                
    }, 2019-05-02 02:22:41
    "api_version": 4, 2019-05-02 02:22:41                 "result": null, 2019-05-02 02:22:41                
    "request_id": "5cca8cb1361c2" 2019-05-02 02:22:41             }:Bad Request

    In this case I need to parse the error message and pass the data into the next SOAP job.
    I tried the similar way for how I did it for success response but in case of failure, the response parser is not working.


    Can anybody suggest me how to do that?



    Abhijit kr. Paul