You are on page 1of 34

Trading Community Member Name and

Identifier Web Service - Cook Book

© 2012 Oracle Corporation. All Rights Reserved.


This document contains the following details about the web service "Trading Community Member
Name and Identifier"

• 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
• Privileges and Roles associated with Web Service
• Web Service Invocation Methods

© 2012 Oracle Corporation. All Rights Reserved.


Overview

A service to define and manage additional name and identifier types that can be associated to trading
community members from within the application. For example, a person can be identified using a
passport number or a driver's license number.

Internal Name: oracle.apps.cdm.foundation.parties.nameAndIdTypeService.NameAndIdTypeService

Lifecycle: Active

Compatibility: Supported - Backward Compatibility Assured

Files associated with this web service:

File Type File Path File Name


Application module /oracle/apps/cdm/foundation/parties/nameAndId NameAndIdTypeAM.xml
XML TypeService/applicationModule
Service Interface /oracle/apps/cdm/foundation/parties/nameAndId NameAndIdTypeService.java
TypeService
Go to Index

© 2012 Oracle Corporation. All Rights Reserved.


LBA Details
• Customer Data Management
• Foundation
• Parties
Go to Index

© 2012 Oracle Corporation. All Rights Reserved.


Web Service Operations

• getNameAndIdType
• createNameAndIdType
• updateNameAndIdType
• deleteNameAndIdType
• mergeNameAndIdType
• findNameAndIdType
• processNameAndIdType
• processCSNameAndIdType
Go to Index

© 2012 Oracle Corporation. All Rights Reserved.


Method Details
getNameAndIdType
Method Name: getNameAndIdType
Description: Get operation for Trading Community Additional Name and Identifier Type
Asynch Name: getNameAndIdTypeAsync
Asynch CallBack: getNameAndIdTypeAsyncResponse

Parameters:

Parameter Description Is Is Type


Name Return Mandatory
typeCode Get operation for Trading false Yes java.lang.String
Community Additional Name
and Identifier Type for the
type code provided as input.
return Trading Community true oracle.apps.cdm.foundation.pa
Additional Name and rties.nameAndIdTypeService.
Identifier Type that matches NameAndIdType
the inbound key attributes.
Go to method listing
createNameAndIdType
Method Name: createNameAndIdType
Description: Create operation for Trading Community Additional Name and Identifier Type
Asynch Name: createNameAndIdTypeAsync
Asynch CallBack: createNameAndIdTypeAsyncResponse

Parameters:

Parameter Description Is Is Type


Name Return Mandatory
nameAndIdType Trading Community false Yes oracle.apps.cdm.foundation.pa
Additional Name and rties.nameAndIdTypeService.
Identifier Type to be created NameAndIdType
return Result of the operation true oracle.apps.cdm.foundation.pa
includes the successfully rties.nameAndIdTypeService.
created Trading Community NameAndIdTypeResult
Additional Name and
Identifier Type and/or a list of
warnings or informational
messages.
Go to method listing
updateNameAndIdType
Method Name: updateNameAndIdType
Description: Update operation for Trading Community Additional Name and Identifier Type
Asynch Name: updateNameAndIdTypeAsync
Asynch CallBack: updateNameAndIdTypeAsyncResponse

Parameters:

Parameter Description Is Is Type


Name Return Mandatory
nameAndIdType Trading Community false Yes oracle.apps.cdm.foundation.pa

© 2012 Oracle Corporation. All Rights Reserved.


Additional Name and rties.nameAndIdTypeService.
Identifier Type to be updated NameAndIdType
return Result of the operation true oracle.apps.cdm.foundation.pa
includes the successfully rties.nameAndIdTypeService.
updated Trading Community NameAndIdTypeResult
Additional Name and
Identifier Type and/or a list of
warnings or informational
messages.
Go to method listing
deleteNameAndIdType
Method Name: deleteNameAndIdType
Description: Delete operation for Trading Community Additional Name and Identifier Type
Asynch Name: deleteNameAndIdTypeAsync
Asynch CallBack: deleteNameAndIdTypeAsyncResponse

Parameters:

Parameter Description Is Is Type


Name Return Mandatory
nameAndIdType Trading Community false Yes oracle.apps.cdm.foundation.pa
Additional Name and rties.nameAndIdTypeService.
Identifier Type to be deleted NameAndIdType
return A list of warnings or true oracle.jbo.common.service.typ
informational messages es.MethodResult
encountered when deleting
the object.
Go to method listing
mergeNameAndIdType
Method Name: mergeNameAndIdType
Description: Merge operation for Trading Community Additional Name and Identifier Type. It will perform
an update if the object exists, or an insert if the object doesn't already exist.
Asynch Name: mergeNameAndIdTypeAsync
Asynch CallBack: mergeNameAndIdTypeAsyncResponse

