[ 
http://issues.apache.org/jira/browse/AXIS2-715?page=comments#action_12411957 ] 

Ajith Harshana Ranabahu commented on AXIS2-715:
-----------------------------------------------

The problem is that your WSDL is having minor issues
1. You declare xs:String which is completely wrong  - it should be xs:string 
(with a lowercase 's')
2. The use of element in the message part cannot be used with a type reference. 
it should be type="xs:string"
3. The service name is invalid (it has a space)

Once you correct these errors XMLBeans will generate the correct code for you

As for the comment by Ken, we've traced the problem to the behavior of the stax 
parser shipped with the release. see answer for issue 649

> WSDL2Java generates faulty code when using XMLBeans databinding
> ---------------------------------------------------------------
>
>          Key: AXIS2-715
>          URL: http://issues.apache.org/jira/browse/AXIS2-715
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Bug

>   Components: databinding
>     Versions: 1.0
>  Environment: Windows XP, J2SDK 1.5_06
>     Reporter: Pascal Dihé
>     Assignee: Ajith Harshana Ranabahu
>     Priority: Critical
>  Attachments: RMOAgml.wsdl, build.txt
>
> When using the XMLBeans databinding, WSDL2Java generates code that will not 
> compile.
> It seems that the generated code refers to an old release of axiom (see 
> attached output).
> WSDL2Java -uri RMOAgml.wsdl -ss -sd -o ..\samples\RMOAgml -p 
> org.eu_orchestra.RMOAgml -d xmlbeans
> WSDL file is attached, XMLschema can be obtained from 
> http://schemas.opengis.net/gml/3.1.1/

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