[
https://issues.apache.org/jira/browse/AXIS2-2374?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12487443
]
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"/>
</xs:restriction>
</xs:simpleType>
> java char mapping for xml with xmlbeans
> ---------------------------------------
>
> Key: AXIS2-2374
> URL: https://issues.apache.org/jira/browse/AXIS2-2374
> 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: charsample.zip
>
>
> 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
> http://publib.boulder.ibm.com/infocenter/dmndhelp/v6rxmx/index.jsp?topic=/com.ibm.wbit.help.wiring.ui.doc/topics/rref_javatowsdltypemap.html
> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]