[
http://issues.apache.org/jira/browse/AXIS-1916?page=comments#action_63104 ]
Clinton Davidson commented on AXIS-1916:
----------------------------------------
Either that or like how .NET does it. Here's the generated output from wsdl.exe:
/// <remarks/>
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:oasis:names:tc:wsrp:v2:extra")]
public class NamedString {
private string nameField;
private string valueField;
private System.Xml.XmlAttribute[] anyAttrField;
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string name {
get {
return this.nameField;
}
set {
this.nameField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string value {
get {
return this.valueField;
}
set {
this.valueField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlAnyAttributeAttribute()]
public System.Xml.XmlAttribute[] AnyAttr {
get {
return this.anyAttrField;
}
set {
this.anyAttrField = value;
}
}
}
> anyAttribute ignored in complex type
> ------------------------------------
>
> Key: AXIS-1916
> URL: http://issues.apache.org/jira/browse/AXIS-1916
> Project: Axis
> Type: Bug
> Components: WSDL processing
> Versions: 1.2RC3
> Environment: Windows 2000
> Reporter: Clinton Davidson
> Priority: Minor
> Attachments: NamedString.java, wsrp_v2_extra.xsd
>
> WSDL2Java ignores anyAttribute:
> Given the complex type:
> <complexType name="NamedString">
> <attribute name="name" type="xsd:string" use="required"/>
> <attribute name="value" type="xsd:string"/>
> <!-- Axis v1.1 ignores the follwoing declaration! -->
> <anyAttribute/>
> </complexType>
> results in a constructor of:
> public NamedString(
> java.lang.String name,
> java.lang.String value) {
> this.name = name;
> this.value = value;
> }
> Command line is as follows:
> C:\axis-bin-1_2RC3\axis-1_2RC3\lib>dir
> Volume in drive C has no label.
> Volume Serial Number is CC78-58FA
> Directory of C:\axis-bin-1_2RC3\axis-1_2RC3\lib
> 04/06/2005 09:18a <DIR> .
> 04/06/2005 09:18a <DIR> ..
> 02/28/2005 11:39p 32,489 axis-ant.jar
> 02/28/2005 11:39p 1,573,104 axis.jar
> 02/28/2005 11:39p 74,527 commons-discovery.jar
> 02/28/2005 11:39p 31,605 commons-logging.jar
> 02/28/2005 11:39p 32,071 jaxrpc.jar
> 02/28/2005 11:39p 352,668 log4j-1.2.8.jar
> 02/28/2005 11:39p 941 log4j.properties
> 02/28/2005 11:39p 19,427 saaj.jar
> 02/28/2005 11:39p 161,701 wsdl4j.jar
> 03/15/2005 05:08p 2,055 wsrp_service.wsdl
> 03/15/2005 05:08p 34,335 wsrp_v2_bindings.wsdl
> 03/15/2005 05:07p 1,373 wsrp_v2_extra.xsd
> 03/15/2005 05:08p 33,454 wsrp_v2_interfaces.wsdl
> 03/15/2005 05:27p 52,981 wsrp_v2_types.xsd
> 14 File(s) 2,402,731 bytes
> 2 Dir(s) 34,185,179,136 bytes free
> C:\axis-bin-1_2RC3\axis-1_2RC3\lib>explorer .
> C:\axis-bin-1_2RC3\axis-1_2RC3\lib>java -classpath
> .;axis.jar;commons-discovery.
> jar;commons-logging.jar;jaxrpc.jar;log4j-1.2.8.jar;saaj.jar;wsdl4j.jar
> org.apach
> e.axis.wsdl.WSDL2Java wsrp_v2_interfaces.wsdl
> - Unable to find required classes (javax.activation.DataHandler and
> javax.mail.i
> nternet.MimeMultipart). Attachment support is disabled.
> Also see attached files.
>
--
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