title: Consuming WCF service from Oracle
body: <p>TLDR; look at last paragrap.</p>
  
  <p>A developer from our partner software company needs to call our WCF (<strong>basic http binding</strong>) service, and he asked us to turn it to asmx for themselves, cause he has trouble with calling it from Oracle. WCF service is being used on different platforms (.net, java, php) with no error. </p>
  
  <p>His code gives him <strong>Status code: 500 - Internal Server Error</strong>. I assume its about sending wrong soap format or content.</p>
  
  <p>So i learned you should use <strong>utl_dbws</strong> instead of <strong>utl_http</strong> as that developer did.</p>
  
  <p>Ok, this seemed an easy task to me first. Find a working code sample from internet and send a e-mail like "Hi fellow developer friend you should use utl_dbws package not utl_http and the sample code at this link".</p>
  
  <p>I'm not the only person in the world that needs to do this, right ?</p>
  
  <p>Weird but i couldn't find any sample approved working piece of code that accomplishes calling a WCF service from Oracle.</p>
  
  <p>Here is some of link i found about it;</p>
  
  <p><a href="https://forums.oracle.com/forums/thread.jspa?threadID=2354357" rel="nofollow noreferrer">https://forums.oracle.com/forums/thread.jspa?threadID=2354357</a>
  <a href="https://forums.oracle.com/forums/thread.jspa?threadID=1071996" rel="nofollow noreferrer">https://forums.oracle.com/forums/thread.jspa?threadID=1071996</a>
  <a href="http://steveracanovic.blogspot.com/2008/10/using-utldbws-package-to-call-web.html" rel="nofollow noreferrer">http://steveracanovic.blogspot.com/2008/10/using-utldbws-package-to-call-web.html</a>
  <a href="https://forums.oracle.com/forums/thread.jspa?messageID=4205205&amp;tstart=0#4205205" rel="nofollow noreferrer">https://forums.oracle.com/forums/thread.jspa?messageID=4205205&amp;tstart=0#4205205</a><br>
  <a href="http://www.oracle-base.com/articles/10g/utl_dbws-10g.php" rel="nofollow noreferrer">http://www.oracle-base.com/articles/10g/utl_dbws-10g.php</a></p>
  
  <p>Noone writes any working code example or noone tells that this is not possible.</p>
  
  <p>I would appreciate if anyone had a working code example that calling a WCF service from Oracle.</p>