[ 
http://issues.apache.org/jira/browse/AXIS-2471?page=comments#action_12377438 ] 

Bjorn Townsend commented on AXIS-2471:
--------------------------------------

Hello Siva,

I think this issue has been reported before:

http://issues.apache.org/jira/browse/AXIS-2405

The reporter of that issue posted a fix. It hasn't been officially included in 
a release, but you could consider applying that patch and seeing if it fixes 
your problem. You might also consider upgrading to Axis 1.3 while you're at it.

> using types with restrcition in schema, generates protected constructor
> -----------------------------------------------------------------------
>
>          Key: AXIS-2471
>          URL: http://issues.apache.org/jira/browse/AXIS-2471
>      Project: Apache Axis
>         Type: Bug

>     Versions: 1.2.1
>  Environment: Windows XP, Intel
>     Reporter: Siva

>
>       <xs:simpleType name="restrictedLengthNonEmptyString">
>               <xs:restriction base="xs:string">
>                       <xs:length value="12" />
>                       <xs:pattern value="[a-zA-Z].*" />
>               </xs:restriction>
>       </xs:simpleType>
>       <!--                    
>               idType                                  
>       -->
>       <xs:complexType name="idType">
>               <xs:simpleContent>
>                       <xs:extension base="typ:restrictedLengthNonEmptyString" 
> />
>               </xs:simpleContent>
>       </xs:complexType>
>       
> WSDL2Java generated class has a public constructor
>  // Simple Types must have a String constructor
>     public IdType(java.lang.String _value) {
>         super(_value);
>     }
> It fails to invoke the super class with string as argument.
> super(_value) - The constructor object(String) is undefined.
> I don't see the super class 'restrictedLengthNonEmptyString' generated.

-- 
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

Reply via email to