加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

JDeveloper使用Toplink DB Provider发布Webservice

发布时间:2020-12-16 22:03:01 所属栏目:安全 来源:网络整理
导读:With JDeveloper 11gR2 you can now create database based web services using? JAX -WS Provider. The key differences between this and the already existing PL/SQL Web Services support is: Based on? JAX -WS Provider Supports? SQL ?Queries for c
With JDeveloper 11gR2 you can now create database based web services using? JAX -WS Provider. The key differences between this and the already existing PL/SQL Web Services support is:

  • Based on?JAX-WS Provider
  • Supports?SQL?Queries for creating Web Services
  • Supports Table?CRUD?Operations

This is present as a new option in the New Gallery under 'Web Services'


When you invoke the New Gallery option,it present you with three options to choose from:


In this entry I will explain the options of creating service based on? SQL? queries and Table? CRUD? operations.
SQL?Query based Service?
When you select this option,on 'Next' page it asks you for the DB Conn details. You can also choose if you want SOAP ?1.1 or 1.2 format. For this example,I will proceed with? ?1.1,the default option.


On the Next page,you can give the? query. The wizard support Bind Variables,so you can parametrize your queries. Give "?" as a input parameter you want to give at runtime,and the "Bind Variables" button will get enabled. Here you can specify the name and type of the variable.


Finish the wizard. Now you can test your service in Analyzer:


See that the bind variable specified comes as a input parameter in the Analyzer Input Form:


CRUD?Operations
For this,At Step 2 of Wizard,select the radio button "Generate Table? CRUD ?Service Provider"


At the next step,select the DB Connection and the table for which you want to generate the default set of operations:


Finish the Wizard. Now,run the service in Analyzer for a quick check.
See that all the basic operations are exposed:

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读