cancel
Showing results for 
Search instead for 
Did you mean: 

Axis adapter : Bad Request error

Former Member
0 Kudos

Hi,

I have a File to SOAP scenario (PI 7.0) where I am using AXIS adapter in the receiver SOAP adapter for NTLM authorisation. In the xml that I am trying to post, i have characters like & because of which I am getting a Bad Request error. Is there a way to resolve this? thanks!

Regards

Pushpinder

Accepted Solutions (0)

Answers (1)

Answers (1)

prateek
Active Contributor
0 Kudos

What encoding are you using at file sender? Where exactly do you see this error, in sxmb_moni or RWB?

Regards,

Prateek Raj Srivastava

Former Member
0 Kudos

In file sender channel, i am using binary mode, so no encoding specified.

I see the error in the receiver SOAP adapter -

Error Axis: error in invocation: (400)Bad Request

Error Exception caught by adapter framework: (400)Bad Request

Error MP: Exception caught with cause (400)Bad Request

Error Delivery of the message to the application using connection SOAP_http://sap.com/xi/XI/System failed, due to: com.sap.aii.af.ra.ms.api.RecoverableException: (400)Bad Request: (400)Bad Request.

Error The message status set to NDLV.

prateek
Active Contributor
0 Kudos

I think you need to do a java mapping for escaping (Escape Sequence) & character. You may use this mapping along with your existing mapping.

Regards,

Prateek Raj Srivastava

baskar_gopalakrishnan2
Active Contributor
0 Kudos

You might want to try writing UDF to read the entire string and remove the escape characters. This is an another option.

Former Member
0 Kudos

Thanks Prateek and Baskar, i think java code (mapping or UDF) is the only option in this case. I have implemented a java mapping and it solved the problem.