cancel
Showing results for 
Search instead for 
Did you mean: 

How to resolve http error 403 (through SOAPUI) calling S/4HANA SOAP API

tborn
Participant
4,498

payload.txtHi community;

We are testing the Asset API through Finance - Fixed Asset Integration (SAP_COM_0563) using SOAP UI. We tried slightly different settings passing the messageID and are constantly getting a HTTP 403 forbidden error on the outbound service. Can anyone help with the correct configuration. In SOAPUI we are calling the service

https://myxxxxxx-api.s4hana.ondemand.com/sap/bc/srt/scs_ext/sap/fixedassetcreatemain

with the payload as per the attached file

We are using Basic Authentication and have following settings under WS-A

No other settings have been specified. Any input is highly appreciated.

Adding the communication arrangement as well:

Thanks

Thomas

View Entire Topic
Guoqiang_Fan
Advisor
Advisor

Hi Thomas and Eric,

Thanks for raising your questions.

During this asynchronous processing of our Fixed Asset APIs, the Outbound Service is sent from S/4HC to the specified Communication System after the fixed asset creation/change is processed (either succeeded or failed) in S/4HC.

The error "HTTP code 403 Forbidden" on the Outbound Service basically means the Outbound Service comes across some technical errors when transferring to the Communication System and couldn't get processed by the specified service in the Communication System (which is specified in the Communication Arrangement), while doesn't really mean the Fixed Asset creation/change actually fails in S/4HC.

And vice versa, currently, if the Outbound Service gets processed in the Communication System (only if you have a corresponding service as a handler in that Communication System) and thus technically green, that doesn't mean the Fixed Asset creation/change succeeds in S/4HC.

So, if you don't have any service available in the Communication System to handle the Outbound message from S/4HC, the Outbound message would have some technical errors and be red. To check the response in this case, please manually check the data content of the Outbound message in app "Message Dashboard" - find out the corresponding Outbound message, and go to its Data Structure ->…-> FIXEDASSETCHANGECONFIRMATION->Log->Item. You can refer to the following screenshot:

Or, if you want to use a service in the Communication System to automatically check the Outbound messages from S/4HC, create that service based on the WSDL of our Outbound service, make sure that it is available and correct, and then you can maintain its URL in the Communication Arrangement accordingly.

If you have further specific questions during your testing, you could raise a ticket to component FI-AA-AA-A. Or if you have any requirements, you could use the customer influence tools described in note 11 in order to bring this matter up to product owner of the application so that this can be addressed in future development.

Hope this helps.

Regards,

Guoqiang

tborn
Participant
0 Kudos

Hi Guoqiang;

Thanks for your response. Our communication arrangement is configured similar than your screenshot and I would have thought it then checks the confirmation message. Based on the error message I believe this is where there is an issue (maybe permission error of some sort).

Or are you saying when testing this via SOAP UI we need to create a second request for the confirmation?

Regards

Thomas

Guoqiang_Fan
Advisor
Advisor

Hi Thomas,

No, you don't have to create a service in your Communication System to handle the confirmation message from S/4HC.

If you are only doing a few manual tests via SoapUI and can do the manual check in Fiori app, you don't have to create a service to automate this. You can still do the manual test and manual check, just please ignore the HTTP technical error codes in header and search for the business responses in data content in Fiori app.

Only if you are processing mass fixed assets and don't want to manually check the results in Fiori, you may want to create a service in Communication System to automate the checking process. For example you may want to show a corresponding report in Communication System. Just please be aware that you need to be responsible for the logic in that service.

Regards,

Guoqiang