You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "tli (JIRA)" <ji...@apache.org> on 2006/12/14 11:09:26 UTC
[jira] Created: (CXF-305) Unsupport handling of schema which will
have @XmlElementRef & JAXBElement in type code generated by JAXB
Unsupport handling of schema which will have @XmlElementRef & JAXBElement in type code generated by JAXB
--------------------------------------------------------------------------------------------------------
Key: CXF-305
URL: http://issues.apache.org/jira/browse/CXF-305
Project: CXF
Issue Type: Bug
Components: JAXB Databinding
Affects Versions: 2.0
Reporter: tli
Fix For: 2.0
When a element in a anoymous complex type specified minOccurs="0" and nillable="true",
the generated type code use JAXBElement<String> not String
Schema Sample:
<xs:element name="EchoStringAsBinary">
<xs:complexType>
<xs:sequence>
<xs:element name="s" minOccurs="0" nillable="true" type="xs:string" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="EchoStringAsBinaryResponse">
<xs:complexType>
<xs:sequence>
<xs:element name="EchoStringAsBinaryResult" minOccurs="0" nillable="true"
type="xs:base64Binary" />
</xs:sequence>
</xs:complexType>
</xs:element>
JAXBCode generated:
@XmlElementRef(name = "s", namespace = "http://xmlsoap.org/Ping", type = JAXBElement.class)
protected JAXBElement<String> s;
/**
* Gets the value of the s property.
*
* @return
* possible object is
* {@link JAXBElement }{@code <}{@link String }{@code >}
*
*/
public JAXBElement<String> getS() {
return s;
}
/**
* Sets the value of the s property.
*
* @param value
* allowed object is
* {@link JAXBElement }{@code <}{@link String }{@code >}
*
*/
public void setS(JAXBElement<String> value) {
this.s = ((JAXBElement<String> ) value);
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Resolved: (CXF-305) Unsupport handling of schema which will
have @XmlElementRef & JAXBElement in type code generated by JAXB
Posted by "tli (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/CXF-305?page=all ]
tli resolved CXF-305.
---------------------
Resolution: Fixed
> Unsupport handling of schema which will have @XmlElementRef & JAXBElement in type code generated by JAXB
> --------------------------------------------------------------------------------------------------------
>
> Key: CXF-305
> URL: http://issues.apache.org/jira/browse/CXF-305
> Project: CXF
> Issue Type: Bug
> Components: JAXB Databinding
> Affects Versions: 2.0
> Reporter: tli
> Fix For: 2.0
>
>
> When a element in a anoymous complex type specified minOccurs="0" and nillable="true",
> the generated type code use JAXBElement<String> not String
> Schema Sample:
> <xs:element name="EchoStringAsBinary">
> <xs:complexType>
> <xs:sequence>
> <xs:element name="s" minOccurs="0" nillable="true" type="xs:string" />
> </xs:sequence>
> </xs:complexType>
> </xs:element>
> <xs:element name="EchoStringAsBinaryResponse">
> <xs:complexType>
> <xs:sequence>
> <xs:element name="EchoStringAsBinaryResult" minOccurs="0" nillable="true"
> type="xs:base64Binary" />
> </xs:sequence>
> </xs:complexType>
> </xs:element>
> JAXBCode generated:
> @XmlElementRef(name = "s", namespace = "http://xmlsoap.org/Ping", type = JAXBElement.class)
> protected JAXBElement<String> s;
> /**
> * Gets the value of the s property.
> *
> * @return
> * possible object is
> * {@link JAXBElement }{@code <}{@link String }{@code >}
> *
> */
> public JAXBElement<String> getS() {
> return s;
> }
> /**
> * Sets the value of the s property.
> *
> * @param value
> * allowed object is
> * {@link JAXBElement }{@code <}{@link String }{@code >}
> *
> */
> public void setS(JAXBElement<String> value) {
> this.s = ((JAXBElement<String> ) value);
> }
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (CXF-305) Unsupport handling of schema which will
have @XmlElementRef & JAXBElement in type code generated by JAXB
Posted by "tli (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/CXF-305?page=comments#action_12458662 ]
tli commented on CXF-305:
-------------------------
The above java type class generated by JAXB is correct, but if the wsdl operation is Wrap type, our cxf rt can't handle correct.
> Unsupport handling of schema which will have @XmlElementRef & JAXBElement in type code generated by JAXB
> --------------------------------------------------------------------------------------------------------
>
> Key: CXF-305
> URL: http://issues.apache.org/jira/browse/CXF-305
> Project: CXF
> Issue Type: Bug
> Components: JAXB Databinding
> Affects Versions: 2.0
> Reporter: tli
> Fix For: 2.0
>
>
> When a element in a anoymous complex type specified minOccurs="0" and nillable="true",
> the generated type code use JAXBElement<String> not String
> Schema Sample:
> <xs:element name="EchoStringAsBinary">
> <xs:complexType>
> <xs:sequence>
> <xs:element name="s" minOccurs="0" nillable="true" type="xs:string" />
> </xs:sequence>
> </xs:complexType>
> </xs:element>
> <xs:element name="EchoStringAsBinaryResponse">
> <xs:complexType>
> <xs:sequence>
> <xs:element name="EchoStringAsBinaryResult" minOccurs="0" nillable="true"
> type="xs:base64Binary" />
> </xs:sequence>
> </xs:complexType>
> </xs:element>
> JAXBCode generated:
> @XmlElementRef(name = "s", namespace = "http://xmlsoap.org/Ping", type = JAXBElement.class)
> protected JAXBElement<String> s;
> /**
> * Gets the value of the s property.
> *
> * @return
> * possible object is
> * {@link JAXBElement }{@code <}{@link String }{@code >}
> *
> */
> public JAXBElement<String> getS() {
> return s;
> }
> /**
> * Sets the value of the s property.
> *
> * @param value
> * allowed object is
> * {@link JAXBElement }{@code <}{@link String }{@code >}
> *
> */
> public void setS(JAXBElement<String> value) {
> this.s = ((JAXBElement<String> ) value);
> }
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira