Documente Academic
Documente Profesional
Documente Cultură
Cook Book
Overview
Details of Logical Business Area(LBA)
List of Web Service Operations
Details of Web Service Operations
List of SDOs related to the Web Service
Details of the SDOs related to the Web Service
List of referenced XSD Files
Details of the referenced XSD files
Accessing WSDL URL
Fusion Service Tester
Web Service Invocation Methods
A utility web service for Oracle Fusion Financials that provides external web service operations. For
example, file upload operations to Oracle U niversal Content Management, and service operations to
submit ESS jobs from exte rnal applications.
Lifecycle: Active
uploadFileToUcm
submitESSJobRequest
Go to Index
Parameters:
Parameters:
The Web service Financial Utilities Service handles the following Service Data Objects(SDO)
o Document Information SDO
Go to Index
The document information that is uploaded to the Oracle Universal Content Management. For example,
filename, content type, content, and author.
SDO Attributes
Go to SDO listing
Go to Index
FinancialUtilService.xsd
XSD Elements
Name Type
uploadFileToUcm
uploadFileToUcmResponse
uploadFileToUcmAsync
uploadFileToUcmAsyncResponse
submitESSJobRequest
submitESSJobRequestResponse
submitESSJobRequestAsync
submitESSJobRequestAsyncResponse
Go to XSD listing
DocumentDetails.xsd
XSD Elements
Name Type
documentDetails DocumentDetails
Go to XSD listing
Go to Index
Go to Index
Please find the sample Fusion Service Tester here. It can be invoked by running a jar file. It also has the
sample request for the Upload File to UCM operation.
If you get a SSL handshake error related to invalid certificate path, then additional setup might be needed
to manually add the certificate in the truststore. To do that follow the below instruction
1. Export the certificate from the browser to file using following steps
Open the SSL URL for any of the web service.
Click on the lock icon besides the URL.
Go to the connections tab and certificate information link.
Go to Details -> Copy to File -> Next
Change the encoding to the Base-64 and click Next.
Provide the filename and click finish.
When user runs the jar file, below window will open and user can pass the required parameter values.
1. keytool -import -trustcacerts -file <filename> -alias <aliasname> -keystore default-keystore.jks -
storepass welcome1
Go to Index
This section contains three different ways to invoke FinancialUtilService. The following are the ways to do
the same:
Go to Index
Steps:
1. Create a new generic Project and specify the Project Name and Directory.
4. Click Next.
7. Click Next.
8. Click Next.
FinancialUtilServiceSoapHttpPortClient.java
import com.sun.xml.ws.api.addressing.AddressingVersion;
import com.sun.xml.ws.api.addressing.WSEndpointReference;
import com.sun.xml.ws.developer.WSBindingProvider;
import com.sun.xml.ws.message.StringHeader;
import java.util.UUID;
import javax.xml.ws.WebServiceRef;
import weblogic.wsee.jws.jaxws.owsm.SecurityPolicyFeature;
@WebServiceRef
FinancialUtilService financialUtilService=
financialUtilService_Service.getFinancialUtilServiceSoapHttpPort(securityFeatur
e);
wsbp.setOutboundHeaders(new
StringHeader(WS_ADDR_VER.messageIDTag,uuid),replyTo.createHeader(WS_ADDR_VER.replyToTag));
wsbp.getRequestContext().put(WSBindingProvider.USERNAME_PROPERTY,
"<your username>");
wsbp.getRequestContext().put(WSBindingProvider.PASSWORD_PROPERTY,
"<Your Password>");
wsbp.getRequestContext().put(ClientConstants.WSSEC_RECIPIENT_KEY_ALIAS,"service");
// Provide the location of your keystore(.jks file)
wsbp.getRequestContext().put(ClientConstants.WSSEC_KEYSTORE_LOCATION, <location of keystore file>);
wsbp.getRequestContext().put(ClientConstants.WSSEC_KEYSTORE_PASSWORD, "password" );
wsbp.getRequestContext().put(ClientConstants.WSSEC_KEYSTORE_TYPE, "JKS" );
wsbp.getRequestContext().put(ClientConstants.WSSEC_SIG_KEY_ALIAS, "client" );
wsbp.getRequestContext().put(ClientConstants.WSSEC_SIG_KEY_PASSWORD, "password" );
wsbp.getRequestContext().put(ClientConstants.WSSEC_ENC_KEY_ALIAS, "client" );
wsbp.getRequestContext().put(ClientConstants.WSSEC_ENC_KEY_PASSWORD, "password" );
String variableName =
financialUtilService.uploadFileToUcm(<Enter your DocumentDetails param>);
//Add your custom code to call the desired method with the required input parameters.
String variableName =
financialUtilService.uploadFileToUcmAsync(<Enter your DocumentDetails param>);
//Add your custom code to call the desired method with the required input parameters.
Long variableName =
financialUtilService.submitESSJobRequest(<Enter your String param>, <Enter your String param>, <Enter your
List<String> param>);
Long variableName =
financialUtilService.submitESSJobRequestAsync(<Enter your String param>, <Enter your String param>, <Enter
your List<String> param>);
//Add your custom code to call the desired method with the required input parameters.
}
}
Go to Top
Steps:
3. Enter the WebService name as " FinancialUtilService " and the URL of the WSDL you want to invoke
as
http://<fin_server:PortNumber>/finFunShared/FinancialUtilService?WSDL
4. Drop the BPEL process from the Component Palette and name the BPEL process say
WebServiceInvocationProcess.
6. Double click on BPEL to open WebServiceInvocationProcess.bpel file. Initially the .bpel file will look like
this.
9. Select the operation you want to perform . In this case the name of the method will be
" uploadFileToUcm ".
10. In variables click plus icon for both input and output and press ok. This will create two variables to
invoke the webservice.
13. Similarly drop an assign activity after InvokeWebService and assign the appropriate element of
InvokeWebService_uploadFileToUcm_OutputVariable to the result element of output variable.
14. Now Right click on the composite and go to deploy and deploy it on a server.
Go to Top
Steps:
JDEV users can find the given file by following the below steps.
<Reference
name="{http://xmlns.oracle.com/apps/financials/commonModules/shared/financialUtilService/}FinancialUtilService"
className="oracle.jbo.client.svc.Service" xmlns="">
<Factory className="oracle.jbo.client.svc.ServiceFactory"/>
<RefAddresses>
<StringRefAddr addrType="serviceInterfaceName">
<Contents>oracle.apps.financials.commonModules.shared.financialUtilService.FinancialUtilService</Contents>
</StringRefAddr>
<StringRefAddr addrType="serviceEndpointProvider">
<Contents>SOAP</Contents>
</StringRefAddr>
<StringRefAddr addrType="webServiceConnectionName">
<Contents>FinancialUtilServiceConnection</Contents>
</StringRefAddr>
<StringRefAddr addrType="serviceSchemaName">
<Contents>FinancialUtilService.xsd</Contents>
</StringRefAddr>
<StringRefAddr addrType="serviceSchemaLocation">
<Contents>oracle/apps/financials/commonModules/shared/financialUtilService/</Contents>
</StringRefAddr>
</RefAddresses>
</Reference>
<Reference name="FinancialUtilServiceConnection"
className="oracle.adf.model.connection.webservice.impl.WebServiceConnectionImpl"
credentialStoreKey="FinancialUtilServiceConnection" xmlns="">
<Factory className="oracle.adf.model.connection.webservice.api.WebServiceConnectionFactory"/>
<RefAddresses>
<XmlRefAddr addrType="WebServiceConnection">
<Contents>
<wsconnection description="http://<fin_server:PortNumber>/finFunShared/FinancialUtilService?WSDL"
service="{http://xmlns.oracle.com/apps/financials/commonModules/shared/financialUtilService/}FinancialUtilService">
<model
name{http://xmlns.oracle.com/apps/financials/commonModules/shared/financialUtilService/}FinancialUtilService"
xmlns="http://oracle.com/ws/model">
<service
name{http://xmlns.oracle.com/apps/financials/commonModules/shared/financialUtilService/}FinancialUtilService">
<port name="FinancialUtilServiceSoapHttpPort"
binding="{http://xmlns.oracle.com/apps/financials/commonModules/shared/financialUtilService/}FinancialUtilServiceSoap
HttpPort">
<policy-references xmlns="http://oracle.com/adf">
<policy-reference category="security" uri="oracle/wss_username_token_client_policy" enabled="true"
id="oracle oracle/wss_username_token_client_policy" xmlns=""/>
</policy-references>
<soap username="transportUserName" password="transportPassword"
addressUrl="http://<fin_server:PortNumber>/finFunShared/FinancialUtilService"
xmlns="http://schemas.xmlsoap.org/wsdl/soap/"/>
<operation name="uploadFileToUcm">
<soap
</port>
</service>
</model>
</wsconnection>
</Contents>
</XmlRefAddr>
<SecureRefAddr addrType="transportPassword"/>
<SecureRefAddr addrType="transportUserName"/>
</RefAddresses>
</Reference>
Now you have an entry corresponding to the webservice you want to invoke.
2. For j2se client (ServiceFactory is executed from a standalone j2se client), we need to make
sure that the following five jar files are added in "classpath & libraries" of your project:
? library "Java EE 1.5"
? library "Oracle XML parser v2"
? library "JAX-WS client"
? library "BC4J Service Client"
? your service's common jar file
4. Create a java class and name it as say InvokeWebService and add the following code in the
main method.
InvokeWebService.java
import oracle.jbo.client.svc.ServiceFactory;
FinancialUtilService financialUtilService =
(FinancialUtilService)ServiceFactory.getServiceProxy("{http://xmlns.oracle.com/apps/financials/commonModules/shared/financialUtil
Service/}FinancialUtilService");
String variableName =
financialUtilService.uploadFileToUcm(<Enter your DocumentDetails param>);
//Add your custom code to call the desired method with the required input parameters.
String variableName =
financialUtilService.uploadFileToUcmAsync(<Enter your DocumentDetails param>);
//Add your custom code to call the desired method with the required input parameters.
Long variableName =
financialUtilService.submitESSJobRequest(<Enter your String param>, <Enter your String param>, <Enter your
List<String> param>);
//Add your custom code to call the desired method with the required input parameters.
Long variableName =
financialUtilService.submitESSJobRequestAsync(<Enter your String param>, <Enter your String param>, <Enter your
List<String> param>);
//Add your custom code to call the desired method with the required input parameters.
}
}
Go to Top
Go to Index