When trying to post the same request via postman or swagger to the same endpoint, it is working fine.But when trying to send the request (endpoint is expecting only header, no body) which ideally does some validation check before inserting to database, it is throwing 500 internal server error.
<Response_Code>500</Response_Code>
<error>Internal Server Error</error>
Snippet of the BP code -
<process name="ANSI-277">
<sequence>
<operation name="RESTAPIClient">
<participant name="RESTAPIClient"/>
<output message="RESTAPIClientInputMessage">
<assign to="." from="*"></assign>
<assign to="restoperation">POST</assign>
<assign to="url">https://billing-service-dev.apps.az-nonprod.com/api/v1/Billing/ansi-277</assign>
<assign to="Content-type">Application/json</assign>
<assign to="Accept">Application/json</assign>
<assign to="Headers">ES.Utils.ApplicationInfrastructure.Claims:[{"Type":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier","Value":"name_id"},{"Type":"name","Value":"John Deere"},{"Type":"jti","Value":"ID.JTI_key"},{"Type":"http://schemas.microsoft.com/claims/authnmethodsreferences","Value":"pwd"},{"Type":"http://schemas.microsoft.com/identity/claims/identityprovider","Value":"fake_identity_provider"},{"Type":"preferred_username","Value":"abcadmin@smadtest.local"},{"Type":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/upn","Value":"abcadmin@smadtest.local"},{"Type":"roleName","Value":"Clinician Supervisor"},{"Type":"attribute","Value":"SMELoginName:SYSADM"},{"Type":"permissionName","Value":"Clinician Supervisor|PATIENT.SEARCH"},{"Type":"permissionName","Value":"Clinician Supervisor|PATIENT.CLINICAL.PROFILE"},{"Type":"permissionName","Value":"Clinician Supervisor|PATIENT.VIEW"},{"Type":"permissionName","Value":"Clinician Supervisor|PATIENT.EDIT"},{"Type":"permissionName","Value":"Clinician Supervisor|PATIENT.MANAGE"},{"Type":"permissionName","Value":"Clinician Supervisor|PATIENT.MEDSUMMARY.VIEW"},{"Type":"permissionName","Value":"Clinician Supervisor|PATIENT.ALLERGIES.VIEW"},{"Type":"permissionName","Value":"Clinician Supervisor|PATIENT.ALLERGIES.MANAGE"},{"Type":"permissionName","Value":"Clinician Supervisor|PATIENT.MEDCOND.VIEW"},{"Type":"permissionName","Value":"Clinician Supervisor|PATIENT.MEDCOND.MANAGE"},{"Type":"permissionName","Value":"Clinician Supervisor|PATIENT.REPMEDS.VIEW"},{"Type":"permissionName","Value":"Clinician Supervisor|PATIENT.REPMEDS.MANAGE"},{"Type":"permissionName","Value":"Clinician Supervisor|PATIENT.RXACTIVITY.VIEW"},{"Type":"permissionName","Value":"Clinician Supervisor|REFERRAL.SUMMARY.VIEW"},{"Type":"permissionName","Value":"Clinician Supervisor|RX.SUMMARY.VIEW"},{"Type":"permissionName","Value":"Clinician Supervisor|PATIENT.IMAGES.VIEW"},{"Type":"permissionName","Value":"Clinician Supervisor|PATIENT.INSURANCE.VIEW"},{"Type":"permissionName","Value":"Clinician Supervisor|PATIENT.INTERVENTION.SUMMARY.VIEW"},{"Type":"permissionName","Value":"Clinician Supervisor|TASKS.MYTASKS.MANAGE"},{"Type":"permissionName","Value":"Clinician Supervisor|TASKS.MANAGE"},{"Type":"permissionName","Value":"Clinician Supervisor|TASKS.COMPLETE"},{"Type":"permissionName","Value":"Clinician Supervisor|TASKS.CREATE"},{"Type":"permissionName","Value":"Clinician Supervisor|REPORTS.VIEW"},{"Type":"permissionName","Value":"Clinician Supervisor|ORDERS.SUMMARY.VIEW"},{"Type":"permissionName","Value":"Clinician Supervisor|PATIENT.INTERVENTION.VIEW"},{"Type":"permissionName","Value":"Clinician Supervisor|BILLINGWORKLIST.VIEW"},{"Type":"customer","Value":"CRE.DEV02"},{"Type":"given_name","Value":"John"},{"Type":"family_name","Value":"Deere"}]</assign>
</output>
<input message="inmsg">
<assign to="." from="*"></assign>
</input>
</operation>
</sequence>
</process>
Kindly let me know what could be the issue ?