Solved

utl_http efficiency over utl_dbws

Posted on 2011-02-11
3
2,183 Views
Last Modified: 2012-05-11
One last question regarding utl_dbws:

I just tested the callout sto a webservice over https, comparing utl_http calls with utl_dbws calls. I found that processing times were more than twice as fast with utl_http over utl_dbws.  

Has anyone else experienced this? This could be a deciding factor in what to make the standard for development in our team for callouts.  Are there certain things to consider regarding the environment that may be causing utl_dbws to be so much slower?
0
Comment
Question by:melodi_roberts
  • 2
3 Comments
 
LVL 73

Accepted Solution

by:
sdstuber earned 250 total points
ID: 34873391
utl_dbws parses your inputs and constructs a response to send to the service.
Even in when you send a pre-constructred XMLTYPE input, that input is then parsed and reconstructed into a new xml string that is sent.  There are other validations on the inputs too.

All of that work is overhead that you don't incur with utl_http.

use
utl_dbws.set_logger_level('ALL')  and dbms_java.set_output
  to turn on debugging for your utl_dbws code and you can see logs of some of the work it does
the output will be written to the dbms_output buffer
0
 

Author Comment

by:melodi_roberts
ID: 34896965
Thanks so much for the info.  We're probably going to develop a generic package for soap communications using utl_http instead of using utl-dbws.  When processing over 10K records, that extra overhead really adds up.
0
 

Author Comment

by:melodi_roberts
ID: 34901175
Just an additional note:  Found a generic soap package using utl_http already written and available at this site: http://www.oracle-base.com/articles/9i/ConsumingWebServices9i.ph
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Why doesn't the Oracle optimizer use my index? Querying too much data Most Oracle developers know that an index is useful when you can use it to restrict your result set to a small number of the total rows in a table. So, the obvious side…
How to Unravel a Tricky Query Introduction If you browse through the Oracle zones or any of the other database-related zones you'll come across some complicated solutions and sometimes you'll just have to wonder how anyone came up with them.  …
This video shows how to Export data from an Oracle database using the Datapump Export Utility.  The corresponding Datapump Import utility is also discussed and demonstrated.
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now