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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T15:13:54+00:00 2026-05-14T15:13:54+00:00

I am developing java web services (JAX-WS) to insert data into mysql DB and

  • 0

I am developing java web services (JAX-WS) to insert data into mysql DB and retrieve it. This web service has two methods i.e. fetchFromDB and insertIntoDB. Services seems to be running fine when I test them using netbeans IDE.

Address: /CalculatorWSService
WSDL:    /CalculatorWSService?wsdl

but when I try to access it using AJAX’s xmlHttpRequest object by providing url http://localhost:8080/CalculatorApp/CalculatorWSService. It is not able to access it. I have developed C# web services and It has been so easy to access them with a url but java web services don’t seem to follow that.

My question is

What url to use to access the web service operations in AJAX? (Do I need to use ‘?wsdl’ in the url?
Is there a javascript ajax library to easily access JAX-WS web services?
Apache Axis web services are a better choice over JAX-WS?
Please help me, Thanks, Jay

  • 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-14T15:13:54+00:00Added an answer on May 14, 2026 at 3:13 pm

    I was having the same problem of yours, couldn’t invoke a Jax-ws web service from Javascript, but i’ve found a way to do this.

    The Url to use can be your same (EndPointAddress) “http://localhost:8080/CalculatorApp/CalculatorWSService“

    but when you create the XMLHttpRequest object from javascript you have to:

    * Use the POST method to open the URL , i tried with GET but it didn’t work for me.
    * Set the SOAPAction Request Header to the one in your wsdl, even if its empty “”.
    * Be very careful with the request body to send, the soap Envelope must be correct.

    hope this can help you!.

    Bye.
    Paul Manjarres.

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

Sidebar

Related Questions

I'm developing an axis java web service with two methods, both have an custom
I am developing a Java webservice application (with JAX-WS) that has to use two
We are busy developing a Java web service for a client. There are two
I am currently developing a Java web application that exposes a web service interface.
I'm a C++/Java guy trying to get started with developing a web service. I've
I am developing web method for webservice in java. In this web method I
I am developing a Java web services application that is (mostly) to be used
I'm developing a java web service, with client certificate security enabled. I don't want
I am developing an application that calls a java web service (using Jersey1.8). I
I am developing a Java application that is to have two web interfaces: 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.