How to make to post request to WebService

Hi,
How can i invoke a http Post request to webservice url,The default test page does
not mention any thing about this when a application is deployed as a webservice,It
only talks about a soap client.
I know that when a application is deployed as web service in .net ,we can invoke
it using GET,POST or SOAP request,Is it now possible in the same way in JAVA webservices.
If it is possible to invoke using POST please refer me a sample as how to invoke
the URL.
thanks
Suresh

Hi Suresh,
Could you write a servlet filter that would scan the first few bytes
looking for a soap header and if you have one, let it pass through and
if not, then do your old style processing. This is just a suggestion.
See: http://e-docs.bea.com/wls/docs81/webapp/filters.html
Regards,
Bruce
suresh wrote:
>
Hi,
I want to post a plain text and not one with soap headers to the webservice.
The reason i am looking for this is ,right now all my code is java servlets and
clients are making http post to my service,i am now moving this to webservice
and all the clients might not be willing to migrate to making a soap request.so
what i am looking at is that my webservice should be able to support soap request
as well as plain http post without the soap headers.
please provide u'r insights
thanks
suresh
Bruce Stephens <[email protected]> wrote:
Hi Suresh,
We have a simple tool that is helpful, the
weblogic.webservice.tools.debug.Post utility is used to read a file and
to post the message. See:
http://e-docs.bea.com/wls/docs81/webserv/trouble.html
Hope this helps,
Bruce
suresh wrote:
Hi,
How can i invoke a http Post request to webservice url,The defaulttest page does
not mention any thing about this when a application is deployed asa webservice,It
only talks about a soap client.
I know that when a application is deployed as web service in .net ,wecan invoke
it using GET,POST or SOAP request,Is it now possible in the same wayin JAVA webservices.
If it is possible to invoke using POST please refer me a sample ashow to invoke
the URL.
thanks
Suresh

Similar Messages

  • How to fire Chunked POST Requests.

    Hi,
    Can anyone please tell me how to implement a servlet which can fire chunked POST request to the server. I have tried implementing such a servlet but it does not send the request in a chunked format.
    Please let me know what headers should this POST request necessarily have ?? (Transfer-Encoding : chunked would be one).
    Thanks in advance.
    Saurabh

    This normally isn't my area, but I saw some code yesterday which looks like what you want...
    regards,
    Owen
    protected void process (final HttpServletRequest req, final HttpServletResponse resp) throws ServletException,
                java.io.IOException
          resp.setContentType("image/svg+xml");     // This is for SVG files only
          resp.setHeader("Transfer-Encoding", "chunked");
          // rest of code....
    }

  • How to make an HTTP request via SSL

    Hi,
    I´m using an instance of the class CL_HTTP_CLIENT to make an HTTP request to a https server. as long as it requires an SSL authentication, it returns an ICM_HTTP_SSL_ERROR error message.
    How do I tell my program to ask for user´s certificate, and use it in the http request?
    I´m supossed to have hundreds of users online running this application (it´s over SRM 5.0). How can I reach this?
    Thanks you very much.
    Federico.

    Hello Frederico,
    >1. By creating a new client, you mean go to "Environment->SSL Client Identitites" in STRUST, right? >Can I use a previously existing one?
    I meant to create a new client SSL PSE. By default in a new Netweaver abap system, you have 3 of them : ANONYM, DFAULT and WSSE.
    If you need more of them, you can create them with the menu "Go to-->Environment->SSL Client Identitites".
    >2. I need this PSE client to have several 'identitites', I mean, to include several certificates from all my >users. Is it possible? If it´s not; how should I do so?
    It seems that you want a different certificate per user. These client certificates in STRUST are designes to identify a SAP abap system, not human users. If you have 1000 users, you will not create 1000 certificates in STRUST !
    Usually, you use only 2 entries here, one for anonymous HTTPS access and one authenticated HTTPS access. It is unusual to have several different identities for the same abap server. But  it might be possible : for exemple, one identity on the intranet and an other one on the Internet.
    >3. When I had my new PSE client, and my HTTP RFC destination of type 'G' configured to use that >PSE client, and when in abap I instantiate my http client (using CREATE_BY_DESTINATION method, >from CL_HTTP_CLIENT class): How does SAP knows which certificate to use? Because there will be >several users (hundreds) running this code to retrieve their specific data from a third party server.
    >How does SAP knows whom certificate must use?
    The certificate used will be the one defined in the HTTP destination.
    You still seem to make the confusion between server client certificates and users  client certificates.
    a users client certificate is stored in the user's PC (or smartcard) and is used for HTTPS connections from the user's browser to the SSL server, not for an HTTPS connection from the ABAP server to another server.
    Regards,
    Olivier

  • How to make local Object Request as Transportable Request

    Hi,
    I have saved as local Object , Now i need to make has transportable request.
    Can any body tell how to do?
    Regds,
    C.V.
    Message was edited by:
            P.C.V.

    Hi Chakri,
    Drag and drop that object into right screen of Transport connector tool and then click on Click on Truck button to create the Transport request.
    With rgds,
    Anil Kumar Sharma .P

  • How to make a Poster Frame in a Flash 8 Video player

    Hi to all,
    I want to make a poster frame (a simple jpg)
    to display before the FLV video plays.
    So first the user to click the play button or on this poster frame.
    The code below does exactly what I need, but it is in Flash CS4.
    How could I do the same with Flash 8 Pro (ActionScript 2.0)?
    Any help?
    import fl.video.VideoEvent;
    function showPosterFrame(event:Event):void {
        myPoster.visible = true;
    function hidePosterFrame(event:Event):void {
        myPoster.visible = false;
    function playMovie(event:MouseEvent):void {
        myVideo.play();
    myPoster.addEventListener(MouseEvent.CLICK, playMovie);
    myVideo.addEventListener(VideoEvent.PLAYING_STATE_ENTERED, hidePosterFrame);
    myVideo.addEventListener(VideoEvent.COMPLETE, showPosterFrame);
    Iason_K

    are you using an flvplayback component?

  • How to make a Poster Frame to Flash 8 Video

    Hi to all,
    I want to make a poster frame (a simple jpg)
    to display before the FLV video plays.
    So first the user to click the play button or on this poster frame.
    The code below does exactly what I need, but it is in Flash CS4.
    How could I do the same with Flash 8 Pro (ActionScript 2.0)?
    Any help?
    import fl.video.VideoEvent;
    function showPosterFrame(event:Event):void {
        myPoster.visible = true;
    function hidePosterFrame(event:Event):void {
        myPoster.visible = false;
    function playMovie(event:MouseEvent):void {
        myVideo.play();
    myPoster.addEventListener(MouseEvent.CLICK, playMovie);
    myVideo.addEventListener(VideoEvent.PLAYING_STATE_ENTERED, hidePosterFrame);
    myVideo.addEventListener(VideoEvent.COMPLETE, showPosterFrame);
    Iason_K

    are you using an flvplayback component?

  • How to make a multiple request without waiting for a response in java ?

    A more specific question:
    how to make a multiple HTTP request without waiting for a HTTP response in java (using httpURLConnection)?
    Thanks

    Thanks for responding.
    But i want to make further request to the same resource URL. I want to reuse the connection, don't want to create a new connection for each of individual request.
    How can i do that using HttpURLConnection ?
    Thanks.

  • How to make a http request from a pl/sql procedure(URGENT)

    I need to make a http request from a pl/sql procedure, can any one tell me which built-in package and which procedure/function we serve my need?
    Thanks in advance.
    Ram Prasad.

    You should use UTL_HTTP package, but before it install the JVM into DB

  • How to make a POST from a servlet?

    Hi,
    I'd like to simulate sending a form with method="POST" from inside a servlet.
    So far, I know that I can simulate a GET using response.sendRedirect(), but unfortunatelly, this is not what I want.
    Does anyone knows how to do it?
    Thanks in advance,
    Gabriel

    Try the RequestDispatcher.forward()... this passes on the same request object from the callling servlet to the called servlet. It would be the equivalent of having done a post(you dont loose the form values)

  • How To Make A Post - Video

    To ask a question to the whole community, you need to create a post.
    While creating a post is very easy, there are some tips on creating an effective post, so that people can help you with your issue or utilize information provided by you properly.
    Here is a video to explain those tips.
    Once you create a post - you would have automatically subscribed for that thread i.e. you would always be notified about any updates on this topic, through your e-mail.
    If you want to change this settings - please check the following thread:
    How to stop emails alerting you to Forum replies
    I work for HP, supporting HP experts and trying to help this community as much as I can.

    great to see this trick evolve in a first-frame-lasf-frame-method, wich I
    thought about,too lately.
    Will post an update in my article next time ii get the chance.
    —Johannes
    (mobil gesendet)
    Am 27.09.2011 15:33 schrieb "KeithGilbert" <[email protected]>:
    KeithGilbert http://forums.adobe.com/people/KeithGilbert created the
    discussion
    "Re: Video set to stop on last frame appears lighter than last frame"
    To view the discussion, visit:
    http://forums.adobe.com/message/3940255#3940255

  • How to make the concurrent request set run only once

    Hi Team,
    Ijust have a requirement.
    At a time only single concurrent request set should be running and the remaining submitted request sets should be in pending status.
    I mean to say : i have a concurrent request set : "Invoice Req Set"
    If user submits the request set multiple times: Invoice Req Set once
    the second one should not be running until the first request set : "Invoice Req Set" completes.
    Any suggestions ??
    -Sridhar

    Hi;
    Please check below which could be helpful for your issue:
    how to prevent multiple request of one conc program
    Regard
    Helios

  • How to obtain POST request parameters

    Does anyone know how to obtain POST request parameters after form submit like we can get GET parameters after form submission via {module_url, parameterName}?

    "garry.b" <[email protected]> wrote in
    message
    news:gnndbf$i2q$[email protected]..
    > Hi,
    >
    > When using AS3 to generate an HTTP POST request:
    >
    > var service:HTTPService = new HTTPService ();
    > service.url = "
    http://localhost:9090/service";
    > service.method = "post";
    > // service.request = {itemId: "12345"};
    > service.send ({itemId: "12345"});
    >
    > my CherryPy web server complains about unexpected body
    parameters:
    >
    > HTTPError: (400, 'Unexpected body parameters: itemId')
    >
    > Using Firebug's Network display, its Post tab shows the
    following content:
    >
    > Referer:
    http://localhost:8080/log/log-1.0-SNAPSHOT.swf
    > Content-type: application/x-www-form-urlencoded
    > Content-length: 12
    >
    > itemId=12345
    >
    > which looks very strange to me as I would expect the
    Referer, etc.,
    > request
    > headers to show up in the Request Headers section and
    not as POST body
    > content.
    > While this could be some Firebug issue, I think the
    request message is
    > really
    > formatted incorrectly. When the web server gets the
    request, it does
    > recognize
    > 'itemId' as a body parameter but then complains that
    it's unexpected.
    >
    > I've googled the error message, studied HTTPService
    examples, spent
    > several
    > hours playing with it and am stumped. Tracy Spratt
    suggested setting the
    > service 'request' to force a POST and I tried it but am
    getting the same
    > error.
    > How do I make a POST request? Can I get POST data into
    the message body?
    > Stick with URL parameters only?
    What happens if you post to the same service using an html
    form?

  • How to create Actual Posted CCtr field mandatory in Interal Order

    Hi Experts,
    Can anybody tell me how to make Actual Posted CCtr field mandatory in KO01 or while creating Internal Order ?
    Experts help would be great on this.
    Regards,
    Sharvari Joshi.
    Moderator: SImply define it as mandatory field in field status for the order type in question. Please, avoid asking basic questions

    Hi Tarang,
    I think there is a transaction/screen variant maintained for that. Ask your ABAP team member to debug and check if there is any coding done to make it mandatory. There is no customizing for this one. There must be some code written to make it mandatory.
    But you are correct, if you maintain the sort string in BOM, it gets copied on to the planned order, the reservation and the production order as well.
    Regards,
    Pradeep.

  • Something keeps trying to download on my mac and I don't know what it is. It is not in the apple store and just comes out nowhere and request for my password to download something and I don't know what it is. How to make this stop?

    Something keeps trying to download on my mac and I don't know what it is. It is not in the apple store and just comes out nowhere and request for my password to download something and I don't know what it is. How to make this stop? It pops up every single day.

    Erica,
         I can, with 99.99% certainty, tell you that you are absolutely right in not wanting to download or install this "Helper," whatever it is (but we can be equally certain it would not "help" anything).
         I cannot comment as to Oglethorpe's recommendation of 'adwaremedic'; I am unfamiliar with it.  His links to the Apple discussion and support pages warrant your time and attention.
         It might be really simple -- Trying looking in your Downloads folder, trash anything that you don't know with certainty is something you want to keep, and then Secure Empty your Trash. Then remove the AdBlock extension, LastPass, and Web of Trust extensions to Safari and re-boot. If the issue goes away, still be extraordinarily careful in the future.
         Unfortunately, it's probably not going to be that simple to get rid of, in which case I'd then try the line by line editing in HT203987. 
         I have no further suggestions (other than a complete wipe and re-install...but that's a pain because trying to restore from Time Machine would simply ... restore the Mal).
       For the rest of us, please post when you find a solution.
         Best.
         BPW
      (Also, try to edit your second post -- black out your last name on the screenshot and re-post it for others)

  • How to make a BAPI as Webservice

    Hi Experts,
    How can I make a BAPI as webservice? ECC5 has an option but I dnt know how to make use of it(T-code BAPI--> Tools). Please provide me with some info so that I can go ahead and start using the BAPI as webservice.
    Thanks,
    Srikanth

    Hi Venkata
    Hope it will help you.
    Pls reward if help.
    Expose BAPI as a Web Service
    1. Go to transaction SE80.Select Function Group from drop down menu; enter the function group in which the BAPI (which is to be exposed as Web Service) comes. You can find this Function Group from function module (BAPI) itself. Go to transaction SE37 and enter function module name (BAPI name) and click on display. You can see the function group here under attribute tab .
    2. Then from Function Modules list choose the BAPI to which you want to expose as a   
        Web Service .
    3. On right clicking on the BAPI a context menu appears. Click on create and Web Service option .
    4. New window will pop up. Click on Continue.
    5. Give the name for Enterprise service and short description. Click on continue.
    6.  New window will pop up.Click on Continue
    7. New window pop up. Click on 'Release service for runtime'. Click on Continue.
    8. This window pops up. Click on Complete.
    9. New pop up window come up asking for Package. Give the package name and click on SAVE button.
    10. New window pop up asking for Request . Give request and click on OK.
    11. New window comes displaying service definition.
    12. Now go to transaction WSADMIN and choose your web service. Go to Web Service menu and choose WSDL option.
    13. New pop up window come.Check on Include SAP Feature in WSDL and click on OK.
    14. Internet browser will be opened and asking for User Name and Password .
    15. After giving values for user name and password, you will get WSDL file opened in internet explorer. SAVE this locally on your computer for further use.

Maybe you are looking for

  • Error in GTS when creating a sales order

    Hello All: Let me first say that I have researched the forums and web for my answer to no avail...there is not a lot of information out there for GTS issues.  When creating a sales order in ECC 600; I am receiving errors...I have looked at SLG1 in or

  • Swapping the GPU (iMac 24" 2.93 Early 2009)

    Hi everybody! I bought an iMac a few months ago; I chose the 24" model with 2.93Ghz, and the GT 120 Graphic card. My question is: Is this graphic card soldered to the motherboard? What kind of Socket does it use? If one day I realize I need more GPU

  • House Bank Currency

    Hi, I want to maintain different currncy for house bank IN fi12 than the GL account currency maintained in FS00. What are the points to be considered for this. Whether it is possible and is there any problem at payment or transaction level. Regards

  • Connect MacbookPro To HDTV to use as remote desktop

    Just wondering if anyone could help me out, I would like to connect my MacbookPro, Newest model bought in july, to my HDTV and was just wondering what is the cheapest way to do this? I've seen a couple of places online telling you to buy 4 different

  • Parallel period for previous year using two months

    Dears, I have an issue, Parallel period is working just fine and returning values of last year same month values like this one SUM(MTD(ParallelPeriod([Time].[Month].[Month],1,[Time].[Month].CurrentMember)),[Measures].[Invoiced net weight]) it works f