cancel
Showing results for 
Search instead for 
Did you mean: 

HTTP server code 400 reason Bad Request explanation Bad Request

former_member745782
Active Participant

hello everybody,

i'm working with SAP PI 7.1

I designed my interface IDOC-PI-HTTP.

when i send idoc from R3 i see this message in PI monitor:

HTTP server code 400 reason Bad Request explanation Bad Request

i tried to configure a HTTP port in SM59 and use it in my Communication Channell, but when i test connection i have same error.

I'm using a https address.

have you any suggestion?

thanks

Alex

Accepted Solutions (1)

Accepted Solutions (1)

markangelo_dihiansan
Active Contributor
0 Kudos

Hello,

It would be best to consult with the third party (HTTP) to see what type of request they are expecting so that it saves development time e.g HTTP Method (in PI it is always POST), Content Type, SOAP Envelope?, etc...

Hope this helps,

Mark

former_member745782
Active Participant
0 Kudos

seems the SOAP protocol is not a good method.

I concentrate me to use HTTP channell.

I already verify with 3 party developer. He confirmed me he is expecting i send data by POST.

Content type is a String.

i still to have this error:

HTTP server code 400 reason Bad Request explanation Bad Request

and he still to don't receive nothing.

one question:

he gave me a url address https://..

where i need set the parameter HTTPS??

In communication channell configuration i don't find nothing and in SM50 too

rajasekhar_reddy14
Active Contributor
0 Kudos

even HTTP destination alos giving error.. so first you have to solve the newtwork issue then only you can try using HTTP Adapter.

markangelo_dihiansan
Active Contributor
0 Kudos

Hello,

I already verify with 3 party developer. He confirmed me he is expecting i send data by POST.

Yes, but how does the HTTP Body looks like?See sample webservice below:

http://ws.cdyne.com/delayedstockquote/delayedstockquote.asmx?op=GetQuickQuote and scroll down to see how an HTTP POST looks like

Content type is a String

Normally, the content-type for an http post is application/x-www-form-urlencoded. But then, you need to know the prolog and epilog in the http body.

he gave me a url address https://..

where i need set the parameter HTTPS??

https (http with ssl) is configured in mm59 type G (external server). To enable https, you need to select the SSL folder in which you have installed the CA (certificate authority) certs. Make sure that once you have installed the CA certs, you have performend an ICM Restart.

Hope this helps,

Mark

Edited by: Mark Dihiansan on Jul 25, 2011 11:21 AM

former_member854360
Active Contributor
0 Kudos

Hi Please check PI server Firewall and port enablement

naveen_chichili
Active Contributor
0 Kudos

Hi,

Check your firewall as your PI server is not able to connect to webservice.

Regards,

Naveen.

former_member745782
Active Participant
0 Kudos

thanks to everybody

i think the problem is on firewall, but i try to install certificates too.

I'll send a feedback when the problem will be solved

thanks

Answers (2)

Answers (2)

former_member854360
Active Contributor
0 Kudos

The Web server thinks that the data stream sent by the client was 'malformed' i.e. did not respect the HTTP protocol completely. So the Web server was unable to understand the request and process it.

Also you need to configure SSL in PI

http://help.sap.com/saphelp_nw70/helpdata/en/14/ef2940cbf2195de10000000a1550b0/content.htm

former_member854360
Active Contributor
0 Kudos

Hi you can use SOAP adapter for your requirement.

Only in receiver adapter check the BOX "DO NOT USE SOAP ENVELOPE"

former_member745782
Active Participant
0 Kudos

i tried to use SOAP adapter.

In XML monitor i have success status but when i check Adapter monitor i have following error:

SOAP: call failed: java.io.IOException: unable to create a socket

rajasekhar_reddy14
Active Contributor
0 Kudos

You PI System(SOAP Adapter) not able to connect Web Service System, port not opened to access web service system or network issue.

contact Network team.

Regards,

Raj

former_member745782
Active Participant
0 Kudos

in SM59 no i set radiobutton SSL active (anonymous) and now i have error:

Error while creating the HTTP client with destination "my dest name"