Parameters:

Parameter Description Is Is Type


Name Return Mandatory
nameAndIdType Trading Community false Yes oracle.apps.cdm.foundation.pa
Additional Name and rties.nameAndIdTypeService.
Identifier Type to be merged NameAndIdType
return Result of the operation true oracle.apps.cdm.foundation.pa
includes the successfully rties.nameAndIdTypeService.
merged Trading Community NameAndIdTypeResult
Additional Name and
Identifier Type and/or a list of
warnings or informational
messages.
Go to method listing
findNameAndIdType
Method Name: findNameAndIdType
Description: Find operation for Trading Community Additional Name and Identifier Type
Asynch Name: findNameAndIdTypeAsync

© 2012 Oracle Corporation. All Rights Reserved.


Asynch CallBack: findNameAndIdTypeAsyncResponse

Parameters:

Parameter Description Is Is Type


Name Return Mandatory
findCriteria The criteria used to limit your false Yes oracle.jbo.common.service.typ
query result, such as the filter es.FindCriteria
(where clause), the fetch size,
etc.
findControl Find Control. Not currently false Yes oracle.jbo.common.service.typ
used. es.FindControl
return Result of the operation true oracle.apps.cdm.foundation.pa
including a list of Trading rties.nameAndIdTypeService.
Community Additional Name NameAndIdTypeResult
and Identifier Type that
satisfy the inbound criteria
and any warnings or
informational messages
encountered during the
invocation.
Go to method listing
processNameAndIdType
Method Name: processNameAndIdType
Description: Bulk load operation for Trading Community Additional Name and Identifier Type
Asynch Name: processNameAndIdTypeAsync
Asynch CallBack: processNameAndIdTypeAsyncResponse

Parameters:

Parameter Description Is Is Type


Name Return Mandatory
Indicates what action shall be false Yes java.lang.String
changeOperation performed, such as Create,
Update, Merge, or Delete
nameAndIdType A list of Trading Community false No java.util.List<oracle.apps.cdm.f
Additional Name and oundation.parties.nameAndIdT
Identifier Type to be ypeService.NameAndIdType>
processed
processControl Control your bulk upload false Yes oracle.jbo.common.service.typ
behavior, such as whether es.ProcessControl
the valid data will be
committed if there are other
invalid data in the same
batch, and whether the
outbound will contain the key
attributes only or the full
object.
return Result of the operation true oracle.apps.cdm.foundation.pa
including a list of Trading rties.nameAndIdTypeService.
Community Additional Name NameAndIdTypeResult
and Identifier Type that are
successfully processed and
any warnings or informational
messages encountered

© 2012 Oracle Corporation. All Rights Reserved.


during the invocation.
Go to method listing
processCSNameAndIdType
Method Name: processCSNameAndIdType
Description: An operation to apply the changes back to the data source for Trading Community
Additional Name and Identifier Type
Asynch Name: processCSNameAndIdTypeAsync
Asynch CallBack: processCSNameAndIdTypeAsyncResponse

Parameters:

Parameter Description Is Is Type


Name Return Mandatory
processData The object that is used to false Yes oracle.jbo.common.service.typ
represent the changes that es.ProcessData
have been made.
processControl Control your bulk upload false Yes oracle.jbo.common.service.typ
behavior, such as whether es.ProcessControl
the valid data will be
committed if there are other
invalid data in the same
batch, and whether the
outbound will contain the key
attributes only or the full
object.
return Result of the operation true oracle.jbo.common.service.typ
including a list of es.ProcessData
created/updated data objects,
and all warning and
informational messages.
Go to method listing
Go to Index

© 2012 Oracle Corporation. All Rights Reserved.


Relationships
• Oracle-Service-SDO

The Web service Trading Community Member Name and Identifier handles the following
Service Data Objects(SDO)
o Trading Community Additional Name and Identifier Type
o Trading Community Additional Name and Identifier Type Translation

Go to Index

© 2012 Oracle Corporation. All Rights Reserved.


SDO Details
Trading Community Additional Name and Identifier Type

An additional name and identifier type that can be associated with a trading community member. For
example, a passport number for a person or a D-U-N-S number for an organization.

SDO Attributes

Name Type Is Key


TypeOfParty java.lang.String false

TypeCode java.lang.String true

TypeName java.lang.String false

Description java.lang.String false

NameTypeIndicator java.lang.String false

UniqueWithinTypeFlag java.lang.Boolean false

StatusFlag java.lang.Boolean false

CreationDate java.sql.Timestamp false

CreatedBy java.lang.String false

LastUpdateDate java.sql.Timestamp false

