jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • XFire
  • XFIRE-462

byte and java.lang.Byte in WSDL problem

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: 1.1.1
  • Fix Version/s: 1.2.7
  • Component/s: None
  • Labels:
    None
  • Environment:
    MS Windows XP Pro, BEA WebLogic 9.2 Beta, JDK 1.5.0_04

Description

I have a simple Web Service with the following methods :

public byte getByteP() { return (byte) 0x89; }

public void setByteP(byte value) {
}

public Byte getByteW() { return new Byte((byte) 0x89); }

public void setByteW(Byte value) {
}

XFire generates the WSDL with the following types :
<xsd:element name="setByteP">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="ns2:byte" minOccurs="1" maxOccurs="1" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="setByteW">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="ns1:Byte" nillable="true" minOccurs="1" maxOccurs="1" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:schema targetNamespace="http://lang.java" elementFormDefault="qualified" attributeFormDefault="qualified">
<xsd:complexType name="Byte">
<xsd:complexContent>
<xsd:extension base="Number" />
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="Number" abstract="true" />
</xsd:schema>
<xsd:schema targetNamespace="http://DefaultNamespace" elementFormDefault="qualified" attributeFormDefault="qualified">
<xsd:complexType name="byte" abstract="true" />
</xsd:schema>

I expect that the type is xsd: byte instead of complex types

What do you think ?

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Mauricio Wodarski da Silva added a comment - 02/Jul/07 1:14 PM

I agree with Stephane.

And not because I also need byte properties in my webservices. Alright, maybe a bit.

Show
Mauricio Wodarski da Silva added a comment - 02/Jul/07 1:14 PM I agree with Stephane. And not because I also need byte properties in my webservices. Alright, maybe a bit.

People

  • Assignee:
    Dan Diephouse
    Reporter:
    Stephane
Vote (1)
Watch (0)

Dates

  • Created:
    16/Jun/06 7:44 AM
    Updated:
    02/Jul/07 1:14 PM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.