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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T16:09:26+00:00 2026-06-08T16:09:26+00:00

After generating the artifacts for a Java WS client, why is the wsdllocation reference

  • 0

After generating the artifacts for a Java WS client,

  • why is the wsdllocation reference required?
  • why is the WSDL needed at runtime?

I might see a reason for some validation, but shouldn’t that be optional?

  • 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-08T16:09:28+00:00Added an answer on June 8, 2026 at 4:09 pm

    Summary: While from a design perspective the WSDL is not necessary for a web service client, the implementation effected by Sun for a web service client has a hard dependency on the WSDL. The apparent purpose is to generate some of the runtime dependencies dynamically.


    First: it is considered a good practice to package your WSDL, and reference it, if you expect to produce a portable client.

    Now, with that aside, the WSDL would not be required if the implementation generated all required runtime artifacts.

    For Java, the wsimport tool generates some static artifacts (interfaces and possibly support code to meet performance targets) and leaves other elements to be dynamically created at runtime. From the start, we see the WSDL document takes a primary position in the Service constructor:

    protected Service(java.net.URL wsdlDocumentLocation, QName serviceName)
        delegate = Provider.provider().createServiceDelegate(wsdlDocumentLocation,
                                                             serviceName,
                                                             this.getClass());
    }
    

    The WSDL document is resolved to a source data stream; if not provided, it defaults to (liberties taken to extract the core essence):

    source = new StreamSource( … webserviceclient.wsdlLocation() … );

    and digging deeper, to a WSServiceDelegate:

    WSDLModelImpl wsdlmodelimpl = parseWSDL(url, source);
    wsdlserviceimpl = wsdlmodelimpl.getService(serviceName);
    

    It’s creating at least some portion of the underlying service support dynamically.

    The wsdlLocation is integral to the Java implementation.

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

Sidebar

Related Questions

I have some records after SQL generating: YEARS MONTHS SUMMONTH SUMQUARTER QTR ----- ------
I'm generating new type at runtime, After I've generated default constructor I want to
My problem is MSVS 2010 C++ compiler is generating code in a way after
I received reports that a my report generating application was not working. After my
After some time researching and trying different things I still cannot get my @ExceptionHandler
After a long search I'm still confused about it although I found some related
After generating a type dynamically and calling TypeBuilder.CreateType, I want to create a delegate
I have generated entity framework designer classes . After Generating the designer what is
I need some help in Apache poi I am generating excel using Apache POI
I am generating a string, which right after generating I want to display 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.