[prev in list] [next in list] [prev in thread] [next in thread] 

List:       axis-user
Subject:    wsdl2java error using Xmlbeans binding
From:       "Hall, Alex A." <alex.hall () ngc ! com>
Date:       2007-04-30 23:11:50
Message-ID: 38149E6F095CF440BD5C7C888C722DAD044B05EE () XMBMD105 ! northgrum ! com
[Download RAW message or body]

Axis Users,

I'm having trouble attempting to generate server-side skeletons for a
WSDL which imports a fairly complex schema.  I extracted the troublesome
part and am including it here.  Using Axis2 version 1.2 and running the
following command on Test.wsdl (contents listed at [1] below):

% wsdl2java -o C:\wsdl\gensrc -d xmlbeans -ss -uri C:\wsdl\Test.wsdl

I get the chained error shown at [2] below.

The exception seems to indicate an invalid schema, but the schema
validates fine using the W3C validator and the WSDL compiles using
Xmlbeans 2.2.0 from the command-line.  It's complaining about the
"xs:minInclusive" element in the Angle type, but interestingly, when I
comment out the "xs:attribute" element in Angle, everything works.  Am I
missing something here?  Perhaps there is a problem in the Axis-Xmlbeans
interface?  Any help or suggestions for a workaround would be greatly
appreciated.

Regards,
Alex Hall
alex.hall@ngc.com

[1] Contents of Test.wsdl:
<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://schemas.xmlsoap.org/wsdl/"
             xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
             xmlns:xs="http://www.w3.org/2001/XMLSchema"
             xmlns:tns="http://example.com/TestDataManagerService"
             targetNamespace="http://example.com/TestDataManagerService"
             name="TestDataManagerService">
  <types>
    <xs:schema
targetNamespace="http://example.com/TestDataManagerService">
      <xs:element name="getDataRequest" type="tns:GetDataRequestType"/>
      <xs:element name="getDataResponse"
type="tns:GetDataResponseType"/>
      <xs:complexType name="GetDataRequestType">
        <xs:sequence>
           <xs:element name="id" type="xs:string"/>
        </xs:sequence>
      </xs:complexType>
      <xs:complexType name="GetDataResponseType">
        <xs:sequence>
           <xs:element name="resultValue" type="tns:Angle"/>
        </xs:sequence>
      </xs:complexType>
      <xs:complexType name="Measure" abstract="true">
        <xs:simpleContent>
          <xs:extension base="xs:decimal">
            <xs:attribute name="uom" type="xs:string" use="optional"/>
            <xs:attribute name="factor" type="xs:decimal" use="optional"
default="1"/>
          </xs:extension>
        </xs:simpleContent>
      </xs:complexType>
      <xs:complexType name="Angle">
        <xs:simpleContent>
          <xs:restriction base="tns:Measure">
            <xs:minInclusive value="0"/>
            <xs:maxInclusive value="360"/>
            <xs:attribute name="uom" use="optional" default="deg">
              <xs:simpleType>
                <xs:restriction base="xs:token">
                  <xs:enumeration value="deg"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
          </xs:restriction>
        </xs:simpleContent>
      </xs:complexType>
    </xs:schema>
  </types>
  <message name="GetDataRequest">
    <part name="getDataRequest" element="tns:getDataRequest"/>
  </message>
  <message name="GetDataResponse">
    <part name="getDataResponse" element="tns:getDataResponse"/>
  </message>
  <portType name="TestDataManagerServicePortType">
    <operation name="getData">
      <input message="tns:GetDataRequest"/>
      <output message="tns:GetDataResponse"/>
    </operation>
  </portType>
  <binding name="TestDataManagerServiceSoapBinding"
type="tns:TestDataManagerServicePortType">
    <soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
    <operation name="getData">
      <soap:operation soapAction="getData"/>
      <input>
        <soap:body use="literal"/>
      </input>
      <output>
        <soap:body use="literal"/>
      </output>
    </operation>
  </binding>
  <service name="TestDataManagerService">
    <port name="TestDataManagerServiceSoapEndpoint"
binding="tns:TestDataManagerServiceSoapBinding">
      <soap:address
location="http://example.com/TestDataManagerService"/>
    </port>
  </service>
</definitions>

[2] wsdl2java exception:
[chained exceptions removed]
Caused by: org.apache.xmlbeans.XmlException: error:
cvc-complex-type.2.4a: Expected elements
'attribute@http://www.w3.org/2001/XMLSchema
attributeGroup@http://www.w3.org/2001/XMLSchema
anyAttribute@http://www.w3.org/2001/XMLSchema' instead of
'minInclusive@http://www.w3.org/2001/XMLSchema' here in element
restriction@http://www.w3.org/2001/XMLSchema
        at
org.apache.xmlbeans.impl.schema.SchemaTypeSystemCompiler.compile(SchemaT
ypeSystemCompiler.java:225)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
org.apache.xmlbeans.XmlBeans.compileXmlBeans(XmlBeans.java:667)
        at
