Creating CPPCPA Properties Templates

19-14 Oracle Fusion Middleware Users Guide for Oracle B2B ebMS Samples The ebMS samples are located in: samples selfservicecustom b2b-106-Custom_1.0_orders_ebMSbuyer_setup_selfservice ebms_buyer_ss.xml The schemas are located in: samples selfservicecustom b2b-106-Custom_1.0_orders_ebMSbuyer_setup_selfserviceschemas Use the following command: ant -f ant-b2b-util.xml b2bselfservice -Dinput=samplesselfservicecustom b2b-106-Custom_1.0_orders_ebMSbuyer_setup_selfservice ebms_buyer_ss.xml

19.12 Resubmitting a Message

The following utility resubmits an application message or a wire message for a selected business message. ant -f ant-b2b-util.xml b2bresubmit Table 19–13 lists the options for this utility. Note: The resubmit functionality for payload rectification will only work for Outbound Message for AppMessage only. This is not valid for inbound cases. ant -f ant-b2b-util.xml b2bresubmit -Dmsgsource=appMsg -Dmsgid=12345 -Dpayloadpath=scratchviramamofmwhomeAS11gR1SOAbin3a4_req.xml Table 19–13 Options for b2bresubmit utility Option Description Domain Required direction The direction of the message INBOUND OUTBOUND Yes msgsource The message source APPMSG WIREMSG Yes msgid The message ID - Yes doctype Document Type msgstate Message State fromdate The sendTimestamp of the message Date format to be provided within Double Quotes dd-mm-yyyy hh:mm AMPM todate The sendTimestamp of the message agreement Agreement Name B2B Command-Line Tools 19-15 Example 19–25 Resubmits an Outbound Message with Message ID 12345 ant -f ant-b2b-util.xml b2bresubmit -Ddirection=outbound -Dmsgsource=appMsg -Dmsgid=12345\ Other Examples ant -f ant-b2b-util.xml b2bresubmit -Dmsgsource=appMsg -Ddoctype=850 ant -f ant-b2b-util.xml b2bresubmit -Dmsgsource=appMsg -Dfromdate=29112009 5:40 AM -Dtodate=30112009 7:39 AM ant -f ant-b2b-util.xml b2bresubmit -Dmsgsource=appMsg -Dagreement=Acme_GlobalChips_X12_4010_850_File ant -f ant-b2b-util.xml b2bresubmit -Dmsgsource=wireMsg -Dmsgstate=MSG_ERROR ant -f ant-b2b-util.xml b2bresubmit -Dmsgsource=appMsg -Dfromdate=29112009 5:40 AM -Dtodate=30112009 7:39 AM -Ddirection=OUTBOUND ant -f ant-b2b-util.xml b2bresubmit -Dmsgsource=appMsg -Dfromdate=29112009 5:40 AM -Dtodate=30112009 7:39 AM -Ddirection=INBOUND ant -f ant-b2b-util.xml b2bresubmit -Dmsgsource=appMsg -Dmsgid=12345 -Dpayloadpath=tmp850.xml

19.13 Scheduling Trading Partner Downtime

The following utility schedules downtime for a Trading Partner. ant -f ant-b2b-util.xml b2bschedule Table 19–14 lists the options for this utility. payloadpath This option is applicable for outbound application message resubmission, by providing the rectified file path. Table 19–14 Options for b2bschedule utility Option Description Domain Required mode Indicates if the script will schedule or unschedule a downtime. schedule or unschedule Yes schedulename A descriptive name for the scheduled downtime - Yes tp Trading Partner Name - Yes except in unschedule mode Table 19–13 Cont. Options for b2bresubmit utility Option Description Domain Required 19-16 Oracle Fusion Middleware Users Guide for Oracle B2B The following are examples of scheduling Trading Partner downtime using the b2bschedule utility. The command does not need to be in a single line. Example 19–26 Schedule Trading Partner downtime for a specific channel and duration ant -f ant-b2b-util.xml b2bschedule -mode=schedule -Dtp=OracleServices -Dfromdate=28052010 06:10 AM -Dtodate=28052010 06:15 AM -Dchannelname=MarketInc_AS2_DC -Dschedulename= Maintenance Example 19–27 Schedule a particular channel for downtime ant -f ant-b2b-util.xml b2bschedule -mode=schedule -Dtp=MarketInc -Dchannelname=MarketInc_ebMS_DC -Dschedulename= Maintenance Example 19–28 Schedule the Trading Partner for downtime In this example, all channels of this Trading Partner will be down for an unknown duration. Executing the unschedule command separately, as shown in Example 19–30 , brings the Trading Partner back to an active state. ant -f ant-b2b-util.xml b2bschedule -mode=schedule -Dtp=MarketInc -Dschedulename= Maintenance Example 19–29 Schedule downtime for a particular duration of time ant -f ant-b2b-util.xml b2bschedule -mode=schedule -Dtp=MarketInc -Dfromdate=28052010 03:05 AM -Dtodate=28052010 03:08 AM -Dschedulename= Maintenance fromate The date and time at which to begin the downtime. Date format to be provided within Double Quotes ddmmyyyy hh:mm AMPM No todate The date and time at which to end the downtime. Date format to be provided within Double Quotes ddmmyyyy hh:mm AMPM No channelname Channel name - No extend Extends a previously created schedule. See Example 19–31 . true No Table 19–14 Cont. Options for b2bschedule utility Option Description Domain Required