Send XML and receive binary data via SOAP

Hi folks,
following idea (Client-Server-Rendering-Architecture):
1. Send XML as JavaScript variable via SOAP to the InDesign Server
2. Attached the XML String to a new document or template
3. Apply several XMLRules to the docuument
4. Render to document as JPG|PDF whatever
5. Transmit the JPG (means binary) via SOAP back to the client
Following problems raised by implementing this
1. Build a new XML-Object with new XML() works, but how to attach this object to the document, i've just found importXML() but from file, not string and xmlElements.add() for adding just a tag not a whole xml tree. The importXML() performance from a File object is not that fast ...
2. How to render a document not to a file with exportFile() but into a variable, object etc.?
3. How to send a binary object (from an object, a variable or File object if not possible as describe in Q#2) back to the client via SOAP (scriptResult)? Do I have to expand the WSDL (and|or C++ API), any examples?
Thanks for your help, by the way, the describe scenario is what I expect of a rendering server not more not less ...
Tino

for one thing, don't use == to compare strings... You have that all over the place, like:
if(currentElement=="region") {                                                                                                                                                                                                                                                   

Similar Messages

  • I am new to the ethernet communicat​ion using labview. I do not have any hardware. I have two laptop i need to send and recieve the data via these 2 laptop using labview. Kindly help me on this.

    i am new to the ethernet communication using labview. I do not have any hardware. I have two laptop i need to send and recieve the data via these 2 laptop using labview. Kindly help me on this.
    Solved!
    Go to Solution.

    Hi thanks for the help.
    Actually i am trying to send 10 sine signals from server pc to client pc. So i will bundle 10 signals in server pc and send it and in client pc i am unbundling it and need to save in TDMS format.
    Till unbundling i was able to do. TDMS format it is saving only last value. I need to save all the values. Kindly help me on same. I am attaching both the VI.
    Attachments:
    Client.vi ‏62 KB
    Server.vi ‏252 KB

  • Send and receive UDP data package based on siemens TC65 module

    Everyone:
    I am newer for J2ME. I have a TC65 module, I want to get a sending and receiving UDP data package exeample codes running on TC65. who can help me? thanks!

    Hi deepspace,
    I programmed a demo codes and run it on TC65T, debug trace like :
    at^sjra=a:/NetDemo.jar
    OK
    NetDemo: Constructor
    NetDemo: startApp
    NetDemo: Profile could not be activated
    NetDemo: destroyApp(true)
    // below is demo codes, can you help me where error is?
    package example.netdemo;
    import javax.microedition.midlet.*;
    import java.io.*;
    import javax.microedition.io.*;
    import javax.microedition.io.Datagram;
    import javax.microedition.io.DatagramConnection;
    public class NetDemo extends MIDlet {
    public NetDemo()
    System.out.println("NetDemo: Constructor");
    public void startApp() throws MIDletStateChangeException
    System.out.println("NetDemo: startApp");
    try
    DatagramConnection conn = (DatagramConnection) Connector.open("datagram://58.185.157.91:12003");
    byte[] buffer = new byte[32];
    Datagram dgram = conn.newDatagram(buffer, buffer.length);
    for (int i = 0; i < 30; i++) {
    buffer[i] = (byte)('0' + (i % 10));
    conn.send(dgram);
    catch (Exception e)
    System.out.println("NetDemo: " + e.getMessage());
    destroyApp(true);
    public void pauseApp() {
    System.out.println("NetDemo: pauseApp()");
    public void destroyApp(boolean cond) {
    System.out.println("NetDemo: destroyApp(" + cond + ")");
    notifyDestroyed();
    }

  • PI 7.1 Sender Interface and Receiver Interface  gets interchanged

    Hi All,
    I m facing a strange problem in PI 7.1
    For many of my scenarios, the Sender Interface, sender namespace and receiver Interface, receiver namespace  information gets interchanged and displayed incorrectly.
    But sometimes its working fine.
    When we analysed the Log messages, found that, after xml validation step, the sender and reciever interface gets interchanged.
    Any idea why this happens?
    How to rectify this error?

    Aarthi,
    Please check your message interfaces once again. Sender is outbound and Receiver is inbound.
    Also please check your receiver determination.
    Regards,
    ---Satish

  • Sender DEBIT and receiver DEBIT

    Dear all,
    I notice in settlement, there are 2 button : sender and receiver. Now, what confused me is why both also called sender debit and receiver debit?
    Why both also DEBIT?
    Please advise me.
    Thanks

    Dear All,
    I see mostly it is like that where sender debit and receiver debit. If you go into KO88 previous settlement, you will get this.
    I read in forum also it is explaining in debit.
    You assign the debit cost element groups to a settlement cost element.
    You settle by cost element - that is, the debit cost element is the settlement cost element.
    so i would like to know why the title is sender debit and receiver debit. why both debit.
    thanks

  • Regarding Sender query and receiver query

    Hi Masters
          I have one sender query and receiver query. Both queries contain G/L account.
    First I got sender query report, in this report I drill down one free charactteristics field to get correponding field sales document in receiver report.
    Is it mandatory which field i drill down in sender report should be in receiver report?
    Could you please help ?
    Thanks in Advance
    Raja.S

    I would rewrite the first one to:
    Select t.id_entity,t.id_trade_ref,p.am_stock
    from trade t,posting p
    where t.id_trade_ref = '5V973781B'
    and p.id_trade_ref = t.id_trade_ref
    This way, you really make the join between the table.
    I think the join is better because it uses less code. I do not think you will notice much performance win between one or the other, especially because it concerns only a few rows.

  • Send Task and Receive Task

    In our beta test, we came upon several issues, one of them is when we create a BPMN process that consists of the following simple flow: Start -> User Task 1 -> Send Task -> User Task 2 -> Receive Task -> User Task 3 -> End
    When we deploy and run the flow, it always stops at the Receive Task. But when we remove User Task 2 from the flow and redeploy and run, the process runs fine all the way to the end. I am wondering if this is a bug in BPM 11g where if you put an activity between Send Task and Receive Task, it does not work, but when you do not have a task between Send Task and Receive Task, it works fine. Can someone confirm this scenario please?
    Within the Send Task and Receive Task, we are invoking a BPEL process that has a simple asynchronous service. The Send Task invokes the BPEL process, and the Receive Task has the callback to the BPEL process.
    Makes sense?
    Thanks.

    What does the bpel process do? Does it work with a synchronous bpel process?
    I think you should submit an SR for this since it works when there is no activity between the send/receive.
    Heidi.

  • I need an application that will enable my ipad to receive calls, make calls , send sms and receive sms. line2 is not available in south africa

    i need an application that will enable my ipad to receive calls, make calls send sms and receive sms. line2 is not available in south africa

    Skype would be a possibility for phone calls, though I don't know if it's available in SA. Search the iTunes Store for "SMS" and you'll quickly see if there are any SMS apps you can try.
    Regards.

  • ABAP proxy client sending to XI   and Receive the data back from the DB

    Hi
    I am new to XI need a clarification on the following scenario
    I have a scenarion where ABAP Proxy (Clinet) from ECC will be sending the data to Data base server via XI,  and needs to return the values back to ECC
    ECC -
    > XI/PI -
    > Remote server  (Database)
          <-- XI/PI <--
    Can anyone give idea how can I develop this scenario.
    I am sure I would be using the Proxy BADI to send the data from ECC to XI in Asyscrounous mode,
    Thanks
    PR

    Hi,
    As you said the data will be sent asynchronously from BAPI to XI which means you will have to split up the scenario into two.
    First One -
    Sender Proxy - XI - Receiver JDBC.
    Second -
    Sender JDBC - XI - Receiver Proxy.
    You can set a flag to"1" when you insert data into table. the run a query on the database which will fetch record whose flay is set to "1" and also simultaneously rest the flag to "0" to indicate that this record is already send to SAP.You can make use of stored procedures too.
    Please award points if the reply is useful.
    Regards,
    Pragati

  • XI mail sender adapter and SMIME (signed data)

    I have a scenario where multiple external parties send signed and encrypted e-mail messages to a single e-mail account, which should be emptied by an XI mail adapter. This works fine when receiving mails from only one party - simply load the party's certificate in the KeyStore and set the relevant references in the sender agreement. The problem is that the sender agreement must point to exactly one KeyStore entry, so there is no way to verify the signature of mails received from the second party. I have also tried creating two sender agreements: one for each party pointing to their respective KeyStore entries. Although XI allows me to reference the same sender mail communication channel from both sender agreements, it seems to simply use the sender agreement that was last saved.
    Does anyone know how to get this kind of scenario to work?
    Regards,
    Thorsten

    Hi,
    Am trying the same scenario as you did.
    Can you guide me step by step how to read , validate and extract data from attachment.
    Am stucked in reading the attachment now.
    I can able to get mail but not attachment.
    Can you tell the steps that you did.
    Thanks in advance,
    Sakthi

  • Submit PDF Data via SOAP

    Situation:
    Write a PDF out to a public share.
    Email the location reference to a user.
    Allow the person to add their data to the form.
    Allow the person to submit.
    I would like to submit the data to a workflow process.
    From what I have read, a lot of people indicate this is done by writing a web service that acts as a proxy to the actual workflow process. Is that really the best/easiest way?
    I know that LiveCycle exposes the WSDL for any workflow process that is written. Is there a way to call that directly without the proxy?
    I know you can set up a Data Connection on a form. Is that the best way?
    Can I simply but the end point of the LiveCycle SOAP endpoint in the "Submit To Url" field of a Submit button?
    Any words of wisdom?

    There are six different ways to initiate a workflow process. 3 are created automatically when the process is activated and 3 require you to build an endpoint.
    1. Automatic endpoint - Data Services - you could submit the data to a servlet or other such program and in turn have it call Data Services to start the process.
    2. Automatic endpoint - EJB interface - submit the data to a servlet and have it call the EJB interface to start the process.
    3. Automatic endpoint - Web Service interface - same as above but use the SOAP interface instead. You could also have the form call the SOAP interface directly but there will be some work required on the form to get the contents of the form to submit via SOAP.
    4. Endpoint requires config - Watched folder - you can save out the data to a shared network drive. That drive is monitored by Livecycle and your process is kicked off when a file is dropped into that folder.
    5. Endpoint requires config - Email endpoint - same as #4 except email is used and not a folder.
    6. Endpoint requires config - TaskManager endpoint - make use of workspace to have the user choose the process to start and the data is submitted to the process automatically.

  • Sender system and Receiver system

    Hi,
    I have installed xi on on the server name is XI1 and there is two client 001 and 300. i have created xisuper user on 001. Pls tell me which is sender system or receiver system and xi system.
    Please give me some secnario
    Thannks

    Hi,
    you can Use Either (001 or 300 )one of the client for XI Perspective.
    And you can send the data through this Client in Xi to any Application
    Example:
    if you want to send the data from FTP Server to SAP R/3 (100 Client)means
    Here You can use either 001 or 300 client of XI as Middleware to send the data to SAP R/3
    in this case
    Your sender is the FTP Server(File Adapter)--XI is the Middleware--SAP R/3(100 Client) is the Receiver
    Regards
    Seshagiri

  • (RFC vs files), where Sender SAP and receiver multiple system

    Publish and Subscribe using  BPM or Without BPM (RFC vs files), where Sender SAP and receivers multiple system,.
    This is my 1st BPM scenario in sandbox system
    For this scenario
    I Created 2 Data types
    2 MT,
    Service interface:
    Request interface Mode:Asynchronous
    Abstract Req interface,Mode:Asynchronous
    Response Interface,Mode:Asynchronous
    Abstract Respomse Interface ,Mode:Aysnchronous
    Synchronous Interface ,Mode:Synchronous
    2 Message mapping for Req and Resp
    1 Operation Mapping
    BPM design: Plz find the attatchement
    Can anyone please help me how many Interface determinations,receiver determinations ,sender agreements,receiver agreements need to create for this.......
    It will be good if anyone send the BPM design flow for this.........
    can we do this scenario without BPM?
    Regards
    A.Muni kumar
    Edited by: Muni 1234 on Jan 31, 2012 10:24 AM

    Hi
    Receiver is FTP only.....
    SAP side is RFC.........
    RFC sender will be initiating the scenario, and there is receiver is File, PI should go to file directory and take the file then send it back to RFC as response.
    Sender: RFC
    Receiver: File
    1. is this scenario with condition based routing.. so that each time outof many receiver systems it will trigger any specific system.
    if above is the case then you can achive this without BPM also..
    Yes...its condition based routing...
    I Used async in this scenario.....sender side configurations also done....
    But when when I am triggering BAPI from SE37 I am getting an error
    Exception SYSTEM_FAILURE
    Message ID: 00 Message number: 341
    Message:
    Runtime error CALL_FUNCTION_NOT_FOUND has occurred
    How to Solve this????
    I checked the RFC destination which i created in TCP/IP..a nd i mentioned the same in se37 RFC target system..
    Connection is Ok
    Or we need to create proxy for MI and report for this?
    Edited by: Muni 1234 on Feb 1, 2012 8:38 AM

  • XML and Web Service Data Source Missing in Crystal Reports for VS

    I would like to use a Web Service as the data source for a Crystal Report that will be running outside of my Visual Studio application.  So setting the data source to the web service in code is not possible.  My understanding is Crystal Reports has a connection (in the Database Expert under New Connection) named XML and Web Service.  Here you can select web service and enter the WSDL URL for the web service.  However it does not appear in the list for Crystal Reports for Visual Studio.  Does this connection type come with the Visual Studio version of Crystal Reports and if not is their a way to obtain it? 
    Thank you for your assistance.

    None of the bundled versions of CR have the driver. Reason is that the driver responsible for these connections requires the Java framework and I suspect MS would not be too pleased if we installed the Java framework. The stand alone versions, since they are not part of any bundle can and do install the Java framework and the driver. Note that even the latest release of CR - CRVS2010 does not have the driver as it essentially becomes a bundle or a VS2010 plug-in.
    So, the short of it is; you have to obtain a stand-alone version of CR. I'd recommend CR 2008 (12.x) as CRXI R2 will run out of support in June of this year.
    - Ludek

  • Mail sending issue and receiving sound intermittent

    I have three mail accounts on the 3G iPhone if that matters.
    The primary SMTP server I have setup for when using email at home on wi-fi. Set up the same as on the Mac to the ISP I connect to. Works fine sending and receiving on the iPhone.
    Under other SMTP servers I have set to reflect the mobile provider I connect to when not on wi-fi.
    The only way I can send mail using the mobile provider is to turn off the primary server.
    The instructions on the screen say " If mail is unsuccessful using the primary server it will try the other SMTP servers in succession. Clearly not doing this as if it can't connect using the primary server it doesn't continue searching through other servers.
    Anyone else experiencing the same problem?
    In addition the sound on receiving mail is intermittent and generally doesn't work. If it does it only works the one and then only one of the three accounts. And then goes away again.
    I was hoping that the 2.1 update may have fixed both of these.

    Bump

Maybe you are looking for

  • Uploading data from a particular column of a particular sheet from an excel file into internal table

    Hi, I have to upload data in the first coulmn of 7th sheet of an excel file. Can anyone please help me on this. This link works perfectly fine for excel files without Macros. Read multiple sheets of an Excel file into SAP through ABAP - Code Gallery

  • Document attaching to Customer Object link

    Hi all, I have created a document relevant for Sales. In object links i have attached this document to Customer object. Here in the Customer master data (After double clicking the Customer object link in the DIR), Can i attach any document to the Cus

  • Why does my iTunes app keep crashing on my iPhone 4S.

    My phone is up to date with iOS 7.0.2 but I try to open iTunes store and it just crashes... Help. I already checked my date and time it is current.

  • What's new in 8.81?

    Hi - I've seen many web casts and docs etc on what's new in 8.81 and it looks like a lot of improved functionality. Does anyone know where I can find an official SAP document to talk over with prospective clients showing them what is new? Many thanks

  • Strange Shadows Cast by Windows

    Hi, everybody, I have recently begun to experience a very strange phenomenon on my old iMac DV 400mhz. First, a little background. The unit is about 10 years old, has an upgraded 120 GB hard drive, and has 768 MB of RAM installed. I am currently runn