cancel
Showing results for 
Search instead for 
Did you mean: 

Send message via HTTP

former_member296836
Participant
0 Kudos

Dear all,

we have a Java Mapping that writes the message content to a 3rd party monitoring tool.

Now this should be replaced and we would use SAP PI for the JDBC insert.

The java mapping required an URL and I would like to replace this with a HTTP adapter URL,

like described here:HTTP sender adapter.

Unfortunatelly I received a HTTP 401 error because of authentification problemio

Is it possible to add credentials (user & pw) to the URL or how to identify?

Do I need a special role to be allowed to send messages?

I also tried the tool: http://sappihttpclient.codeplex.com/

But even here I receive a HTTP 401 error.

In Java Mapping we use the class import java.net.HttpURLConnection; for a connection.

Regards

Chris

Accepted Solutions (0)

Answers (4)

Answers (4)

former_member296836
Participant
0 Kudos

Dear all,

the authorisation error was banned after adding the credentials.

Now I got a HTTP 500 error.
Can anyone tell me, where I can see more details about this error?

Will not accepted HTTP communication be logged somewhere?

In ST22 or SM58 I can see no entries.

Error message:

<ExceptionMsg>Server returned HTTP response code: 500 for URL: <Here is the URL></ExceptionMsg>

Regards

Chris

nabendu_sen
Active Contributor
0 Kudos

Hi Christian,

Also ensure the user must have the authorizations of group SAP_XI_APPL_SERV_USER on the Integration Server.

baskar_gopalakrishnan2
Active Contributor
0 Kudos
former_member181985
Active Contributor
0 Kudos

Hi Christian,

It all depends on what kind of authentication the system you trying to send supports. I think it support Basic authentication only.

Regards,

Praveen Gujjeti

former_member296836
Participant
0 Kudos

The message should be send from PI to itselfs.

Do I have to do anything else if there is Basic authentication?

former_member181985
Active Contributor
0 Kudos

Sorry I misunderstood your requirement, Please follow Baskar's reply. It supports in URL form. Make sure that the port is ABAP HTTP port but not the Java one.