LastUpdatedBy java.lang.String false

LastUpdateLogin java.lang.String false

ObjectVersionNumber java.lang.Integer false

NameAndIdTypeTranslation java.util.List<oracle.apps.cdm.foundation.parties.nameAn false


dIdTypeService.NameAndIdTypeTranslation>
Go to SDO listing
Trading Community Additional Name and Identifier Type Translation

An additional name or identifier type in a local language. For example, configure local language name in
French or an alias in Japanese.

SDO Attributes

Name Type Is Key


TypeCode java.lang.String true

TypeName java.lang.String false

Language java.lang.String true

SourceLang java.lang.String false

© 2012 Oracle Corporation. All Rights Reserved.


CreatedBy java.lang.String false

CreationDate java.sql.Timestamp false

LastUpdatedBy java.lang.String false

LastUpdateDate java.sql.Timestamp false

LastUpdateLogin java.lang.String false

Description java.lang.String false

ObjectVersionNumber java.lang.Integer false

Go to SDO listing
Go to Index

© 2012 Oracle Corporation. All Rights Reserved.


Referenced XSD Files
Name Path
NameAndIdType.xsd /oracle/apps/cdm/foundation/parties/nameAndIdTypeService/
NameAndIdTypeService.xsd /oracle/apps/cdm/foundation/parties/nameAndIdTypeService/
NameAndIdTypeSetupService.xsd /oracle/apps/cdm/foundation/parties/nameAndIdTypeService/
NameAndIdTypeTranslation.xsd /oracle/apps/cdm/foundation/parties/nameAndIdTypeService/
Go to Index

© 2012 Oracle Corporation. All Rights Reserved.


XSD Details

NameAndIdType.xsd

XSD Elements

Name Type
nameAndIdTypeResult NameAndIdTypeResult
nameAndIdType NameAndIdType

Go to XSD listing
NameAndIdTypeService.xsd

XSD Elements

Name Type
createNameAndIdType
createNameAndIdTypeResponse
updateNameAndIdType
updateNameAndIdTypeResponse
mergeNameAndIdType
mergeNameAndIdTypeResponse
findNameAndIdType
findNameAndIdTypeResponse
processNameAndIdType
processNameAndIdTypeResponse
deleteNameAndIdType
deleteNameAndIdTypeResponse
processCSNameAndIdType
processCSNameAndIdTypeResponse
deleteNameAndIdTypeAsync
deleteNameAndIdTypeAsyncResponse
mergeNameAndIdTypeAsync
mergeNameAndIdTypeAsyncResponse
findNameAndIdTypeAsync
findNameAndIdTypeAsyncResponse
processCSNameAndIdTypeAsync
processCSNameAndIdTypeAsyncResponse
processNameAndIdTypeAsync
processNameAndIdTypeAsyncResponse
updateNameAndIdTypeAsync
updateNameAndIdTypeAsyncResponse
createNameAndIdTypeAsync
createNameAndIdTypeAsyncResponse

© 2012 Oracle Corporation. All Rights Reserved.


getNameAndIdType
getNameAndIdTypeResponse
getNameAndIdTypeAsync
getNameAndIdTypeAsyncResponse

Go to XSD listing
NameAndIdTypeSetupService.xsd

XSD Elements

Name Type
importData
importDataResponse
exportData
exportDataResponse
exportDataAsync
exportDataAsyncResponse
importDataAsync
importDataAsyncResponse

Go to XSD listing
NameAndIdTypeTranslation.xsd

XSD Elements

Name Type
nameAndIdTypeTranslation NameAndIdTypeTranslation

Go to XSD listing

Go to Index

© 2012 Oracle Corporation. All Rights Reserved.


Privileges And Roles

Privileges

HZ_MANAGE_TRADING_COMMUNITY_MEMBER_NAME_AND_IDENTIFIER_SETUP_FOR
_IDENTIFIER_PRIV

Privilege Name:
HZ_MANAGE_TRADING_COMMUNITY_MEMBER_NAME_AND_IDENTIFIER_SETUP_FOR_IDENTIFI
ER_PRIV
Display Name: Manage Trading Community Member Name and Identifier Setup for Identifier
Description: Allows the specification of additional identifier types for organizations and persons in your
business community, such as passport number and social security number.
Accesses: deleteNameAndIdTypeAsync, mergeNameAndIdType, getNameAndIdType,
processNameAndIdType, findNameAndIdType, getNameAndIdTypeAsync,
processNameAndIdTypeAsync, processCSNameAndIdTypeAsync, updateNameAndIdType,
deleteNameAndIdType, mergeNameAndIdTypeAsync, processCSNameAndIdType,
createNameAndIdType, findNameAndIdTypeAsync, createNameAndIdTypeAsync,
updateNameAndIdTypeAsync

