PAPI-WS InstanceCreateProcess and using arguments

Dear all,
Pls show me the exmple how to pass the arguments in PAPI-WS.
eg. usage of ArgumentsBean.Arguments args = new ArgumentsBean.Arguments();
I really don't have idea how to use "Arguments" object.
With Regards,
WP

PAPI WS 2.0 supports String arguments and xml schema type objects.
First you need to define xsd. Here is an example :
<?xml version="1.0" encoding="UTF-8" ?>
     <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
     <xsd:simpleType name="Address" type="xsd:string"/>
     <xsd:simpleType name="CustomerCode" type="xsd:string"/>
     <xsd:simpleType name="CustomerName" type="xsd:string"/>
     <xsd:simpleType name="CodPay" type="xsd:string"/>
     <xsd:simpleType name="CustDisc" type="xsd:string"/>
     <xsd:simpleType name="CustType" type="xsd:string"/>
     <xsd:simpleType name="Mail" type="xsd:string"/>
     <xsd:group name="shipAndBill">
     <xsd:sequence>
     <xsd:element name="ShipAddress" type="Address"/>
     <xsd:element name="BillAddress" type="Address"/>
     </xsd:sequence>
     </xsd:group>
     <xsd:complexType name="Customer">
     <xsd:sequence>
     <xsd:choice>
     <xsd:element name="CustomerCode"
     type="CustomerCode"/>
     <xsd:element name="CustomerName"
     type="CustomerName"/>
     <xsd:element name="CodPay" type="CodPay"/>
     <xsd:element name="CustDisc" type="CustDisc"/>
     <xsd:element name="CustType" type="CustType"/>
     <xsd:group ref="shipAndBill"/>
     <xsd:element name="Mail" type="Mail"/>
     </xsd:choice>
     </xsd:sequence>
     </xsd:complexType>
     <xsd:element name="customer" type="Customer"/>
     </xsd:schema>
Use this xsd as url when you catalogue component -> xml schema. You can use this component in your input/output arguments.
Example of a soap request with xml schema type input argument :
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:pap="http://bea.com/albpm/PapiWebService">
<soapenv:Header/>
<soapenv:Body>
<pap:activityPrepare>
<!--Optional:-->
<activityName>ErrorDisplay</activityName>
<!--Optional:-->
<instanceId>/Process#Default-1.0/1/0</instanceId>
<!--Optional:-->
<arguments>
<arguments>
*<entry>*
*<key>inputCustomer</key>*
*<value><![CDATA[<?xml version="1.0" encoding="UTF-8" ?>*
*<Customer>*
*     <CustomerCode>OLD</CustomerCode>*
*     <CustomerName>John Smith</CustomerName>*
*     <ShipAddress>Madison 2939 NY</ShipAddress>*
*     <BillAddress>Madison 2939 NY</BillAddress>*
*     <Mail>[email protected]</Mail>*
*</Customer>]]></value>*
*</entry>*
</arguments>
</arguments>
</pap:activityPrepare>
</soapenv:Body>
</soapenv:Envelope>

