I use spring+axis2 to publish my webservice.The client use cxf to call my
service,Then, I ran into the Exception:

   Caused by: org.xml.sax.SAXParseException: undefined simple or complex
type 'xs:RuntimeException'
at
com.sun.xml.xsom.impl.parser.ParserContext$1.reportError(ParserContext.java:176)

   Here is part of my wsdl:

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; xmlns:ns="
http://impl.service.ws.myweb.com"; xmlns:ax25="
http://context.springframework.org/xsd"; xmlns:ax26="
http://config.factory.beans.springframework.org/xsd"; xmlns:ax21="
http://beans.springframework.org/xsd"; xmlns:ax22="
http://core.springframework.org/xsd"; xmlns:xs="
http://www.w3.org/2001/XMLSchema"; xmlns:ns1="http://org.apache.axis2/xsd";
xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"; xmlns:http="
http://schemas.xmlsoap.org/wsdl/http/"; xmlns:soap="
http://schemas.xmlsoap.org/wsdl/soap/"; xmlns:mime="
http://schemas.xmlsoap.org/wsdl/mime/"; xmlns:soap12="
http://schemas.xmlsoap.org/wsdl/soap12/"; targetNamespace="
http://impl.service.ws.myweb.com";>
   <wsdl:documentation>BusinessService</wsdl:documentation>
   <wsdl:types>
       <xs:schema xmlns:ax23="http://core.springframework.org/xsd";
attributeFormDefault="qualified" elementFormDefault="qualified"
targetNamespace="http://beans.springframework.org/xsd";>
           <xs:import namespace="http://core.springframework.org/xsd"/>
           <xs:complexType name="BeansException">
               <xs:complexContent>
                   <xs:extension base="ax22:NestedRuntimeException">
                       <xs:sequence/>
                   </xs:extension>
               </xs:complexContent>
           </xs:complexType>
       </xs:schema>
       <xs:schema xmlns:ax27="
http://config.factory.beans.springframework.org/xsd";
attributeFormDefault="qualified" elementFormDefault="qualified"
targetNamespace="http://context.springframework.org/xsd";>
           <xs:import namespace="
http://config.factory.beans.springframework.org/xsd"/>
           <xs:complexType name="ApplicationContext">
               <xs:sequence>
                   <xs:element minOccurs="0"
name="autowireCapableBeanFactory" nillable="true"
type="ax26:AutowireCapableBeanFactory"/>
                   <xs:element minOccurs="0" name="displayName"
nillable="true" type="xs:string"/>
                   <xs:element minOccurs="0" name="parent" nillable="true"
type="ax25:ApplicationContext"/>
                   <xs:element minOccurs="0" name="startupDate"
type="xs:long"/>
               </xs:sequence>
           </xs:complexType>
       </xs:schema>
       <xs:schema attributeFormDefault="qualified"
elementFormDefault="qualified" targetNamespace="
http://config.factory.beans.springframework.org/xsd";>
           <xs:complexType name="AutowireCapableBeanFactory">
               <xs:sequence/>
           </xs:complexType>
       </xs:schema>
       <xs:schema xmlns:ax28="http://context.springframework.org/xsd";
xmlns:ax24="http://beans.springframework.org/xsd";
attributeFormDefault="qualified" elementFormDefault="qualified"
targetNamespace="http://impl.service.ws.myweb.com";>
           <xs:import namespace="http://beans.springframework.org/xsd"/>
           <xs:import namespace="http://context.springframework.org/xsd"/>
           <xs:element name="validCodeReq">
               <xs:complexType>
                   <xs:sequence>
                       <xs:element minOccurs="0" name="soapBody"
nillable="true" type="xs:string"/>
                   </xs:sequence>
               </xs:complexType>
           </xs:element>
       </xs:schema>
       <xs:schema attributeFormDefault="qualified"
elementFormDefault="qualified" targetNamespace="
http://core.springframework.org/xsd";>
           <xs:complexType name="NestedRuntimeException">
               <xs:complexContent>
                   <xs:extension base="xs:RuntimeException">
                       <xs:sequence>
                           <xs:element minOccurs="0" name="message"
nillable="true" type="xs:string"/>
                           <xs:element minOccurs="0"
name="mostSpecificCause" nillable="true" type="xs:anyType"/>
                           <xs:element minOccurs="0" name="rootCause"
nillable="true" type="xs:anyType"/>
                       </xs:sequence>
                   </xs:extension>
               </xs:complexContent>
           </xs:complexType>
       </xs:schema>
   </wsdl:types>
...............................
...............................

There is no definition about "xs:RuntimeException" in my wsdl,why ? a bug ?
Can anyone assist me please to understand why the RuntimeException seem not
to be generated well in wsdl? I changed my axis2 version from 1.5 to 1.5.6,
the problem remains.

Thanks!!!!!!!!!!!!

Reply via email to