Émission d'une requête à fonction unique
L'exemple GetEffectiveAddress est un appel à fonction unique effectué auprès de JD Edwards EnterpriseOne. Le résultat de cette requête prend la forme d'un document de réponse standard. Dans une requête à fonction unique, seule une méthode callMethod dans l'objet XML est spécifiée.
Exemple : exécution d’une fonction métier avec un appel Single-Function
Voici un exemple de document de requête GetEffectiveAddress. Il est généré par BizTalk Server comme instance XML à partir du schéma XSD créé lors de l'ajout des éléments générés. Cet exemple de document de requête a été généré à l'aide du style de schéma ATTRIBUTE_STYLE dans la configuration du port d'envoi.
Exemple de document XML de requête
<ns0:AddressBookMasterMBF xmlns:ns0=
"http://schemas.microsoft.com/[JDE://CALLBSFN/N0100041]">
<ns0:cActionCode>I</ns0:cActionCode>
<ns0:mnAddressBookNumber>38594</ns0:mnAddressBookNumber>
</ns0:AddressBookMasterMBF>
Voici un exemple de réponse GetEffectiveAddress renvoyée par J.D. Edwards EnterpriseOne suite à la requête GetEffectiveAddress.
Exemple de document XML de réponse
<?xml version="1.0" encoding="utf-8" ?>
<N0100041:AddressBookMasterMBFResponse xmlns:N0100041=
"http://schemas.microsoft.com/[JDE://CALLBSFN/N0100041]">
<N0100041:cActionCode>I</N0100041:cActionCode>
<N0100041:cUpdateMasterFile />
<N0100041:cProcessEdits />
<N0100041:cSuppressErrorMessages />
<N0100041:szErrorMessageID />
<N0100041:szVersion />
<N0100041:mnSameAsExcept>0</N0100041:mnSameAsExcept>
<N0100041:mnAddressBookNumber>38594</N0100041:mnAddressBookNumber>
<N0100041:szLongAddressNumber />
<N0100041:szTaxId />
<N0100041:szSearchType>C</N0100041:szSearchType>
<N0100041:szAlphaName>Jacques Cartier</N0100041:szAlphaName>
<N0100041:szSecondaryAlphaName>Second Jacques Cartier
</N0100041:szSecondaryAlphaName>
<N0100041:szMailingName>Mailing Jacques Cartier
</N0100041:szMailingName>
<N0100041:szSecondaryMailingName>second mailing
</N0100041:szSecondaryMailingName>
<N0100041:szDescriptionCompressed>JACQUES CARTIER
</N0100041:szDescriptionCompressed>
<N0100041:szBusinessUnit>1</N0100041:szBusinessUnit>
<N0100041:szAddressLine1>Montral</N0100041:szAddressLine1>
<N0100041:szAddressLine2>3950 Cote Vertu</N0100041:szAddressLine2>
<N0100041:szAddressLine3>Suite 100</N0100041:szAddressLine3>
<N0100041:szAddressLine4 />
<N0100041:szPostalCode>73000</N0100041:szPostalCode>
<N0100041:szCity>St-Laurent</N0100041:szCity>
<N0100041:szCounty />
<N0100041:szState>TX</N0100041:szState>
<N0100041:szCountry>US</N0100041:szCountry>
<N0100041:szCarrierRoute />
<N0100041:szBulkMailingCenter />
<N0100041:szPrefix1 />
<N0100041:szPhoneNumber1>514-334-0404</N0100041:szPhoneNumber1>
<N0100041:szPhoneNumberType1 />
<N0100041:szPhoneAreaCode2 />
<N0100041:szPhoneNumber2 />
<N0100041:szPhoneNumberType2 />
<N0100041:cPayablesYNM>Y</N0100041:cPayablesYNM>
<N0100041:cReceivablesYN>N</N0100041:cReceivablesYN>
<N0100041:cEmployeeYN>N</N0100041:cEmployeeYN>
<N0100041:cUserCode>N</N0100041:cUserCode>
<N0100041:cARAPNettingY>N</N0100041:cARAPNettingY>
<N0100041:cSubledgerInactiveCode />
<N0100041:cPersonCorporationCode />
<N0100041:szCertificate />
<N0100041:szAddlIndTaxID />
<N0100041:szCreditMessage />
<N0100041:szLanguage />
<N0100041:szIndustryClassification />
<N0100041:cEMail />
<N0100041:mn1stAddressNumber>38594</N0100041:mn1stAddressNumber>
<N0100041:mn2ndAddressNumber>38594</N0100041:mn2ndAddressNumber>
<N0100041:mn3rdAddressNumber>38594</N0100041:mn3rdAddressNumber>
<N0100041:mn4thAddressNumber>38594</N0100041:mn4thAddressNumber>
<N0100041:mn5thAddressNumber>38594</N0100041:mn5thAddressNumber>
<N0100041:mnFactorSpecialPayee>38594</N0100041:mnFactorSpecialPayee>
<N0100041:mnParentNumber>0</N0100041:mnParentNumber>
<N0100041:cAddressType3YN>N</N0100041:cAddressType3YN>
<N0100041:cAddressType4YN>N</N0100041:cAddressType4YN>
<N0100041:cAddressType5YN>N</N0100041:cAddressType5YN>
<N0100041:szCategoryCode01 />
<N0100041:szAccountRepresentative />
<N0100041:szCategoryCode03 />
<N0100041:szGeographicRegion />
<N0100041:szCategoryCode05 />
<N0100041:szCategoryCode06 />
<N0100041:sz1099Reporting />
<N0100041:szCategoryCode08 />
<N0100041:szCategoryCode09 />
<N0100041:szCategoryCode10 />
<N0100041:szSalesRegion />
<N0100041:szCategoryCode12 />
<N0100041:szLineOfBusiness />
<N0100041:szSalesVolume />
<N0100041:szCategoryCode15 />
<N0100041:szCategoryCode16 />
<N0100041:szCategoryCode17 />
<N0100041:szCategoryCode18 />
<N0100041:szCategoryCode19 />
<N0100041:szCategoryCode20 />
<N0100041:szCategoryCode21 />
<N0100041:szCategoryCode22 />
<N0100041:szCategoryCode23 />
<N0100041:szCategoryCode24 />
<N0100041:szCategoryCode25 />
<N0100041:szCategoryCode26 />
<N0100041:szCategoryCode27 />
<N0100041:szCategoryCode28 />
<N0100041:szCategoryCode29 />
<N0100041:szCategoryCode30 />
<N0100041:szGlBankAccount />
<N0100041:mnTimeScheduledIn>0</N0100041:mnTimeScheduledIn>
<N0100041:jdDateScheduledIn>2005-06-30</N0100041:jdDateScheduledIn>
<N0100041:cClearedY />
<N0100041:szRemark />
<N0100041:szUserReservedCode />
<N0100041:jdUserReservedDate>2005-06-30</N0100041:jdUserReservedDate>
<N0100041:mnUserReservedAmount>0</N0100041:mnUserReservedAmount>
<N0100041:mnUserReservedNumber>0</N0100041:mnUserReservedNumber>
<N0100041:szUserReservedReference />
<N0100041:jdDateEffective>1900-01-01</N0100041:jdDateEffective>
<N0100041:szProgramId>N0100041</N0100041:szProgramId>
<N0100041:szRemark1 />
<N0100041:mnAddNumParentOriginal>0</N0100041:mnAddNumParentOriginal>
<N0100041:OKToDelete>0</N0100041:OKToDelete>
<N0100041:szVersionconsolidated />
<N0100041:cDirectionIndicator />
<N0100041:cEdiSuccessfullyProcess>0</N0100041:cEdiSuccessfullyProcess>
<N0100041:szCountryForPayroll />
<N0100041:szShortcutClientType />
</N0100041:AddressBookMasterMBFResponse>