PL/SQL (MOSC)

MOSC Banner

Need to invoke a web service from pl/sql.

edited Mar 3, 2014 12:00PM in PL/SQL (MOSC) 4 commentsAnswered

Hi Guys,

This is a requirement to call a web service from PL/SQL procedure .

I have created a sample procedure .. It is as below .

------------------------------------------------------------------------

Declare

  http_req   SYS.utl_http.req; 

  i              number;    

Begin

http_req:= SYS.utl_http.begin_request

             (TRIM('https://www.envmgr.com/LabelService/EwsLabelService.asmx')

             , 'POST'

             ,'HTTP/1.1'

             );

EXCEPTION

When Others Then

Dbms_output.put_line(sqlerrm);

End;

/

After execution of this procedure .The error throws as below

------------------------------------------------------------------------------------

ORA-29273: HTTP request failed
ORA-06512: at "SYS.UTL_HTTP", line 1130
ORA-12535: TNS operation timed out


Can anybody please help me out what is the exact reason behin this ?

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