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?

Similar Messages

  • 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?

  • 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

  • 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

  • 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?

  • Help needed with sending XML data out of Dashboard design/ Xcelsius

    Hi All,
    I did this a year back and got it right, but now am not able to get it, probably Ive made a small mistake which I have been overlooking.
    I selcted Enable XML send in my XML data connection and dfined the connection name as "Range_1" and Range name also as "Range_1"
    Now I worte this servlet in Java:
    public class PostTestServlet extends HttpServlet{
         protected void doPost(HttpServletRequest request, HttpServletResponse response){
         String param1=request.getParameter("Range_1");
         System.out.println(param1);
         protected void doGet(HttpServletRequest request, HttpServletResponse response){
         System.out.println("Get Called");
         doPost(request,response);
         System.out.println("abcd");
    Deployed it to Apache Tomcat 6.
    Also selected the required usage options in Xcelsius for sending data every 10 seconds.
    Now the servlet gets called, I see it in the console.
    But the request.getParameter("Range_1") is returning null.
    Tried many things, not able to figure it out. Any help?
    Thanks
    Nikhil

    Hi,
    Xcelsius/Dashboards will convert the range of values that you want to send into XML.
    It then will POST the XML when it calls the web page.
    For example, if you had created three ranges to send to your web page:
    A (a single cell)
    B (a single cell)
    C (a row of three cells)
    The data in the POST input stream for the web page will look something like this:
    <data>
      <variable name="A">
        <row>
          <column>10</column>
        </row>
      </variable>
      <variable name="B">
        <row>
          <column>15</column>
        </row>
      </variable>
      <variable name="C">
        <row>
          <column>1</column>
          <column>2</column>
          <column>3</column>
        </row>
      </variable>
    </data>
    I don't have an example for ASP, but I do for a JSP (attached).
    Regards
    Matt

  • 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?

  • Help: question on send XML file from java client to java server

    Hi, I am now to Java, and now I am going to set up a simple network in the lab.
    I have created a random array of data and transferred to XML file on my client. Now, I would like to send it to the server. I am wondering how I can put the XML file into my client, and do I need any parser to let the server show what random date it has received?
    Anybody can give me any idea or some basic code? Thank you.
    Now, I am referring the KnockKnock example in Java online tutorial. But, not clear how to deal with the XML File.
    Fengyuan

    There are several ways you can achieve this: one could be that you transfer data over HTTP, using Servlets for instance. Have a Servlet listening on the Server with content type 'text/xml', POST the XML data to the server and have the Servlet to receive the data and re-compose the XML file. This can be achieved with different libraries:
    1) JAXB --> this is good because is the JDK standard, also for web services
    2) Castor (http://www.castor.org/)

  • 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?

  • How to send XML files through Business Connector to client URL

    Dear ALL
    I am new to SAP BC. We have setup BC 4.8 and would like to send out a XML file from BC to Client URL. Could someone please guide me.
    Please suggest solutions.
    Thanks
    Ahmed

    Hello Mickael
    Thanks for your reply. No, we do not have PI. This BC will be used for point to point communication with client.
    Scenario:
    R/3 server to send XML files to BC. BC will load these files ( using pub.getfile service), this file is to be parsed using pub.loaddocument service and then sent to client in XML format wrapped with digital signature. As i am new to BC i am unable to parse this file and wrap it with the digital signaature to send it.
    Kindly advise on how best can we perform this action.
    Thanks
    Ahmed

  • Sending XML Files with Certificate

    Hello everybody.
    I need develop an abap program for sending XML files with a certificate.
    How I can create this certificate?
    Somebody have an idea?
    Thank you everybody.
    Nelson

    Mikael,
    This sounds like one of the many quirks (perhaps bugs) related to how FrameMaker handles non-FM files in books. The current book model doesn't play well with XML files as chapters and this seems like yet another problem. Apparently, if an xref does not target another .fm file in the book, Frame assumes that the target file is not in the book and therefore will not be in the book PDF.
    There have been discussions here about this in the past. The solution that I use is to run an API client before publishing that converts all XML files to .fm files, and redirect all xrefs appropriately. Then, book features work as expected and PDFs come out as normal. This is not feasible, however, without the automation from the API client.
    There may be some who would say that the best approach is to use XML and books the way that the designers did account for... that is, the whole book becomes an XML document with entity references to the separate chapters. In my work, though, this model was not appropriate... rather, I needed a binary FM book to act like a book, except with XML files as chapters. So, I think I understand your situation.
    Is API programming or FrameScript an option for you? I think it may be the only way to get what you are looking for.
    Russ

  • Sending XML messages from server to client using POST method

    Dear everyone,
    I have a simple client server system - using Socket
    class on the server side and URLConnection class on
    the client side. The client sends requests to the
    server in the form of an XML message using POST method.
    The server processes the request and responds with
    another XML message through the same connection.
    That's the basic idea.
    I have a few questions about headers and formats
    especially with respect to POST.
    1. In what format should the response messages from the
    server be, for the client? Does the server need to
    send the HTTP headers - for the POST type requests?
    Is this correct?:
       out.println("HTTP/1.1 200 My Server\r");
       out.println("Content-type: text/xml\r");
       out.println("Content-length: 1024\r");
       out.println("\r");
       out.println("My XML response goes here...");2. How do I read these headers and the actual message
    in the client side? I figured my actual message was
    immediately after the blank line. So I wrote
    something like this:
       String inMsg;
       // loop until the blank line is through.
       while (!"".equals(inMsg = reader.readLine()))
          System.out.println(inMsg);
       // get the actual message and process it.
       inMsg = reader.readLine();
       processMessage(inMsg);But the above did not work for me. Because I seem to
    be receiving a blank line after each header! (I suppose
    that was because of the "\r".) So what should I do?
    3. What are the different headers I must pass from
    server to the client to safeguard against every
    possible problem?
    4. What are the different exceptions I must be prepared
    for this situation? How could I cope with them? For
    example, time outs, IOExceptions, etc.
    Thanks a lot! I appreciate all your help!
    George

    hello,
    1) if you want to develop a distributed application with XML messages, you can look in SOAP.
    it's a solution to communicate objects distributed java (or COM or other) and it constructs XML flux to communicate between them.
    2) if it can help you, I have developed a chat in TCP/IP and, to my mind, when you send datas it's only text, so the format isn't important, the important is your traitement behind.
    examples :
    a client method to send a message to the server :
    public void send(String message)
    fluxOut.println(message);
    fluxOut.flush();
    whith
    connexionCourante = new Socket(lAdresServeur, noPort);
    fluxOut= new PrintWriter( new OutputStreamWriter(connexionCourante.getOutputStream()) );
    a server method in a thread to receive and print the message :
    while(true)
    if (laThread == null)
    break;
    texte = fluxIn.readLine();
    System.out.println(texte);
    that's all ! :)
    If you want to use it for your XML communication, it could be a good idea to use a special message, for example "@end", to finish the server
    ex :
    while(true)
    if (laThread == null)
    break;
    texte = fluxIn.readLine();
    // to stop
    if (texte.equals("@end"))
    {break;}
    processMessage(texte );
    hope it will help you
    David

  • How to develope a XML-RPC client with PL/SQL

    Anyone know how to develop a XML-RPC client with PL/SQL?
    I've oracle 8i.
    Have you some example of code?
    Thanks
    Paolo

    So, you actually want to create the physical directory using JAVA?
    Then see:
    http://www.oracle-base.com/articles/8i/shell-commands-from-plsql.php

Maybe you are looking for