You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org> on 2007/06/16 22:28:25 UTC

[jira] Resolved: (AXIS2-2374) java char mapping for xml with xmlbeans

     [ https://issues.apache.org/jira/browse/AXIS2-2374?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Amila Chinthaka Suriarachchi resolved AXIS2-2374.
-------------------------------------------------

    Resolution: Fixed

I ran code gen to your wsdl with xml beans.
did this change 
                       <xs:simpleType name="char">
				<xs:restriction base="xsd:string">
					<xs:length value="1"/>
				</xs:restriction>
			</xs:simpleType>

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

bug is already fixed

> 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
>            Assignee: Amila Chinthaka Suriarachchi
>            Priority: Blocker
>         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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org