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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T03:41:54+00:00 2026-06-13T03:41:54+00:00

I have been attempting recently to write a web service that returns a custom

  • 0

I have been attempting recently to write a web service that returns a custom object. This object is very simple:

public class AppInfo {
private int AppID;
private String Appname;
private String AppDesc;
private String AppPriv;

public int GetAppID()
{ return this.AppID;}

public void SetAppID(int AppID)
{ this.AppID = AppID;}

public String GetAppName()
{ return this.Appname;}

public void SetAppName(String AppName)
{ this.Appname = AppName;}

public String GetAppDesc()
{ return this.AppDesc;}

public void SetAppDesc(String AppDesc)
{ this.AppDesc = AppDesc;}

public String GetAppPriv()
{ return this.AppPriv;}

public void SetAppPriv(String AppPriv)
{ this.AppPriv = AppPriv; }

public AppInfo()
{}
}

However for whatever reason when NetBeans generates the WSDL and XSD the AppInfo always returns with:

<xs:complexType name="appInfo">
<xs:sequence/>
</xs:complexType>   

Searching for any information on returning custom classes seems to lead me back to a rehash of either the calculator or the image web service, neither of which are useful to me. Is it not possible to return a custom object with JAX-WS?

  • 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-13T03:41:56+00:00Added an answer on June 13, 2026 at 3:41 am

    Most probably because you are not using the JavaBean standard for getters/setters? Try changing your getters/setters to

    public String getAppPriv()
    { return this.AppPriv;}
    
    public void setAppPriv(String AppPriv)
    { this.AppPriv = AppPriv; }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been attempting to create a simple web service capable of connecting to
I have been attempting to write a VBA Script that can parse out other
I have been attempting to have a object that I can use across multiple
i have been attempting to pass an object into a function that belongs to
I have been attempting to get log4net logging in my asp.net web application with
I'm attempting to build a method call from strings that have been passed into
I have been attempting to do this for about a week. Every single time
I have been attempting to implement a custom dojo build to replace the dojo
I have been attempting to write a reusable generic method for lookups on a
For the past few days I have been attempting to write my own shell

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.