Comments on: Consuming Web Services from PL/SQL – Part II: A pure PL/SQL solution using UTL_HTTP (Oracle 9i or 10g) https://technology.amis.nl/2005/01/23/consuming-web-services-from-plsql-part-ii-a-pure-plsql-solution-using-utl_http-oracle-9i-or-10g/ Friends of Oracle and Java Sat, 25 Apr 2015 11:36:47 +0000 hourly 1 http://wordpress.org/?v=4.2 By: Roberto https://technology.amis.nl/2005/01/23/consuming-web-services-from-plsql-part-ii-a-pure-plsql-solution-using-utl_http-oracle-9i-or-10g/#comment-1580 Wed, 17 Aug 2011 15:40:43 +0000 /?p=358#comment-1580 plase… your answer!

]]>
By: Roberto https://technology.amis.nl/2005/01/23/consuming-web-services-from-plsql-part-ii-a-pure-plsql-solution-using-utl_http-oracle-9i-or-10g/#comment-1579 Wed, 10 Aug 2011 19:55:46 +0000 /?p=358#comment-1579 Hi
i need call a wcf service. Your code is ok but i need to define the “behaviors” setting, in other words, the contract between service and the package oracle.

how i do that?

thx u
 
Robert

]]>
By: Amit https://technology.amis.nl/2005/01/23/consuming-web-services-from-plsql-part-ii-a-pure-plsql-solution-using-utl_http-oracle-9i-or-10g/#comment-1578 Sun, 01 Mar 2009 14:37:49 +0000 /?p=358#comment-1578 I was trying to invoke a HelloWorld program.
The HelloWorld program has the process operation that needs to be called.
I was getting the following error

env:Serverjava.lang.NullPointerException

Then I changed the code
utl_http.set_header(http_req, ‘SOAPAction’, ”); — required to specify this is a SOAP communication

to
utl_http.set_header(http_req, ‘SOAPAction’, ‘process’); — required to specify this is a SOAP communication

and it worked.

]]>
By: Amit https://technology.amis.nl/2005/01/23/consuming-web-services-from-plsql-part-ii-a-pure-plsql-solution-using-utl_http-oracle-9i-or-10g/#comment-1577 Sun, 01 Mar 2009 13:46:03 +0000 /?p=358#comment-1577 Got the following error
Error report:
ORA-31011: XML parsing failed
ORA-19202: Error occurred in XML processing
LPX-00601: Invalid token in: ‘/env:Envelop’
ORA-06512: at “SYS.XMLTYPE”, line 119
ORA-06512: at line 34

The reason is:

resp:= resp.extract(‘/soap:Envelop/soap:Body/child::node()’
, ‘xmlns:soap=”http://schemas.xmlsoap.org/soap/envelope/”‘
);

Envelop is to be spelt as Envelope. This is as per the response message

]]>
By: Ed Godalle https://technology.amis.nl/2005/01/23/consuming-web-services-from-plsql-part-ii-a-pure-plsql-solution-using-utl_http-oracle-9i-or-10g/#comment-1576 Thu, 06 Nov 2008 08:57:59 +0000 /?p=358#comment-1576 I need to crete a code with similar implementation.
I’m calling this web service (https://realtime.gpcatalogue.com/servlet/GPCRealTime?Query=RT03&Count=10&Vendorid=050957364&Productid=104265
) with the RT03,Count and vendorid as inputs. What are the things that I should consider?

]]>
By: Claudio- Genius https://technology.amis.nl/2005/01/23/consuming-web-services-from-plsql-part-ii-a-pure-plsql-solution-using-utl_http-oracle-9i-or-10g/#comment-1575 Tue, 04 Nov 2008 15:26:09 +0000 /?p=358#comment-1575 Great !!!
I just copied this example, changed the service web configurations, and it worked right away

Thanks Lucas

]]>
By: Life Insurance blog https://technology.amis.nl/2005/01/23/consuming-web-services-from-plsql-part-ii-a-pure-plsql-solution-using-utl_http-oracle-9i-or-10g/#comment-1574 Wed, 05 Mar 2008 22:33:49 +0000 /?p=358#comment-1574 the insurance companies don’t want you to know