The Privilege
HZ_MANAGE_TRADING_COMMUNITY_MEMBER_NAME_AND_IDENTIFIER_SETUP_FOR_IDENTIFI
ER_PRIV is granted to the following duty roles.

Duty Role Name Display Name Description


IDENTIFIER_ADMIN_DUTY Identifier Administration Duty Grants privileges to set up identifier
types

HZ_MANAGE_TRADING_COMMUNITY_MEMBER_NAME_AND_IDENTIFIER_SETUP_FOR
_NAME_PRIV

Privilege Name:
HZ_MANAGE_TRADING_COMMUNITY_MEMBER_NAME_AND_IDENTIFIER_SETUP_FOR_NAME_P
RIV
Display Name: Manage Trading Community Member Name and Identifier Setup for Name
Description: Allows the specification of additional name types for organizations and persons in your
business community, such as Doing Business As Name and Legal Name.
Accesses: deleteNameAndIdTypeAsync, mergeNameAndIdType, getNameAndIdType,
processNameAndIdType, findNameAndIdType, getNameAndIdTypeAsync,
processNameAndIdTypeAsync, processCSNameAndIdTypeAsync, updateNameAndIdType,
deleteNameAndIdType, mergeNameAndIdTypeAsync, processCSNameAndIdType,
createNameAndIdType, findNameAndIdTypeAsync, createNameAndIdTypeAsync,
updateNameAndIdTypeAsync

The Privilege
HZ_MANAGE_TRADING_COMMUNITY_MEMBER_NAME_AND_IDENTIFIER_SETUP_FOR_NAME_P
RIV is granted to the following duty roles.

Duty Role Name Display Name Description


NAME_ADMIN_DUTY Name Administration Duty Grants privileges to set up name types

© 2012 Oracle Corporation. All Rights Reserved.


Duty Role to Duty/JobRole Relation

Go to Index

© 2012 Oracle Corporation. All Rights Reserved.


Invoking NameAndIdType Service

This section contains three different ways to invoke NameAndIdTypeService. The following are the ways
to do the same:

1) Invoking NameAndIdType Service using Web Service Proxy Client.


2) Invoking NameAndIdType Service using BPEL.
3) Invoking NameAndIdType Service using Connections Architecture.

Go to Index

Invoking NameAndIdType Service using Web Service Proxy Client

Objective: Invoking NameAndIdType Service with input parameters and getting


the response back after the invocation using "Web Service Proxy -JAX-WS Style".

Steps:

1. Create a new generic Project and specify the Project Name and Directory.

2. Right click on the project and click on new (CTRL+N).

© 2012 Oracle Corporation. All Rights Reserved.


3. Choose Web Service Proxy and Click Ok .

4. Click Next.

5. Select JAX-WS Style and click Next.

© 2012 Oracle Corporation. All Rights Reserved.


6. Enter URL of the WSDL in the fromat :
http://<HostName>:<PortNumber>/foundationPartiesSetup/NameAndIdTypeService?WS
DL.
Deselect Copy WSDL into Project.

7. Click Next.

8. Click Next.

© 2012 Oracle Corporation. All Rights Reserved.


9. Click Next.
10. Select oracle/wss11_saml_token_with_message_protection_client_policy

11. Click Next

12. Click Finish.

13. Double Click on NameAndIdTypeServiceSoapHttpPortClient.java which is basically the file to be


edited to invoke the service.

Finally the code will look like this:-

NameAndIdTypeServiceSoapHttpPortClient.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;

// !THE CHANGES MADE TO THIS FILE WILL BE DESTROYED IF REGENERATED!


// This source file is generated by Oracle tools
// Contents may be subject to change
// For reporting problems, use the following
// Version = Oracle WebServices (11.1.1.0.0, build 110329.0915.20612)

