Sending an itab to a jsp webservice

can ne one help me with inputs for sending the data of an itab to a jsp web service .. ma R/3 is 6.20
thanks

Dear friend
pls go to this link
register your self,
and download the white pare fromIBM
http://whitepapers.silicon.com/0,39024759,60359572p,00.htm
hope
this will definatly works.
rewards are expected.
vivek srivastava

Similar Messages

  • HOW to send a value to another jsp page

    HOW to send a value to another jsp page, like user name in one jsp page to another jsp page

    In the most simplest form...
    // pageA.jsp
    <html>
    <body>
    <form action="pageB.jsp" method="post">
    <b>First Name:</b> <input type="text" name="FNAME" value="Joe">
    <input type="submit" value="Submit">
    </form>
    </body>
    </html>
    // pageB.jsp
    <html>
    <body>
    <b>Name:<b> <%=request.getParameter("FNAME")%>
    </body>
    </html>

  • How to send the payload to a jsp using receiver Http adapter?

    Hi experts,
    I have this scenario from Legacy to XI to external app server.I have a test jsp to execute that functionality .Its a jsp which has 1 textarea named "test" and when I click on the submit buton I get a response back.This way I am able to test this independently.Now from XI when I am executing my scenario I am getting status code '1250' and message as ' http request(test) is null'.Now in the scenario in http adapter I just provide the target host : ip of server ,
    service number : port no ,
    path: the container or the request handler. But this scenario fails and gives me the above erroneous response.Now Basically I am not able to get how to send the value to the textarea "test"? please provide help as soon as possible.Do we have to put the name of the jsp in the "path" in http adapter and use prolog as test=.I tried this but it doesnt work.
    Is there any way to check the URL that it forms after appending the querystring in the url ...?
    So please provide help on this or suggest a solution to [email protected] as soon as possible.....
    Thanx in advance.
    Akshata

    hey Shekhar,
    thanx for that prompt reply but I have configured the communication channel in the same manner as suggested by u.
    actually I have this jsp page http://xx.xx.xx.xx:8080/abcdef/try/efg.jsp where there is a textarea "test" which has to be filled and there is a submit button.When I test this http client i.e the above jsp page independently then it goes to handler
    http://xx.xx.xx.xx:8080/abcdef/trial/    And it gives a proper response message after clicking on the submit button.
    now I want to carry out the same using receiver http adapter. I need to pass the value for this inputfield names "test" on that jsp . so right now I have configyured the adapter as
    addressing type: url
    target host : xx.xx.xx.xx
    service no:8080
    path : here I have given the path of handler i.e /abcdef/trial I tried giving the jsp page also but logically I guess it should be the handler.
    content type: text/xml; charset=iso-8859-1
    xml code: UTF-8
    Mask special characters (URL escaping) checked.
    now since the name of the inputfield is "test" in the prolog I gave test=
    But it doesnt work I get this error "http request parameter [test] is null" in the response message  which I guess suggests that it is not able to send the value for the field"test" to that handler.Please suggest how to send this and tell me if there are any other configurations that I have to do in the receiver communication channel.
    Thanx ,
    Akshata

  • How to send a text file as jsp response

    Hi
    I want to send a text file/or other file as jsp response ..How to do it..
    Pls tell me if any body knows about it..
    thanks

    Hmmm im no expert but i think you would have to convert it to a byte array and use OutputStream with the response ... not sure ...like i said, im no expert

  • Need to send mail & upload files using JSP

    hi, got a lot of issues,.. just starting out as a developer.. so here goes.
    1st Need to send mail & upload files to server using JSP(tomcat).. an example to demo it would be nice.
    thanx in advance

    Look at this for email:
    http://forum.java.sun.com/thread.jspa?forumID=45&threadID=285950
    and go to:
    http://servlets.com/cos/
    for a package to upload files.

  • Sender as File and receiver as WebService

    I have following scenrio to work on but not sure how to do it.Any help on this is greatly apperciated.
    I have sender which can post file to XI asynchronously and webService which can process it on the receiving it synchronously.
    Is there any way to communicate between asynchronus and synhcronous interfaces.
    Thanks,
    Samir

    Hi Samir, let me try to list down the i/f to be created to acheive ur scenario.
    1)u need 1 abstract async i/f to receive the async message from file adapter
    2)u need 2 abstract async i/f , one is the request message of the web service & other is the response message of the web service
    3)U need 1 abstract sync i/f to be referenced in the send step of ccBPM.
    Now, create 3 cotainers in ur BPM process for i/f created in step 1 & 2 above, and u shud now ve an sync-sync bridge mechanism in place.
    -Saravana

  • Sending attachment from servlet or jsp

    Dear Friends,
    I downloaded javamail api and I have seen the sendfile.java, which is used to send attachments. it is working fine. I can able to run that program from command prompt like this :=
    c:>java sendfile [email protected] [email protected] mail.smtp.net c:/hello.java true
    It is working fine from console (command prompt)
    How can i execute that file on browser (i have to run as a servlet file or from jsp file).
    please help me how can i pass the emailids, file etc., if i want to use this program as servlet file or as jsp program.
    If anyone having idea, please share ur ideas.
    your kind cooperation would be greatly appreciated.
    Thanks in advance.
    Looking forward to hearing from you.
    Yours
    Rajesh
    ==
    program is like this (which is in javamail home ..demo directory
    ==
    import java.util.*;
    import java.io.*;
    import javax.mail.*;
    import javax.mail.internet.*;
    import javax.activation.*;
    * sendfile will create a multipart message with the second
    * block of the message being the given file.<p>
    * This demonstrates how to use the FileDataSource to send
    * a file via mail.<p>
    * usage: <code>java sendfile <i>to from smtp file true|false</i></code>
    * where <i>to</i> and <i>from</i> are the destination and
    * origin email addresses, respectively, and <i>smtp</i>
    * is the hostname of the machine that has smtp server
    * running. <i>file</i> is the file to send. The next parameter
    * either turns on or turns off debugging during sending.
    * @author     Christopher Cotton
    public class sendfile {
    public static void main(String[] args) {
         if (args.length != 5) {
         System.out.println("usage: java sendfile <to> <from> <smtp> <file> true|false");
         System.exit(1);
         String to = args[0];
         String from = args[1];
         String host = args[2];
         String filename = args[3];
         boolean debug = Boolean.valueOf(args[4]).booleanValue();
         String msgText1 = "Sending a file.\n";
         String subject = "Sending a file";
         // create some properties and get the default Session
         Properties props = System.getProperties();
         props.put("mail.smtp.host", host);
         Session session = Session.getDefaultInstance(props, null);
         session.setDebug(debug);
         try {
         // create a message
         MimeMessage msg = new MimeMessage(session);
         msg.setFrom(new InternetAddress(from));
         InternetAddress[] address = {new InternetAddress(to)};
         msg.setRecipients(Message.RecipientType.TO, address);
         msg.setSubject(subject);
         // create and fill the first message part
         MimeBodyPart mbp1 = new MimeBodyPart();
         mbp1.setText(msgText1);
         // create the second message part
         MimeBodyPart mbp2 = new MimeBodyPart();
    // attach the file to the message
         FileDataSource fds = new FileDataSource(filename);
         mbp2.setDataHandler(new DataHandler(fds));
         mbp2.setFileName(fds.getName());
         // create the Multipart and its parts to it
         Multipart mp = new MimeMultipart();
         mp.addBodyPart(mbp1);
         mp.addBodyPart(mbp2);
         // add the Multipart to the message
         msg.setContent(mp);
         // set the Date: header
         msg.setSentDate(new Date());
         // send the message
         Transport.send(msg);
         } catch (MessagingException mex) {
         mex.printStackTrace();
         Exception ex = null;
         if ((ex = mex.getNextException()) != null) {
              ex.printStackTrace();

    Hi,
    your sendmail.jsp would look like that:
    <%@ page import="java.util.*,java.io.*,javax.mail.*,javax.mail.internet.*,javax.activation.*" %>
    <%
    String to = request.getParameterValues("to")[0];
    String from = request.getParameterValues("from")[0];
    String host = request.getParameterValues("host")[0];
    String filename = request.getParameterValues("filename")[0];
    String msgText1 = "Sending a file.\n";
    String subject = "Sending a file";
    // create some properties and get the default Session
    Properties props = System.getProperties();
    props.put("mail.smtp.host", host);
    Session session = Session.getDefaultInstance(props, null);
    session.setDebug(debug);
    try {
    // create a message
    MimeMessage msg = new MimeMessage(session);
    msg.setFrom(new InternetAddress(from));
    InternetAddress[] address = {new InternetAddress(to)};
    msg.setRecipients(Message.RecipientType.TO, address);
    msg.setSubject(subject);
    // create and fill the first message part
    MimeBodyPart mbp1 = new MimeBodyPart();
    mbp1.setText(msgText1);
    // create the second message part
    MimeBodyPart mbp2 = new MimeBodyPart();
    // attach the file to the message
    FileDataSource fds = new FileDataSource(filename);
    mbp2.setDataHandler(new DataHandler(fds));
    mbp2.setFileName(fds.getName());
    // create the Multipart and its parts to it
    Multipart mp = new MimeMultipart();
    mp.addBodyPart(mbp1);
    mp.addBodyPart(mbp2);
    // add the Multipart to the message
    msg.setContent(mp);
    // set the Date: header
    msg.setSentDate(new Date());
    // send the message
    Transport.send(msg);
    } catch (MessagingException mex) {
    mex.printStackTrace();
    Exception ex = null;
    if ((ex = mex.getNextException()) != null) {
    ex.printStackTrace();
    %>
    which you can call as: sendmail.jsp?to=...&from=...&host=...&filename=...
    so you may need to create a HTML file containing the necessary form.

  • Problem sending the data into XI through webservice

    Dear All,
    I am getting an error while sending the data into XI after hitting my webservice.
    SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
    <SOAP:Header>
    </SOAP:Header>
    <SOAP:Body>
    <SOAP:Fault xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
    <faultcode>SOAP:Client</faultcode>
    <faultstring>Error during conversion of XI message</faultstring>
    <faultactor>http://sap.com/xi/XI/Message/30</faultactor><detail>
    <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1"><SAP:Category>XIProtocol</SAP:Category>
    <SAP:Code area="PARSER">UNEXPECTED_VALUE</SAP:Code>
    <SAP:P1>Main/@versionMajor</SAP:P1>
    <SAP:P2>000</SAP:P2>
    <SAP:P3>003</SAP:P3>
    <SAP:P4/>
    <SAP:AdditionalText/>
    <SAP:ApplicationFaultMessage namespace=""/>
    <SAP:Stack>XML tag Main/@versionMajor has incorrect value 000; expected value is 003
    </SAP:Stack></SAP:Error></detail></SOAP:Fault>
    </SOAP:Body>
    </SOAP:Envelope>
    Please suggest what the problem could be.
    Abhishek

    <SAP:Stack>XML tag Main/@versionMajor has incorrect value 000; expected value is 003
    </SAP:Stack></SAP:Error></detail></SOAP:Fault>
    --> this states as it is version problem
    Main/@versionMajor is XI message protocol version
    check SXMB_ADM if the system is maintained as XI

  • Sending data from applet to jsp

    hi all....
    i m very new in java so please and please spend ur few movement for this topic.
    i want to run a jsp page from within an applet and evantually want to send data to jsp.
    the data is an array of string object or may be a properties object,
    say String[] strarry={stringdata},or Properties props={setofkeysandvalues}
    the url of the jsp is http://8084/UASProject/Registrationform.jsp
    i have copied a code snippet from a topic posted in this forum.
    now please where should i formate in the code below to achieve this?
        try{
            URL appletURL = getCodeBase();
            String strHost = appletURL.getHost();
            String strPort = String.valueOf(appletURL.getPort());
            String strProtocol = appletURL.getProtocol();
            int portNumber = Integer.parseInt(strPort);
            String strwp ="/UASProject/Registrationform.jsp";
            //TCP port;
            URL jspURL = new URL(strProtocol,strHost,portNumber,strwp);
            URLConnection jspCon = jspURL.openConnection();
            jspCon.setUseCaches(false);
            jspCon.setDoOutput(true);
            jspCon.setDoInput(true);
            //jspCon.set
            ByteArrayOutputStream byteStream = new ByteArrayOutputStream(512);
            PrintWriter out = new PrintWriter(byteStream,true);
           // String postData= "?xmlText=" + URLEncoder.encode(genXml(),"UTF-8");
            //out.print(postData);
            out.flush();
            String strLength = String.valueOf(byteStream);
            jspCon.setRequestProperty("Content-Length",strLength);
            jspCon.setRequestProperty("Content-Type","application/x-www-form-urlencoded");
            byteStream.writeTo(jspCon.getOutputStream());
            URL tempURL = new URL(String.valueOf(jspURL));
            getAppletContext().showDocument(tempURL);
        }catch(Exception e)   {}please explain the line String postData= "?xmlText=" URLEncoder.encode(genXml(),"UTF-8");+ why it is written for??

    angilna_loves_java wrote:
    hi all....
    i m very new in java so please and please spend ur few movement for this topic.Huh?
    i want to run a jsp page from within an applet and evantually want to send data to jsp.Oh good lord, why?!
    the data is an array of string object or may be a properties object,
    say String[] strarry={stringdata},or Properties props={setofkeysandvalues}
    the url of the jsp is http://8084/UASProject/Registrationform.jsp
    i have copied a code snippet from a topic posted in this forum.
    now please where should i formate in the code below to achieve this?I recommend you get a better grasp on Java and JSP before you go any further. I'm not clear on what problem you're having or what error your getting either.
    >
    try{
    URL appletURL = getCodeBase();
    String strHost = appletURL.getHost();
    String strPort = String.valueOf(appletURL.getPort());
    String strProtocol = appletURL.getProtocol();
    int portNumber = Integer.parseInt(strPort);
    String strwp ="/UASProject/Registrationform.jsp";
    //TCP port;
    URL jspURL = new URL(strProtocol,strHost,portNumber,strwp);
    URLConnection jspCon = jspURL.openConnection();
    jspCon.setUseCaches(false);
    jspCon.setDoOutput(true);
    jspCon.setDoInput(true);
    //jspCon.set
    ByteArrayOutputStream byteStream = new ByteArrayOutputStream(512);
    PrintWriter out = new PrintWriter(byteStream,true);
    // String postData= "?xmlText=" + URLEncoder.encode(genXml(),"UTF-8");
    //out.print(postData);
    out.flush();
    String strLength = String.valueOf(byteStream);
    jspCon.setRequestProperty("Content-Length",strLength);
    jspCon.setRequestProperty("Content-Type","application/x-www-form-urlencoded");
    byteStream.writeTo(jspCon.getOutputStream());
    URL tempURL = new URL(String.valueOf(jspURL));
    getAppletContext().showDocument(tempURL);
    }catch(Exception e)   {}please explain the line String postData= "?xmlText=" URLEncoder.encode(genXml(),"UTF-8");+ why it is written for??Please read the API docs if you don't know what a particular method in Java does.

  • How to send a table to AdobeForm through webservice?

    Hi,
    My present requirement is to design an Adobe form with a button, when I click the button it need to display the purchase order details(a table).
    My doubt is Can we send an entire table to Adobe Form through a webservice?
    If we can send the table then do we need to write any JavaScript?

    Hello Lingaraj Desai,
    Let me explain you the issue clearly..
    I have a button and a table in my layout, when I click on the button then my table should display material details. I have binded the table with the webservice.
    My issue is, table is created with a single row while designing and will be displayed with one row when the form is downloaded to local system. the table should grow w.r.t the data coming through the webservice but as its memory allocation will be for only one row, so the table dynamically cannot display all the records. It will only display a single record.
    Here I need to display all records coming from the webservice. I hope you understood the issue now.
    Thanks,
    Raghu.

  • Send params to an included JSP page

    Hi,
    I don't understand that : I use Tomcat 4.0. When I write it :
    <!-- Affichage du fond de page ouvre la balise <body> (a refermer)  -->
    <jsp:include page="<%=JLdsWeb.URL_JSP + JLdsWeb.JSP_BACKGROUND%>" >
       <%-- Emp�che l'affichage de la barre de navigation --%>
       <jsp:p aram name="navigmenu" value="no" />
    </jsp:include>Tomcat send an error when compiling :
    Expected "param" tag with "name" and "value" attributes without the "params" tag.does someone know why ?
    an how can I solve this problem ?

    I came across this error for an entirely different reason. I had a param tag commented out in my code.
    So it read:
    <!--
    <jsp:include page="include/other.jsp>
    -->
    <jsp:include page="include/box.jsp">
    <jsp:param name="id" value="center"/>
    </jsp:include>
    It's really obvious when you look at it, but tied me up for a few minutes \^.^/

  • Sending Email from EJB exposed as Webservice

    Hi,
    I have created a EJB, which i have wrapped in an EAR & exposed as a WebService.
    <b>I want the code to send an email from the EJB</b>
    I know there is a code to send email, but that code is to send an email from WebDynpro. I am not sure if that will work with the EJB.
    Any ideas??
    Regards,
    Hanoz

    Hi,
    Thanx for the prompt response.
    I went through that blog. Its good, but it requires me to install additional plugins, which is dont want to do.
    Here is the code to send email from WebDynpro:
    String l_str_to = "<destination email id>";
                   String l_str_from = "sender";
                   String p_subject = "U've got mail!!! ";
    //               String p_l_request_id = "1" ;
                   // SUBSTITUTE YOUR ISP'S MAIL SERVER HERE!!!
                   String host = "<SMTP SERver ip>";
                   // Create properties, get Session
                   Properties props = new Properties();
                   // If using static Transport.send(),
                   // need to specify which host to send it to
                   props.setProperty("mail.smtp.host", host);
                   // To see what is going on behind the scene
                   //props.put("mail.debug", "true");
                   Session session = Session.getInstance(props);
                   try {
                        // Instantiatee a message
                        Message msg = new MimeMessage(session);
                        //Set message attributes
                             msg.setFrom(new InternetAddress(l_str_from));
                             InternetAddress[] address = { new InternetAddress(l_str_to)};
                             msg.setRecipients(Message.RecipientType.TO, address);
                             msg.setSubject(p_subject);
                             //msg.setSentDate(new Date());
                        java.util.Date dt = new java.util.Date();
                        msg.setSentDate(dt);
                        // Set message content
                        msg.setText("This is a test email");                         
                        //Send the message
                        Transport.send(msg);
                   catch (Exception mex)
                        // Prints all nested (chained) exceptions as well
                        mex.printStackTrace();
    <b>i want a similar code, which can be executed from the EJB!!!!</b>

  • Jsp webservice

    I have written a webservice in PHP using NUSOAP. I now want to create a jsp page that uses this webservice. I am completely new to jsp. Can someone help me out here?
    Thanks!!

    Start with this:
    http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/JSPIntro.html
    The best books on servlets and JSPs are Jason Hunter's O'Reilly book or Marty Hall's "Core Servlets and JSPs".
    You'll need a servlet/JSP engine. Tomcat is Sun's reference implementation, and it's free:
    http://jakarta.apache.org/tomcat
    Once you've got servlets, JSPs, and Tomcat under your belt you'll want to make your pages look good. Learn JSTL, the Java Standard Tag Library, to do that:
    http://jakarta.apache.org/taglibs
    Get busy - there's a lot to learn here. - MOD

  • File Adapter to read Zip file and send it as input to another webservice

    Hi,
    I have the below requirement:
    1. A service will generate 3 attachments and place it in a particular directory.
    2. SOA service has to pick those 3 files and send those files as input to another custom application which will email.
    Design :
    1. First SOA will create an archive file of those 3 attachements and then file adapter will poll for that zip file in that location and send that file as a whole to the custom application.
    Query:
    Now my question, is the above design feasible? If so, how to configure the file adapter to pass the file as input to that custom application?
    Kindly do the needful
    Thanks,
    Priya

    You can accomplish this via java embedding activity...Create a java embedding, which will create a zip file.. this java code is easy to implement..
    You can also do away with un-necessary polling file adapter.. and you can use "Synchronous File Read" operation of File Adapter.. For Sync Read, you'll have to pass the zip file name, which you can easily fetch from java embedding activity..
    Let me know, if this doesn't work.

  • Help, how to send an e-mail from JSP

    I need to know if there's any method or library that helps me to send a mail from a web page, i need to send data from a query from mysql, does anybody knows how??? PLEASE!!!!

    here are the links that can help you.. you must download the jar files needed in order for you to send mail using java
    http://www.javaworld.com/javaworld/jw-10-2001/jw-1026-javamail.html
    http://java.sun.com/products/javamail/
    http://java.sun.com/products/javamail/FAQ.html

Maybe you are looking for