PV Integration WebService Creation
PV Integration WebService Creation
Create PL/SQL package at database level, which you want to publish as webservice:
Example: XXALY_SAP_ORACLE_INT_PKG
Create new application
Select package which you created earlier step for publish web service --> Right click on package
Press Next
Press Next Enter service name
Press Next
Select function which you want to publish as a 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:
D:\JDEVELOPER\jdevhome\jdev\mywork\SAPToOracleIntegration\gbftPaymentsInt\deploy
Technical Objects:
Compile all the objects in XXGBFT schema:
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>