public class NameAndIdTypeServiceSoapHttpPortClient {

© 2012 Oracle Corporation. All Rights Reserved.


@WebServiceRef
private static NameAndIdTypeService_Service nameAndIdTypeService_Service;

private static final AddressingVersion WS_ADDR_VER = AddressingVersion.W3C;

public static void main(String[] args) throws ServiceException {

//setup security feature with OWSM policy


SecurityPolicyFeature[] securityFeature =
new SecurityPolicyFeature[] { new
SecurityPolicyFeature("policy: oracle/wss11_saml_token_with_message_protection_client_policy ") };

nameAndIdTypeService_Service = new NameAndIdTypeService_Service();

NameAndIdTypeService nameAndIdTypeService=
nameAndIdTypeService_Service.getNameAndIdTypeServiceSoapHttpPort(securityFeatur
e);

// Get the request context to set the outgoing addressing properties

WSBindingProvider wsbp = (WSBindingProvider) nameAndIdTypeService


WSEndpointReference replyTo = new
WSEndpointReference("http://<HostName>:<PortNumber>/foundationPartiesSetup/NameAndIdTypeService",WS_ADDR_VER);

String uuid = "uuid:" + UUID.randomUUID();

wsbp.setOutboundHeaders(new
StringHeader(WS_ADDR_VER.messageIDTag,uuid),replyTo.createHeader(WS_ADDR_VER.replyToTag));

// Add Security Headers below if any Authentication is required.

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" );

// Add your code to call the desired methods

NameAndIdTypeResult variableName =
nameAndIdTypeService.createNameAndIdType(<Enter your NameAndIdType param>);

//Add your custom code to call the desired method with the required input parameters.

NameAndIdTypeResult variableName =
nameAndIdTypeService.updateNameAndIdType(<Enter your NameAndIdType param>);

//Add your custom code to call the desired method with the required input parameters.

MethodResult variableName =
nameAndIdTypeService.deleteNameAndIdType(<Enter your NameAndIdType param>);

© 2012 Oracle Corporation. All Rights Reserved.


//Add your custom code to call the desired method with the required input parameters.

NameAndIdTypeResult variableName =
nameAndIdTypeService.mergeNameAndIdType(<Enter your NameAndIdType param>);

//Add your custom code to call the desired method with the required input parameters.

NameAndIdTypeResult variableName =
nameAndIdTypeService.findNameAndIdType(<Enter your FindCriteria param>, <Enter your FindControl param>);

//Add your custom code to call the desired method with the required input parameters.

NameAndIdTypeResult variableName =
nameAndIdTypeService.processNameAndIdType(<Enter your String param>, <Enter your List<NameAndIdType>
param>, <Enter your ProcessControl param>);

//Add your custom code to call the desired method with the required input parameters.

ProcessData variableName =
nameAndIdTypeService.processCSNameAndIdType(<Enter your ProcessData param>, <Enter your
ProcessControl param>);

//Add your custom code to call the desired method with the required input parameters.

NameAndIdTypeResult variableName =
nameAndIdTypeService.mergeNameAndIdTypeAsync(<Enter your NameAndIdType param>);

//Add your custom code to call the desired method with the required input parameters.

NameAndIdTypeResult variableName =
nameAndIdTypeService.findNameAndIdTypeAsync(<Enter your FindCriteria param>, <Enter your FindControl
param>);

//Add your custom code to call the desired method with the required input parameters.

NameAndIdTypeResult variableName =
nameAndIdTypeService.createNameAndIdTypeAsync(<Enter your NameAndIdType param>);

//Add your custom code to call the desired method with the required input parameters.

MethodResult variableName =
nameAndIdTypeService.deleteNameAndIdTypeAsync(<Enter your NameAndIdType param>);

//Add your custom code to call the desired method with the required input parameters.

ProcessData variableName =
nameAndIdTypeService.processCSNameAndIdTypeAsync(<Enter your ProcessData param>, <Enter your
ProcessControl param>);

//Add your custom code to call the desired method with the required input parameters.

NameAndIdTypeResult variableName =
nameAndIdTypeService.processNameAndIdTypeAsync(<Enter your String param>, <Enter your
List<NameAndIdType> param>, <Enter your ProcessControl param>);

//Add your custom code to call the desired method with the required input parameters.

NameAndIdTypeResult variableName =
nameAndIdTypeService.updateNameAndIdTypeAsync(<Enter your NameAndIdType param>);

//Add your custom code to call the desired method with the required input parameters.

NameAndIdType variableName =
nameAndIdTypeService.getNameAndIdType(<Enter your String param>);

© 2012 Oracle Corporation. All Rights Reserved.


//Add your custom code to call the desired method with the required input parameters.

NameAndIdType variableName =
nameAndIdTypeService.getNameAndIdTypeAsync(<Enter your String param>);

//Add your custom code to call the desired method with the required input parameters.

}
}

Go to Top

Invoking NameAndIdType Service using BPEL.

Objective: Invoking NameAndIdType Service with input parameters and getting


the response back after the invocation using BPEL".

Steps:

1. Create a new SOA project and specify the name as WebServiceInvocationComposite.

© 2012 Oracle Corporation. All Rights Reserved.


2. Drop Web Service Component from Component Pallete.

3. Enter the WebService name as " NameAndIdTypeService " and the URL of the WSDL you want to
invoke as

http://<HostName>:<PortNumber>/foundationPartiesSetup/NameAndIdTypeService?WSDL

4. Drop the BPEL process from the Component Palette and name the BPEL process say
WebServiceInvocationProcess.

