Tuesday 18 June 2019

Fusion TCA Web Services

Perform the various loads in sequence and examine the response returned as you will need to obtain various ids to use as input to subsequent webservice calls.
The Load Sequence is:
Create Location
Create Organization - Type Person
Create Person - Type Person
Create Customer Account

Create Location

WebService Port as shown in EM is LocationServiceSoapHttpPort
WSDL is - http://Server:Port/foundationParties/LocationService?wsdl
Operation is - createLocation
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Bodyxmlns:ns1="http://xmlns.oracle.com/apps/cdm/foundation/parties/locationService/applicationModule/types/">
 <ns1:createLocation>
<ns1:location xmlns:ns2="http://xmlns.oracle.com/apps/cdm/foundation/parties/locationService/">
<ns2:CreatedByModule>HZ_WS</ns2:CreatedByModule>
<ns2:OrigSystem>LEG1</ns2:OrigSystem>
<ns2:OrigSystemReference>LEG1_PC_Location4</ns2:OrigSystemReference>
<ns2:Country>GB</ns2:Country>
<ns2:Address1>10 Downing Street</ns2:Address1>
<ns2:City>LONDON</ns2:City>
<ns2:PostalCode>SW1A 2AA</ns2:PostalCode>
</ns1:location>
</ns1:createLocation>
</soap:Body>
</soap:Envelope>

RETURNS

<ns1:LocationId>300000006335313</ns1:LocationId>
The LOCATION ID is 300000006335313


Create Organization  (PARTY - CUSTOMER)

WebService Port as shown in EM OrganizationServiceSoapHttpPortPort
WSDL is - http://Server:Port/foundationParties/OrganizationService?wsdl
Operation is - createOrganization

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body mlns:ns1="http://xmlns.oracle.com/apps/cdm/foundation/parties/organizationService/applicationModule/types/">
<ns1:createOrganization>
<ns1:organizationParty xmlns:ns2="http://xmlns.oracle.com/apps/cdm/foundation/parties/organizationService/">
<ns2:CreatedByModule>HZ_WS</ns2:CreatedByModule>
<ns2:PartyUsageAssignment xmlns:ns3="http://xmlns.oracle.com/apps/cdm/foundation/parties/partyService/">
<ns3:PartyUsageCode>CUSTOMER</ns3:PartyUsageCode>
<ns3:CreatedByModule>HZ_WS</ns3:CreatedByModule>
</ns2:PartyUsageAssignment>
<ns2:PartyUsageAssignment xmlns:ns4="http://xmlns.oracle.com/apps/cdm/foundation/parties/partyService/">
<ns4:PartyUsageCode>SALES_ACCOUNT</ns4:PartyUsageCode>
<ns4:CreatedByModule>HZ_WS</ns4:CreatedByModule>
</ns2:PartyUsageAssignment>
<ns2:PartySite xmlns:ns5="http://xmlns.oracle.com/apps/cdm/foundation/parties/partyService/">
<ns5:LocationId>300000006335313</ns5:LocationId>
<ns5:CreatedByModule>HZ_WS</ns5:CreatedByModule>
<ns5:IdentifyingAddressFlag>true</ns5:IdentifyingAddressFlag>
</ns2:PartySite>
<ns2:OrganizationProfile>
<ns2:OrganizationName>Country Feeling SurfShop - Party</ns2:OrganizationName>
<ns2:CreatedByModule>HZ_WS</ns2:CreatedByModule>
</ns2:OrganizationProfile>
</ns1:organizationParty>
</ns1:createOrganization>
</soap:Body>
</soap:Envelope>

No comments:

Post a Comment