Information on the life insurance industry

]]>
By: Jay https://technology.amis.nl/2005/01/23/consuming-web-services-from-plsql-part-ii-a-pure-plsql-solution-using-utl_http-oracle-9i-or-10g/#comment-1573 Mon, 15 Oct 2007 14:01:46 +0000 /?p=358#comment-1573 I actually used the code above to call a web service for a project that I am working on, except that I had to make one change. I removed the call to ‘utl_http.set_header(http_req, ‘SOAPAction’, ”);’, since it gave me the following error:
Server did not recognize the value of HTTP Header SOAPAction: .

]]>
By: Jayaram https://technology.amis.nl/2005/01/23/consuming-web-services-from-plsql-part-ii-a-pure-plsql-solution-using-utl_http-oracle-9i-or-10g/#comment-1572 Sun, 04 Mar 2007 04:28:35 +0000 /?p=358#comment-1572 Getting the following error when using the sample code

No proxy oracle 9i please help

I am try to execute this function but i can a error: ERROR at line 1: ORA-29273: HTTP request failed ORA-06512: at “SYS.UTL_HTTP”, line 1022 ORA-12545: Connect failed because target host or object does not exist ORA-06512:

]]>
By: AMIS Technology blog » Blog Archive » Transaction Dependent Webservice Invocation…or how to call a webservice from a database trigger and make the call part of the transaction https://technology.amis.nl/2005/01/23/consuming-web-services-from-plsql-part-ii-a-pure-plsql-solution-using-utl_http-oracle-9i-or-10g/#comment-1571 Thu, 01 Feb 2007 14:09:04 +0000 /?p=358#comment-1571 […] Transaction Dependent Webservice Invocation…or how to call a webservice from a database trigger and make the call part of the transaction by Alex Nuijten One of our clients asked us to help with calling a webservice from a database trigger. This webservice would duplicate the actions done by the database in a different system, SAP in this case. It was a type of "fire-and-forget" webservice. Oracle 10 offers UTL_DBWS to interact with webservices, but the client doesn’t have an Oracle 10 database. Instead they work with an Oracle 9.2.0.7, so UTL_DBWS could not be used. (While writing this Blog I discovered that UTL_DBWS could be used with an Oracle 9 database, the Oracle-Base website has an article on this subject, more info below.) At first glance, this should be easy to implement. Good thing that my colleague Lucas Jellema wrote a blog on how to call WebServices from PL/SQL, this made things a little easier. […]

]]>
By: Christian Bang https://technology.amis.nl/2005/01/23/consuming-web-services-from-plsql-part-ii-a-pure-plsql-solution-using-utl_http-oracle-9i-or-10g/#comment-1570 Fri, 19 Jan 2007 15:31:56 +0000 /?p=358#comment-1570 @6. Robert, 7. Markus: I can confirm that the Oracle patch 9.2.0.8 fixes the bug with utl_http, HTTP 1.1 and “100 continue”.
Now there is no longer a problem with WebServices hosted on IIS. Both Oracle 9.2.0.8 and 10g work! No nasty work-around required :-)

]]>
By: Jurgen https://technology.amis.nl/2005/01/23/consuming-web-services-from-plsql-part-ii-a-pure-plsql-solution-using-utl_http-oracle-9i-or-10g/#comment-1569 Thu, 18 Jan 2007 15:32:11 +0000 /?p=358#comment-1569 Nice article, it explained exactly what I needed to know.
I used JDeveloper 10.1.3.1.0 for creating the example SOAP messages from the WSDL and noticed that a few things have now a different name:
New Gallery – Business Tier – WebServices – Web Service Stub/Skeleton
Is now called:
New Gallery – Business Tier – WebServices – Web Service Proxy
And the TCP Packet Monitor is now called Http Analyzer.

]]>
By: Laura https://technology.amis.nl/2005/01/23/consuming-web-services-from-plsql-part-ii-a-pure-plsql-solution-using-utl_http-oracle-9i-or-10g/#comment-1568 Wed, 08 Nov 2006 00:36:43 +0000 /?p=358#comment-1568 Good article. I was able to basically copy and paste the function into my package and it worked.