Similar Messages

  • I had to erase and reinstall everything on my computer.  To open and use my Lightroom 5 I have to re-enter the serial number but I don't know it--I lost the paper with it on it during a move.  What do a do?!

    I lost my serial number for Lightroom 5.  What do I do?!  I don't want to have to buy it again.

    If you registered your software with Adobe, then you can find it on their web site
    Find your serial number quickly
    If you didn't, it sounds like you will have to purchase Lightroom again ... which brings me to some advice ... you need a better method of storing your serial numbers than a piece of paper. I recommend using a computer file (perhaps named SerialNumbers.txt) that contains all of your serial numbers (not just Lightroom) and stored in the your computer AND the cloud so that you will never lose it.

  • Trouble locating and using the automatic document feeder in HP M1522nf printer

    I have HP M1522nf and simply want to know how to use the automatic tray. When I set a label in the tray, the printer still copies from the paper tray below and doesn't use the paper tray.

    I have the same problem.  Did you get a resolution?

  • How to set up and use to Java fax machine

    How to setup and use the fax utilies on the c410a allin one smakphoto printer.

    Hello @158, 
    Welcome to the HP forums.
    I understand that you would like to know how to setup and use your Photosmart c410 for faxing.
    I would like to help.
    Setting up the fax requires the phone line to be plugged into Lin -1 on the back of the printer.
    There should be a fax setup wizard with your HP  Solutions Center.
    You can also go into the printers setup menu and setup the fax from the front panel.
    Touch the button with teh wrench icon to access the setup menu.
    From here select the Basic or Advanced fax setup menu.
    You will see your options for rings to answer and other features as you scroll through.
    Running the fax setup wizard may be the easier method.
    As for sending a fax, that can be found on page 87 of the Users guide.
    Fax 1–sided document
    a. Load original.
    Remove any staples or clips from the original document.
    Slide original with print side up into document feeder tray until the product detects the pages.
    Slide paper-width guide inward until it stops at edge of paper.
    b. Press Start Fax and wait for tone.
    c. Enter number
    Aardvark1
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!

  • How to create and use mutable array of UInt8

    Hello!
    If I get it right, UInt8 *buffer, buffer - is a pointer to a start of array?
    Then how to create and use mutable array of UInt8 pointers?
    The main target is a creation of the module that will store some byte array requests and will send all of them at the propriate moment.

    I try
    - (void) scheduleRequest:(UInt8 *)request {
    if (!scheduledRequests) scheduledRequests = [[NSMutableArray array] retain];
    [scheduledRequests addObject:request];
    But get warning:"passing argument 1 of 'addObject:' from incompatible pointer type"

  • Using arguments to invoke an excel method from PL/SQL with Oracle COM

    Hello Gentlemen,
    I has been trying to export an excel sheet to a PDF file format using “ExportAsFixedFormat” method, with no success or error message.
    Moreover, I tried to use “PrintOut” method, if I use it with no parameters/arguments it executed without errors and display the sheet to an application installed in my PC (“SnagIt”), if I try to use it with an argument to assign a printer for it, I got this error message “PrintOut method of Workbook class failed xlmain11.chm”.
    I believe I have a problem with using arguments, and I don’t know how to use it in a proper way; the code I used is listed below for your review and your kind help, thank you a lot, and I appreciate so much your helpful feedback.
    Best regards,
    Nabil
    List 01 – using “ExportAsFixedFormat” method
    ==============================
    ORDCOM.InitArg();
    ORDCOM.SetArg('xlTypePDF','XlFixedFormatType');
    ORDCOM.SetArg('E:\ TestDelete.pdf','BSTR');
    ORDCOM.SetArg('xlQualityStandard','BSTR');
    ORDCOM.SetArg('True','BOOL');
    ORDCOM.SetArg('False','BOOL');
    ORDCOM.SetArg('True','BOOL');
    dbms_output.put_line('WorkSheetToken................WorkBookToken........'||WorkBookToken);
    i := ORDCOM.Invoke(WorkBookToken, 'ExportAsFixedFormat', 6, DummyToken);
    List 02 – using “PrintOut” method:
    ======================
    ActivePrinter := 'Macromedia FlashPaper';
    ORDCOM.InitArg();
    ORDCOM.SetArg(activeprinter,'BSTR');
    i := ORDCOM.Invoke(WorkBookToken, 'PrintOut', 1, DummyToken);

    Hello,
    Any help please? I believe I have a problem with using arguments, and I don’t know how to use it in a proper way; the code I used is listed above for your review and your kind help, thank you a lot, and I appreciate so much your helpful feedback.
    Best regards,
    Nabil

  • How do I give a letter a value and use that letter as a code througout a spredsheet?

    Hi I am trying to write a spread sheet to calculate the cost of repairing stock items. I cant figure out how to make the code = the cost, so that if somone types Hx3+Tx2+rx1 it would  = £8
    Which would mean: 3 x Hooks need replacing 2 x Tabs need replacing and 1 5cm rip needs repairing.
    SO I have made one table with the codes and the values and one table for the items and their various panels that may need repairing but I cant figure out how to make it work...?
    Can any of you help...?

    HI Mich,
    Here's an idea of the complexity of the issue, using the example in line 41:
    Issue 1: determining what is code, what is quantity, and how many items are in each cell.
    In the first cell, the formula has to determine, from the text string "Rx1 rx3" that:
    There are two items. Possible to do this by counting the spaces and adding 1, or, assuming ALL parts in the cell will contain a x sign, by counting the "x" characters..
    The first letter is code. But the code could also be the first two letters, or the first two letters plus a number (eg. WP5) or the first two letters plus the next two characters (eg. WP11). Other code lengths may also be possible. The length of the (first) could be determined using SEARCH to find the first x. Subtract 1 from that to determine the number of characters in the code, then use LEFT to extract the code from the formula.
    =LEFT(B2,SEARCH("x",B2,)-1)
    Now that the code has been extracted, that formula becomes the first argument of the VLOOKUP formula from the previous post, used to find the price of that item:
    VLOOKUP(LEFT(B2,SEARCH("x",B2,)-1),Price List :: B:C,2,FALSE)
    Next, the price must be multiplied by the number following the x. That number must be extracted. Assumption: The number is a single digit, between 1 and 9, inclusive. We can use MID:
    MID(B2,SEARCH("x",B2,)+1,1)
    =VLOOKUP(LEFT(B2,SEARCH("x",B2,)-1),Price List :: B:C,2,FALSE)*MID(B2,SEARCH("x",B2,)+1,1)
    The result above gives the cost for repairing the large rip in B2
    Next, if there is more than one type of repair to be done, the process above must be repeated with a new twist: This time we're looking for the second repair item in B2. The marker is a space, so we'll need to add a SEARCH for the first space, and use that as the starting point for both SEARCH functions in this section.
    Then the whole process (with another SEARCH added to each set) must be repeated for the third (possible) code and number in the cell.
    Repeat 7 for as many items as could be included in this cell.
    We don't know how many items will be recorded in each cell, so we have to allow for a maximum and provide some means of making the formula quit when there's nothing more to be done. This could be an IF, depending on the count of "x" or " " in the cell, or an IFERROR that would trap the error caused by searching beyond the last space. Whatever we used would need to be added to each iteration of the last formula shown above.
    As you can see, this quickly becomes a bit unwieldy, and a reason for my earlier suggestion to set up pairs of columns for each repair item.
    Regards,
    Barry

  • Sort array list and using comparable

    With the following code I would like to setup a score object for the current player.
    Change it to a string(Is it correct to say parse it to a string type)
    Then add it to the arraylist.
    So I can sort the array list according to the string size.
    That's why I have the variables in that order.
    So if 3 players have the same amount of guesses, they can be positioned on the high score list according to their gameTime.
    //create score object
                   Score currentScore = new Score(guessCount, gameTime, name);
                   String currentScoreToString = currentScore.toString();
                   //add score to arrayList
                   scores.add(currentScoreToString);So the error message says " The method add(Score) in the type arrayList <Score> is not applicable for the arguments(string)"
    Now, I understand that, I would like to know if there is another way to achieve what I am trying to do.
    Is the string idea I am trying here possible? is it practical or should I use comparable?
    I have looked at comparable, but I don't get it.
    Will my Score class implement comparable. I am looking at an example with the following code.
    Employee.java
    public class Employee implements Comparable {
        int EmpID;
        String Ename;
        double Sal;
        static int i;
        public Employee() {
            EmpID = i++;
            Ename = "dont know";
            Sal = 0.0;
        public Employee(String ename, double sal) {
            EmpID = i++;
            Ename = ename;
            Sal = sal;
        public String toString() {
            return "EmpID " + EmpID + "\n" + "Ename " + Ename + "\n" + "Sal" + Sal;
        public int compareTo(Object o1) {
            if (this.Sal == ((Employee) o1).Sal)
                return 0;
            else if ((this.Sal) > ((Employee) o1).Sal)
                return 1;
            else
                return -1;
    ComparableDemo.java
    import java.util.*;
    public class ComparableDemo{
        public static void main(String[] args) {
            List ts1 = new ArrayList();
            ts1.add(new Employee ("Tom",40000.00));
            ts1.add(new Employee ("Harry",20000.00));
            ts1.add(new Employee ("Maggie",50000.00));
            ts1.add(new Employee ("Chris",70000.00));
            Collections.sort(ts1);
            Iterator itr = ts1.iterator();
            while(itr.hasNext()){
                Object element = itr.next();
                System.out.println(element + "\n");
    }The thing I don't understand is why it returns 0, 1 or -1(does it have to do with the positioning according to the object is being compared with?)
    What if I only use currentScore in a loop which loops every time the player restarts?
    //create score object
                   Score currentScore = new Score(guessCount, gameTime, name);
                   String currentScoreToString = currentScore.toString();
                   //add score to arrayList
                   scores.add(currentScoreToString);Also why there is a method compareTo, and where is it used?
    Thanks in advance.
    Edited by: Implode on Oct 7, 2009 9:27 AM
    Edited by: Implode on Oct 7, 2009 9:28 AM

    jverd wrote:
    Implode wrote:
    I have to hand in an assignment by Friday, and all I have to do still is write a method to sort the array list. Okay, if you have to write your own sort method, then the links I provided may not be that useful. They show you how to use the sort methods provided by the core API. You COULD still implement Comparable or Comparator. It would just be your sort routine calling it rather than the built-in ones.
    You have two main tasks: 1) Write a method that determines which of a pair of items is "less than" the other, and 2) Figure out a procedure for sorting a list of items.
    The basic idea is this: When you sort, you compare pairs of items, and swap them if they're out of order. The two main parts of sorting are: 1) The rules for determining which item is "less than" another and 2) Determining which pairs of items to compare. When you implement Comparable or create a Comparator, you're doing #1--defining the rules for what makes one object of your class "less than" another. Collections.sort() and other methods in the core API will call your compare() or compareTo() method on pairs of objects to produce a sorted list.
    For instance, if you have a PersonName class that consists of firstName and lastName, then your rules might be, "Compare last names. If they're different, then whichever lastName is less indicates which PersonName object is less. If they're the same, then compare firstNames." This is exactly what we do in many real-life situations. And of course the "compare lastName" and "compare firstName" steps have their own rules, which are implemented by String's compareTo method, and which basically say, "compare char by char until there's a difference or one string runs out of chars."
    Completely independent of the rules for comparing two items is the algorithm for which items get compared and possibly swapped. So, if you have 10 Whatsits (W1 through W10) in a row, and you're asked to sort them, you might do something like this:
    Compare the current W1 to each of W2 through W10 (call the current one being compared Wn). If any of them are less than W1, swap that Wn with W1 and continue on, comparing the new W1 to W(n+1) (that is, swap them, and then compare the new first item to the next one after where you just swapped.)
    Once we reach the end of the list, the item in position 1 is the "smallest".
    Now repeat the process, comparing W2 to W3 through W10, then W3 to W4 through W10, etc. After N steps, the first N positions have the correct Whatsit.
    Do you see how the comparison rules are totally independent of the algorithm we use to determine which items to compare? You can define one set of comparison rules ("which item is less?") for Whatsits, another for Strings, another for Integers, and use the same sorting algorithm on any of those types of items, as long as you use the appropriate comparison rules.Thanks ;)
    massive help
    I understand that now, but I am clueless on how to implement it.
    Edited by: Implode on Oct 7, 2009 10:56 AM

  • How to capture an entry and use it in another form??

    i have a login form i wana capture the user type and use it in another form,
    how to do that?!?

    Hello,
    There are several ways to pass arguments from form to form.
    You can use global variables that you can write:
       :GLOBAL.my_global_variable := 'Hello' ;Then you can read in the another form
       the_value := GLOBAL.my_global_variable ;You can also use Forms parameters
    see the onlin documentation about global variables and parameters.
    Francois

  • Brother printer misses A4 paper vertical or horizontal, using Mac OS 10.6.8 & 10.8.8

    When printing from PS CS5.1 (ver. 12.1), I can see the print dialog for Brother printers on my Mac (OS 10.6.8 or 10.8.8). Papers were printed with misses that image in horizontal A4, although I had set image in vertical A4. I can see a fit of image to horizontal A4 on print dialog.
    Another files made or opened by Word, Preview, Mail, etc. can be printed without any troubles. Although I had inquired regarding the matter to Brother and Apple, they recommend inquiry to Adobe.
    Thanks in advance.

    Hello BionicBird,
    I have a Brother MFC6490CW  On my Mac the Brother CUPS driver is installed.
    I notice the vertical offset on my JIS B4 paper. To fix this I click on Page Setup. then I go to Page Size in Print Preferences. In the list I select "Manage Custom Sizes" and there I click + to add my custom size and name it "B4 Center" where my margins are .25 inches all around.
    Then in Page Size I select B4 Center from the list and it will print centered on my Brother.
    1.  First click the button marked in red.
    2.  On "Paper Size" choose Manage Custom Sizes which should be at the bottom of the paper sizes list.
    3. Click on "+" to add a custom size. Double-click on Untitled to rename it to A4 Center. Set Page size and margins.  Press OK
    4. From your Page Size menu, A4 Center should be at the bottom as a custom size, select it and use it in Photoshop.

  • Is it possible to mass change desktop wall paper for all users using WGM?

    is it possible to mass change desktop wall paper for all users using WGM?

    yes, it's easy - change a machine to the desktop you want (the image must be on all the machines, with the same name, of course), find ~/library/preferences/com.apple.desktop.plist Copy that to your server (or just put it on a flash drive) In workgroup manager select preferences - details - "add". Navigate to that plist. (Optional - hit "edit" and cut and past from "often" to "always", then the user cannot change the desktop at all, if you leave it in "often" it will reset next log-on.)

  • [SOLVED] Using arguments in Bash Alias

    Hi all!
    I'm not very well-versed in the  art of bash scripting or anything and I am having some trouble doing an alias that uses two arguments.
    My case:
    My command:
    "openssl aes-256-cbc -a -salt -in a.txt -out a.txt.aes"
    What I wanted to do was an alias like this:
    alias encrypt="openssl aes-256-cbc -a -salt -in $1 -out $2"
    But it's not working. Actually, even using just the $1 and leaving a fixed string as $2 is not working.
    Can anyone give me some help? Thanks!
    Last edited by Wasser (2012-05-09 22:45:56)

    karol wrote:Aliases simply don't take arguments, functions do (just like the mathematical functions).
    Well, though one can of course use arguments with aliases, e.g.
    alias p='sudo pacman'
    still allows you do specify options, etc of course, such as:
    p -Syu foobar
    Might be "better"/less confusing to say that an alias is just a simple string replacement, and for more "complicated" things one needs indeed to e.g. use a function.

  • Is it better to export an iMovie project as QT and use Toast to burn a DVD for general use or to export to iDVD and burn VD from there?  Why?

    Is it better to export an iMovie project as QT and use Toast to burn a DVD for general use -  or to export iMovie project to iDVD and burn DVD from there?  Why?

    Toast probably maintains better quality if you are just doing simple conversion direct from your camera straight into Toast and then to DVD. There's a lot less transcoding steps and loss of quality in that direct to DVD disk creation in Toast. However, having said that,...There's good arguments probably for both.
    What I've seen promoted most often (as most people don't have Toast or aren't motivated to buy it) is to Share to Media Browser (choose the Large size option) and then from inside iDVD click the Media Button and the Movies button to find the project under the iMovie star icon in the Media Browser window. Drag that project into your iDVD project and burn the disk.

  • IVI-com PowerMeter​: Getting to Channel and Measuremen​t interface and using FetchCwPow​er & FetchWavef​orm

    I need a bit of help for the proper usage of the Channel and Measurement interface of IVI-COM driver. I have a sucessfully used the Active-X Automation Open, then the intiate methods via the class browser. Also know that there is communication with the device as some various properties can be set, but Im a bit stuck on the correct way to wireup and use the Measurements on Channel. In C# the syntax is myMeter.Channels.Items["CH1"].Measurements.FetchCw​Power or FetchWaveform.
    Pretty sure the Channels interface down Wiring down to the Channel, then passing the name in a constant, then to Measurements. But the Blue IsValid input and output wire connection are throwing me off, and causing labview to bomb. Any basic help with or example vi using IVI-COM and iviPwrMeter and the Channel Measurements would be appreciated!!

    Are you trying to use the class driver or the instrument specific driver? For the class driver, is your IVI-COM driver listed in MAX?
    For an example of using the instrument specific driver, see http://www.ni.com/white-paper/4505/en/

  • HP Photosmart D7160 paper jam error and clicking sound

    I have a D7160 that has been working great, and yesterday started making a clicking sound when I start it up. It clicks and sort of grinds when I turn it on, and then the screen says there is a paper jam and that I should open the back and remove the paper.
    I have never run stickers, labels or other items through the printer. I have only used HP photo paper in it, and occasionally printed on regular copy paper. No thin papers, no paper jams, no stuck or torn paper.
    This printer literally sat for about two years at my parent's house unused until they loaned it to me about a month ago. I doubt there have been more than 250 pages put through it total.
    My other HP printer broke a lever inside of it, so I have to take the side panel off of it to make it "understand" that the cover is closed. I'm wondering if this is something similar (a broken gear or lever), but I can't figure out where to look or what it might be.
    Thanks for any help you can give!
    Michelle

    This happens periodically.  Evenutally it "fixes itself," but I'm not sure what it is.  I've cleaned the rollers, the toner heads, printed an 8 1/2 x 11 sheet (which prints fine), reloaded paper, made sure paper was not curled or there wasn't too much in the tray, made sure the side hold bar wasn't too tight, etc. etc.  Try disconnecting the printer from both power and the PC.  Reboot, then reconnect the printer.  Print a test page.  Try again.

Maybe you are looking for

  • Can't get videos onto new iPod Nano 3G

    Ok i can not put any movie type on to my iPod nano not even: mp4 mov avi or other things...I NEED halp here people. Give me any method you can even converters but they can only be for mac. please i will take any response

  • Itunes can't read korean characters since switching to google chrome

    I switched to google chrome and for some reason every song with Korean hangul characters on my itunes turns into square boxes. I have songs with Japanese kanji on my itunes but I see them perfectly, it's only Korean characters. This happened before b

  • Aspect HD - Add-on or Bundle?

    Does CS3 come with pre-loaded with this Aspect HD? If I understand correctly, I need this plug-in to convert the MPEG-2 footage from my HDV camcorder into an intermediary format that is more friendly to editing. Is there a price?

  • About  the dhcp issue

    I am sorry a am i newbie in dhcp. I have a v490 server ,with 4g memory,the server is to be configured as a dhcp server.And i add subnets to the server ,and then distribute IPs for each subnet. The are about 50 subnets and 8000 IPs in each subnet,but

  • BI LATEST UPDATE PATCH

    Hi all, Im getting a SHORT DUMP when i try to create TRANSFORMATIONS. I was wondering if some one could advise me on as to what update patch i need to apply, and where can i get it from. Im working on a demo server to practice BI. Cheers