How to POST Message to HTTP Adpater?

HI @,
I have a requirement where I need to post XML message directly to HTTP adapter from webdynpro application.
I have tried using HTTP Client availbale and it works fine. But I need help on how to achieve the same in Wed Dynpro for Java?
Regards

Okay BeyondThe obvious,
You can very well use HTTP Approch to send the data from your Application.
Do the following to configure your scenario
1)Create Source Structure as per the Req. and use wat ever the Target Structure
2)Create MT & MI For the corresponding
3)Create Mapping Objects
4) No need to create Sender HTTP Adapter & Sender agreement
5) Create Receiver CC & Receiver Agreement
6) Create Determinations.
Just Reffer the Source XML Structure in your Sender Application Programming inorder to send the data to XI in that Format,
and Use the XI details inside your Webservice programming to send the data to XI( like Sender service, sender interface, sender namespace, xi IP, Xi client, User,pwd)
So by this Once you send the HTTP Request to Xi means data will come to xi and will process further
Regards
Seshagiri

Similar Messages

  • How to post message to Adobe Reader or AVWindow?

    There is a modeless dialog created by my plugin.
    I want post message in dialog to Reader or AVWindow.
    How to post message and where can i receive these message?
    I'm using Windows XP
    thanks.

    Whatever OS/platform methods you want.

  • How to post message (or Notify)  a frame?

    Hi I would like to know about how to notify a frame of some event? Say I would like to do the following.
    On clicking buttonA
    1. disable some other buttonB.
    2. Perform some lengthy operation in multiple other threads and post message saying operation completed
    3. Enable buttonB on receiving the message
    As the operation involves controlling multiple hardware components, which run in different threads I dont want to modify the code to enable buttonB using swingUtilities.invokelater.
    I would like to know how I can post a message to the message queue of Frame (or panel) on which buttonB is present so I can process it enable buttonB.
    Also how do I check for and act on the messages in message queue.
    I have programmed something similar in MFC. I am not sure if something similar is possible in swing. So please let me know if this is possible. I would be thankful for any suggestions or leads.
    NOTE: I use a windows 2000 system. I know I can do this by synchronizing the threads, but that creats lot of overhead in my program, whereas this asynchronous method will help.
    Thankyou

    Well, notice that in the sample code I posted I did not pass a handle to the button to the second thread, I passed a handle to the dialog box as a whole. The enableB function is not a function of the button, but of the dialog. This technique IS sending a message to the dialog box, it is just doing it directly rather than putting it on a message queue. (If you're thinking in Windows C terms, its like "sendMessage" as opposed to "postMessage".) That enableB function could do whatever you want: it could enable six buttons, it could alter values in display fields on the window, it could read a file and connect to a web site, whatever.
    So for your "generate a number" scenario, I would suggest very similar code. The "enableB" function could easily take a parameter. In HardWork we generate the number and then call enableB passing in this number. In MyDialog we accept the number and display it or whatever. Of course "enableB" is not an appropriate name for the function in such a case. In the case your describing it could just as well be named "processDone".
    If the second thread is supposed to send a message to the dialog box and then continue running, presumably sending more messages in the future, there is just the slightest variation. The call to "enableB" (or whatever we call it at this point) is inside a loop instead of being the last line in the function.
    Well, here's a complete (while trivial) example -- I just tried this and it really does run succesfully.
    Click the "start" button and it starts up a thread that generates random numbers between 0 and 9. It disables the Start button while the thread is running. When the thread happens to generate zero, it quits, and the Start button is re-enabled. The HardWork thread communicates with the dialog purely through the "update" function -- you could put any code in there you like.
    import java.util.*;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class Dork extends JFrame implements ActionListener
         JButton start;
         JLabel number;
         public static void main(String[] args)
              Dork dork=new Dork();
         public Dork()
              super("Dork");
              setDefaultCloseOperation(EXIT_ON_CLOSE);
              Container content=getContentPane();
              number=new JLabel("0");          
              content.add(number,BorderLayout.CENTER);
              start=new JButton("Start");
              start.addActionListener(this);
              content.add(start,BorderLayout.SOUTH);
              pack();
              setLocationRelativeTo(null);
              show();
         public void actionPerformed(ActionEvent e)
              start.setEnabled(false);
              Twiddle twiddle=new Twiddle(Dork.this);
              twiddle.start();
         public void update(int n)
              number.setText(Integer.toString(n));
              if (n==0)
                   start.setEnabled(true);
         class Twiddle extends Thread
              Dork dork;
              public Twiddle(Dork dork)
                   this.dork=dork;
              public void run()
                   Random r=new Random();
                   int n;
                   do
                        n=r.nextInt(10);
                        dork.update(n);
                        try
                             sleep(1000);
                        catch (InterruptedException oops)
                   } while (n!=0);
    }

  • How to post messages between two threads other than GUI main thread?

    Does anyone have examples of post messages between two threads (other than GUI main thread)?  Would you please post the link?
    Thank you,

    Hello, you can call PostDeferredCallToThread passing the your data in callbackData parameter.
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • How to post  xml over http

    Hi experts,,
    My idea is to post XMl file from client application to server.
    user.XMl file will be created then and there dynamically based on user entered data.
    For this i have a .java program in client application.
    And one important thing is My XMl file contain image in binary data,, which is in Base64Encoded format.
                      <?xml version="1.0" encoding="UTF-8"?>
                    <FileAttachment>
                                         <UserName>krish</userName>
                                         <password>rao</password>
                                        <image type="jpg">
                                                   <PictureData>
                                                    QAAAAIAGtaMS2/u6RnIAAAAIYAAAAKAAAAYm
                                                          l0bWFwLmJtcHPybWOAADMg1gBiVihm
                                                      ZJAAiwcA8RE+CIaB/6iAYj4AUEsBAhQAFAAAAAgAa1oxLb+7
                                                     pGcgAAAAhgAAAAoAAAAAAAAA
                                                      AAAgALaBAAAAAGJpdG1hcC5ibXBQSwUGAAAAAA
                                                    EAAQA4AAAASAAAAAAA
                                             </PictureData>
                                        </image>
                     </FileAttachment>My .xml like above.. i have to post it to server . Some thing like http://myserver:8080/Requesthandler.java which recive the xml and parse it and do some other things.
    And one thing is My server at some location and my client application at other location.
    Plz do me some help as early as possible

    Thak u
    but i am sitting in front of laptop but i cant find perfect code match to me.
    Give me link if possible,
    <Product>
      <SKU>99238</SKU>
      <Description>Super Gidgetidoo</Description>
      <Picture>
    Content-Description: File encoded with ENCODE64.EXE.
    Content-Disposition: attachment; filename="foo.zip"
    Content-Transfer-Encoding: BASE64
    Content-Type: application/octet-stream
    UEsDBBQAAAAIAGtaMS2/u6RnIAAAAIYAAAAKAAAAYm
    l0bWFwLmJtcHPybWOAADMg1gBiVihm
    ZJAAiwcA8RE+CIaB/6iAYj4AUEsBAhQAFAAAAAgAa1oxLb+7
    pGcgAAAAhgAAAAoAAAAAAAAA
    AAAgALaBAAAAAGJpdG1hcC5ibXBQSwUGAAAAAA
    EAAQA4AAAASAAAAAAA
      </Picture>
    </Product> If my xml like above and its created dynamically based on client input.
    I find some code to post above xml, But it post an XMl file in hard disk
    it uses output stream to post , ie read every byte in xml and write to out put stream.like below
    response.setContentType("text/xml");
          response.addHeader("Content-Disposition", "attachment; filename="
              + fileName);
          response.setContentLength((int) xml.length());
          FileInputStream input = new FileInputStream(xml);
          buf = new BufferedInputStream(input);
          int readBytes = 0;
          while ((readBytes = buf.read()) != -1)
            stream.write(readBytes);But i want to post xml file as it is , means whole xml document as an element
    let me help

  • How to post message from SAP to solution manager

    Dear Friends,
    We have configured solution manager service desk and the users were able to send messages so that we can view it in solman ITSM.
    Now we want to bifurcate the messages from different people, hence we woule like to use of Problems in incident management of solman.
    How a end user can create a message so that it comes and fall in problems folder of incident management,
    Normally create support message from SAP will make the message to be visible in incidents of solman ITSM, but we want the message to fall in problems section of ITSM in solman.
    Please help.
    Thanks
    Suresh

    Hi,
    In 7.1 we do have dedicated services as Problem management, with the transaction type SMPR. you can create ZMPR and proceed similar to SMIN ( incident) in ITSM.
    also refer here  Problem Management in SAP Solution Manager 7.1 - Part 2
    Thanks
    Jansi

  • How to post  message to multiple receivers

    For a file 2 file scenario how to send a file to multiple receivers and what are the configurations  to be done at reciever side
    please any body help
    Thanks
    Pradeep Chakravarthy

    Hi ,
    To send messeges to multiple receivers , you need to specify the recivers in the configured receiver  of receiver determination in ID. Also you can use the condition to select the different receivers depending upon the successful conditions.
    Inside ID :
    go to Edit receiver Determination - > Select your Business Service -> enter condition in xpath at configured receivers. and provide you condition in XPATH. You can also use your context variables here to refer to some conditions.
    Hope this will help you.
    Regards
    Aashish Sinha
    PS : Reward points if helpful

  • How do I set the Http Header POST URL in SAAJ?

    Hi ,
    I am a newbie in the field of web services. I was trying to create a SOAP request with Http Header POST information having a POST url like
    the following:
    POST /OMASTI.xml HTTP/1.1
    Content-Type: multipart/related; boundary="eladeladeladeladeladeladeladeladelad"; type=text/xml; start=11814460
    Content-Length: 54596
    Host: unspecified
    SOAPAction: ""
    to that effect I did the following in the SAAJ client:
    MimeHeaders md = message.getMimeHeaders();
              md.setHeader("SOAPAction" ,"\"\"");
              md.setHeader("POST" ,"/OMASTI.xml");
    However what I got was :
    POST / HTTP/1.1
    Accept: text/xml, text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
    SOAPAction: ""
    POST: /OMASTI.xml
    Content-Type: multipart/related; type="text/xml"; boundary="----=_Part_2_32124414.1153146262750"
    Content-Length: 3352
    Cache-Control: no-cache
    Pragma: no-cache
    User-Agent: Java/1.5.0_07
    Host: www.google.com
    Connection: keep-alive
    I have two POSTs in the header. How do I fix it? Please Help ASAP.
    Regards,
    Zeus

    Hi,
    Please forgive my ignorance. I did the same as you said. and then checked the Http request being sent out using ethreal software... it was the same as I had told earlier. Is only POST supported by the connection object? And the does the URL that comes in the Mime header as POST refer to the URL to which the request was sent? what I mean is that if the mime header says
    POST /OMASTI.xml HTTP 1.1, does it mean that the URL that was passed to the connection object was "/OMASTI.xml" ? I had given the url as http://www.google.com to test the request being sent.. I only have a sample SOAP request which shows a HTTP header with the post url as I said before. I need to create a SOAP request with the same sort of Http header and the body needs to follow a certain OMA-STI protocol. My experience in the SOAP domain is almost nil. So please enlighten me.
    Thanks in advance,
    zeus

  • How to Post XML Messages with SOAP Headers to a Trading Partner URL

    Hi All,
    Greeting to the Oracle B2B Community. We are currently working on how to post a Custom XML Message with SOAP Headers to a Trading Partner URL. I would really appreciate if anybody could provide me some inputs or links to some documentation on how to achieve the above requirement. The details are below:
    1. Our Internal Application generates a Flat File (PO Extract).
    2. The Extract then needs to be transformed to an XML Message. We are planning to use BPEL to do the transformation to XML Message.
    3. Once it is transformed to an XML message it needs to be posted to the Trading Partner URL as an HTTP Post and with SOAP Headers.
    We are planning to use B2B to do the posting but I am not sure on how to do the set-ups and what all parameter files in B2B needs to be updated in order to achieve the same. Also it is mandatory that we send SOAP Headers in the XML Message.
    Thanks In Advance for your help.
    Regards,
    Dibya

    Hello Dibya,
    As you are already doing the transformation from Flat file to XML in BPEL which is typically the capability of B2B, please use the Soap binding in BPEL to send the document to Trading partner.
    Rgds,Ramesh

  • How to Invoke service using HTTP POST in BPEL?

    I have a client using .net service with a web page http://.../httpreceive.aspx which is invoke through an http post. How can we post xml message using http post to the url in BPEL. Are there any documentation on doing this? Will this require writing a java class to do an http post the xml message to the url?
    Edited by: sns724 on Feb 12, 2009 11:56 AM

    I created a wsdl with the http-binding to do a HTTP Post and I'm getting a com.collaxa.cube.ws.wsif.providers.http.WSIFOperation_HTTP@1ac9964 : Could not invoke 'process'; nested exception is: java.lang.NullPointerException.
    Here's my wsdl with the binding:
    <definitions name="TestHTTPost" targetNamespace="http://test.com"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:tns="http://test.com"
    xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
    xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
    xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
    xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
    <types>
    <schema attributeFormDefault="qualified" elementFormDefault="qualified"
    targetNamespace="http://hyphen.com"
    xmlns="http://www.w3.org/2001/XMLSchema">
    <element name="AddressBookEntry">
    <complexType>
    <sequence>
    <element name="AddressBookNumber" type="string"/>
    <element name="Name" type="string"/>
    <element name="AddressLine1" type="string"/>
    <element name="AddressLine2" type="string"/>
    <element name="City" type="string"/>
    <element name="State" type="string"/>
    <element name="PostalCode" type="string"/>
    <element name="Phone" type="string"/>
    <element name="Fax" type="string"/>
    <element name="Email" type="string"/>
    <element name="ElectDest" type="string"/>
    </sequence>
    </complexType>
    </element>
    <element name="PostMessageResult">
    <complexType>
    <sequence>
    <element name="Result" type="string"/>
    <element name="Errors">
    <complexType>
    <sequence>
    <element name="Error">
    <complexType>
    <sequence>
    <element name="ErrorDescription" type="string"/>
    <element name="ErrorSource" type="string"/>
    </sequence>
    </complexType>
    </element>
    </sequence>
    </complexType>
    </element>
    </sequence>
    </complexType>
    </element>
    </schema>
    </types>
    <message name="HTTPPostServiceRequestMessage">
    <part name="payload" element="tns:AddressBookEntry"/>
    </message>
    <message name="HTTPPostServiceResponseMessage">
    <part name="payload" element="tns:PostMessageResult"/>
    </message>
    <portType name="HTTPPostService">
    <operation name="process">
    <input message="tns:HTTPPostServiceRequestMessage" />
    <output message="tns:HTTPPostServiceResponseMessage"/>
    </operation>
    </portType>
    <binding name="HTTPPost" type="tns:HTTPPostService">
    <http:binding verb="POST"/>
    <operation name="process">
    <http:operation location="/httpreceive.aspx"/>
    <input>
    <mime:mimeXml part="payload"/>
    <mime:content type="text/xml"/>
    </input>
    <output>
    <mime:mimeXml part="payload"/>
    <mime:content type="text/xml"/>
    </output>
    </operation>
    </binding>
    <service name="HTTPPostService">
    <port name="HTTPPost" binding="tns:HTTPPost">
    <http:address location="https://testxml.solutions.com"/>
    </port>
    </service>
    <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    PARTNER LINK TYPE DEFINITION
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
    <plnk:partnerLinkType name="HTTPPostService">
    <plnk:role name="HTTPPostServiceProvider">
    <plnk:portType name="tns:HTTPPostService"/>
    </plnk:role>
    </plnk:partnerLinkType>
    </definitions>

  • HTTP 414 Status code for POST messages greater than 4096 bytes.

    Hello,
    I am using Sun One 6.0 sp2 and Weblogic 6.1 sp3 for my application. All the requests
    are being sent to the Weblogic server using the NSAPI plug-in.
    For all POST messages with size greater than 4096 bytes, I am getting a HTTP Status
    Code 414.
    I have set the MaxPOSTSize to 10240 both on the Weblogic server side, but it still
    gives same error.
    Can someone please guide me as to how to enable processing of POST messages greater
    than 4096 bytes ?
    Thank You.
    Sanjay.

    Hi, I am trying to PUT to update contact info and I get following error:
    2015-01-16 11:00:17,970 INFO [main] oracle.eloqua.connector.eloqua.EloquaConnector.putWithBasicAuth(97) | accessHttpsPut.url=https://secure.eloqua.com/API/REST/2.0//data/contact/7606838, text={"id":"7606838","accountName":"openIdStr001","emailAddress":"[email protected]","type":"Contact"}
    2015-01-16 11:00:18,931 ERROR [main] oracle.eloqua.connector.eloqua.EloquaConnector.putWithBasicAuth(140) | ClientProtocolException
    org.apache.http.client.HttpResponseException: Request is malformed.
    Is there any idea?
    Thanks so much.
    Sincerely.

  • HTTP Submit Button - How to post data to a Web Server

    HTTP Submit Button - How to post data to an IIS Server
    Steveoruni - 09:50am Sep 4, 2007 Pacific
    Hello,
    I have created a simple form in LiveCycle designer. The form only has some check boxes, radio buttons and text fields for users to fill out. Everyone in my office is on webmail so the Email Submit button is not a smooth option for getting the xml data back to me.
    I would like to use the HTTP Submit button to allow users to submit their form data back to me but I am having trouble. I would like the xml files to end up in a directory on the web server.
    I set up an IIS 6 server and granted the Write right to the anonymous web user account. When I fill out the PDF form and click the HTTP Submit button it doesn't seem to work. Are there any special configuration changes I need to make to my IIS server to allow this data to be posted?
    Should this plan work? Should I be able to have users use the HTTP Submit button to post their data right to my IIS web server or is there some Adobe server I need to buy for this simple form? I'd also be happy if this could work with Apache; it doesn't need to be IIS. I guess my main issue is that I don't know how to get either web werver to accept data in an HTTP post and save it as a file.
    Also, I noticed that when I configure a standard button and set the Control Type to "Submit", there is an option on the Submit Tab to change the Submit As setting to "PDF". Does this mean that my users can fill out my form with Acrobat Reader and HTTP Submit the form to my web server as a PDF complete with their data? If not that's fine, I would be sufficiently happy if the users could post their XML files to the web server so I can open them in the form with Acrobat Professional.
    I am lost and would appreciate any helpful feedback.
    Thanks,
    Steve

    HI again,
    I want to have a pdf fillable form opened on a link.Once user has entered data, the user clicks a button(or some action to invoke saving). At this point I want the filled pdf file to be saved on a certain directory.
    How can save a filled pdf form in pdf format on a certain directory?
    Is it possible to dynamically give the final pdf a name so that it doesnt overwrite everytime it saves the file?

  • How would I do a http post with a xml file

    How would I do a http post with a xml file.
    I have a url called https://localhost:8443/wss/WSS and the XML file is sent as part of the HTTP POST body.
    How would I send this XML file when posting?

    most people just add feedback to the comments they've asked about already, rather than ignoring all the feedback and making a new post with the exact same information:
    http://forum.java.sun.com/thread.jspa?threadID=5247331&messageID=10020973#10020973
    If you want to add in an XML file to a POST command, you'd add it just like any other file you'd attach to a post request, especially (if you're request is the same as your last post) if you're just doing a jsp page. I'd do it something like this:
    <form method=POST ENCTYPE="multipart/form-data" action="https://rcpdm.mnb.gd-ais.com/Windchill/servlet/IE/tasks/DJK/fcsAddContentComplete.xml">
    <H3> File Name </H3>
    <input type=file name=filename>
    <input type=submit value="Do it!">
    </form>Then again, this solution has literally nothing to do with java, and you still need to make sure that your servlet knows what to actually do with that information you're sending it.

  • How would I do a http post of the below listed XML string within a JSP?

    Hi,
    How would I do a http post of the below listed XML string within a JSP?
    <DoService xmlns="http://www.gdinrw.org/wss" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" service="WSS" version="1.0">
    <ServiceRequest DCP="HTTP_POST" mimeType="text/xml" encoding="UTF-8"><![CDATA[REQUEST=GetCapabilities&SERVICE=WMS]]></ServiceRequest>
    <AuthMethod>urn:opengeospatial:authNMethod:OWS:1.0:password</AuthMethod>
    <Credentials>guest,guest</Credentials>
    <FacadeUrl>https://bern:8443/wss_umn_wms/WSS</FacadeUrl>
    </DoService>
    Thanks,
    John

    Yes,
    I need to set up data as POST format before I POST it.
    To be more specific I know how to post within a JSP if an xml element is like:
    <AuthMethod>urn:opengeospatial:authNMethod:OWS:1.0:password</AuthMethod>
    where the field is AuthMethod and the value is urn:opengeospatial:authNMethod:OWS:1.0:password
    but what I am not sure of is when the field has values embedded within it like:
    <ServiceRequest DCP="HTTP_POST" mimeType="text/xml" encoding="UTF-8"><![CDATA[REQUEST=GetCapabilities&SERVICE=WMS]]></ServiceRequest>:
    It has a field of ServiceRequest and a value of ![CDATA[REQUEST=GetCapabilities&SERVICE=WMS]]
    but it also other value embedded with ServiceRequest like mimeType="text/xml" .
    Thanks,
    John

  • How can I have my partner messages through HTTPS

    My partners would like to send messages through HTTPS and I see the following in one of the threads. Is this good even for HTTP(S) or only HTTP?
    "ou cannot create HTTP listening channel. There is one default HTTP listening channel which you should use -
    http://hostname:soa_server_port/b2b/httpReceiver or http://hostname:soa_server_port/b2b/transportServlet
    Your remote TP may post documents to above URL's.
    Thanks
    Venkat

    Venkat,
    It stands true for HTTPS as well. The partner should post documents on url (if SSL is enabled on SOA server)-
    https://hostname:soa_server_port/b2b/httpReceiver or https://hostname:soa_server_port/b2b/transportServlet
    If you are using any SSL off-loader at your gateway then the host and port will change accordingly.
    Regards,
    Anuj

Maybe you are looking for

  • My ipod wont let me update apps or buy songs

    the apps keep waiting but never download and so do the songs

  • Cisco ASA 5505 Site to Site

    Hello, I am having some issues configuring two ASA's for Site to Site and am seeking some help. I greatly appreciate your times and efforts. When I do a L2Lsite2# show crypto isakmp sa There are no isakmp sas L2Lsite2# show crypto ipsec sa There are

  • USB 2.0 problem (K7N2G-ILSR and HP PSC 2210)

    I'm using a K7N2G-ILSR mainboard in combination with a HP PSC 2210 all-in-one printer. The printer sometimes stops printing and produces an error. The print can not be deleted and I have to reset the computer. I'm using the latest HP drivers for the

  • IPad 2 won't Bluetooth link to BT-Q818XT GPS. Help?

    I have been trying unsuccessfully to pair my recently acquired Qstarz Bluetooth GPS (BT-Q818XT) with my iPad2.  However, no amount of tries following the directions has allowed the iPad2 to establish a Bluetooth connection.  I am new to the world of

  • Could not connect to host localhost on port 21212

    Hi Experts, I am trying to install SAP NW 2004s SR1 with Linux [Red Hat Enterprise Linux AS release 4 (Nahant Update 4) , Kernel (2.6.9-42.EL)] and Oracle 10.2. I am getting the following error: ============= SAP NetWeaver SAPinst Installation GUI Co