How send the Silent Post?

Hi Servlet Profesionals,
S1,S2,S3 are the different web servers.
S2 is My server.
I got a request from S1 and I sent to the S3.
I got a reply from S3 waiting for response from S2.
I have to send the data what I get from S3 to S1 and I want a response from S1 then only I can give a response to S3.
The main problem here,
How to send the data to S1?
I cann't forward the request to S1 which is the different server.
req.getRequestDispature(S1).forward(req,res); will work with in the same sevrver.
I cann't the redirect the current responce to the S1 because the responce belongs to S3, means if I try to send any response will go to the S3 but not S1
Ex:
res.sendRedirect("S1");
res.sendError("200_OK");
Here after completing the first statement, the second statement never excute.So I cann't give the response to S3.
My exact problem is that Once I get requst from S3 server I have to send the to S1 server and I need a conform from S1 server like 200 OK response then only I can give 200 OK response to S3.
I need a Internal communication between two servlets (Silent Posting) which are running on two different servers
Mail me to [email protected]

Hi, could you tell me how you do it ?
Best regards
Martin K.

Similar Messages

  • How send the u array through labview

    Hi,
    How to send the unsigned 32 bit  array through UDP.
    How to convert the unsigned 32 bit array to byte array.
    with regards and warm welcome,
    Ramamoorthy S
    Solved!
    Go to Solution.

    You can typecast it to a string and then typecast it back to a U32 array on the other end.
    You can also use flatten tro srring/unflatten from string.
    Have a look at the example finder for some examples.
    LabVIEW Champion . Do more with less code and in less time .

  • HT5312 I need help it's not showing me how send the security password to my email

    I've been trying to buy this game and it says it's my first time purchasing this item on this phone and I forgot the security password and it's not showing me how to send it to my weak I need help please and thank you.

    You need to ask Apple to reset your security questions; ways of contacting them include phoning AppleCare and asking for the Account Security team, clicking here and picking a method for your country, and filling out and submitting this form.
    They wouldn't be security questions if they could be bypassed without Apple verifying your identity.
    (104015)

  • Silent Post

    How do I dump or parse a silent post string?  These are silent posts from Authorizenet's Recurring Transactions, so nothing is being sent to their server.  It's simply a receiving of data as transactions are processed.  I don't have a variable name from the silent post.

    try:
    on (release) {
    sendLV=new LoadVars()
    receiveLV=new LoadVars();
    receiveLV.onLoad=function(){
    //do whatever
        for (i=1; i<_parent.fields_descriptions.length; i++) {
            if (_parent[_parent.fields_descriptions[i][1]]!=undefined) {
                sendLV[_parent.fields_descriptions[i][1]]=_parent[_parent.fields_descriptions[i][ 1]]+"&777&"+_parent.fields_descriptions[i][2];
        sendLV.sendAndLoad("contact."+_parent.serv, receiveLV, "POST");

  • How to create a Post String in HTTP Post Action - 11.5 SR3

    Hi Guys,
    I am trying to post a string to a servlet using HTTP Post. The servlet excepts a Parameter with name b2mml. I am trying to send the Post String in the HTTP Post actions as a name value pair b2mml=xmlencode("my xml here"). Is this the way that I am supposed to send the HTTP Post. In Java, I url encode the key and value and send it to the servlet in a Post.
    What should be my post string in this case? does a simple name value pair suffice, which I think is not working in the test. I put the debugger on the servlet and I have seen that no data is coming in the request.
    Thanks,
    Ravi.

    Thanks Sam. But that doesnot seem to solve the problem.
    The transaction has the input 'b2mml' with is a xml. In  the http post action, I configured the 'PostData' property using the link editor as
    "b2mml="&Transaction.b2mml
    The servlet is trying to read parameter b2mml but it is not there in the request object.
    Ravi.

  • How can I send the html animation on the post(mail,google,yandex)?

    how can I send the html animation on the post(mail,google,yandex)?

    What do you mean? F you want to post your files here, put a zipped file on the cloud somewhere like dropbox, and post the link.

  • How can i send the chinese sms using java J2EE(web application)

    hi,
    i have the difficulty on sending chinese sms using J2EE application.i try to input the chinese word to jsp and send the plain text sms. i received the sms with plenty of question mark "?????". i think it is regarding to the conversion of String to some kind of format that supported by mobile phone. below are some code the send the sms to recipient. i need someone help in order to have the solution.
    thanks a lot
    <%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
    <%@ page import="se.sapio.rta.service.MPMService"%>
    <%@ page import="java.util.Locale"%>
    <%
         Locale.setDefault(Locale.UK);
         Context ctx;
         MPMService mpmservice;
         ctx = new InitialContext();
         mpmservice = (MPMService) ctx.lookup("BC/Service/RTAMPM");
         LSUser user = null;
         boolean ok = true;
         try {
         if (ok) {
              String sender = request.getParameter("sender");
              String phonenr = request.getParameter("phonenr");
              String sendmsg = request.getParameter("sendmsg");
              if(bError) {
                   byte[] bytes = message.getBytes("UTF-8");
                   message = mobileclientservice.ByteEncode(bytes);          
                   response.sendRedirect("send_sms.jsp?s="+request.getParameter("s")+"&msg="+message+"&phonenr="+request.getParameter("phonenr").replaceAll("\\+","%2B")+"&sender="+request.getParameter("sender")+"&sendmsg="+request.getParameter("sendmsg").replaceAll("\\+","%2B"));
              String resp = "";
              if(mpmservice.sendPlainTextSMS(sender, phonenr, sendmsg)) {
                   resp=mpmservice.getLang(user.getLang(), "sms_sent");
              } else {
                   resp=mpmservice.getLang(user.getLang(), "sms_not_sent");
              } %>
              <jsp:include page="/top.jsp" />
              <p class="headline"><%=mpmservice.getLang(user.getLang(), "send_sms_title")%></p>
              <form name="operatordetails" id="operatordetails" method="post" action="send_sms.jsp">
              <INPUT TYPE=hidden NAME=s VALUE="<%=request.getParameter("s")%>">
              <INPUT TYPE=hidden NAME=phonenr VALUE="<%=request.getParameter("phonenr")%>">
              <table class="infotable" id="report">
                   <tr>
                        <td class="left" colspan="2"><%=resp%></td>
                        <td class="right"></td>
                   </tr>
                   <tr>
                        <td class="left" colspan="2">
                             <input class="halfmiddle" name="Back" type="submit" id="Back" value="<%=mpmservice.getLang(user.getLang(), "back")%>" />
                        </td>     
                        <td class="right"> </td>
                   </tr>
              </table>
              </form>
              <jsp:include page="/bottom.jsp" />
         <% } %>
       public boolean sendPlainTextSMS(String sender, String recipient, String sendmsg){
             if(recipient.charAt(0) == '+')
                   recipient = recipient.substring(1);
             String senderIdType = "Alpha";
              if( (sender.charAt(0) >= '0' && sender.charAt(0) <= '9') || sender.charAt(0) == '+')
                   senderIdType = "Numeric";
                   if(sender.charAt(0) == '+')
                        sender = sender.substring(1);
                   for(int i=0; i < sender.length(); i++)
                        if(!(sender.charAt(i) >= '0' && sender.charAt(i) <= '9'))
                             senderIdType = "Alpha";
             log.warn("sending sms to: "+recipient + " sendtype: " + senderIdType + " msg: "+ sendmsg);
             log.warn("Encoded sms:"+Encode(sendmsg));
             try{
             String postData = "XMLDATA=" + URLEncoder.encode("<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>\r\n" +
                        "<NotificationRequest Version=\"3.4\">\r\n" +
                        "     <NotificationHeader>\r\n" +
                        "          <PartnerName>" + SMS_PARTNER_NAME + "</PartnerName>\r\n" +
                        "          <PartnerPassword>" + SMS_PARTNER_PASSWORD + "</PartnerPassword>\r\n" +
                        "          <SubscriptionName>XML</SubscriptionName>\r\n" +
                        "     </NotificationHeader>\r\n" +
                        "     <NotificationList BatchID=\"1\">\r\n" +
                        "          <Notification SequenceNumber=\"0\" MessageType=\"SMS\">\r\n" +
                        "          <Message>" + Encode(sendmsg) + "</Message>\r\n" +
                        "          <Profile>" + SMS_PARTNER_PROFILE + "</Profile>\r\n" +
                        "          <SenderID Type=\"" + senderIdType + "\">" + sender + "</SenderID>\r\n" +
                        "          <Subscriber>\r\n" +
                        "               <SubscriberNumber>" + recipient + "</SubscriberNumber>\r\n" +
                        "          </Subscriber>\r\n" +
                        "      </Notification>\r\n" +
                        " </NotificationList>\r\n" +
                        "</NotificationRequest>","ISO-8859-1");
      appreciate for anyone provide the solution.
    thanks a lot

    Hi,
    I want to send sms from web application to mobile phones at the time of registration. Its verymuch greatful to me, if you let me know, how to send from jsp to mobile. because from your post, i got, you already know about sending sms from jsp to mobile.
    please let me know, how to send sms
    [email protected]
    Thanks in advance for your kind help

  • How to send the dynamically generated XML file to other site for further processing?

    I have a question regarding exchanging data between two systems
    using XSQL servlet. The situation is descrbed as the follows:
    Assume that we have a simple XSQL page named "emp.xsql"
    <?xml version="1.0"?>
    <?-- XSQL page file "emp.xsql" -->
    <xsql:query xmlns:xsql="urn:oracle-xsql" connection="demo" >
    SELECT * FROM EMP
    </xsql:query>
    and we can access it through the HTTP request likes
    http://web_server_name/xsql/emp.xsql.
    Usually we will the returned dynamic XML file and show it on the
    screen. Now the problem is that we don't want to show the
    generated XML file on the calling screen. Instead, we want to
    send the generated XML file to other website for further
    processing, say, using JSP or ASP likes
    http://other_web_server_name/XMLProcessing.jsp?.....
    How can it be implemented using XSQL servlet?
    Any hint and outline of the solution is appreciated.
    Thanks

    Ike,
    Do you have a sample. I am searched so much in this forum for samples. I looked on SAX Parser. I did not find any samples.
    Please help me.
    Thank you for your posting.
    Padma.

  • How to use method POST to send XML using utl_http?

    Hi,
    I am trying to work out how to use the POST method to mimic submitting data from a HTML form, using utl_http.
    I cannot use SOAP for this as the people I am sending the data to are just expecting an XML document to be sent to a standard CGI script running on their web server.
    There is a lot of documentation on how to submit data using the POST method (using Utl_Http.Write_Text etc), but I cannot find anything that tells me how to submit form variables.
    The examples on OTN say this:
    "Alternatively use method => 'POST' and Utl_Http.Write_Text to
    build an arbitrarily long message"
    but don't tell me how to actually place the data into the required input parameters of the CGI program I am hitting.
    I need to hit a URL such as
    www.asite.com/cgiprogram
    and pass in a parameter, eg
    in_param="test+data"
    I am currently doing this as a GET, which works, but the XML document I am passing in could potentially be bigger than the GET method will allow.
    Any help would be greatly appreciated.
    Thanks,
    Leon.

    Please try the PL/SQl forum

  • How to send the two PDF attachments into one mail

    Hi Team,
    I need one requirement...I have two forms ,one is cover sheet and another one is form data. These two forms are converted into two PDF documents and sent to vendor as mail attachments...
    Please suggest me,  how to send the two attachments through one mail .....
    Thanks & Regards,
    Samantula.

    Please SEARCH in SCN before posting. There are lots of threads related to send mail with multiple attachments.

  • How to send the thread as a link

    Experts
    May be it's a Silly question but I am trying to find out since last one week. How do we send the forum thread as a link??
    Thnaks In advance
    Sat

    currently its not possible to send the whole thread as a email. (check out this thread Email this thread?)
    you can however email  a particular post by clicking "Email this post" link in the post.
    if you want to send the thread as a link you have to right click->copy short cut on the thread and use it to send mail from your mail client.
    Regards
    Raja

  • When and how does the message context get removed from the message when we use pass thru send port

    Friends,
    i have a doubt regarding message context.
    Assume i have used XMLRecieve pipeline in the receive side to receive the message so that the message context is created. I.e properties are promoted/written.
    now if we use pass thru transmit pipe line at send side, how and when does the message context get removed from the message?? Since pass thru does not have any stages/components, how does the message context removed and sent out a pure message to destination???
     i mean what exactly happens here to remove the context??
    Ravindar

    Thanks for the reply.
    "The Context is created by the Adapter, regardless of any Pipeline or Pipeline Component.  It has nothing to do with PassThrough vs. XmlReceive, although XmlReceive will write Promoted Properties to the existing Context,
    as can any other Component."
    yeah yeah, adapter does create some properties in context. You are right, i am aware of it. I just missed to explain it clearly. what i meant is addition of context properties will not happen if pass thru used. Thanks its clear.
    "No.  The Context already exists on the Message when it comes from the MessageBox and
    is equally available to any Component in any Stage.  The Context that hits the Pipeline is whatever was last Persisted, either by a Receive Port or Orchestration.  It is not created by the XmlAssembler (XmlTransmit)"
    You are right , the context already exists on the message while it leaves the receive port, and once it persists
    to message box the context and message context gets stored in messages in relative tables.
    Now as you said the components get the message from the last persistence, assume i have a send port(with passthru)
    subscriber and a orchestration subsrciber for this message.
    Orchestration gets the message with context right!!
    if the send sendport(with passthru) also gets message along with context, then where is this context removed/demoted
    while sending it out?.  i guess as per SAAkhlaq said,
    here sendport(with passthru) should get a pure message without context as passthru used. 
    or is it that ultimately send adapter removes the context completely?
    or is it something like biztalk run time load the context from database into cache and both orchestration and send port gets pure message, and if needed they use context from cache???
    sorry i may be troubling you, but i am confused. i hope i am not creating any nuisance with this
    post.
    Ravindar

  • HOW TO SEND THE REPORTS AND  THROUGH XI TO NON -SAP SYSTEM

    Hi Experts,
                 I want to know how to send the reports and  smartform through xi to another system. All the post blogs are   just explaning only about the FILE-TO-FILE, FILE-TO-IDOCS scenarios only.

    Hi,
    XI is the middleware that to be used to transfer the data between various systems and even you could design the Business Processes with it.
    In R/3 the smartforms, are generally converted to PDF and then  have to send it across to Non SAP systems. Similarly you can convert the smartforms to pdf format and keep it on application server. XI will pick up that pdf and will send it to Non SAP system either as mail or as an attachments.
    ABAP reports are normally used to re-present the data. If you need to transfer this data across the Non SAP systems then you have the IDOCs to be generated, RFC or ABAP Proxy to integrate this data with Non SAP system.
    XI is not restricted only upto file to file or file to IDOC scenarios. It have enormous capabilities to involve various Business Processes as well integrate various SAP or Non SAP systems.
    If need anymore  specific details, please let us know.
    Thanks
    Swarup

  • How to specify in what coding to send the letter?

    How in SOAP protocol to specify in what coding to send the letter?
    It is necessary for me to send letters outside in coding UTF-8
    Serg

    Thank your
    The accurate and clear answer!
    I will wait FTF or gw8.0.3.
    Serg
    Originally Posted by Preston Stephenson
    Sorry, I'm not sure what the question is.
    I can see that you are using 8.0.2 HP3 (build 96933).
    You will need a later version than that.
    Either an FTF file or wait for 8.0.3.
    You will need a build of the agents greater or
    equal to 97527.
    There is no work around. (You can not get around
    the problem until you get a build later than
    8.0.2 HP3.)
    Preston
    >>> On Tuesday, December 20, 2011 at 4:26 AM,
    skoltogyan<[email protected]> wrote:
    > Thank your for answer.
    > Now we try to send letters from the program written by us.
    > We try to send letters on SOAP protocol through POA.
    > Letters it is sent exterior (example ‑ to the [email protected]) to
    > users.
    >
    > At sending from the program the text of the letter and a letter body is
    > sent п UTF‑8.
    > Of it were convinced with the help tcpdump.
    > tcpdump servers with POA applied directly on eth0.
    > Look:
    > 1) from WS ‑> Server
    > #o]E* @_G~PPOST /soap HTTP/1.1
    > User‑Agent: Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client
    > Protocol 2.0.50727.5448)
    > Content‑Type: text/xml; charset=utf‑8
    > SOAPAction: "sendItemRequest"
    > Host: 172.16.16.230:7191
    > Content‑Length: 879
    > Expect: 100‑continue
    >
    > 2) Answers from Server to WS:
    > ================================
    > ]#oE_@@`Pnz`HTTP/1.1 200
    > Date: Fri, 16 Dec 2011 11:39:27 GMT
    > Server: Linux GroupWise POA 8.0.2
    > Content‑Type: text/xml; charset=utf‑8
    > Content‑Length: 715
    > =============================
    > ]#oE_@@^bPn|Pragma: no‑cache
    >
    > <?xml version="1.0" encoding="UTF‑8"?><soap:Envelope
    > xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    > xmlns:xsi="http://www.w3.org/2001/XMLSchema‑instance"
    >
    xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><loginResp
    > onse
    > xmlns:gwt="http://schemas.novell.com/2005/01/GroupWise/types"
    >
    xmlns="http://schemas.novell.com/2005/01/GroupWise/methods"><session>J3fTBX
    > KWBLSiAud8</session><userinfo><gwt:name>Ami
    >
    Common</gwt:name><gwt:email>[email protected]</gwt:email><gwt:uuid>BC486580‑06D2
    0000‑9A57‑
    > 6D006200E000</gwt:uuid></userinfo><gwVersion>8.0.2
    >
    </gwVersion><build>96933</build><serverUTCTime>2011‑12‑16T09:39:27Z</ser
    verUTCTime><s
    >
    tatus><gwt:code>0</gwt:code></status></loginResponse></soap:Body></soap:Enve
    lope>
    > ===============================
    >
    > 3) from WS to Server
    > ===============================================
    > #o]E* @_G~PPOST /soap HTTP/1.1
    > User‑Agent: Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client
    > Protocol 2.0.50727.5448)
    > Content‑Type: text/xml; charset=utf‑8
    > SOAPAction: "sendItemRequest"
    > Host: 172.16.16.230:7191
    > Content‑Length: 879
    > Expect: 100‑continue
    > ==============================
    > #o]E @\~P<?xml version="1.0" encoding="utf‑8"?><soap:Envelope
    > xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
    > xmlns:xsi="http://www.w3.org/2001/XMLSchema‑instance"
    > xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Header><session
    > xmlns="http://schemas.novell.com/2005/01/GroupWise/types">J3fTBXKWBLSiAud
    > 8</session></soap:Header><soap:Body><sendItemRequest
    > xmlns="http://schemas.novell.com/2005/01/GroupWise/methods"><item
    > xmlns:q1="http://schemas.novell.com/2005/01/GroupWise/types"
    >
    xsi:type="q1:Mail"><q1:delivered>0001‑01‑01T00 :00:00</q1:delivered><q1:s
    ubject></q
    >
    1:subject><q1:distribution><q1:recipients><q1:reci pient><q1:email>skoltogyan
    @gmail
    >
    ..com</q1:email></q1:recipient></q1:recipients></q1:distribution><q1:message>
    <q1:part
    >
    length="39">0KjQsNC/0LrQsCEKCtCi0LXRgdGCLgoK0J/QvtC00L/QuNGB0Ywu</q1:part></
    > q1:message></item></sendItemRequest></soap:Body></soap:Envelope>
    > ===========================================
    >
    > 4) Answer from Server to WS
    > ]#oE_@@`~P%z`HTTP/1.1 200
    > Date: Fri, 16 Dec 2011 11:39:27 GMT
    > Server: Linux GroupWise POA 8.0.2
    > Content‑Type: text/xml; charset=utf‑8
    > Content‑Length: 458
    >
    >
    > At a workstation (WS) ‑ the program written by us works.
    > This program on SOAP protocol through POA transfers letters outside the
    > GroupWIse.
    > Which data is transferred thus on SOAP protocol has shown above.
    >
    > In what a question (problem) what exactly is impossible:
    > The letter from station on SOAP protocol is normally transferred in
    > POA. Further through GWIA it is normally delivered to the receiver(
    > skoltogyan @ gmail ).
    > However to the receiver (the exterior receiver) the letter comes in the
    > coding(with header):
    > ..
    > Subject: =?ISO‑8859‑5?B?wtXh4g==?=
    > Mime‑Version: 1.0
    > Content‑Type: text/plain; charset=ISO‑8859‑5
    > Content‑Transfer‑Encoding: base64
    > Content‑Disposition: inline
    > ...
    > (this is from my foriegn groupwise mailbox in the gmail)
    >
    > That is necessary: that such letter came in the coding (with Header):
    > ...
    > To: <[email protected]>
    > Subject: =?UTF‑8?B?0YLQtdGB0YI=?=
    > Mime‑Version: 1.0
    > Content‑Type: text/plain; charset=UTF‑8
    > Content‑Transfer‑Encoding: 8bit
    > Content‑Disposition: inline
    >
    > That it is necessary to add in request on SOAP. What the letter,
    > leaving in the Internet through gwia went in such type ?
    >
    > Serg

  • We have three discussions forums with same subject. whenever a post gets new reply in one forum, it should automatically trigger workflow functionality to check conditions and send the same reply to other synchronized forums.

    we have three discussions forums with same subject. whenever a post gets new reply in one forum, it should automatically trigger workflow functionality to check conditions and send the same reply to other synchronized forums.
    Rajiv Kumar

    Hi,
    More details about your discussions forum will make others easier to find a corresponding solution on your requirement.
    If you mean there are three Discussion Board list waiting for synchronizing, I would suggest you create an Event Receiver for the three Discussion Board list.
    Here is a link with code demo about how to copy items from one Discussion Board to another including Replies:
    http://spcodes.blogspot.com/2013/03/programmatically-copy-items-from-one.html
    Here is a step by step sample on creating a simple Item added event receiver for Custom List in SharePoint 2010:
    http://msdn.microsoft.com/en-us/library/ff398052.aspx
    More information on Event Receiver for your reference:
    http://msdn.microsoft.com/en-us/library/gg749858(v=office.14).aspx
    http://msdn.microsoft.com/en-us/library/ff408183(v=office.14).aspx
    Feel free to reply if there are still any questions. 
    Best regards
    Patrick Liang
    TechNet Community Support

Maybe you are looking for