5. Wire the BPEL with WebService.

6. Double click on BPEL to open WebServiceInvocationProcess.bpel file. Initially the .bpel file will look like
this.

© 2012 Oracle Corporation. All Rights Reserved.


7. Drop an invoke activity from component palette and double click on it.

8. Browse for partner link and select " NameAndIdTypeService ".

9. Select the operation you want to perform . In this case the name of the method will be
" createNameAndIdType ".

10. In variables click plus icon for both input and output and press ok. This will create two variables to
invoke the webservice.

© 2012 Oracle Corporation. All Rights Reserved.


11. Drag an assign activity from component palette and put it before the invoke activity.

12. Double click on assign activity. Expand inputvariable and


InvokeWebService_createNameAndIdType_InputVariable . Wire the input element to the appropriate
element of the InvokeWebService_createNameAndIdType_InputVariable.

13. Similarly drop an assign activity after InvokeWebService and assign the appropriate element of
InvokeWebService_createNameAndIdType_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.

© 2012 Oracle Corporation. All Rights Reserved.


15. Now test the composite from WebLogic Enterprise Manager and you will get the appropriate
response.

Go to Top

Invoking NameAndIdType Service using Connections Architecture

Objective: Invoking NameAndIdType Service with input parameters and getting


the response back after the invocation using Connections Architecture".

Steps:

1. To invoke a particular webservice ,there should be a entry corresponding to that webservice


in the connections.xml .

The given file can be found at the following location?


fusionapps/<family>/components/<Application_Name>/.adf/META-INF/connections.xml

JDEV users can find the given file by following the below steps.

Application Resources > Descriptors > ADF META-INF > connections.xml

© 2012 Oracle Corporation. All Rights Reserved.


Now add the following code in connections.xml .

<Reference
name="{http://xmlns.oracle.com/apps/cdm/foundation/parties/nameAndIdTypeService/applicationModule/}NameAndIdTyp
eService" className="oracle.jbo.client.svc.Service" xmlns="">
<Factory className="oracle.jbo.client.svc.ServiceFactory"/>
<RefAddresses>
<StringRefAddr addrType="serviceInterfaceName">
<Contents>oracle.apps.cdm.foundation.parties.nameAndIdTypeService.NameAndIdTypeService</Contents>
</StringRefAddr>
<StringRefAddr addrType="serviceEndpointProvider">
<Contents>SOAP</Contents>
</StringRefAddr>
<StringRefAddr addrType="webServiceConnectionName">
<Contents>NameAndIdTypeServiceConnection</Contents>
</StringRefAddr>
<StringRefAddr addrType="serviceSchemaName">
<Contents>NameAndIdTypeService.xsd</Contents>
</StringRefAddr>
<StringRefAddr addrType="serviceSchemaLocation">
<Contents>oracle/apps/cdm/foundation/parties/nameAndIdTypeService/</Contents>
</StringRefAddr>
</RefAddresses>
</Reference>
<Reference name="NameAndIdTypeServiceConnection"
className="oracle.adf.model.connection.webservice.impl.WebServiceConnectionImpl"
credentialStoreKey="NameAndIdTypeServiceConnection" xmlns="">
<Factory className="oracle.adf.model.connection.webservice.api.WebServiceConnectionFactory"/>
<RefAddresses>
<XmlRefAddr addrType="WebServiceConnection">
<Contents>
<wsconnection
description="http://<HostName>:<PortNumber>/foundationPartiesSetup/NameAndIdTypeService?WSDL"

