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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T16:39:45+00:00 2026-05-26T16:39:45+00:00

Consider the following snippet running in an applet insdie a browser: WebServiceClient s =

  • 0

Consider the following snippet running in an applet insdie a browser:

WebServiceClient s = MyWS_Service.class.getAnnotation(WebServiceClient.class);
String servicePath = pathName;
String wsdlLocation = "http//host.dns.name:80/MYWSAPP/MyWS?wsdl";
MyWS_Service service = null;
WebServiceClient s = MyWSService.class.getAnnotation(WebServiceClient.class);
try{
    wsdlURL = new URL(wsdlLocation); 
    service = new myWSService(wsdlURL, new QName(s.targetNamespace(), s.name()));
    myWS = service.getMyWSSOAP();

}catch (MalformedURLException e){
    System.out.println ("unable to create wsdlURL = "+wsdlLocation);
}

If myWS was created without problems, I use it to make calls to the web service methods (the web service uses Metro and runs on Tomcat).

Everything works fine except that I noticed the following two irritants:

  1. It takes a long time to execute the chunk of code quoted above
  2. Network traces show the client sends HTTP GET requests for:
    /MYWSAPP/META-INF/services/javax.xml.ws.spi.provider and /MYWSAPP/META-INF/services/javax.xml.stream.XMLInputFactory.

The reply for these GET requests is HTTP/1.1 404 Not Found.

Any thoughts on how to prevent these needless HTTP GET requests? Also is it reasonable that the code above takes roughly 3 seconds to execute while the actual web service calls take less than 100ms to execute?

  • 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-26T16:39:45+00:00Added an answer on May 26, 2026 at 4:39 pm

    Pass this parameter to the applet:

    codebase_lookup = false
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Consider the following snippet: import java.util.*; public class EqualsOverload { public static void main(String[]
Consider the following snippet: public class ReflectionTest { public static void main(String[] args) {
Consider the following snippet: #include <map> class A { static std::map<int,int> theMap; #pragma omp
Consider the following code snippet: String input = Print this; System.out.println(input.matches(\\bthis\\b)); Output false What
Consider the following code snippet: class Test { public int Length{ get; set; }
Consider the following snippet: function fail { throw simulated failure } fail When running
Consider the following PHP snippet: <?php class Is { function __get($key) { $class =
Please consider following snippet: <div class=row> <div class=span12> <div class=control-group> <label class=control-label>Person Name</label> <div
Please consider the following snippet: class Pin { public: Pin() { } }; class
Consider the following snippet: class Foo { public: Foo( int Value ); // other

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.