cancel
Showing results for 
Search instead for 
Did you mean: 

How can I receive a response message status in HTTP client tool?

Former Member
0 Kudos

Hi guys

I’m testing an HTTP client tool and when I try to send a message, XI receives it with flag ok, but also with a red triangle “Acknowledgement not possible”… and when I check in the HTTP client tool nothing appears as a result (I would like to know how can I receive something like OK code 200, something to guarantee that my message was received on XI)!!! How can I send this Acknowledgement from XI to HTTP client tool???

Scenario: HTTP client tool <->XI. (Asynchronous interface)

This is possible with an asynchronous interface?

Thanks in advance.

Cheers,

Ricardo.

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi,

Use can use the PI http stress simulator.

/people/ivan.reyes/blog/2009/08/05/pi-http-stress-simulator-tool

Regards

Ivan

Former Member
0 Kudos

Hi Stefan,

You are right the http plain adapter doesn’t support acknowledgements! I don’t know how I said that mistake!!! Thanks a lot, your code line gives me the message that I expect "http ok code 200"... But one more thing, If can't find the server it should give me somthing like "404 not found", but nothing is showed!!!

I already have an ok code, how I get the error code (404 or other)?

The http client tool is a simple html file called XIWS_httpClient.html

Regards,

Ricardo.

Message was edited by: Ricardo Quintino

Former Member
0 Kudos

You can try this HTTP client tool

http://sappihttpclient.codeplex.com/

stefan_grube
Active Contributor
0 Kudos

Hi Ricardo,

This is strange, as the HTTP adapter does not support any acknowledgements, the acknowledgement field in the message monitor should be empty. Can you tell me, wich client tool you use and which version/patch of XI you have?

If you use an HTML client tool, create the output line like this:

  result = result + "nhttp-Status:  " + xhttp.status + " " + xhttp.statusText + " nPayload:n" + xhttp.responseText;
  xhttp.close;
  document.MessageParameters.response.value=result;

to view the HTTP status in the output.

Regards

Stefan

Former Member
0 Kudos

The http request/response is synchronous so I wouldn't have thought it would be possible to get a response from an asyncronous interface. Perhaps consider using a sync/async bridge ?