Send XML to Client: call-program cannot pass ampersand in parameter

In WLI Studio, I have tried to use the action "Send XML to Client" with
following information:
<call-program mode="async" name="IEXPLORE.EXE">
<actionid>1027425345078</actionid>
<parm>http://pttserver:7001/pttWebApp/Test.jsp?First=a&Second=b&Third=c</par
m>
</call-program>
The problem is that the ampersand (&) of call-program parameter will always
shift three character right on any program (e.g., IE, Notepad, etc.).
From the above example, IE can be called correctly, but its parameter -- a
string
"http://pttserver:7001/pttWebApp/Test.jsp?First=a&Second=b&Third=c", will be
passed as
"http://pttserver:7001/pttWebApp/Test.jsp?First=aSec&ond=bThi&rd=c".
I have also tried to use the string "&" instead of an ampersand, and the
parameter was passed as
"http://pttserver:7001/pttWebApp/Test.jsp?First=aamp&;Second=bamp&;Third=c".
What should be used in order to pass the ampersand character correctly?
If it is a bug, can any one suggest the workaround?
Thankyou in advance,
Suwanee Suwanapong

If you think you're encountering URL length issues make sure you are using POST and not GET, although it looks like there may be additional issues:  http://www.javaworld.com/community/node/2307

Similar Messages

  • Struggling with Send XML to client

    Hi,
    I am using WL Process Integrator 2.1 with WL 6.1.
    I am trying to do do an example of the "Client Call Addin Response DTD" i.e. pass
    an XML document to an external java
    program.
    As given in docs :
    http://e-docs.bea.com/wli/docs70/devclient/appa.htm#1120726
    1. I have created a template definition
    2. Defined a XML doc. (as per the Client Callin Request DTD) and attached to ActionSendXMLToClient
    event as shown below.
    <call-addin name="mywlpi.addinimpl" mode="async">
    <actionid>959395846210</actionid>
    <parm>itemNumber</parm>
    </call-addin>
    3. "mywlpi.addinimpl" is a java program I created
    4. Now, the problem I run into is when I run from Worklist (Swing client program),
    it errors out saying it cannot find this
    class file:
    ClassNotFoundException: mywlpi.AddInImpl
    java.lang.ClassNotFoundException: mywlpi.AddInImpl
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    5. I have included the class file in a .jar and included in the
    SVRCP of startWebLogic.cmd file. Also, when I create a Business
    Operation from Studio, I can locate this Java class. So, I am
    not sure what is missing. The strange part is when I run from the
    Worklist JSP page, it errors out saying :
    "Cannot execute this task, because it is already done." The task
    is not yet done.
    Is there someone who can help me here? Any suggestions
    appreciated!!
    Thanks,
    SLN

    Hi Sudhar.
    I don't think your workflow will execute the next node before you mark the current
    node as done. Conseqently setting the done in the decision box isn't possible.
    Giora
    "Sudhar" <[email protected]> wrote:
    >
    After I do the Send XML to Client from the exeucte tab of an action...instead
    of
    marking the task as done on the call back actions...i try to mark the
    same task
    as done in the next task after a decision box....it doesnt seem to work?
    any ideas? should you always mark a task as done on the same task?

  • Xml to client call in bpm

    Hi
    i have a client application which starts the bpm workflow i need to pass
    back an xml using xml to client action , need to know how dopes bpm do it in
    a synchronous mode and what all does the client need to have to accept the
    xml and retrun a response back
    replies appreciated
    Ravi

    Hi Sudhar.
    I don't think your workflow will execute the next node before you mark the current
    node as done. Conseqently setting the done in the decision box isn't possible.
    Giora
    "Sudhar" <[email protected]> wrote:
    >
    After I do the Send XML to Client from the exeucte tab of an action...instead
    of
    marking the task as done on the call back actions...i try to mark the
    same task
    as done in the next task after a decision box....it doesnt seem to work?
    any ideas? should you always mark a task as done on the same task?

  • Send XML to client: message box

    Hi,
    In a BPM workflow I'm putting together, I need to open a message box for information
    (title, message, OK button). In the documentation, I found that I should send
    an XML document to a client that looks like this:
    <message-box title="title" style="information" options="ok">
    <actionid>"1013679664318"</actionid>
    </message-box>
    Which I did: I added a "Send XML to client" action in the "True" part of a decision
    node with a message-box element and its attributes, and actionid as a nested element.
    When I trigger the workflow, it goes through all the expected steps but the window
    does not pop up at all. I could not find the reason why anywhere. So has anyone
    experienced the same problem ? If yes, how did you solve it ?
    Cheers,
    Yann

    Hi Sudhar.
    I don't think your workflow will execute the next node before you mark the current
    node as done. Conseqently setting the done in the decision box isn't possible.
    Giora
    "Sudhar" <[email protected]> wrote:
    >
    After I do the Send XML to Client from the exeucte tab of an action...instead
    of
    marking the task as done on the call back actions...i try to mark the
    same task
    as done in the next task after a decision box....it doesnt seem to work?
    any ideas? should you always mark a task as done on the same task?

  • BPM Studio Task Send XML to Client Actions

    After I do the Send XML to Client from the exeucte tab of an action...instead of
    marking the task as done on the call back actions...i try to mark the same task
    as done in the next task after a decision box....it doesnt seem to work?
    any ideas? should you always mark a task as done on the same task?

    Hi Sudhar.
    I don't think your workflow will execute the next node before you mark the current
    node as done. Conseqently setting the done in the decision box isn't possible.
    Giora
    "Sudhar" <[email protected]> wrote:
    >
    After I do the Send XML to Client from the exeucte tab of an action...instead
    of
    marking the task as done on the call back actions...i try to mark the
    same task
    as done in the next task after a decision box....it doesnt seem to work?
    any ideas? should you always mark a task as done on the same task?

  • Jsp worklist in 7.02 - send xml to client

    Does the worklist web application in 7.02 support messages with the "Send
    XML To Client" action? There appears to be some JSP code related to
    displaying message boxes or setting variables (message.jsp,
    setvariables.jsp) but I don't see any reference to how it works in the
    documentation. If anyone has gotten it to work, I would like to hear about
    it.
    If it's not supported, I would like to know if and when it will be
    supported. If it is supported, I would also like to know where the
    documentation is or when it will be documented. The current documentation
    for Send XML to Client refers to the deprecated swing task list application.
    Thanks, Hal

    A co-worker of mine got the sendxmlclient to work with the worklist web
    application. It works the same way it does for the swing tasklist
    application, it just wasn't in the documentation that I could find. I must
    have missed a step the first time I tried it. Anyway, it appears to work.
    Maybe the query.jsp you mention that the docs refer to should actually be
    the setvariables.jsp.
    Hal
    "Alex Thomas" <[email protected]> wrote in message
    news:[email protected]..
    My guess is that it's not quite there yet. As you say, message.jsp isthere
    and the docs(http://e-docs.bea.com/wli/docs70/devclient/intro.htm#1052730)
    refer to a query.jsp but it isn't in 7.02. We're currently using the
    lightweight client sample for an equivalent mechanism but can't really
    recommend this as it's deprecated and disappearing in 8.1
    cheers
    Alex
    On Fri, 28 Mar 2003 18:22:12 -0500, "Hal Deadman" <[email protected]>
    wrote:
    Does the worklist web application in 7.02 support messages with the "Send
    XML To Client" action? There appears to be some JSP code related to
    displaying message boxes or setting variables (message.jsp,
    setvariables.jsp) but I don't see any reference to how it works in the
    documentation. If anyone has gotten it to work, I would like to hear
    about
    it.
    If it's not supported, I would like to know if and when it will be
    supported. If it is supported, I would also like to know where the
    documentation is or when it will be documented. The current documentation
    for Send XML to Client refers to the deprecated swing task listapplication.
    >>
    Thanks, Hal

  • Worklist send-xml-to-client functionality

    Hi there
    Quick question on wli 8.1. I have made extensive use in the past of the
    send xml to client business operation in WLI 7. Is there any sort of
    equivalent/how would this be achieved. Does the new worklist actually
    support this kind of functionality?
    Regards

    A co-worker of mine got the sendxmlclient to work with the worklist web
    application. It works the same way it does for the swing tasklist
    application, it just wasn't in the documentation that I could find. I must
    have missed a step the first time I tried it. Anyway, it appears to work.
    Maybe the query.jsp you mention that the docs refer to should actually be
    the setvariables.jsp.
    Hal
    "Alex Thomas" <[email protected]> wrote in message
    news:[email protected]..
    My guess is that it's not quite there yet. As you say, message.jsp isthere
    and the docs(http://e-docs.bea.com/wli/docs70/devclient/intro.htm#1052730)
    refer to a query.jsp but it isn't in 7.02. We're currently using the
    lightweight client sample for an equivalent mechanism but can't really
    recommend this as it's deprecated and disappearing in 8.1
    cheers
    Alex
    On Fri, 28 Mar 2003 18:22:12 -0500, "Hal Deadman" <[email protected]>
    wrote:
    Does the worklist web application in 7.02 support messages with the "Send
    XML To Client" action? There appears to be some JSP code related to
    displaying message boxes or setting variables (message.jsp,
    setvariables.jsp) but I don't see any reference to how it works in the
    documentation. If anyone has gotten it to work, I would like to hear
    about
    it.
    If it's not supported, I would like to know if and when it will be
    supported. If it is supported, I would also like to know where the
    documentation is or when it will be documented. The current documentation
    for Send XML to Client refers to the deprecated swing task listapplication.
    >>
    Thanks, Hal

  • Xml to client call from bpm

    Hi ,
    how does the client application receive the xml to client data from the
    bpm.Does the bpm use an internal jms queue or is there a direct call to the
    application .and what all does the client need to implement for the same .
    does the client need to have an event listener
    regds
    Ravi

    Hi ,
    how does the client application receive the xml to client data from the
    bpm.Does the bpm use an internal jms queue or is there a direct call to the
    application .and what all does the client need to implement for the same .
    does the client need to have an event listener
    regds
    Ravi

  • Error running a client side program through the worklist app

    I am trying to run a simple client side application (actually just a command script
    that does a pause). I construct a send xml to client with a "call-program" message
    with attributes of name="c:\testscript" and mode of async.
    It appears that I need to register the program - how do I do this?
    SecurityException: Cannot execute the system command "c", because it has not been
    registered in the
    WLPI Security Manager configuration file C:\Documents and Settings\nvernon\WLPISec.properties
    java.lang.SecurityException: Cannot execute the system command "c", because it
    has not been registered in the
    WLPI Security Manager configuration file C:\Documents and Settings\nvernon\WLPISec.properties
         at com.bea.wlpi.client.common.WLPISecurityManager.checkExec(WLPISecurityManager.java:141)
         at java.lang.Runtime.exec(Runtime.java:548)
         at java.lang.Runtime.exec(Runtime.java:477)
         at com.bea.wlpi.client.worklist.WorklistPane$6.run(WorklistPane.java:1441)
         at java.lang.Thread.run(Thread.java:484)

    The reason I asked about the computer OS was in case you needed to do a clean install of iTunes. It works differently on the Mac computer than on Windows. A complete uninstall and reinstall on a Windows computer requires you to follow specific instructions in a support document, while on a Mac, I have read you just have to reinstall over the old one.
    I'm not sure if installing/updating to iTunes 11 would be the same on Windows or not, but since you report using a Mac, then it is probably a mute point. Good luck.

  • How can my client program call program located at server?

    Hi All,
    I have a client-server application. How can my client program call program located at server?
    At the beginning my program works as long as RSA Agentinstalled at client. So my program only call rsa library and communicate with RSA Agentby passing userid and passcode. Once RSA Agent receive it will send to RSA Managers to validate.
    But now my user want the RSA Agent installed in my Server. I wondering how to do that as the library given will only detect local RSA Agent. So I'm thinking to separte the library and create new project. Then in this project as a medium to pass userid and passcode. This project I will compile and allocate to server. Then my programs will call the new program i created by passing userid and passcode. I wondering can I do that?
    Thanks in advance.
    Regards,
    Azli

    Why not take the tutorial first? [http://java.sun.com/javaee/5/docs/tutorial/doc/JavaEETutorial.pdf]

  • Sending xml file from client to servlet

    Hi,
    I am writing the server component of an applcation, such that it will receive xml files from the clients(standalone application similar to javaSwing stuff but it's coded in C#), and the servlet will have to extract the data from the xml file and update the mySql database. it will also fulfill the client's request for xmlFiles (and extract data from DB, format to xml file and send back to client)
    I'm new to implementing the servlet receiving files from clients so would need some help.
    I've got 3 questions to ask:
    1) How does the servlet receive/returns the xml file from the client as a series of httpPost request/response. Do i send a File or the file's contents as a String to/from the client?
    2) Is it also a must to use socket for the file transfers? I have read in other posts about sockets as well as HttpURLConnection but i don't quite understand.
    3) When I send a file back to the client(client is standalone application written in C# whereas server is coded in java), what do i specify for the HttpResponse.setContentType() in my servlet? (i'm returning the xml file to client)
    Would really appreciate for any help rendered. If you have any useful links, would appreciate them too. Thanks a lot.
    Karen

    I've got 3 questions to ask:
    1) How does the servlet receive/returns the xml file
    from the client as a series of httpPost
    request/response. Do i send a File or the file's
    contents as a String to/from the client?The server will listen on some port for requests. The client has to open a socket to this server to send the file as string to the server.
    see http://java.sun.com/docs/books/tutorial/networking/index.html
    >
    2) Is it also a must to use socket for the file
    transfers? I have read in other posts about sockets as
    well as HttpURLConnection but i don't quite
    understand.You use HttpURLConnection to make a request using the http protocol, instead of opening a socket and then writing the html headers yourself.
    3) When I send a file back to the client(client is
    standalone application written in C# whereas server is
    coded in java), what do i specify for the
    HttpResponse.setContentType() in my servlet? (i'm
    returning the xml file to client)Its up to your receiving program how to interpret this though, so you probably dont need this.

  • Sending a pdf file using submit without client email program.

    I need a solution on sending a completed pdf file to my email address without the clients email program poping up.  My website has a small pdf file that users can complete and return to me.  I get many complaints from users stating it requires them to save the file first and then they are unsure were it saved or how to attach it to a email.  To make this easer on my users I want the submit button to simply send me the file using some method from my website.  I use iPage to host the site now.  I was looking for a script to call or some way to do this automaticly.  I was woundering if urs/sbin/sendmail might work.  I am simply at a loss on this.

    Using a sendmail type script will send you the form data in the body of an email message, if the form is set up to submit as "HTML". You can create your own script to attach the form data as an FDF, XFDF, or even the complete PDF, but it's unlikely your provider supplies a script for this, so you'd have some custom programming to do.
    Sending just the form data also avoids the licensing restrictions for Reader-enabled forms. You can easily import an FDF or XFDF into a blank form to create a filled-in form.

  • How do I Send a xml to client?

    Hi friends:
    It is possible to send a xml to client without a xml file in the server?
    I create a Document in the server and the code is :
                                                                   DocumentBuilderFactory df=DocumentBuilderFactory.newInstance();
                   DocumentBuilder db=df.newDocumentBuilder();
                   Document  doc=db.newDocument();
                   Element el=doc.createElement("root");
                   doc.appendChild(el);
                   Comment co=doc.createComment("This is a comment");
                   el.appendChild(co);I want to write the Document to a Stream and send the XML stream to client ,so the client can display a xml.
    The code is:
                                                                   resp.setContentType("text/xml");
                   resp.setContentLength(200);
                   resp.setHeader("Content-Disposition","inline;filename=address.xml");
                   ServletOutputStream so=resp.getOutputStream();
                   PrintStream ps=new PrintStream(so);
                   System.out.println(doc);
                   ps.print(doc);
                   so.flush();
                   ps.close();I don't want to create a xml in the server so I can do this only use stream .But what client get is a momery address! It is org.dom.xml....@sd7fs87d What wrong with my code ? How to send the xml to client without create the xml file in server?
    Thks in advanced!

    Yashnoo,
    What XML package that you used?
    It should have a class for outputing xml
    example using JDOM
    XMLOutputter writer = new XMLOutputter(Format.getPrettyFormat());
    OutputStream out = new FileOutputStream("dummy.txt");
    writer.output(doc, out);
    //this case it write to a file but in your case you can pass in ServletOutputStream
    or ByteArrayOutPutStream then use method writeTo() to send it to ServletOutputStream
    another thing, make sure to set your content length corretly,
    resp.setContentLength(200);
    how do you know its length is 200
    if you are going to use ByteArrayOutPutStream, it will give you the correct length
    for instance
    ByteArrayOutPutStream out = new ByteArrayOutPutStream ();
    XMLOutputter writer = new XMLOutputter(Format.getPrettyFormat());
    writer.output(doc, out);
    int len = out.size();
    now you can do this
    resp.setContentLength(len);
    finally,
    out.writeTo(resp.getOutputStream());
    it should send a stream out to the client.
    bottom line is, find out your package API or you can post the package you use, I can take a look
    here is a sample of using JDOM to create a document then output it out to System.out
    good luck
    public static void createXMLFile()
              Element root = null;
              Document doc = new Document();
              try
                   String[] arr = {"MainElement ","SubElement1","SubElement2","SubElement2"};
                   String[] arr1 = {"MainElement ","SubElement111","SubElement22","SubElement332"};     
                   root = new Element("root");
                   doc.setRootElement(root);
                   //for each array do the following
                   Element e = new Element(arr[0].trim());
                   root.addContent(e);     //<MainElement>
                   for (int i = 1; i < arr.length; i++)
                        e.addContent(new Element(arr.trim()));     //<SubElement1>
                   //finally output to a file as your choice
                   XMLOutputter writer = new XMLOutputter(Format.getPrettyFormat());
    //               OutputStream out = new FileOutputStream("dummy.txt");
                   writer.output(doc, System.out);
    //               out.flush();
    //               out.close();
              catch (Exception e)
                   e.printStackTrace();

  • Server to Rich Client sending XML over Http

    I need to send XML data from a Servlet to a rich client over http.
    Currently I am using HttpURLConnection and SaxTransformerFactory to do this.
    Is it better to use SOAP or XML-RPC in this scenario?
    Are there any good online tutorials comparing SOAP, XML-RPC and AXP-Java Net API?
    What are the factors that I need to consider for choosing between these alternatives?
    Please advice. Thanks in advance.

    XML-RPC and SOAP use XML as a way to communicate, but they are used to invoke certain function calls in an application independend manner, not to be used to send XML data. So I'd say it depends on:
    a) what do you do with the XML data?
    b) will you be expanding the application?
    c) how difficult is it to rework the current implementation?

  • I changed my phone number and now I cannot send iMessages or make calls on FaceTime (only receive) on my macbook. Currently my iMessage settings say I can be reached at my apple id email. My FaceTime currently says I can be reached at my apple id email.

    I changed my phone number and now I cannot send iMessage or make calls on FaceTime (only receive) on my Macbooth Pro. Currently my iMessages settings say I can be reached at my apple id email. My FaceTime currently says I can be reached at my apple id email.

    Go into Recovery Mode per the instructions here.  Also, since you have IOS-7, read this.

Maybe you are looking for