Map the SOAP-FAULT doc to a child document of the document input parameter to the documentToXMLString service. Rename that child document to “SOAP-ENV:Fault” and populate the nsDecls with the correct namespace for the “SOAP-ENV” prefix (as it appears that you have done).
Could anyone of you please tel me how to change the fault string.
Let me explain what i have done so far.
I have created the webservice.(tried with setReponse service before the exit step and thn understood that exit step itself throws an service exception)
Tested the same webservice using webconnector.
getting an fault string as "Exception occurred while processing the body of the message ".
Now , i need to change the fault string as what I am getting as error message from the code, not the generic exception which recieved from service expection.
Hi Priya,
Can you please tell me how you did that?
Actually I have a slightly different requirement.
My flow service when executed without any issues produces the below output:
I have the following structure for my service
Sequence (Main) set to Exit on success
Sequence (Try) set to Exit on failure
Under Try I have the business logic
Exit step which Has to signal success
Sequence (Catch) set to Exit on done
In case of any failures in Try block
Catch error and email
Exit Step whcih has to signal failure mandatorily
The above service is exposed as a webservice. This service when invoked by a webservice client with item number as input, it logs on to a db and gets the corresponding details which will be constructed as output as shown below: in case the try block has no errors
25464
Turbine
1
There is an adapter service in the try block. In case of any issues in invoking the adapter service, the code flow gets into the catch block.
Then sends out an email and exits the flow signalling failure.
Now the requirement is, the webservice client which invokes this webservice should not get any fault messages. The output should be a stadard message as shown below irrespective of what ever error occured in the try block
-1
Fatal error in service execution
If I set the exit step in the catch block to signal success and keep a map step before this exit step, I can get the above output.
But it mandatory for me to set this exit step to signal failure as this will log the error message in monitor which I need for filtering failure messages when I use mywebMethods monitor so that it will be easy for the support team to monitor falied services.
Because of this exit step, the webservice client receives a fault message which the user is not ready to accept.
Can someone please suggest a workaround for this?
Help much appreciated.
Regards,
Ravi