Hi,
I am working with webMethods java client, which invokes the service “pub.client:http” and gets the output, I am trying to read the html content in the form of bytes from IData object. while sending the http request I have used "bytes’ as output. I am facing a problem in printing the response what I received. The value is not printing. It is only printing the body part “[B@2b457f51”. I have tried using “bytesToString”, stil it is not solved.
Please help me how to retrieve the HTML content. This issue is killing me since two days. Please help me in solving this issue.
Thanks,
Kumar
The following tests conducted
-
I have checked that my servlet got invoked successfully, and it returned from servlet without throwing any error at Http Server side.
-
I have printed the Header part of http response at my webMethods client, it was printing successfully.
The following is the piece of code at my webMethods client code.
IData outputRecord3 = invoke(context, inputHTTPRecord, “pub.client:http”);
//print output record
GenUtil.printRec(outputRecord3, “OutputRecord 3”);
//print body
IDataCursor curser = outputRecord3.getCursor();
curser.first(“body”);
IData HttpData = (IData)curser.getValue();
GenUtil.printRec(HttpData, “HTML Ouput”);