[
http://issues.apache.org/jira/browse/AXIS-2187?page=comments#action_12319682 ]
Venkat Reddy commented on AXIS-2187:
------------------------------------
Please use the latest Axis latest CVS. Using the latest Axis code, I got the
following :
private java.lang.String URL;
public ContactInfo_Type(
java.lang.String[] CSPhoneNum,
java.lang.String contactName,
java.lang.String URL) {
this.CSPhoneNum = CSPhoneNum;
this.contactName = contactName;
this.URL = URL;
}
- venkat
> code generated by WSDL2JAVA does not compile
> ---------------------------------------------
>
> Key: AXIS-2187
> URL: http://issues.apache.org/jira/browse/AXIS-2187
> Project: Apache Axis
> Type: Bug
> Components: Serialization/Deserialization
> Versions: 1.2RC3
> Environment: WINDOWS XP, JDK 1.4.x, AXIS 1.2RC3, Tomcat server
> Reporter: Anand Raghavendran
> Attachments: ContactInfo_Type.java, ContactService.wsdl
>
> When the wsdl file references a schema that has following element defintion
> for URL:
> <xsd:element name="URL" type="URL_Type"/>
> <xsd:simpleType name="URL_Type">
> <xsd:restriction base="URL"/>
> </xsd:simpleType>
> <xsd:simpleType name="URL">
> <xsd:restriction base="NC">
> <xsd:maxLength value="1024"/>
> </xsd:restriction>
> </xsd:simpleType>
> <xsd:simpleType name="NC">
> <xsd:restriction base="xsd:string"/>
> </xsd:simpleType>
> WSDL2Java generates code that does not compile properly. The generated code
> has URL as a member variable declaration of type "String_Element" instead of
> String:
> String_Element URL;
> Instead of
> String URL;
> As a result, we are needing to manually search and replace every occurence of
> String_Element with String in the generated code to make it compile. Please
> fix this issue.
--
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