title: How to convert soap message in Oracle OSB
body: <p>I'm just starting with Oracle Service Bus 12C.</p>
  
  <p>I created a proxy service that takes in a couple of parameters. A pipeline that moves those parameters to the request-headers. A business service that calls my PHP. So far, the PHP receives the parameters correctly.</p>
  
  <p>Next, I am returning a response from PHP. As a first step, I did a simple <code>echo "Hello, World";</code></p>
  
  <p>Two things are happening at this point.</p>
  
  <p>Firstly, when debugging the app, JDeveloper shows that $body in Response Action is blank. However, in a log action, I added $body. That shows:</p>
  
  <p><code>&lt;soapenv:Body xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"&gt;Hello, World&lt;/soapenv:Body&gt;</code></p>
  
  <p>No idea why JDeveloper doesn't want to show this.</p>
  
  <p>So, how do I get the string part from this so I can use a Insert Action to build the XML response that the proxy service would understand?</p>
  
  <p>I tried these in the log action, but all of them give blank outputs:</p>
  
  <pre><code>$body/*
  $body/soap-env:body
  $body/soap-env:Body
  $body/soap-env:Body/@value
  $body/soap-env:body/@value
  </code></pre>
  
  <p>Edit: According to <a href="https://docs.oracle.com/cd/E13171_01/alsb/docs25/consolehelp/context.html" rel="nofollow noreferrer">https://docs.oracle.com/cd/E13171_01/alsb/docs25/consolehelp/context.html</a> <code>$body/*</code> should extract the payload without the soap-env:Body wrapper.</p>