org.apache.axis2.xmlbeans.CodeGenerationUtility.processSchemas(CodeGener
ationUtility.java:174)
        ... 8 more


[Attachment #3 (text/html)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7651.59">
<TITLE>wsdl2java error using Xmlbeans binding</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=2 FACE="Arial">Axis Users,</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">I'm having trouble attempting to generate server-side \
skeletons for a WSDL which imports a fairly complex schema.&nbsp; I extracted the \
troublesome part and am including it here.&nbsp; Using Axis2 version 1.2 and running \
the following command on Test.wsdl (contents listed at [1] below):</FONT></P>

<P><FONT SIZE=2 FACE="Arial">% wsdl2java -o C:\wsdl\gensrc -d xmlbeans -ss -uri \
C:\wsdl\Test.wsdl</FONT> </P>

<P><FONT SIZE=2 FACE="Arial">I get the chained error shown at [2] below.</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">The exception seems to indicate an invalid schema, but \
the schema validates fine using the W3C validator and the WSDL compiles using \
Xmlbeans 2.2.0 from the command-line.&nbsp; It's complaining about the \
&quot;xs:minInclusive&quot; element in the Angle type, but interestingly, when I \
comment out the &quot;xs:attribute&quot; element in Angle, everything works.&nbsp; Am \
I missing something here?&nbsp; Perhaps there is a problem in the Axis-Xmlbeans \
interface?&nbsp; Any help or suggestions for a workaround would be greatly \
appreciated.</FONT></P>

<P><FONT SIZE=2 FACE="Arial">Regards,</FONT>

<BR><B><FONT SIZE=2 FACE="Tahoma">Alex Hall</FONT></B>

<BR><FONT SIZE=2 FACE="Tahoma">alex.hall@ngc.com</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">[1] Contents of Test.wsdl:</FONT>

<BR><FONT SIZE=2 FACE="Arial">&lt;?xml version=&quot;1.0&quot; \
encoding=&quot;UTF-8&quot;?&gt;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&lt;definitions xmlns=&quot;<A \
HREF="http://schemas.xmlsoap.org/wsdl/">http://schemas.xmlsoap.org/wsdl/</A>&quot;</FONT>


<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
xmlns:soap=&quot;<A HREF="http://schemas.xmlsoap.org/wsdl/soap/">http://schemas.xmlsoap.org/wsdl/soap/</A>&quot;</FONT>


<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
xmlns:xs=&quot;<A HREF="http://www.w3.org/2001/XMLSchema">http://www.w3.org/2001/XMLSchema</A>&quot;</FONT>


<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
xmlns:tns=&quot;<A HREF="http://example.com/TestDataManagerService">http://example.com/TestDataManagerService</A>&quot;</FONT>


<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
targetNamespace=&quot;<A \
HREF="http://example.com/TestDataManagerService">http://example.com/TestDataManagerService</A>&quot;</FONT>


<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
name=&quot;TestDataManagerService&quot;&gt;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp; &lt;types&gt;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp; &lt;xs:schema \
targetNamespace=&quot;<A \
HREF="http://example.com/TestDataManagerService">http://example.com/TestDataManagerService</A>&quot;&gt;</FONT>


<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;xs:element \
name=&quot;getDataRequest&quot; type=&quot;tns:GetDataRequestType&quot;/&gt;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;xs:element \
name=&quot;getDataResponse&quot; type=&quot;tns:GetDataResponseType&quot;/&gt;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;xs:complexType \
name=&quot;GetDataRequestType&quot;&gt;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
&lt;xs:sequence&gt;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
&lt;xs:element name=&quot;id&quot; type=&quot;xs:string&quot;/&gt;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
&lt;/xs:sequence&gt;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
&lt;/xs:complexType&gt;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;xs:complexType \
name=&quot;GetDataResponseType&quot;&gt;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
&lt;xs:sequence&gt;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
&lt;xs:element name=&quot;resultValue&quot; type=&quot;tns:Angle&quot;/&gt;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
&lt;/xs:sequence&gt;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
&lt;/xs:complexType&gt;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;xs:complexType \
name=&quot;Measure&quot; abstract=&quot;true&quot;&gt;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
&lt;xs:simpleContent&gt;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
&lt;xs:extension base=&quot;xs:decimal&quot;&gt;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
&lt;xs:attribute name=&quot;uom&quot; type=&quot;xs:string&quot; \
use=&quot;optional&quot;/&gt;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
&lt;xs:attribute name=&quot;factor&quot; type=&quot;xs:decimal&quot; \
use=&quot;optional&quot; default=&quot;1&quot;/&gt;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
&lt;/xs:extension&gt;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
&lt;/xs:simpleContent&gt;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
&lt;/xs:complexType&gt;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;xs:complexType \
name=&quot;Angle&quot;&gt;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
&lt;xs:simpleContent&gt;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
&lt;xs:restriction base=&quot;tns:Measure&quot;&gt;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
&lt;xs:minInclusive value=&quot;0&quot;/&gt;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
&lt;xs:maxInclusive value=&quot;360&quot;/&gt;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
&lt;xs:attribute name=&quot;uom&quot; use=&quot;optional&quot; \
default=&quot;deg&quot;&gt;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
&lt;xs:simpleType&gt;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
&lt;xs:restriction base=&quot;xs:token&quot;&gt;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
&lt;xs:enumeration value=&quot;deg&quot;/&gt;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
&lt;/xs:restriction&gt;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
&lt;/xs:simpleType&gt;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
&lt;/xs:attribute&gt;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
&lt;/xs:restriction&gt;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
&lt;/xs:simpleContent&gt;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
&lt;/xs:complexType&gt;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp; &lt;/xs:schema&gt;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp; &lt;/types&gt;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp; &lt;message \
name=&quot;GetDataRequest&quot;&gt;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp; &lt;part \
name=&quot;getDataRequest&quot; element=&quot;tns:getDataRequest&quot;/&gt;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp; &lt;/message&gt;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp; &lt;message \
name=&quot;GetDataResponse&quot;&gt;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp; &lt;part \
name=&quot;getDataResponse&quot; element=&quot;tns:getDataResponse&quot;/&gt;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp; &lt;/message&gt;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp; &lt;portType \
name=&quot;TestDataManagerServicePortType&quot;&gt;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp; &lt;operation \
name=&quot;getData&quot;&gt;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;input \
message=&quot;tns:GetDataRequest&quot;/&gt;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;output \
message=&quot;tns:GetDataResponse&quot;/&gt;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp; &lt;/operation&gt;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp; &lt;/portType&gt;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp; &lt;binding \
name=&quot;TestDataManagerServiceSoapBinding&quot; \
type=&quot;tns:TestDataManagerServicePortType&quot;&gt;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp; &lt;soap:binding \
style=&quot;document&quot; transport=&quot;<A \
HREF="http://schemas.xmlsoap.org/soap/http">http://schemas.xmlsoap.org/soap/http</A>&quot;/&gt;</FONT>


<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp; &lt;operation \
name=&quot;getData&quot;&gt;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;soap:operation \
soapAction=&quot;getData&quot;/&gt;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;input&gt;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
&lt;soap:body use=&quot;literal&quot;/&gt;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/input&gt;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;output&gt;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
&lt;soap:body use=&quot;literal&quot;/&gt;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/output&gt;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp; &lt;/operation&gt;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp; &lt;/binding&gt;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp; &lt;service \
name=&quot;TestDataManagerService&quot;&gt;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp; &lt;port \
name=&quot;TestDataManagerServiceSoapEndpoint&quot; \
binding=&quot;tns:TestDataManagerServiceSoapBinding&quot;&gt;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;soap:address \
location=&quot;<A HREF="http://example.com/TestDataManagerService">http://example.com/TestDataManagerService</A>&quot;/&gt;</FONT>


<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp; &lt;/port&gt;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp; &lt;/service&gt;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&lt;/definitions&gt;</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">[2] wsdl2java exception:</FONT>

<BR><FONT SIZE=2 FACE="Arial">[chained exceptions removed]</FONT>

<BR><FONT SIZE=2 FACE="Arial">Caused by: org.apache.xmlbeans.XmlException: error: \
cvc-complex-type.2.4a: Expected elements 'attribute@<A \
HREF="http://www.w3.org/2001/XMLSchema">http://www.w3.org/2001/XMLSchema</A> \
attributeGroup@<A HREF="http://www.w3.org/2001/XMLSchema">http://www.w3.org/2001/XMLSchema</A> \
anyAttribute@<A HREF="http://www.w3.org/2001/XMLSchema'">http://www.w3.org/2001/XMLSchema'</A> \
instead of 'minInclusive@<A \
HREF="http://www.w3.org/2001/XMLSchema'">http://www.w3.org/2001/XMLSchema'</A> here \
in element restriction@<A \
HREF="http://www.w3.org/2001/XMLSchema">http://www.w3.org/2001/XMLSchema</A></FONT></P>


<P><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at \
org.apache.xmlbeans.impl.schema.SchemaTypeSystemCompiler.compile(SchemaTypeSystemCompiler.java:225)</FONT>


<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at \
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at \
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at \
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)</FONT>


<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at \
java.lang.reflect.Method.invoke(Method.java:585)</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at \
org.apache.xmlbeans.XmlBeans.compileXmlBeans(XmlBeans.java:667)</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at \
org.apache.axis2.xmlbeans.CodeGenerationUtility.processSchemas(CodeGenerationUtility.java:174)</FONT>


<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ... 8 \
more</FONT> </P>

</BODY>
</HTML>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic