Sunday, February 28, 2010

quickly simulate a http POST request

While there may be many different ways to do this, one of the easiest ways would be to use SOAP UI. This is a great tool for testing Web Services, but lends itself well to what we want to achieve here.

1) Download SOAP UI and quickly create a project > test suite > test case > test step (HTTP request). Choose defaults for all values and you should be done in less than a minute.



2) Now in the Http test Request window, select the method as POST and put in the target URL. There is a space to enter the body of the request. In the example below, I have chosen "text/xml" for media type and have pasted a JSON string in the body. You can also set any headers that you need to set.



3) Hit the green arrow in the top left hand corner of the window. Your test is underway.
4) You will see the response, if any, in the response tab.

As mentioned earlier in this post, SOAP UI is an excellent tool to test Web Services. Give it a WSDL and it generates a whole suite of tests to test each and every call of the wsdl. Pretty cool huh? It can do much more than what we have touched upon here. Its an essential tool for any development involving web services.



8 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. Very nice post here and thanks for it .I always like and such a super contents of these post.Excellent and very cool idea and great content of different kinds of the valuable information's.
    Best Devops Training in pune
    Best Devops Training institute in Chennai

    ReplyDelete
  3. We are a group of volunteers and starting a new initiative in a community. Your blog provided us valuable information to work on.You have done a marvellous job!
    Selenium training in Chennai
    Selenium training in Bangalore
    Selenium training in Pune
    Selenium Online training

    ReplyDelete
  4. Thank you for benefiting from time to focus on this kind of, I feel firmly about it and also really like comprehending far more with this particular subject matter. In case doable, when you get know-how, is it possible to thoughts modernizing your site together with far more details? It’s extremely useful to me.
    python Training in Pune
    python Training in Chennai
    python Training in Bangalore

    ReplyDelete
  5. Myself so glad to establish your blog entry since it's actually quite instructive. If it's not too much trouble continue composing this sort of web journal and I normally visit this blog.keep it up!!

    android training in chennai

    android online training in chennai

    android training in bangalore

    android training in hyderabad

    android Training in coimbatore

    android training

    android online training

    ReplyDelete
  6. Thanks for sharing such a worthy information. Keep update like this.....
    IELTS Coaching in Hyderabad
    IELTS Coaching in Bangalore

    ReplyDelete