PL/SQL (MOSC)

MOSC Banner

Calling a web service using UTIL_DBWS

edited Oct 16, 2012 12:23PM in PL/SQL (MOSC) 4 commentsAnswered
Hi All,
I am calling a web service using a package UTIL_DBWS. I am new in calling a web service from PL/SQL Function. So, i started with the small and standard web service. This web service converts the Temperature from Celsius to Fahrenheit. I got this code from internet.

CREATE OR REPLACE function APPS.XXAD_TEST_CALL_WS(temperature NUMBER) RETURN VARCHAR2 AS

service_ utl_dbws.SERVICE;
call_ utl_dbws.CALL;
service_qname utl_dbws.QNAME;
port_qname utl_dbws.QNAME;
response sys.XMLTYPE;
request sys.XMLTYPE;

BEGIN
utl_dbws.set_http_proxy('myproxyserver:8080');
service_qname := utl_dbws.to_qname(null, 'CelciusToFahrenheit');

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center