service="{http://xmlns.oracle.com/apps/cdm/foundation/parties/nameAndIdTypeService/applicationModule/}NameAndIdTy
peService">
<model
name{http://xmlns.oracle.com/apps/cdm/foundation/parties/nameAndIdTypeService/applicationModule/}NameAndIdType
Service" xmlns="http://oracle.com/ws/model">
<service
name{http://xmlns.oracle.com/apps/cdm/foundation/parties/nameAndIdTypeService/applicationModule/}NameAndIdType
Service">
<port name="NameAndIdTypeServiceSoapHttpPort"
binding="{http://xmlns.oracle.com/apps/cdm/foundation/parties/nameAndIdTypeService/applicationModule/}NameAndIdTy
peServiceSoapHttpPort">
<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://<HostName>:<PortNumber>/foundationPartiesSetup/NameAndIdTypeService"

xmlns="http://schemas.xmlsoap.org/wsdl/soap/"/>

© 2012 Oracle Corporation. All Rights Reserved.


<operation name="createNameAndIdType">
<soap
soapAction="http://xmlns.oracle.com/apps/cdm/foundation/parties/nameAndIdTypeService/applicationModule/createNam
eAndIdType" xmlns="http://schemas.xmlsoap.org/wsdl/soap/"/>
<output name=""/>
<input name=""/>
</operation>
<operation name="updateNameAndIdType">
<soap
soapAction="http://xmlns.oracle.com/apps/cdm/foundation/parties/nameAndIdTypeService/applicationModule/updateNam
eAndIdType" xmlns="http://schemas.xmlsoap.org/wsdl/soap/"/>
<output name=""/>
<input name=""/>
</operation>
<operation name="deleteNameAndIdType">
<soap
soapAction="http://xmlns.oracle.com/apps/cdm/foundation/parties/nameAndIdTypeService/applicationModule/deleteName
AndIdType" xmlns="http://schemas.xmlsoap.org/wsdl/soap/"/>
<output name=""/>
<input name=""/>
</operation>
<operation name="mergeNameAndIdType">
<soap
soapAction="http://xmlns.oracle.com/apps/cdm/foundation/parties/nameAndIdTypeService/applicationModule/mergeNam
eAndIdType" xmlns="http://schemas.xmlsoap.org/wsdl/soap/"/>
<output name=""/>
<input name=""/>
</operation>
<operation name="findNameAndIdType">
<soap
soapAction="http://xmlns.oracle.com/apps/cdm/foundation/parties/nameAndIdTypeService/applicationModule/findNameA
ndIdType" xmlns="http://schemas.xmlsoap.org/wsdl/soap/"/>
<output name=""/>
<input name=""/>
</operation>
<operation name="processNameAndIdType">
<soap
soapAction="http://xmlns.oracle.com/apps/cdm/foundation/parties/nameAndIdTypeService/applicationModule/processNa
meAndIdType" xmlns="http://schemas.xmlsoap.org/wsdl/soap/"/>
<output name=""/>
<input name=""/>
</operation>
<operation name="processCSNameAndIdType">
<soap
soapAction="http://xmlns.oracle.com/apps/cdm/foundation/parties/nameAndIdTypeService/applicationModule/processCS
NameAndIdType" xmlns="http://schemas.xmlsoap.org/wsdl/soap/"/>
<output name=""/>
<input name=""/>
</operation>
<operation name="mergeNameAndIdTypeAsync">
<soap
soapAction="http://xmlns.oracle.com/apps/cdm/foundation/parties/nameAndIdTypeService/applicationModule/mergeNam
eAndIdTypeAsync" xmlns="http://schemas.xmlsoap.org/wsdl/soap/"/>
<output name=""/>
<input name=""/>
</operation>
<operation name="findNameAndIdTypeAsync">

© 2012 Oracle Corporation. All Rights Reserved.


<soap
soapAction="http://xmlns.oracle.com/apps/cdm/foundation/parties/nameAndIdTypeService/applicationModule/findNameA
ndIdTypeAsync" xmlns="http://schemas.xmlsoap.org/wsdl/soap/"/>
<output name=""/>
<input name=""/>
</operation>
<operation name="createNameAndIdTypeAsync">
<soap
soapAction="http://xmlns.oracle.com/apps/cdm/foundation/parties/nameAndIdTypeService/applicationModule/createNam
eAndIdTypeAsync" xmlns="http://schemas.xmlsoap.org/wsdl/soap/"/>
<output name=""/>
<input name=""/>
</operation>
<operation name="deleteNameAndIdTypeAsync">
<soap
soapAction="http://xmlns.oracle.com/apps/cdm/foundation/parties/nameAndIdTypeService/applicationModule/deleteName
AndIdTypeAsync" xmlns="http://schemas.xmlsoap.org/wsdl/soap/"/>
<output name=""/>
<input name=""/>
</operation>
<operation name="processCSNameAndIdTypeAsync">
<soap
soapAction="http://xmlns.oracle.com/apps/cdm/foundation/parties/nameAndIdTypeService/applicationModule/processCS
NameAndIdTypeAsync" xmlns="http://schemas.xmlsoap.org/wsdl/soap/"/>
<output name=""/>
<input name=""/>
</operation>
<operation name="processNameAndIdTypeAsync">
<soap
soapAction="http://xmlns.oracle.com/apps/cdm/foundation/parties/nameAndIdTypeService/applicationModule/processNa
meAndIdTypeAsync" xmlns="http://schemas.xmlsoap.org/wsdl/soap/"/>
<output name=""/>
<input name=""/>
</operation>
<operation name="updateNameAndIdTypeAsync">
<soap
soapAction="http://xmlns.oracle.com/apps/cdm/foundation/parties/nameAndIdTypeService/applicationModule/updateNam
eAndIdTypeAsync" xmlns="http://schemas.xmlsoap.org/wsdl/soap/"/>
<output name=""/>
<input name=""/>
</operation>
<operation name="getNameAndIdType">
<soap
soapAction="http://xmlns.oracle.com/apps/cdm/foundation/parties/nameAndIdTypeService/applicationModule/getNameAn
dIdType" xmlns="http://schemas.xmlsoap.org/wsdl/soap/"/>
<output name=""/>
<input name=""/>
</operation>
<operation name="getNameAndIdTypeAsync">
<soap
soapAction="http://xmlns.oracle.com/apps/cdm/foundation/parties/nameAndIdTypeService/applicationModule/getNameAn
dIdTypeAsync" xmlns="http://schemas.xmlsoap.org/wsdl/soap/"/>
<output name=""/>
<input name=""/>
</operation>

</port>

© 2012 Oracle Corporation. All Rights Reserved.


</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

3. Create a new generic project and specify a name.

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;

public class InvokeWebService {


public InvokeWebService () {
super();
}
public static void main(String[] args) {

NameAndIdTypeService nameAndIdTypeService =

(NameAndIdTypeService)ServiceFactory.getServiceProxy("{http://xmlns.oracle.com/apps/cdm/foundation/parties/nameAndIdTypeS
ervice/applicationModule/}NameAndIdTypeService");

NameAndIdTypeResult variableName =
nameAndIdTypeService.createNameAndIdType(<Enter your NameAndIdType param>);

//Add your custom code to call the desired method with the required input parameters.

© 2012 Oracle Corporation. All Rights Reserved.


NameAndIdTypeResult variableName =
nameAndIdTypeService.updateNameAndIdType(<Enter your NameAndIdType param>);

//Add your custom code to call the desired method with the required input parameters.

MethodResult variableName =
nameAndIdTypeService.deleteNameAndIdType(<Enter your NameAndIdType param>);

//Add your custom code to call the desired method with the required input parameters.

NameAndIdTypeResult variableName =
nameAndIdTypeService.mergeNameAndIdType(<Enter your NameAndIdType param>);

//Add your custom code to call the desired method with the required input parameters.

NameAndIdTypeResult variableName =
nameAndIdTypeService.findNameAndIdType(<Enter your FindCriteria param>, <Enter your FindControl param>);

//Add your custom code to call the desired method with the required input parameters.

NameAndIdTypeResult variableName =
nameAndIdTypeService.processNameAndIdType(<Enter your String param>, <Enter your List<NameAndIdType> param>,
<Enter your ProcessControl param>);

//Add your custom code to call the desired method with the required input parameters.

ProcessData variableName =
nameAndIdTypeService.processCSNameAndIdType(<Enter your ProcessData param>, <Enter your ProcessControl
param>);

//Add your custom code to call the desired method with the required input parameters.

NameAndIdTypeResult variableName =
nameAndIdTypeService.mergeNameAndIdTypeAsync(<Enter your NameAndIdType param>);

//Add your custom code to call the desired method with the required input parameters.

NameAndIdTypeResult variableName =
nameAndIdTypeService.findNameAndIdTypeAsync(<Enter your FindCriteria param>, <Enter your FindControl param>);

//Add your custom code to call the desired method with the required input parameters.

NameAndIdTypeResult variableName =
nameAndIdTypeService.createNameAndIdTypeAsync(<Enter your NameAndIdType param>);

//Add your custom code to call the desired method with the required input parameters.

MethodResult variableName =
nameAndIdTypeService.deleteNameAndIdTypeAsync(<Enter your NameAndIdType param>);

//Add your custom code to call the desired method with the required input parameters.

ProcessData variableName =
nameAndIdTypeService.processCSNameAndIdTypeAsync(<Enter your ProcessData param>, <Enter your ProcessControl

© 2012 Oracle Corporation. All Rights Reserved.


param>);

//Add your custom code to call the desired method with the required input parameters.

NameAndIdTypeResult variableName =
nameAndIdTypeService.processNameAndIdTypeAsync(<Enter your String param>, <Enter your List<NameAndIdType>
param>, <Enter your ProcessControl param>);

//Add your custom code to call the desired method with the required input parameters.

NameAndIdTypeResult variableName =
nameAndIdTypeService.updateNameAndIdTypeAsync(<Enter your NameAndIdType param>);

//Add your custom code to call the desired method with the required input parameters.

NameAndIdType variableName =
nameAndIdTypeService.getNameAndIdType(<Enter your String param>);

//Add your custom code to call the desired method with the required input parameters.

NameAndIdType variableName =
nameAndIdTypeService.getNameAndIdTypeAsync(<Enter your String param>);

//Add your custom code to call the desired method with the required input parameters.

}
}
Go to Top
Go to Index

© 2012 Oracle Corporation. All Rights Reserved.

You might also like