I am using JDev 12.2.1.4 on Windows 11 which has 16GB RAM.
I've developed multiple SOAP and REST services for Oracle Service Bus 12C. Now, I need a service that can take multipart/form-data text and files, and send them to a business service.
I added HTTP adapters for proxy and business with a pipeline in the middle. In the pipeline, I added an insert action to set http:http-method to POST. Two other inserts for Content-Type and Content-Length. The debugger shows that the $body variable is blank and the form fields are in $attachments. So, to bring them into the body, I added a replace action:
for $att in $attachments
return fn:concat( $boundary, "\n",
"Content-Disposition: ", $att/Content-Disposition/text(),
"\n\n", $att/body, "\n")
Above didn't work and inspecting the $attchments I see that I need to use the http://www.bea.com/wli/sb/context namespace. The moment I edit the above to $att/ctx:body
, JDev locks up completely. This has happened multiple times. (Actually, just retried and it is locked.) I waited a long time but it never comes out of the lock.