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

  • Home
  • SEARCH
  • 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 501845
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T06:13:53+00:00 2026-05-13T06:13:53+00:00

What would it mean to create something like the following? <xsd:simpleType name=myField> <xsd:restriction base=xsd:boolean/>

  • 0

What would it mean to create something like the following?

<xsd:simpleType name="myField">
    <xsd:restriction base="xsd:boolean"/>
</xsd:simpleType>

Notice there are no actual elements within the restriction (no min or max length, no enumerations, etc). I feel like this is basically setting the type of myField to xsd:boolean.

However, I have both of the following in my wsdl:

(the example from above)

and

<xsd:element name="myOtherField" type="xsd:boolean"/>

When using JaxRPC or Apache Axis (to convert to a java object skeleton), the first gets converted into a Boolean (object), where as the latter example gets converted into a boolean (primitive). This tells me that the first example posted somehow signifies the element is optional, but I don’t understand how.

I agree that the second example should become a primitive, but why is the first example a Boolean?

Updated: Made second node name generic

  • 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-13T06:13:53+00:00Added an answer on May 13, 2026 at 6:13 am

    The only reason I see for that is that elements have a default minimum of 1, so it makes sense that it is boolean.

    On the other hand, simple types are commonly used in attributes and these are tipically optional. So it probably is a matter of where it’s used.

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

Sidebar

Related Questions

I would like create a service to do something when some hot situation occurs,
I would like to ask what does it mean AttributeError: 'unicode' object has no
I would like to know what scripts for LaTeX mean and what they exactly
I have a matrix mat and would like to calculate the mean of the
I'm currently working on a project in which I need something like the following:
I would like to create a graph like this one using gnuplot (or matplotlib,
Is there a manner to add something like a where clause as a 'global'
So i am trying to create something like a syncronized paint program by using
I want to be able to read any well-formed RSS/ATOM file. That would mean
how would you use JQuery with asp.net Code-Behind what i mean by that: i

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.