Solved

utl_http efficiency over utl_dbws

Posted on 2011-02-11
3
2,279 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 74

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever had to make fundamental changes to a table in Oracle, but haven't been able to get any downtime?  I'm talking things like: * Dropping columns * Shrinking allocated space * Removing chained blocks and restoring the PCTFREE * Re-or…
This post first appeared at Oracleinaction  (http://oracleinaction.com/undo-and-redo-in-oracle/)by Anju Garg (Myself). I  will demonstrate that undo for DML’s is stored both in undo tablespace and online redo logs. Then, we will analyze the reaso…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
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.

728 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