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

  • Home
  • SEARCH
  • 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 8603657
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T02:22:32+00:00 2026-06-12T02:22:32+00:00

I am developing project on GWT(Google Web Toolkit) and I need to call web

  • 0

I am developing project on GWT(Google Web Toolkit) and I need to call web service(JAX-WS). But problem is I don’t know how to call the web services from GWT so I need to know how to access that JAX-WS with in GWT client side ? I’m developing my project on eclips and my service is run on glassfish server.

Please be kind enough to give some basic instructions to solve this problem.

  • 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-06-12T02:22:33+00:00Added an answer on June 12, 2026 at 2:22 am

    The normal way to call external non-gwt ws is via the RequestBuilder class, although this is not difficult it could be tedious when you need to prepare several calls in your application.

    I recommend you to take a look to gwtquery aka gquery which have an Ajax class which allows call to ws in a very easy manner. Take a look to the documentation

    This could be an example of a jax-ws serving json responses

      @BindingType(JSONBindingID.JSON_BINDING)
      public class MyService {
        public Book get(@WebParam(name="id") int id) {
          Book b = new Book();
          b.id = id;
          return b;
        }
    
        public static final class Book {
          public int id = 1;
          public String title = "Java";
        }
      }
    

    And this could be the client call in client side

     import static com.google.gwt.query.client.GQuery.*;
     [...]
    
      post( //GQuery post static method (you have get, ajax, getJSONP, etc)
          "http://url_to_the_jax-ws.server/MyService", 
          $$("{get:{id:5}}"),                     // GQuery json parses the parameters
          new Function(){                         // Callback
            public void f() {
              Properties p = getDataProperties(); // JSON response
              alert("success " + p.get("title"));
            }
          }
      );
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm developing a project on google app engine (webapp framework). I need you people
I am developing a GWT project in which i need a front end developer
Developing a project of mine I realize I have a need for some level
I am developing a GWT-Spring-Hibernate project and I want to use Spring Autowired annotation
I've been developing a project with GWT 2.4 and looking for a way to
I am developing a gwt project and am looking for an appropriate server side
I'm developing project on rails 2.3.8 and I need to get selected item on
I am developing project in WPF and I am facing a problem using a
I am developing a project in which i need to play Audio and Video
I am developing a GWT project that is hosted in GAE, and I would

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.