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

Similar Messages

  • 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

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

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

  • 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

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

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

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

  • 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();

  • 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

  • Send xml file from sap to third party url through https

    Hi,
    I have a requirement to send the xml file from ecc to a 3rd party url through HTTPS. How can we achieve this using ABAP.
    Client doesn't have XI enviroment. The client has provided the 3rd party url where the file needs to be uploaded.
    Please help ! <removed by moderator>
    Thanks in advance.
    Regards,
    Chitra.K
    Edited by: Thomas Zloch on Sep 12, 2011 12:58 PM

    Hi Chitra,
    I had similar requirement and here is what I did: -
    REPORT  Z_HTTP_POST_TEST_AMEY.
    DATA: L_URL               TYPE                   STRING          ,
          L_PARAMS_STRING     TYPE                   STRING          ,
          L_HTTP_CLIENT       TYPE REF TO            IF_HTTP_CLIENT  ,
          L_RESULT            TYPE                   STRING          ,
          L_STATUS_TEXT       TYPE                   STRING          ,
          L_HTTP_STATUS_CODE  TYPE                   I               ,
          L_HTTP_LENGTH       TYPE                   I               ,
          L_PARAMS_XSTRING    TYPE                   XSTRING         ,
          L_XSTRING           TYPE                   XSTRING         ,
          L_IS_XML_TABLE      TYPE STANDARD TABLE OF SMUM_XMLTB      ,
          L_IS_RETURN         TYPE STANDARD TABLE OF BAPIRET2        ,
          L_OUT_TAB           TYPE STANDARD TABLE OF TBL1024
    MOVE 'https://<hostname>/xxx/yyy/zzz' TO L_URL.
    MOVE '<XML as string>' TO L_PARAMS_STRING.
    *STEP-1 : CREATE HTTP CLIENT
    CALL METHOD CL_HTTP_CLIENT=>CREATE_BY_URL
        EXPORTING
          URL                = L_URL
        IMPORTING
          CLIENT             = L_HTTP_CLIENT
        EXCEPTIONS
          ARGUMENT_NOT_FOUND = 1
          PLUGIN_NOT_ACTIVE  = 2
          INTERNAL_ERROR     = 3
          OTHERS             = 4 .
    "STEP-2 :  AUTHENTICATE HTTP CLIENT
    CALL METHOD L_HTTP_CLIENT->AUTHENTICATE
      EXPORTING
        USERNAME             = 'testUser'
        PASSWORD             = 'testPassword'.
    "STEP-3 :  SET HTTP HEADERS
    CALL METHOD L_HTTP_CLIENT->REQUEST->SET_HEADER_FIELD
          EXPORTING NAME  = 'Accept'
                    VALUE = 'text/xml'.
    CALL METHOD L_HTTP_CLIENT->REQUEST->SET_HEADER_FIELD
        EXPORTING NAME  = '~request_method'
                   VALUE = 'POST' .
    CALL METHOD L_HTTP_CLIENT->REQUEST->SET_CONTENT_TYPE
        EXPORTING CONTENT_TYPE  = 'text/xml' .
    "SETTING REQUEST DATA FOR 'POST' METHOD
    IF L_PARAMS_STRING IS NOT INITIAL.
       CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
         EXPORTING
             TEXT   = L_PARAMS_STRING
         IMPORTING
               BUFFER = L_PARAMS_XSTRING
         EXCEPTIONS
            FAILED = 1
            OTHERS = 2.
    CALL METHOD L_HTTP_CLIENT->REQUEST->SET_DATA
        EXPORTING DATA  = L_PARAMS_XSTRING  .
    ENDIF.
    "STEP-4 :  SEND HTTP REQUEST
      CALL METHOD L_HTTP_CLIENT->SEND
        EXCEPTIONS
          HTTP_COMMUNICATION_FAILURE = 1
          HTTP_INVALID_STATE         = 2.
    "STEP-5 :  GET HTTP RESPONSE
        CALL METHOD L_HTTP_CLIENT->RECEIVE
          EXCEPTIONS
            HTTP_COMMUNICATION_FAILURE = 1
            HTTP_INVALID_STATE         = 2
            HTTP_PROCESSING_FAILED     = 3.
    "STEP-6 : Read HTTP RETURN CODE
    CALL METHOD L_HTTP_CLIENT->RESPONSE->GET_STATUS
        IMPORTING
          CODE = L_HTTP_STATUS_CODE
          REASON = L_STATUS_TEXT  .
    WRITE: / 'HTTP_STATUS_CODE = ',
              L_HTTP_STATUS_CODE,
             / 'STATUS_TEXT = ',
             L_STATUS_TEXT .
    "STEP-7 :  READ RESPONSE DATA
    CALL METHOD L_HTTP_CLIENT->RESPONSE->GET_CDATA
            RECEIVING DATA = L_RESULT .
    "STEP-8 : CLOSE CONNECTION
    CALL METHOD L_HTTP_CLIENT->CLOSE
      EXCEPTIONS
        HTTP_INVALID_STATE = 1
        OTHERS             = 2   .
    "STEP-9 : PRINT OUTPUT TO FILE
    CLEAR : L_XSTRING, L_OUT_TAB[].
    CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
        EXPORTING
          TEXT   = L_RESULT
        IMPORTING
          BUFFER = L_XSTRING
        EXCEPTIONS
          FAILED = 1
          OTHERS = 2.
    CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
      EXPORTING
        BUFFER                = L_XSTRING
      TABLES
        BINARY_TAB            = L_OUT_TAB .
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
       FILENAME                        = 'C:AMEYHTTP_POST_OUTPUT.xml'
      TABLES
        DATA_TAB                        = L_OUT_TAB .
    Also, following is the detailed link for use of HTTP_CLIENT class: -
    http://help.sap.com/saphelp_nw70ehp1/helpdata/EN/1f/93163f9959a808e10000000a114084/content.htm
    Also, in below link, you can ignore XI specific part and observe how its sending XML to external URL:-
    (I know it describes call to SAP XI server's URL, but it can be used to call any URL)
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/ae388f45-0901-0010-0f99-a76d785e3ccc
    In addition to all above, following configs to be present at ABAP application server: -
    1. The hostname used to URL should be present in SAP ABAP application server's 'hosts' file.
    2. Security certificate (if available) for URL to be called must be installed in SAP ABAP application server.
    Let me know if you achieve any progress with it...

  • Client function works once and then cannot be found

    Hi all,
    I am having a strange problem where:
    1) A flash client successfully connects to FMIS and successfully makes a nc.call command and receives a response.
    2) You can then send in a call to the server with: nc.call("startRecording", myResponder);
    -- The recording starts, I get my updateState command fired off (via broadcastMsg) to the client and everything seems fine...
    3) But when I call: nc.call("stopRecording", myResponder);
    -- The recording stops as it should, and there are no errors on the server side... but, I get the following output on the client:
    [SWF] punchTool.swf - 271441 bytes after decompression
    [SWF] SkinUnderPlaySeekMute.swf - 18276 bytes after decompression
    On Reply: Meeting info received: SRCC20090706
    update: recording
    recording
    On Reply: null
    update: notRecording
    notRecording
    On Reply: null
    ReferenceError: Error #1069: Property updateState not found on fl.video.ConnectClientDynamicStream and there is no default value.
    Error #2044: Unhandled AsyncErrorEvent:. text=Error #2095: flash.net.NetConnection was unable to invoke callback updateState. error=ReferenceError: Error #1069: Property updateState not found on fl.video.ConnectClientDynamicStream and there is no default value.
    at fl.video::NCManagerDynamicStream/http://www.adobe.com/2007/flash/flvplayback/internal::connectRTMP()
    at fl.video::NCManager/connectToURL()
    at fl.video::VideoPlayer/http://www.adobe.com/2007/flash/flvplayback/internal::_load()
    at fl.video::VideoPlayer/play()
    at fl.video::FLVPlayback/doContentPathConnect()
    at fl.video::FLVPlayback/set source()
    at <anonymous>()[punchTool_fla.MainTimeline::frame1:631]
    Test Movie terminated.
    The odd thing is, it can't recognize my client function updateState after the first use of it.
    :: Pertainant Functions ::
    Client Side
    nc.client.updateState = function(msg){
    trace("update: "+msg);
    recordStatus = msg;
    if(recordStatus == "recording"){
      // set puncher button text
      PunchBtn.PunchText.text = "Punch In";
      PunchBtn.PunchStatusText.text = "( Add cuepoint to selected item )";
      // set video player
      myPlayer.visible=true;
      myPlayer.source = "rtmp://206.176.226.166/dvr/"+videoName;//playerSource;
    // display status info
    trace(msg);
    // set reording button state
    setRecordButton();
    Server side ASC:
    // Set up the server stream.
    application.onConnect = function( myClient ) {
    // Accept connection
    application.acceptConnection( myClient );
    trace("connected");
    // receive incomming message
    myClient.myMeetingInfo = function(meetingID) {
      trace("meeting: "+meetingID);
      myClient.meetingID = meetingID;
      return "Meeting info received: "+myClient.meetingID;
    // manual end record command
    myClient.stopRecording = function(){
      if(application.recordState == "recording"){// change this to if recording
       application.ns.record(false);
       application.recordState = "notRecording";
       application.broadcastMsg("updateState", application.recordState);
    // manual start record command
    myClient.startRecording = function(){
      if(application.recordState == "notRecording"){
       application.sendStream(myClient);
       application.ns.record("append");
       application.recordState = "recording";
       application.broadcastMsg("updateState", application.recordState);
    Any direction on this would be great. Thanks all!
    -Jeff

    For more on the basic issue, see:
    Relative file pathnames in FM book files
    This, by the way, is not a bug.
    It's an intractable consequence of the dissonance between Unix-like (common root) and DOS-like (multiple root / logical drive) file systems.
    Newer versions of Frame may have an "archive" capability to save out a complete book with restructured fs hierarchy. Aftermarket products exist for older versions. We wrote our own archive script for translation export, that even gathers the imports.
    Of course, when you are the recipient of some random .book, archiving was almost never done by the exporter .

  • Sending xml over http

    I have a WLS 6.0 servlet that receives XML transactions via a post method.
              Code snippet as follows:
              public void doPost(HttpServletRequest req, HttpServletResponse res)
              throws ServletException, IOException
              int txContentLength = req.getContentLength();
              //get entire input xml stream and store in a stringbuffer
              InputStream inp = req.getInputStream();
              BufferedReader br = new BufferedReader(new InputStreamReader(inp));
              byte[] ba = new byte[txContentLength];
              System.out.println("Reading...");
              int bytesRead = inp.read(ba);
              System.out.println("bytesRead= " + bytesRead);
              while(bytesRead < txContentLength) {
              int moreRead = inp.read(ba, bytesRead, (ba.length - bytesRead));
              if(moreRead == -1)
              break;
              bytesRead += moreRead;
              System.out.println("finished reading buffer...");
              StringBuffer sb = new StringBuffer(new String(ba));
              I have a java client on my PC that takes an XML file as input and sends the
              information to the servlet without any problems.
              The problem is a client that is connecting to our network via a T1
              connection. When they send transactions, about 1 out of every 4
              transactions makes it past the "Reading..." statement above. The other
              transactions appear to 'hang' when it hits the inp.read(ba) line above.
              From all indications, that servlet's execute thread appears 'hung' as if the
              inp.read() is waiting forever.
              I've tried using readLine() on the InputStream() and my local client program
              is unaffected - it works OK. The remote client is having problems using
              either method. The only difference I've noted with the remote client is
              that they are using HTTP 1.0 and I'm using HTTP 1.1. Initially, their
              mime-type was null but they've changed it to text/xml and no luck. I've
              even sent them my client code that is working and they are still having
              problems...
              Another strange anomoly is that req.getContentLength() is returning a valid
              number on the transactions that fail. For example, I had some debug code
              that showed the content length and it was always something like 4012 or
              3500, etc. Not -1 as I would expect...
              Has anyone run into this problem with receiving XML transactions?
              Thanks
              Rob Mason
              

    Thanks for the suggestion - I went back and added a check on the
              contentLength to make sure it had a valid number before trying to call any
              'read' methods... still no luck.
              I did go in and put a try/catch around the read() logic below. The
              exception thrown is an InterruptedIOException. The docs say that this is
              thrown 'to indicate that an input or output transfer has been terminated
              because the thread performing it was terminated.'
              This would seem to indicate that WLS is having the problem - not the client?
              Via the console, under the Configuration section, my HTTP section has the
              following values:
              POST timeout secs: 10
              Max POST time: 10
              Max POST size: -1
              Is there anything else I can try on the server level?
              Thanks
              Rob Mason
              "Xiang Rao" <[email protected]> wrote in message
              news:[email protected]...
              >
              > T1 shouldn't be the problem. We even use dialup to upload file via HTTP
              POST. HTTP
              > 1.0 shouldn't be problem. If you think this is the only difference, you
              can ask
              > other developers to change it to HTTP 1.1 when they request your servlet.
              >
              > The hang at read(ba) most likely means no request data are sent to your
              servlet
              > even if you think there should be some data. In your code, you are better
              to add
              > a block to check if the content_length is GREATER THAN 0 (-1 or 0), if
              not, you
              > shouldn't open any inputstream and shouldn't call any read method. If the
              content_length
              > is 0, your character buffer will have length 0 and I really don't know
              what you
              > can put into such buffer. It is not necessary to set a buffer with the
              length
              > of expected Content_Length. Since you use BufferedReader, you can create a
              buffere
              > with large enough size (see 1K, 8K, 16K, etc)and the return value of read
              will
              > give you the exact length you get for each read call, then append result
              to your
              > Stringbuffer. On the other hand, it is better for you to handle
              IOException in
              > your servlet.
              >
              > Ask the other side developers to send you their client code and compare
              their
              > code with your test code word by word. Check how they compute the
              Content_Length
              > and how they send Content_Length field to you. If this field is not
              explicitly
              > set, I think you should get -1 or 0, even there are request data out. Also
              you
              > should check how the data are sent out to make sure they really send you
              request
              > data.
              >
              >
              >
              >
              > "Rob Mason" <[email protected]> wrote:
              > >I have a WLS 6.0 servlet that receives XML transactions via a post
              method.
              > >Code snippet as follows:
              > >
              > > public void doPost(HttpServletRequest req, HttpServletResponse res)
              > > throws ServletException, IOException
              > > {
              > > int txContentLength = req.getContentLength();
              > >
              > > //get entire input xml stream and store in a stringbuffer
              > > InputStream inp = req.getInputStream();
              > > BufferedReader br = new BufferedReader(new InputStreamReader(inp));
              > >
              > > byte[] ba = new byte[txContentLength];
              > > System.out.println("Reading...");
              > > int bytesRead = inp.read(ba);
              > > System.out.println("bytesRead= " + bytesRead);
              > > while(bytesRead < txContentLength) {
              > > int moreRead = inp.read(ba, bytesRead, (ba.length - bytesRead));
              > > if(moreRead == -1)
              > > break;
              > > bytesRead += moreRead;
              > > }
              > >
              > > System.out.println("finished reading buffer...");
              > > StringBuffer sb = new StringBuffer(new String(ba));
              > >}
              > >
              > >
              > >I have a java client on my PC that takes an XML file as input and sends
              > >the
              > >information to the servlet without any problems.
              > >The problem is a client that is connecting to our network via a T1
              > >connection. When they send transactions, about 1 out of every 4
              > >transactions makes it past the "Reading..." statement above. The other
              > >transactions appear to 'hang' when it hits the inp.read(ba) line above.
              > >From all indications, that servlet's execute thread appears 'hung' as
              > >if the
              > >inp.read() is waiting forever.
              > >
              > >I've tried using readLine() on the InputStream() and my local client
              > >program
              > >is unaffected - it works OK. The remote client is having problems using
              > >either method. The only difference I've noted with the remote client
              > >is
              > >that they are using HTTP 1.0 and I'm using HTTP 1.1. Initially, their
              > >mime-type was null but they've changed it to text/xml and no luck. I've
              > >even sent them my client code that is working and they are still having
              > >problems...
              > >
              > >Another strange anomoly is that req.getContentLength() is returning a
              > >valid
              > >number on the transactions that fail. For example, I had some debug
              > >code
              > >that showed the content length and it was always something like 4012
              > >or
              > >3500, etc. Not -1 as I would expect...
              > >
              > >Has anyone run into this problem with receiving XML transactions?
              > >
              > >Thanks
              > >Rob Mason
              > >
              > >
              > >
              >
              

  • How to send XML file into XI using sender HTTP adapter

    I am using HTTP sender adapter to post the XML file into XI. I tried to form the URL by using the following String query , but I am unable to execute file.
    String urlString = "http://<servername:portno>/sap/xi/adapter_plain?namespace=<namespace>&interface=<interface name>&service=<service name>&party=&agency=&scheme=&QOS=BE&sap-user=xiappluser&sap-password=satyam&sap-client=100&sap-language=EN";
    How can I execute xml file by using HTTP sender adapter.
    Any one with better suggestions, about this idea?
    Thanks in advance for all.
    Ram Raj

    Hi
    Just use the following parameter to send xml file using HTTP adapter.
    "http://xiserver:8000/sap/xi/adapter_plain?namespace="senderNamespace"&interface=senderinterface&service=sender service";
    "&party=sender party"&agency=&scheme=&QOS=BE&sap-user=userid &sap-password=password&sap-client=100&sap-language=D";
    with the help of this you are able to point out which interface you would like to use.
    And in payload pass the xml.
    and thats it
    carry on
    Cheers
    Regards
    Piyush

Maybe you are looking for

  • Not recognized in windows or itunes

    i bought an ipod 2 nights ago, downloaded new version of itunes last night and still don't see my ipod anywhere except the device manager. what do i need to do

  • A3000 is not detected in my pc

    i want to flash a new firmware in my lenovo A3000, but somehow my pc and laptop cannot detect the device. when i plug in, there will be a sound from the windows 7 that a usb has been plugged in, then a few seconds after that there will be another sou

  • Changing into parent-child relation

    Hi, I have a table which has the following fields and the table gives the identifier for parent-child relation: ID PARENT ID structure parentkey_field foreignkey_field Fields[] data[] 1.ID is the numbering like 1,2,3... 2.PARENT ID will give the rela

  • Need help with Rules for mail accounts

    Today I deleted a rule for a mail account and now I cant receive mail in 4 of 8 accounts. I'm not experienced with Mac's Mail program. Id there something you have to do for multiple accounts to recieve all mail? I can send but not receive. Help! ~ Ta

  • IMac freezes during TC backup

    Since a few days my iMac (newest version running Mountain Lion) freezes during TC backups. Since TC is set to backup every hour my computer freezes every hour - the MAC wheel pops up and keeps spinning. Once I abort the TC backup it takes about half