You mentioned, ‘The first step towards development of a PL/SQL Web Service client, is getting hold of the SOAP Request and Response Documents that are asociated with this WebService. … There are several ways to get hold of the specific SOAP messages. ‘.

You reviewed the use of JDeveloper. What are some of the other methods?

]]>
By: rrm https://technology.amis.nl/2005/01/23/consuming-web-services-from-plsql-part-ii-a-pure-plsql-solution-using-utl_http-oracle-9i-or-10g/#comment-1567 Fri, 30 Jun 2006 04:14:49 +0000 /?p=358#comment-1567 Hi,

I’ve JDeveloper 10.1.3.0.4 and ORacle 10g database server on my machine. I couldn’t finfd the path in JDeveloper

New Gallery, Business Tier – WebServices, Web Service Stub/Skeleton

Could you tell me how can I create a Web Service Stub/Skeleton?

Regards

]]>
By: AMIS Technology blog » Blog Archive » Publishing PL/SQL “Services” as WebService using Oracle BPEL https://technology.amis.nl/2005/01/23/consuming-web-services-from-plsql-part-ii-a-pure-plsql-solution-using-utl_http-oracle-9i-or-10g/#comment-1566 Thu, 15 Jun 2006 07:15:14 +0000 /?p=358#comment-1566 […] Publishing PL/SQL “Services” as WebService using Oracle BPEL by Lucas Jellema Oracle BPEL Process Manager is a BPEL engine that runs in any J2EE Application Server, though typically Oracle 10gAS (OC4J), JBoss, WebLogic or WebSphere. Oracle BPEL PM publishes business processes in the form of WebServices. These business processes can be very complex BPEL definitions, composed of many steps, service invocations, loops and decisions points. However, these processes can also be extremely simple, entailing no more than a single service call. The services called from the BPEL process ran by the BPEL engine can be WebServices themselves, or – through WSIF or the adaptors shipped with Oracle BPEL PM – services implemented in Java or PL/SQL or services that effectively poll a Database Table, an FTP server or the File system for events to happen. This post discusses how a Web Service can be published based on a PL/SQL Package inside the Oracle Database. This very same subject was described in a previous post – Publishing PL/SQL Based WebServices – where we achieved the WebService publication using Oracle 10g JDeveloper. In this article we will create a PL/SQL based WebService based on the Package we discussed in previous posts Consuming Web Services from PL/SQL – Part I: Using Java Stored Procedures and Consuming Web Services from PL/SQL – Part II: A pure PL/SQL solution using UTL_HTTP (Oracle 9i or 10g). The more or less traditional method of publishing a PL/SQL based WebService is something like: create a Java Class – a proxy for the PL/SQL service – with a static method that will use JDBC to invoke the PL/SQL prcoedure to be published. Create a WebService for this JavaClass and publish it; indirectly you will have published the PL/SQL package. If you use the Wizards in JDeveloper to create and publish a WebService directly based on a PL/SQL package, something like this will happen, though not as explicitly. Using the Oracle BPEL Engine to publish a PL/SQL Service as WebService may seem like a long haul to achieve the same thing. It has at least two points to take good notice of: you will need a license for Oracle BPEL Process Manager – not cheap! – and there is some overhead involved with running the service as a BPEL process. I am not yet sure how much overhead there is and for a service that is not called with very high frequency this second point may be neglible. If you already have the license, the first point is moot as well. If you don’t, this whole article is moot; you would not want to even consider buying Oracle BPEL PM only for publishing PL/SQL based services. On the up-side, using Oracle BPEL PM for publishing a PL/SQL based WebService has some distinct advantages It is the easiest thing I have seen in terms of development and deployment of the WebService […]

]]>