Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5983651
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T22:15:42+00:00 2026-05-22T22:15:42+00:00

I want to do a POST request to a web service in grails, but

  • 0

I want to do a POST request to a web service in grails, but it seems like the available JAVA solutions are on a very low abstraction level, like building the POST request myself (here is the sample I found: http://www.exampledepot.com/egs/java.net/Post.html)

Is there a better solution for this problem in Grails? I searched through the manuals and other stuff, but did not really find something. Just wondering, because normally I did not see much code like this wen developing Grails.

So if there is no other solution, then this will also be O.K., abstracted by me and hidden somewhere in our libraries, but I guess there is a better solution somewhere.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T22:15:42+00:00Added an answer on May 22, 2026 at 10:15 pm

    There’s the Groovy-specific HTTPBuilder, which provides a nice interface built on the Apache HTTPClient. It even has a REST client, if that’s appropriate for the service your are trying to access. There’s even a Grails plugin to wrap that all up for you.

    If the service is REST-enabled there are a range of Java projects and APIs that can simplify things.

    On the other hand, if the web service you are trying to access is SOAP-based, you can leverage GroovyWS, which is also wrapped in a Grails plugin available here.

    I’ve just listed a bunch of options. What will work best depends a lot on the service you are trying to connect to. I’d recommend starting with a pre-built Grails plugin and only branching out if you find it doesn’t meet your needs.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to invoke an ASP.NET web service via an http POST request using
I have the following problem. A web service is sending a JSON POST request
I want to send a request to a web service, and read the response.
I want to send a request to a web service, and read the response.
When my app starts up, I post a login request to a web service
I want to do an HTTP POST that looks like an HMTL form posted
I have an action handling a form post, but I want to make sure
We have a ReST Web Service that uses POST - to insert data into
I'm trying to send a POST request to a simple WCF service I wrote,
I want to access a web service over HTTPS. I have been given a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.