axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jorge Fernández (JIRA) <>
Subject [jira] Commented: (AXIS2-2374) java char mapping for xml with xmlbeans
Date Sun, 08 Apr 2007 15:04:32 GMT


Jorge Fernández commented on AXIS2-2374:

I don't know why but I changed the code where I defined the char value and it worked out.
The only thing I've changed is the name of the type.

The strange thing is that I had already tried modifying the name of the type because I though

It could be any problem with the java char type. 

Now the class is generated OK but the restriction on the length is omitted so I can set any

String in the service and pass it to the client.

			<xs:simpleType name="extChar">
				<xs:restriction base="xs:string">
					<xs:length value="1"/>

> java char mapping for xml with xmlbeans
> ---------------------------------------
>                 Key: AXIS2-2374
>                 URL:
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: databinding
>    Affects Versions: 1.1.1
>         Environment: Windows XP SP2, Java 1.5.0-11, Axis2 1.1.1,Eclipse 3.2.1, Axis2
Eclipse Code Generator Plugin 1.2.1
>            Reporter: Jorge Fernández
>         Attachments:
> I have a java class with a char field and I tried to generate my wsdl from that class.
Instead of having a char, in the wsdl there was a  anyType element.
> I realized that there's no mapping for that in xml so I googled to find out a way of
doing that and I found 
> So I tried it. I modified the wsdl by hand as that document says. I'm using xmlbeans
as databinding and I got the following exception running eclipse plugin:
> An error ocurred while completing the process  -java.lang.InterruptedException:
> java.lang.RuntimeException java.lang.reflect.InvocationTargetException
> But if I do it with ADB, it seems to be no problem cos a _char class is generated. 
> So I tried to change the char definition name in my wsdl to avoid any conflict it could
be but the problem was still the same.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message