Try this:
subRequest.addArgumentByValue("body", xml);If you don't specify pass-by-value the argument string is considered to be a resource identifier.
| Poster | Content |
|---|---|
|
nk4um Moderator
Posts: 498
|
Try this: subRequest.addArgumentByValue("body", xml);If you don't specify pass-by-value the argument string is considered to be a resource identifier. |
|
nk4um User
Posts: 5
|
I want to be able to issue an HTTP PUT from within an Accessor. active:httpPut requires a URL and body. The body must be Representation (Readable Binary Stream) but within the Accessor all I have is the XML I extracted from the original request. String xml = (String)context.source("httpRequest:/body", String.class); //create and issue the sub-request INKFRequest subRequest=context.createRequest("active:httpPut"); subRequest.addArgument("url", "http://localhost:8080/ws/endpoint); subRequest.addArgument("body", xml); -- this does not work So how can I add the original xml to my HTTP PUT? |