0% found this document useful (0 votes)
0 views13 pages

PV Integration WebService Creation

The document provides a step-by-step guide for installing JDeveloper 11g and creating a PL/SQL web service. It includes instructions for creating a database connection, publishing a PL/SQL package as a JAX-RPC web service, and configuring the web.xml file. Additionally, it outlines the service URL and the request/response structure for the web service integration.

Uploaded by

haribaskari
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
0 views13 pages

PV Integration WebService Creation

The document provides a step-by-step guide for installing JDeveloper 11g and creating a PL/SQL web service. It includes instructions for creating a database connection, publishing a PL/SQL package as a JAX-RPC web service, and configuring the web.xml file. Additionally, it outlines the service URL and the request/response structure for the web service integration.

Uploaded by

haribaskari
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 13

Install JDeveloper 11g  Goto StartAll ProgramsOracle Fusion Middleware Jdeveloper Studio 11.1.2.1.

Please follow below steps to create PL/SQL web service

Create PL/SQL package at database level, which you want to publish as webservice:

Example: XXALY_SAP_ORACLE_INT_PKG
Create new application

Select cuystom application


Enter application name

Press Next and Enter Project Name

Press Finish button


Create Database Connection:

Press database navigator  Press Next


Enter database related information and press test connection expand Package session

Select package which you created earlier step for publish web service --> Right click on package

Press Publish as JAX-RPC webservice


Press Next  Select existing Project/ create new project

Press Next
Press Next  Enter service name

Press Next
Select function which you want to publish as a service

Press Next  Press Next Press Next  Finish

Service created successfully.

Goto wsdl filesource tabsaop address copy location value


Use location URL to access web service.

Change ‘Java Naming and Directory Interface (JNDI)’ (JNDI will be provided by DBA) data source name in web.xml
(<res-ref-name>) field and service base class (__dataSource = (javax.sql.DataSource)
__initCtx.lookup("java:comp/env/jdbc/imiDS")) name and rebuild the project.

Web.xml:

Service base class file


Start integrated web logic server
Run service

Check Integrated Weblogic server log to find .war file location

Get .war file from on below path

D:\JDEVELOPER\jdevhome\jdev\mywork\SAPToOracleIntegration\gbftPaymentsInt\deploy

Java installed dev path Highlighted above…

Technical Objects:
Compile all the objects in XXGBFT schema:

Object Name Object Type Description


XXALY_GBFT_INV_PAY_REQ_OBJ Object PV service request object
XXALY_GBFT_SERVICE_RESPONS Object PV service response object
E
XXALY_GBFT_GL_BALANCE_OBJ Object GL Balance Request Object
XXALY_GBFT_GL_BAL_TAB Type GL Balance Request Type
XXALY_GBFT_GL_BALANCE_STG Table Custom table to store PV data
GBFT_GL_BAL_INT_GROUP_ID Sequence Sequence for GL Balance group id
XXALY_SAP_ORACLE_INT_PKG Package insert_gbft_inv_pay Published as PV integration webserice to
insert PV data in custom table

xx_gl_balance_process  Published as GL balances web service


(Not published and not using)

Communicate below details to Service consumer:

Service URL: http://dembitest01.alyousuf.net:7010/SAPToOracleIntegration-gbftPaymentsInt-context-root/


gbftPaymentsIntPort

Below highlighted fields are fixed for all the transactions and remaining data can be send based on PV.

Request:

<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<env:Header />
<env:Body>
<insertGbftInvPayElement xmlns="http://gbftPaymentsInt/GbftPaymentsInt.wsdl/types/">
<transactionType>C</transactionType>
<transId />
<supplierName>Ine</supplierName>
<currencyCode>AED</currencyCode>
<subCategory />
<status />
<remarks />
<branchCode>ARESTA</branchCode>
<amount>1</amount>
<crossUncross />
<category />
<gbftStatus />
<divisionCode>ARESTA</divisionCode>
<supplierNumber>VN</supplierNumber>
<pvNumber>8</pvNumber>
</insertGbftInvPayElement>
</env:Body>
</env:Envelope>

Response:

<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<env:Header />
<env:Body>
<typ:insertGbftInvPayResponseElement xmlns:typ="http://gbftPaymentsInt/GbftPaymentsInt.wsdl/types/">
<typ:returnStatus>S</typ:returnStatus>
<typ:returnMessage>PV number has been inserted sucessfully</typ:returnMessage>
</typ:insertGbftInvPayResponseElement>
</env:Body>
</env:Envelope>

You might also like