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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T09:16:44+00:00 2026-05-31T09:16:44+00:00

I’ve been using rpclib to auto-generate a WSDL and implement it in Python. Then

  • 0

I’ve been using rpclib to auto-generate a WSDL and implement it in Python.

Then I wanted to call a web-service* that has this WSDL using JavaEE, so I simply used the Web Service from WSDL option in the creation wizard in Eclipse (Indigo 3.7.1 with OEPE), but then the Ant build failed with the exception (in short):

weblogic.wsee.tools.WsBuildException Error running JAX-WS wsdlc
Caused by java.lang.NoSuchMethodException: javax.xml.bind.annotation.XmlElementRef.required()

What should I do? How can I call the web-service using JavaEE?

* The web service is configured with: Apache HTTP Server 2.2.2 + mod_wsgi 3.3 + Python 2.6.5 + rpclib 2.6.1.

  • 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-31T09:16:46+00:00Added an answer on May 31, 2026 at 9:16 am

    Ok, stumbled upon your post the second time, so I’ll elaborate my comment given before :).

    First I recapitulate your set-up:

    • You have a working webservice and an URL pointing to the corresponding WSDL
    • You’ll try to invoke the WS methods from a different Java EE project on a different machine

    General options for invoking a WS:

    1. Use Dependency Injection to inject the WS reference
    2. Create your own WS stubs

    The first option won’t work in your set-up because DI will only work in an container-managed-environment (see my comment). That means that the WS class and the executing class have to be in the same container (e.g. the same server).

    So what is left is to generate your WS stubs manually. Therefore you can use the wsimport tool mentioned in your own answer. There are several different ways to use this tool. Lets have a look in the CLI use:

    1. navigate in your projekt folder of the WS client used by your IDE : %IDE_WORKSPACE%/your project/src
    2. crate a new folder, e.g. stub
    3. open a command window in this directory
    4. execute the follwing command : wsimport -keep <http://yourwsdl?wsdl>
    5. After a refresh you should see several created files

    Back in your IDE:

    Now you’re able to use your generated stub-files to connect to the WS by getting a port from the generated service-file

    public class WsClient {
    
      public static void main(String[] args) {
        //Create Service
        'GeneratedFile'Service service = new 'GeneratedFile'Service();
    
        //create proxy
        'GeneratedFile' proxy = service.get'GeneratedFile'Port();
    
        //invoke
        System.out.println(proxy.yourMethod(yourParam));
      }
    }
    

    Last hints:

    • For portabilty purpose check the generated files. In their annotations sometimes the WSDL file is linked to a local copy. Just change this back to your WSDL-URL.
      AFAIK there is an option in the wsimport tool to set this directly in the import routine.
    • There is a plugin for Eclipse called soapUI which allows you to use the wsimport tool in a GUI out of Eclipse. Once set up it should accelerate your work.
    • I’ve also found a quick start guide in developing WS clients with eclipse.

    Hope this helped, have Fun!

    EDIT: Just to clarify:

    needed files after wsimport generation

    After you used the wsimport tool you should have a directory containing files like shown in the image. To make this example clear you’ll need to get a Service from the RequestFileService (this is my WS operation) like RequestFileService service = new RequestFileService(); and after this you’ll need a Port on this service like RequestFile proxy = service.getRequestFilePort();.
    After this you can invoke your method calls by using the port proxy.yourMethod(yourParam);

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

Sidebar

Related Questions

That's pretty much it. I'm using Nokogiri to scrape a web page what has
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I have a jquery bug and I've been looking for hours now, I can't
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I've got a string that has curly quotes in it. I'd like to replace
I am reading a book about Javascript and jQuery and using one of the
I am doing a simple coin flipping experiment for class that involves flipping a
Seemingly simple, but I cannot find anything relevant on the web. What is the

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.