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 7544603
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T08:42:52+00:00 2026-05-30T08:42:52+00:00

I have created a java web service with netbeans 7.1 (glassfish3.1). It is supposed

  • 0

I have created a java web service with netbeans 7.1 (glassfish3.1).

It is supposed to be visited via clicking a URL (like: http://localhost:8080/ImageService/GetImage?visitDate=‘2012-01-01’) to generate an image for web users. And there are some parameters in the URL that I need to get to use inside the WebMethod.

    @WebMethod(operationName = "GetImage")
    public void GetImage() {
      // Date visitDate = GET["visitDate"];
      ...
    }

Or, how can I make the java web service invoked via http get method?

PS: In .net, this config will enable the feature – calling a web service via URL. I’m asking for a java version.

<webServices>
 <protocols>
  <add name="HttpPost"/>
  <add name="HttpGet"/>
 </protocols>
</webServices>

Is this doable? How can I get that work?

Thanks!

Finally, I have given up this, turn to use jsp to do that. But still hoping someone can tell me – if web-service way is possible or not.

Thanks!

  • 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-30T08:42:53+00:00Added an answer on May 30, 2026 at 8:42 am

    The @WebParam annotation is defined by the javax.jws.WebParam interface. It is placed on the parameters of the methods defined in the SEI. The @WebParam annotation allows you to specify the direction of the parameter, if the parameter will be placed in the SOAP header, and other properties of the generated wsdl:part.

    @WebMethod(operationName = "GetImage")
    public void GetImage(@WebParam(name = "visitDate")String visitDate) {
    
      //...
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created a simple web-service using Java. i want to load jars related
I have created a Web Service (with Java, Axis). Depending on the content of
I have a java web service application, i created a .WAR file. and now
I have a java web service application, i created a .WAR file. and now
In java i have created a JAX- web service, which is up and running,
I have created some simple app in Java, and 'deployed' it using Java Web
I have recently created a web project in Java using eclipse. I have a
I have created a small game in Java and I would like to add
I have a WCF client connecting to a Java based Axis2 web service (outside
We have to have a register method available via web service that is written

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.