on 03-16-2006 11:43 AM
Hi guys
Im 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.
Hi,
Use can use the PI http stress simulator.
/people/ivan.reyes/blog/2009/08/05/pi-http-stress-simulator-tool
Regards
Ivan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Stefan,
You are right the http plain adapter doesnt support acknowledgements! I dont 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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can try this HTTP client tool
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.