サービス警告
あるサービスに対するサービス警告を有効にした場合、応答ペイロードは、サービス・データ・オブジェクトとともに、操作の実行中に生成された警告メッセージを返します。 応答ペイロード内の要素のデータ型はサービス・データ・オブジェクトを拡張したものであり、警告メッセージを取得します。
たとえば、事業所サービスに対するサービス警告が有効になっているとします。 create
操作は、定義される事業所ビジネス・オブジェクトを受け取り、新しく作成されたオブジェクトともに、操作中に生成されたサービス警告を返します。 LocationResult
データ型はラッパーの役割を果たし、事業所タイプと警告メッセージの両方を結果に格納できるようにします。
<element name="createLocation">
<complexType>
<sequence>
<element name="location" type="ns1:Location"/>
</sequence>
</complexType>
</element>
element name="createLocationResponse">
<complexType>
<sequence>
<element name="result" type="ns1:LocationResult"/>
</sequence>
</complexType>
</element>
LocationResult
データ型は、MethodResult
型を拡張したものです。 MethodResult
型の定義は、BC4JService.xsdのサンプルを参照してください。 複数のオブジェクトを返すfind
およびprocess
操作には同じデータ型が使用されるため、maxOccurs
パラメータは、1
ではなく、unbounded
に設定されています。
<xsd:complexType name="LocationResult">
<xsd:complexContent>
<xsd:extension base="ns0:MethodResult">
<xsd:sequence>
<xsd:element name="Value" type="Location" minOccurs="0"
maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
あるサービスに対するサービス警告を有効にしない場合、応答ペイロードはビジネス・オブジェクト・サービス自体を返します。 たとえば、営業リード・サービスに対して定義されているcreateSalesLead
操作の要求ペイロードと応答ペイロードは、MklLead
型の営業リード・オブジェクトを受け取って、返します。
次の例は、http://xmlns.oracle.com/apps/cdm/foundation/parties/locationService/applicationModule/}LocationService
に対して定義されているcreateLocation
操作の要求ペイロードです。 このXMLフラグメントでは、AMS
モジュールを使用して、1 Oracle
Parkway, Redwood Shores, CA 94065,
US
という事業所オブジェクトが作成されます。 このモジュールは、HZ_CREATED_BY_MODULES
参照タイプの参照コードとして登録されています。 参照の使用方法を参照してください。
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<ns1:createLocation
xmlns:ns1="http://xmlns.oracle.com/apps/cdm/foundation/parties/
locationService/applicationModule/types/">
<ns1:location
xmlns:ns2="http://xmlns.oracle.com/apps/cdm/foundation/parties/locationService/">
<ns2:Address1>1 Oracle Parkway</ns2:Address1>
<ns2:City>Redwood Shores</ns2:City>
<ns2:State>CA</ns2:State>
<ns2:Country>US</ns2:Country>
<ns2:PostalCode>94065</ns2:PostalCode>
<ns2:CreatedByModule>AMS</ns2:CreatedByModule>
</ns1:location>
</ns1:createLocation>
</soap:Body>
</soap:Envelope>
createLocation
操作の応答ペイロードには、新しく作成された事業所ビジネス・オブジェクトの定義全体が格納されます。
<ns0:createLocationResponse xmlns=""
xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ns0="http://xmlns.oracle.com/apps/cdm/foundation/parties/locationService/
applicationModule/types/" xmlns:wsa="http://www.w3.org/2005/08/addressing"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-
utility-1.0.xsd">
<ns2:result xmlns:ns0="http://xmlns.oracle.com/adf/svc/types/"
xmlns:ns1="http://xmlns.oracle.com/apps/cdm/foundation/parties/locationService/"
xmlns:ns2="http://xmlns.oracle.com/apps/cdm/foundation/parties/locationService/
applicationModule/types/"
xmlns:ns3="http://xmlns.oracle.com/apps/cdm/foundation/parties/partyService/"
xmlns:ns4="http://xmlns.oracle.com/apps/cdm/foundation/parties/flex/location/"
xmlns:tns="http://xmlns.oracle.com/adf/svc/errors/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="ns1:LocationResult">
<ns1:Value>
<ns1:LocationId>300100039119119</ns1:LocationId>
<ns1:LastUpdateDate>2014-04-22T23:43:17.153-07:00</ns1:LastUpdateDate>
<ns1:LastUpdatedBy>SALES_ADMIN</ns1:LastUpdatedBy>
<ns1:CreationDate>2014-04-22T23:43:17.001-07:00</ns1:CreationDate>
<ns1:CreatedBy>SALES_ADMIN</ns1:CreatedBy>
<ns1:LastUpdateLogin>F7B103E144504B3CE0433A90F50A0448
</ns1:LastUpdateLogin>
<ns1:RequestId xsi:nil="true"/>
<ns1:OrigSystem xsi:nil="true"/>
<ns1:OrigSystemReference>300100039119119</ns1:OrigSystemReference>
<ns1:Country>US</ns1:Country>
<ns1:Address1>1 Oracle Parkway</ns1:Address1>
<ns1:Address2 xsi:nil="true"/>
<ns1:Address3 xsi:nil="true"/>
<ns1:Address4 xsi:nil="true"/>
<ns1:City>Redwood Shores</ns1:City>
<ns1:PostalCode>94065</ns1:PostalCode>
<ns1:State>CA</ns1:State>
<ns1:Province xsi:nil="true"/>
<ns1:County xsi:nil="true"/>
<ns1:AddressStyle xsi:nil="true"/>
<ns1:ValidatedFlag>false</ns1:ValidatedFlag>
<ns1:AddressLinesPhonetic xsi:nil="true"/>
<ns1:PostalPlus4Code xsi:nil="true"/>
<ns1:Position xsi:nil="true"/>
<ns1:LocationDirections xsi:nil="true"/>
<ns1:AddressEffectiveDate xsi:nil="true"/>
<ns1:AddressExpirationDate xsi:nil="true"/>
<ns1:ClliCode xsi:nil="true"/>
<ns1:Language xsi:nil="true"/>
<ns1:ShortDescription xsi:nil="true"/>
<ns1:Description xsi:nil="true"/>
<ns1:SalesTaxGeocode xsi:nil="true"/>
<ns1:SalesTaxInsideCityLimits>1</ns1:SalesTaxInsideCityLimits>
<ns1:FaLocationId xsi:nil="true"/>
<ns1:ObjectVersionNumber>1</ns1:ObjectVersionNumber>
<ns1:CreatedByModule>AMS</ns1:CreatedByModule>
<ns1:GeometryStatusCode>DIRTY</ns1:GeometryStatusCode>
<ns1:ValidationStatusCode xsi:nil="true"/>
<ns1:DateValidated xsi:nil="true"/>
<ns1:DoNotValidateFlag xsi:nil="true"/>
<ns1:Comments xsi:nil="true"/>
<ns1:HouseType xsi:nil="true"/>
<ns1:EffectiveDate>2014-04-22</ns1:EffectiveDate>
<nsl:AddrElementAttribute1 xsi:nil="true"/>
<ns1:AddrElementAttribute2 xsi:nil="true"/>
<ns1:AddrElementAttribute3 xsi:nil="true"/>
<ns1:AddrElementAttribute4 xsi:nil="true"/>
<ns1:AddrElementAttribute5 xsi:nil="true"/>
<ns1:Building xsi:nil="true"/>
<ns1:FloorNumber xsi:nil="true"/>
<ns1:StatusFlag>true</ns1:StatusFlag>
<ns1:InternalFlag>false</ns1:InternalFlag>
<ns1:TimezoneCode xsi:nil="true"/>
<ns1:Latitude xsi:nil="true"/>
<ns1:Longitude xsi:nil="true"/>
<ns1:Distance xsi:nil="true"/>
</ns1:Value>
</ns2:result>
</ns0:createLocationResponse>