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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T20:27:27+00:00 2026-06-10T20:27:27+00:00

I’ve generated java-class file with wsdl2java and used xmlbeans databinding. Can’t compile resulting file

  • 0

I’ve generated java-class file with wsdl2java and used xmlbeans databinding. Can’t compile resulting file because of numerous errors like:

error: cannot find symbol
[javac] return wrappedType.get().xgetPolicyGroup();

error: cannot find symbol
[javac] return wrappedType.get().xgetPolicyPresharedKey();

Here’s an example of generated code that matches first error:

private com.sample.webservice.PolicyGroupType getPolicyGroup(com.sample.webservice.PolicyGroupDTODocument wrappedType)
{
    return wrappedType.get().xgetPolicyGroup();
}

PolicyGroupDTODocument is defined as follow:

public interface PolicyGroupDTODocument extends org.apache.xmlbeans.XmlObject

and implementation as

public class PolicyGroupDTODocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements com.sample.webservice.PolicyGroupDTODocument

I presume, that get and xget methods are somewhat inherited from XmlObject. What’s wrong with generated code or maybe with generation process?

  • 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-10T20:27:28+00:00Added an answer on June 10, 2026 at 8:27 pm

    it is strange…to answer your issue, please provide following detail:

    1. what command options you gave when you ran wsdl2java. You can find all options in this link.

    2. When you ran Wsdl2Java, it prints messages like : Using Axis2_home:….. and using Java_HOME…..Can you provide those values.

    3. i assume you got all source code files in one directory. Then when are you getting compilation issue. Are you trying to use javac on command line or using eclipse like IDE to import all files and compile it or are you trying to create a jar out of it?

      Make sure you are using same JDK as used in step 2 above and using same axis jar as in step2. Make sure the classpath you set is OK. Can you provide what is value of classpath you are setting. Most likely it is related to classpath issue.

    update#1
    try these steps: 1. Try running wsdl2java without -b option and see if error goes.
    2. Since your java package is com.sample.webservice so, you must be compiling from parent directory of com folder using command: javac -d . -g com/sample/webservice/*.java
    Please note -d option is passed so that javac compiler is forced to build package structure. and -g option will give you verbose debug output.

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

Sidebar

Related Questions

I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
I used javascript for loading a picture on my website depending on which small
I have a jquery bug and I've been looking for hours now, I can't
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I want use html5's new tag to play a wav file (currently only supported
In my XML file chapters tag has more chapter tag.i need to display chapters
I am doing a simple coin flipping experiment for class that involves flipping 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.