You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Ales St <st...@seznam.cz> on 2005/12/11 22:34:53 UTC

Server.generalException - makeTypeElement() was told to create a type "{http://www.opengis.net/sld}>FeatureTypeConstraint", with no containing element

Hi
I have a problem, I use Axis 1.3. and I generate classes from wsdl by 
wsdl2java and when I translate it and copy to Tomcat and tryed to see a list 
of services and their wsdl it write this:

AXIS error
Sorry, something seems to have gone wrong... here are the details:
Fault - makeTypeElement() was told to create a type 
"{http://www.opengis.net/sld}>FeatureTypeConstraint", with no containing 
element
AxisFault
 faultCode: 
{http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
 faultSubcode:
 faultString: makeTypeElement() was told to create a type 
"{http://www.opengis.net/sld}>FeatureTypeConstraint", with no containing 
element
 faultActor:  faultNode:  faultDetail:
 {http://xml.apache.org/axis/}hostname:pocitac


So can enybody write me what is wrong? It is wery important for me. Down I 
enclose wsdl and xsd file.If you want to see all importants files, you can 
find them on www.sweb.cz/stanax/xsd.zip
Tahnks
            Ales

Wsdl:
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="urn:Wms"
 xmlns:tns="urn:Wms"
 xmlns:sld="http://www.opengis.net/sld"
 xmlns:ows="http://www.opengis.net/ows"
xmlns:gml="http://www.opengis.net/gml"
 xmlns:apachesoap="http://xml.apache.org/xml-soap"
 xmlns:impl="urn:Wms"
 xmlns:intf="urn:Wms"
 xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
 xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
 xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
 xmlns:xsd="http://www.w3.org/2001/XMLSchema">


<wsdl:types>
  <xsd:schema targetNamespace="urn:Wms" 
xmlns="http://www.w3.org/2001/XMLSchema" 
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
     <xsd:import namespace=" http://www.opengis.net/ows" 
schemaLocation="./wms_schemas.xsd"/>
     <xsd:import namespace="http://www.opengis.net/sld" 
schemaLocation="../sld/1.0.20/StyledLayerDescriptor.xsd"/>

<xsd:element name="StyledLayerDescriptor" ref="sld:StyledLayerDescriptor" 
minOccurs="0"/>

<element name="QueryLayer" type="soapenc:string" minOccurs="0"/>
<element name="InfoFormat" type="soapenc:string" minOccurs="0"/>
<element name="FeatureCount" type="soapenc:int" minOccurs="0"/>

<element name="x" type="soapenc:int" minOccurs="0"/>
<element name="y" type="soapenc:int" minOccurs="0"/>

  </xsd:schema>

</wsdl:types>


   <wsdl:message name="getMapResponse">

      <wsdl:part name="getMapReturn" type="soapenc:base64Binary"/>

   </wsdl:message>

   <wsdl:message name="getCapabilitiesRequest">

      <wsdl:part name="version" element="ows:version"/>

      <wsdl:part name="service" element="ows:service"/>

      <wsdl:part name="exceptions" element="ows:exceptions"/>

      <wsdl:part name="section" element="ows:section"/>

   </wsdl:message>

   <wsdl:message name="getCapabilitiesResponse">

      <wsdl:part name="getCapabilitiesReturn" type="soapenc:string"/>

   </wsdl:message>

   <wsdl:message name="getFeatureInfoResponse">

      <wsdl:part name="getFeatureInfoReturn" type="soapenc:string"/>

   </wsdl:message>

   <wsdl:message name="getFeatureInfoRequest">

      <wsdl:part name="version" element="ows:version"/>

      <wsdl:part name="service" element="ows:service"/>

      <wsdl:part name="exceptions" element="ows:exceptions"/>

  <wsdl:part name="Map" type="ows:MapType"/>

     <wsdl:part name="Image" type="ows:ImageType"/>

      <wsdl:part name="StyledLayerDescriptor" 
element="tns:StyledLayerDescriptor"/>

<wsdl:part name="QueryLayer" element="tns:QueryLayer"/>
<wsdl:part name="InfoFormat" element="tns:InfoFormat" />
<wsdl:part name="FeatureCount" element="tns:FeatureCount" />
<wsdl:part name="x" element="tns:x" />
<wsdl:part name="y" element="tns:y" />
<wsdl:part name="Vendor" element="ows:Vendor" />

   </wsdl:message>

   <wsdl:message name="getMapRequest">

      <wsdl:part name="version" element="ows:version"/>

      <wsdl:part name="service" element="ows:service"/>

      <wsdl:part name="exceptions" element="ows:exceptions"/>

      <wsdl:part name="Map" type="ows:MapType"/>

      <wsdl:part name="Image" type="ows:ImageType"/>

      <wsdl:part name="StyledLayerDescriptor" 
element="tns:StyledLayerDescriptor"/>


   </wsdl:message>

   <wsdl:portType name="Wms">

      <wsdl:operation name="getMap" parameterOrder="version service 
exceptions Map Image StyledLayerDescriptor">

         <wsdl:input message="impl:getMapRequest" name="getMapRequest"/>

         <wsdl:output message="impl:getMapResponse" name="getMapResponse"/>

      </wsdl:operation>

      <wsdl:operation name="getCapabilities" parameterOrder="version service 
exceptions section">

         <wsdl:input message="impl:getCapabilitiesRequest" 
name="getCapabilitiesRequest"/>

         <wsdl:output message="impl:getCapabilitiesResponse" 
name="getCapabilitiesResponse"/>

      </wsdl:operation>

      <wsdl:operation name="getFeatureInfo" parameterOrder="version service 
exceptions Map Image StyledLayerDescriptor QueryLayer InfoFormat 
FeatureCount x y Vendor">

         <wsdl:input message="impl:getFeatureInfoRequest" 
name="getFeatureInfoRequest"/>

         <wsdl:output message="impl:getFeatureInfoResponse" 
name="getFeatureInfoResponse"/>

      </wsdl:operation>

   </wsdl:portType>

   <wsdl:binding name="wmsSoapBinding" type="impl:Wms">

      <wsdlsoap:binding style="rpc" 
transport="http://schemas.xmlsoap.org/soap/http"/>

      <wsdl:operation name="getMap">

         <wsdlsoap:operation soapAction=""/>

         <wsdl:input name="getMapRequest">

            <wsdlsoap:body 
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
namespace="urn:Wms" use="encoded"/>

         </wsdl:input>

         <wsdl:output name="getMapResponse">

            <wsdlsoap:body 
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
namespace="urn:Wms" use="encoded"/>

         </wsdl:output>

      </wsdl:operation>

      <wsdl:operation name="getCapabilities">

         <wsdlsoap:operation soapAction=""/>

         <wsdl:input name="getCapabilitiesRequest">

            <wsdlsoap:body 
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
namespace="urn:Wms" use="encoded"/>

         </wsdl:input>

         <wsdl:output name="getCapabilitiesResponse">

            <wsdlsoap:body 
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
namespace="urn:Wms" use="encoded"/>

         </wsdl:output>

      </wsdl:operation>

      <wsdl:operation name="getFeatureInfo">

         <wsdlsoap:operation soapAction=""/>

         <wsdl:input name="getFeatureInfoRequest">

            <wsdlsoap:body 
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
namespace="urn:Wms" use="encoded"/>

         </wsdl:input>

         <wsdl:output name="getFeatureInfoResponse">

            <wsdlsoap:body 
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
namespace="urn:Wms" use="encoded"/>

         </wsdl:output>

      </wsdl:operation>

   </wsdl:binding>

   <wsdl:service name="WmsService">

      <wsdl:port binding="impl:wmsSoapBinding" name="wms">

         <wsdlsoap:address 
location="http://localhost:8080/axis/services/wms"/>

      </wsdl:port>

   </wsdl:service>

</wsdl:definitions>






xsd file StyledLayerDescriptor.xsd:

<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema targetNamespace="http://www.opengis.net/sld"
            xmlns:sld="http://www.opengis.net/sld"
            xmlns:ogc="http://www.opengis.net/ogc"
            xmlns:xsd="http://www.w3.org/2001/XMLSchema"
            elementFormDefault="qualified">
  <xsd:include schemaLocation="FeatureStyle.xsd"/>
  <xsd:import namespace="http://www.opengis.net/ogc"
              schemaLocation="../../filter/1.0.0/filter.xsd"/>

<!--  
*********************************************************************** -->
  <xsd:annotation>
    <xsd:documentation>
      STYLED LAYER DESCRIPTOR version 1.0.20 (2002-09-21)
    </xsd:documentation>
  </xsd:annotation>

  <xsd:element name="StyledLayerDescriptor">
    <xsd:annotation>
      <xsd:documentation>
        A StyledLayerDescriptor is a sequence of styled layers, represented
        at the first level by NamedLayer and UserLayer elements.
      </xsd:documentation>
    </xsd:annotation>
    <xsd:complexType>
      <xsd:sequence>
        <xsd:element ref="sld:Name" minOccurs="0"/>
        <xsd:element ref="sld:Description" minOccurs="0"/>
        <xsd:element ref="sld:EnvironmentVariables" minOccurs="0"/>
        <xsd:element ref="sld:UseSLDLibrary" minOccurs="0"
                                             maxOccurs="unbounded"/>
        <xsd:choice minOccurs="0" maxOccurs="unbounded">
          <xsd:element ref="sld:NamedLayer"/>
          <xsd:element ref="sld:UserLayer"/>
        </xsd:choice>
      </xsd:sequence>
      <xsd:attribute name="version" type="sld:VersionType" use="required"/>
    </xsd:complexType>
  </xsd:element>

<!--  
*********************************************************************** -->
  <xsd:annotation>
    <xsd:documentation>
      RUN-TIME ENVIRONMENT VARIABLES
    </xsd:documentation>
  </xsd:annotation>

  <xsd:element name="EnvironmentVariables">
    <xsd:annotation>
      <xsd:documentation>
        An "EnvironmentVariables" element includes an XML blob which
        can be used to declare the values to use for global environment
        variables during the execution of the styling operations.
        These variables may be refered to in styles and symbols in the
        same way as feature properties.
      </xsd:documentation>
    </xsd:annotation>
    <xsd:complexType>
      <xsd:sequence>
        <xsd:any/>
      </xsd:sequence>
    </xsd:complexType>
  </xsd:element>

<!--  
*********************************************************************** -->
  <xsd:annotation>
    <xsd:documentation>
      SLD LIBRARIES
    </xsd:documentation>
  </xsd:annotation>

  <xsd:element name="UseSLDLibrary">
    <xsd:annotation>
      <xsd:documentation>
        The UseSLDLibrary tag specifies that an external SLD document
        should be used as a "library" of named layers and styles to
        augment the set of named layers and styles that are available
        for use inside of a WMS.  In the event of name collisions, the
        SLD library takes precedence over the ones internal to the WMS.
        Any number of libraries may be specified in an SLD and each
        successive library takes precedence over the former ones in the
        case of name collisions.
      </xsd:documentation>
    </xsd:annotation>
    <xsd:complexType>
      <xsd:sequence>
        <xsd:element ref="sld:OnlineResource"/>
      </xsd:sequence>
    </xsd:complexType>
  </xsd:element>

<!--  
*********************************************************************** -->
  <xsd:annotation>
    <xsd:documentation>
      LAYERS AND STYLES
    </xsd:documentation>
  </xsd:annotation>

  <xsd:element name="NamedLayer">
    <xsd:annotation>
      <xsd:documentation>
        A NamedLayer is a layer of data that has a name advertised by a WMS.
      </xsd:documentation>
    </xsd:annotation>
    <xsd:complexType>
      <xsd:sequence>
        <xsd:element ref="sld:Name"/>
        <xsd:element ref="sld:Description" minOccurs="0"/>
        <xsd:element ref="sld:LayerFeatureConstraints" minOccurs="0"/>
        <xsd:choice minOccurs="0" maxOccurs="unbounded">
          <xsd:element ref="sld:NamedStyle"/>
          <xsd:element ref="sld:UserStyle"/>
        </xsd:choice>
      </xsd:sequence>
    </xsd:complexType>
  </xsd:element>

  <xsd:element name="NamedStyle">
    <xsd:annotation>
      <xsd:documentation>
        A NamedStyle is used to refer to a style that has a name in a WMS.
      </xsd:documentation>
    </xsd:annotation>
    <xsd:complexType>
      <xsd:sequence>
        <xsd:element ref="sld:Name"/>
        <xsd:element ref="sld:Description" minOccurs="0"/>
      </xsd:sequence>
    </xsd:complexType>
  </xsd:element>

  <xsd:element name="UserLayer">
    <xsd:annotation>
      <xsd:documentation>
        A UserLayer allows a user-defined layer to be built from WFS and
        WCS data.
      </xsd:documentation>
    </xsd:annotation>
    <xsd:complexType>
      <xsd:sequence>
        <xsd:element ref="sld:Name" minOccurs="0"/>
        <xsd:element ref="sld:Description" minOccurs="0"/>
        <xsd:element ref="sld:RemoteOWS" minOccurs="0"/>
        <xsd:element ref="sld:LayerFeatureConstraints"/>
        <xsd:element ref="sld:UserStyle" maxOccurs="unbounded"/>
      </xsd:sequence>
    </xsd:complexType>
  </xsd:element>

  <xsd:element name="RemoteOWS">
    <xsd:annotation>
      <xsd:documentation>
        A RemoteOWS gives a reference to a remote WFS/WCS/other-OWS server.
      </xsd:documentation>
    </xsd:annotation>
    <xsd:complexType>
      <xsd:sequence>
        <xsd:element ref="sld:Service"/>
        <xsd:element ref="sld:OnlineResource"/>
      </xsd:sequence>
    </xsd:complexType>
  </xsd:element>

  <xsd:element name="Service">
    <xsd:annotation>
      <xsd:documentation>
        A Service refers to the type of a remote OWS server.
      </xsd:documentation>
    </xsd:annotation>
    <xsd:simpleType>
      <xsd:restriction base="xsd:string">
        <xsd:enumeration value="WFS"/>
        <xsd:enumeration value="WCS"/>
      </xsd:restriction>
    </xsd:simpleType>
  </xsd:element>

  <xsd:element name="LayerFeatureConstraints">
    <xsd:annotation>
      <xsd:documentation>
        LayerFeatureConstraints define what features &amp; feature types are
        referenced in a layer.
      </xsd:documentation>
    </xsd:annotation>
    <xsd:complexType>
      <xsd:sequence>
        <xsd:element ref="sld:FeatureTypeConstraint" maxOccurs="unbounded"/>
      </xsd:sequence>
    </xsd:complexType>
  </xsd:element>

  <xsd:element name="FeatureTypeConstraint">
    <xsd:annotation>
      <xsd:documentation>
        A FeatureTypeConstraint identifies a specific feature type and
        supplies fitlering.
      </xsd:documentation>
    </xsd:annotation>
    <xsd:complexType>
      <xsd:sequence>
        <xsd:element ref="sld:FeatureTypeName" minOccurs="0"/>
        <xsd:element ref="ogc:Filter" minOccurs="0"/>
        <xsd:element ref="sld:Extent" minOccurs="0" maxOccurs="unbounded"/>
      </xsd:sequence>
    </xsd:complexType>
  </xsd:element>

  <xsd:element name="Extent">
    <xsd:annotation>
      <xsd:documentation>
        An Extent gives feature/coverage/raster/matrix dimension extent.
      </xsd:documentation>
    </xsd:annotation>
    <xsd:complexType>
      <xsd:sequence>
        <xsd:element ref="sld:Name"/>
        <xsd:element ref="sld:Value"/>
      </xsd:sequence>
    </xsd:complexType>
  </xsd:element>
  <xsd:element name="Value" type="xsd:string"/>

  <xsd:element name="UserStyle">
    <xsd:annotation>
      <xsd:documentation>
        A UserStyle allows user-defined styling and is semantically
        equivalent to a WMS named style.
      </xsd:documentation>
    </xsd:annotation>
    <xsd:complexType>
      <xsd:sequence>
        <xsd:element ref="sld:Name" minOccurs="0"/>
        <xsd:element ref="sld:Description" minOccurs="0"/>
        <xsd:element ref="sld:IsDefault" minOccurs="0"/>
        <xsd:element ref="sld:FeatureStyle" maxOccurs="unbounded"/>
      </xsd:sequence>
    </xsd:complexType>
  </xsd:element>
  <xsd:element name="IsDefault" type="xsd:boolean"/>

</xsd:schema> 


Re: Server.generalException - makeTypeElement() was told to create a type "{http://www.opengis.net/sld}>StyledLayerDescriptor", with no containing element

Posted by Ales St <st...@seznam.cz>.
Hi,
I copy all that files into one StyledLayerDescriptor.xsd.And still the same problem. In StyledLayerDescriptor.xsd   is imported some others namespaces:
<xsd:import namespace="http://www.opengis.net/ogc" schemaLocation="../../filter/1.0.0/filter.xsd"/>
<xsd:import namespace="http://www.w3.org/1999/xlink" schemaLocation="../../gml/2.1.2/xlinks.xsd"/>  
And I hope,that they coul be here imported,if they are from other namespace. So I don't knew where is the problem. Can you see my wsdl, if that is all right?
Thank you
            Ales

wsdl:
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="urn:Wms" 
 xmlns:apachesoap="http://xml.apache.org/xml-soap"
 xmlns:impl="urn:Wms" xmlns:intf="urn:Wms"
 xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" 
xmlns:sld="http://www.opengis.net/sld" 
 xmlns:ows="http://www.opengis.net/ows"
 xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" 
 xmlns:xsd="http://www.w3.org/2001/XMLSchema">


 <wsdl:types>

  <xsd:schema targetNamespace="http://www.opengis.net/ows">
     <xsd:import namespace=" http://www.opengis.net/ows" 
         schemaLocation="./wms_schemas.xsd"/>
  </xsd:schema>

<xsd:schema targetNamespace="http://www.opengis.net/sld">
      <xsd:import namespace="http://www.opengis.net/sld" schemaLocation="../sld/1.0.20/StyledLayerDescriptor.xsd"/>
  </xsd:schema>

 <schema elementFormDefault="qualified" targetNamespace="urn:Wms" xmlns="http://www.w3.org/2001/XMLSchema">
   <import namespace="http://www.opengis.net/ogc"/>
   <import namespace="http://www.opengis.net/sld"/>
   <import namespace="http://www.w3.org/1999/xlink"/>
   <import namespace="http://ows.www.opengis.net"/>
   <import namespace="http://www.opengis.net/ows"/>

   <element name="getFeatureInfo">
    <complexType>
     <sequence>
      <element name="version" element ="ows:version"/>
      <element name="service" ref ="ows:service"/>
      <element name="exceptions" ref ="ows:exceptions"/>
      <element name="Map" ref ="ows:Map"/>
      <element name="Image" ref ="ows:Image"/>
      <element name="StyledLayerDescriptor" ref ="sld:StyledLayerDescriptor"/>
      <element name="QueryLayer" type ="xsd:string"/>
      <element name="InfoFormat" type ="xsd:string"/>
      <element name="FeatureCount" type ="xsd:int"/>
      <element name="x" type ="xsd:int"/>
      <element name="y" type ="xsd:int"/>
      <element name="Vendor" ref ="ows:Vendor"/>
     </sequence>
    </complexType>
   </element>

   <element name="getFeatureInfoResponse">
    <complexType>
     <sequence>
      <element name="getFeatureInfoReturn" type="xsd:string"/>
     </sequence>
    </complexType>
   </element>

   <element name="getMap">
    <complexType>
     <sequence>
      <element name="version" ref ="ows:version"/>
      <element name="service" ref ="ows:service"/>
      <element name="exceptions" ref ="ows:exceptions"/>
      <element name="in3" ref ="ows:Map"/>
      <element name="in4" ref ="ows:Image"/>
      <element name="in5" ref ="sld:StyledLayerDescriptor"/>
     </sequence>
    </complexType>
   </element>
   <element name="getMapResponse">
    <complexType>
     <sequence>
      <element name="getMapReturn" type="xsd:base64Binary"/>
     </sequence>
    </complexType>
   </element>
   <element name="getCapabilities">
    <complexType>
     <sequence>
      <element name="version" ref ="ows:version"/>
      <element name="service" ref ="ows:service"/>
      <element name="exceptions" ref ="ows:exceptions"/>
      <element name="in3" ref ="ows:section"/>
     </sequence>
    </complexType>
   </element>
   <element name="getCapabilitiesResponse">
    <complexType>
     <sequence>
      <element name="getCapabilitiesReturn" type="xsd:string"/>
     </sequence>
    </complexType>
   </element>
  </schema>
  
 </wsdl:types>
   <wsdl:message name="getMapResponse">

      <wsdl:part element="impl:getMapResponse" name="parameters"/>

   </wsdl:message>

   <wsdl:message name="getCapabilitiesRequest">

      <wsdl:part element="impl:getCapabilities" name="parameters"/>

   </wsdl:message>

   <wsdl:message name="getCapabilitiesResponse">

      <wsdl:part element="impl:getCapabilitiesResponse" name="parameters"/>

   </wsdl:message>

   <wsdl:message name="getFeatureInfoResponse">

      <wsdl:part element="impl:getFeatureInfoResponse" name="parameters"/>

   </wsdl:message>

   <wsdl:message name="getFeatureInfoRequest">

      <wsdl:part element="impl:getFeatureInfo" name="parameters"/>

   </wsdl:message>

   <wsdl:message name="getMapRequest">

      <wsdl:part element="impl:getMap" name="parameters"/>

   </wsdl:message>

   <wsdl:portType name="Wms">

      <wsdl:operation name="getFeatureInfo">

         <wsdl:input message="impl:getFeatureInfoRequest" name="getFeatureInfoRequest"/>

         <wsdl:output message="impl:getFeatureInfoResponse" name="getFeatureInfoResponse"/>

      </wsdl:operation>

      <wsdl:operation name="getMap">

         <wsdl:input message="impl:getMapRequest" name="getMapRequest"/>

         <wsdl:output message="impl:getMapResponse" name="getMapResponse"/>

      </wsdl:operation>

      <wsdl:operation name="getCapabilities">

         <wsdl:input message="impl:getCapabilitiesRequest" name="getCapabilitiesRequest"/>

         <wsdl:output message="impl:getCapabilitiesResponse" name="getCapabilitiesResponse"/>

      </wsdl:operation>

   </wsdl:portType>

   <wsdl:binding name="wmsSoapBinding" type="impl:Wms">

      <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>

      <wsdl:operation name="getFeatureInfo">

         <wsdlsoap:operation soapAction=""/>

         <wsdl:input name="getFeatureInfoRequest">

            <wsdlsoap:body use="literal"/>

         </wsdl:input>

         <wsdl:output name="getFeatureInfoResponse">

            <wsdlsoap:body use="literal"/>

         </wsdl:output>

      </wsdl:operation>

      <wsdl:operation name="getMap">

         <wsdlsoap:operation soapAction=""/>

         <wsdl:input name="getMapRequest">

            <wsdlsoap:body use="literal"/>

         </wsdl:input>

         <wsdl:output name="getMapResponse">

            <wsdlsoap:body use="literal"/>

         </wsdl:output>

      </wsdl:operation>

      <wsdl:operation name="getCapabilities">

         <wsdlsoap:operation soapAction=""/>

         <wsdl:input name="getCapabilitiesRequest">

            <wsdlsoap:body use="literal"/>

         </wsdl:input>

         <wsdl:output name="getCapabilitiesResponse">

            <wsdlsoap:body use="literal"/>

         </wsdl:output>

      </wsdl:operation>

   </wsdl:binding>

   <wsdl:service name="WmsService">

      <wsdl:port binding="impl:wmsSoapBinding" name="wms">

         <wsdlsoap:address location="http://localhost:8080/axis/services/wms"/>

      </wsdl:port>

   </wsdl:service>

</wsdl:definitions>

  ----- Original Message ----- 
  From: Anne Thomas Manes 
  To: axis-user@ws.apache.org 
  Sent: Wednesday, December 14, 2005 12:05 AM
  Subject: Re: Server.generalException - makeTypeElement() was told to create a type "{http://www.opengis.net/sld}>StyledLayerDescriptor", with no containing element


  I suggest you copy common.xsd (and any other schemas with a targetnamespace of sld) into StyledLayerDescription.xsd, and do the same for the other schemas so that you have only one schema for each namespace. Then you should be able to import those schemas into your wsdl types section and get it to work.

  Anne


  On 12/13/05, Ales St <st...@seznam.cz> wrote:
    Hi,
    You thing that I must copy file StyledLayerDescriptor.xsd in wsdl definitions? Because I did it and still the problem. Or you thing, that I must coppy files included in StyledLayerDescriptor.xsd to this StyledLayerDescriptor.xsd file? Problem is , that the multi-nested includes is more only that in StyledLayerDescriptor.xsd file. So it some other solution? If you have some time please see my wsdl which is coppyed down,because I not sure,that it is ok. Problem is that this is my dissertation on university and it is very important for me to solve it.
    Thank you for your time
                    Ales
      ----- Original Message ----- 
      From: Anne Thomas Manes 
      To: axis-user@ws.apache.org 
      Sent: Tuesday, December 13, 2005 10:57 PM
      Subject: Re: Server.generalException - makeTypeElement() was told to create a type "{http://www.opengis.net/sld}>StyledLayerDescriptor", with no containing element


      It could be that Axis is having a little trouble dealing with the multi-nested includes. You might try copying the included schema definitions into the sld schema and giving it a try. (just paste the element and type definitions in -- remove the <schema...>, <include..>, and <import...> stuff).

      If this fixes the problem, please log a bug.

      Thanks,
      Anne


      On 12/13/05, Ales St <st...@seznam.cz> wrote: 
        Hi Anne
        I include it , and I have a still the same problem. In file StyledLayerDescriptor.xsd  is include file FeatureStyle.xsd" in which is include file Symbol.xsd and in it is include file common.xsd so I thing, that problem is somewhere else,bud I don´t know where.
                    Ales
          ----- Original Message ----- 
          From: Anne Thomas Manes 
          To: axis-user@ws.apache.org 
          Sent: Tuesday, December 13, 2005 10:33 PM
          Subject: Re: Server.generalException - makeTypeElement() was told to create a type "{http://www.opengis.net/sld}>StyledLayerDescriptor", with no containing element


          I repeat an earlier comment I made to you. 

          The StyledLayerDescriptor.xsd schema references a number of elements that are not defined in the schema (Name, Description, etc.) These elements are defined in a different schema (common.xsd). You must edit the StyledLayerDescriptor.xsd schema and <xsd:include> the common.xsd schema.

          Anne


          On 12/13/05, Ales St <st...@seznam.cz> wrote: 
            Hi,
            I have a new problem I writed now a document/literal oriented wsdl, classes
            are generated, but when  I try to see wsdl on axis-server side Axis error is
            generated:

            AXIS error
            Sorry, something seems to have gone wrong... here are the details: 

            Fault - makeTypeElement() was told to create a type
            "{http://www.opengis.net/sld} >StyledLayerDescriptor", with no containing
            elementAxisFault
            faultCode: 
            {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException 
            faultSubcode:
            faultString: makeTypeElement() was told to create a type 
            "{http://www.opengis.net/sld}>StyledLayerDescriptor", with no containing
            element
            faultActor:  faultNode:  faultDetail:
                    { http://xml.apache.org/axis/}hostname:pocitac

            So I don´t knew what is wrong, it could be some import xsd problem, but I
            don´t knew which and how to solve it. I see some files on web but, they look
            like similar as that which I have. I give here a wsdl file, and all other 
            files which is important to generate is in www.sweb.cz/stanax/xsd.zip .
            I will be wery happy if somebody help me, because I solve this problem for
            some days and I can´t a solution. 
            Thank you
                            Ales
            wsdl file:
            <?xml version="1.0" encoding="UTF-8"?>
            <wsdl:definitions targetNamespace="urn:Wms"
            xmlns:apachesoap=" http://xml.apache.org/xml-soap"
            xmlns:impl="urn:Wms"
            xmlns:intf="urn:Wms"
            xmlns:wsdl=" http://schemas.xmlsoap.org/wsdl/"
            xmlns:sld="http://www.opengis.net/sld"
            xmlns:ows=" http://www.opengis.net/ows"
            xmlns:wsdlsoap=" http://schemas.xmlsoap.org/wsdl/soap/"
            xmlns:xsd="http://www.w3.org/2001/XMLSchema ">

            <wsdl:types>
            <xsd:schema elementFormDefault="qualified" 
            targetNamespace="urn:Wms"
            xmlns="http://www.w3.org/2001/XMLSchema " 
            xmlns:sld="http://www.opengis.net/sld "
            xmlns:ows=" http://www.opengis.net/ows">

            <xsd:import namespace="http://www.opengis.net/sld"
            schemaLocation="../sld/1.0.20/StyledLayerDescriptor.xsd"/> 
              <xsd:import namespace=" http://www.opengis.net/ows"
                     schemaLocation="./wms_schemas.xsd"/> 
            <element name="getFeatureInfo">
                <complexType>
                 <sequence>
                  <element ref ="ows:version"/>
                  <element  ref ="ows:service"/>
                  <element ref ="ows:exceptions"/> 
                  <element  ref ="ows:Map"/>
                  <element  ref ="ows:Image"/>
                  <element  ref ="sld:StyledLayerDescriptor"/>
                  <element name="QueryLayer" type ="xsd:string"/> 
                  <element name="InfoFormat" type ="xsd:string"/>
                  <element name="FeatureCount" type ="xsd:int"/>
                  <element name="x" type ="xsd:int"/> 
                  <element name="y" type ="xsd:int"/>
                  <element ref ="ows:Vendor"/>
                 </sequence>
                </complexType>
               </element>

               <element name="getFeatureInfoResponse"> 
                <complexType>
                 <sequence>
                  <element name="getFeatureInfoReturn" type="xsd:string"/>
                 </sequence>
                </complexType>
               </element> 

               <element name="getMap">
                <complexType>
                 <sequence>
                  <element ref ="ows:version"/>
                  <element  ref ="ows:service"/>
                  <element  ref ="ows:exceptions"/> 
                  <element  ref ="ows:Map"/>
                  <element  ref ="ows:Image"/>
                  <element  ref ="sld:StyledLayerDescriptor"/>
                 </sequence>
                </complexType> 
               </element>
               <element name="getMapResponse">
                <complexType>
                 <sequence>
                  <element name="getMapReturn" type="xsd:base64Binary"/>
                 </sequence>
                </complexType>
               </element>
               <element name="getCapabilities">
                <complexType>
                 <sequence>
                  <element  ref ="ows:version"/> 
                  <element  ref ="ows:service"/>
                  <element ref ="ows:exceptions"/>
                  <element  ref ="ows:section"/>
                 </sequence>
                </complexType> 
               </element>
               <element name="getCapabilitiesResponse">
                <complexType>
                 <sequence>
                  <element name="getCapabilitiesReturn" type="xsd:string"/> 
                 </sequence>
                </complexType>
               </element>
              </xsd:schema>

            </wsdl:types>
               <wsdl:message name="getMapResponse">

                  <wsdl:part element="impl:getMapResponse" name="parameters"/> 

               </wsdl:message>

               <wsdl:message name="getCapabilitiesRequest">

                  <wsdl:part element="impl:getCapabilities" name="parameters"/>

               </wsdl:message> 

               <wsdl:message name="getCapabilitiesResponse">

                  <wsdl:part element="impl:getCapabilitiesResponse" name="parameters"/>

               </wsdl:message>

               <wsdl:message name="getFeatureInfoResponse">

                  <wsdl:part element="impl:getFeatureInfoResponse" name="parameters"/>

               </wsdl:message>

               <wsdl:message name="getFeatureInfoRequest"> 

                  <wsdl:part element="impl:getFeatureInfo" name="parameters"/>

               </wsdl:message>

               <wsdl:message name="getMapRequest">

                  <wsdl:part element="impl:getMap" name="parameters"/> 

               </wsdl:message>

               <wsdl:portType name="Wms">

                  <wsdl:operation name="getFeatureInfo">

                     <wsdl:input message="impl:getFeatureInfoRequest" 
            name="getFeatureInfoRequest"/>

                     <wsdl:output message="impl:getFeatureInfoResponse"
            name="getFeatureInfoResponse"/>

                  </wsdl:operation>

                  <wsdl:operation name="getMap"> 

                     <wsdl:input message="impl:getMapRequest" name="getMapRequest"/>

                     <wsdl:output message="impl:getMapResponse" name="getMapResponse"/>

                  </wsdl:operation>

                  <wsdl:operation name="getCapabilities">

                     <wsdl:input message="impl:getCapabilitiesRequest"
            name="getCapabilitiesRequest"/> 

                     <wsdl:output message="impl:getCapabilitiesResponse"
            name="getCapabilitiesResponse"/>

                  </wsdl:operation>

               </wsdl:portType>

               <wsdl:binding name="wmsSoapBinding" type="impl:Wms"> 

                  <wsdlsoap:binding style="document"
            transport="http://schemas.xmlsoap.org/soap/http"/ > 

                  <wsdl:operation name="getFeatureInfo"> 

                     <wsdlsoap:operation soapAction=""/>

                     <wsdl:input name="getFeatureInfoRequest">

                        <wsdlsoap:body use="literal"/>

                     </wsdl:input> 

                     <wsdl:output name="getFeatureInfoResponse">

                        <wsdlsoap:body use="literal"/>

                     </wsdl:output>

                  </wsdl:operation>

                  <wsdl:operation name="getMap">

                     <wsdlsoap:operation soapAction=""/>

                     <wsdl:input name="getMapRequest">

                        <wsdlsoap:body use="literal"/> 

                     </wsdl:input>

                     <wsdl:output name="getMapResponse">

                        <wsdlsoap:body use="literal"/>

                     </wsdl:output>

                  </wsdl:operation> 

                  <wsdl:operation name="getCapabilities">

                     <wsdlsoap:operation soapAction=""/>

                     <wsdl:input name="getCapabilitiesRequest">

                        <wsdlsoap:body use="literal"/> 

                     </wsdl:input>

                     <wsdl:output name="getCapabilitiesResponse">

                        <wsdlsoap:body use="literal"/>

                     </wsdl:output>

                  </wsdl:operation>

               </wsdl:binding>

               <wsdl:service name="WmsService">

                  <wsdl:port binding="impl:wmsSoapBinding" name="wms">

                     <wsdlsoap:address 
            location="http://localhost:8080/axis/services/wms"/ > 

                  </wsdl:port>

               </wsdl:service>

            </wsdl:definitions> 





            ----- Original Message -----
            From: "iksrazal" <ik...@gmail.com>
            To: < axis-user@ws.apache.org >
            Sent: Tuesday, December 13, 2005 2:56 PM
            Subject: Re: Server.generalException - makeTypeElement() was told to create
            a type "{http://www.opengis.net/sld}>FeatureTypeConstraint", with no 
            containing element


            > So I decided,
            > that my wsdl is wrong, but I don´t know where is a mistake.

            Try the "free as in beer" soa wsdl editor from cape clear. Or try wooden:

            http://incubator.apache.org/woden/ 

            HTH,
            iksrazal

            Em Terça 13 Dezembro 2005 11:39, o Ales St escreveu:
            > Hi
            > I removed that definition, and I tryed to rewrite my wsdl definition to
            > document/literal  type,classes are generated. But when I tryed to se wsdl 
            > which is generated by server, the sam Axis error was generated and in
            > server console was writed this: "Request Message type information has
            > multiple parts that one single wrapped complexType.Use WRAPPED/LITERAL if
            > interoping with some other soap stack becomes a problem." So I decided,
            > that my wsdl is wrong, but I don´t know where is a mistake. I write my
            > wsdl
            > by inspirating some wsdl which I find on the web, because I can't wind 
            > some
            > good definition, how to write it. So if you knew about some good, please
            > send me it. And please see my wsdl,and write to me, where is a problem.
            > Thank you
            >             Ales
            >
            > New wsdl:
            > <?xml version="1.0" encoding="UTF-8"?>
            > <wsdl:definitions targetNamespace="urn:Wms"
            >  xmlns:tns="urn:Wms"
            >  xmlns:sld=" http://www.opengis.net/sld"
            >  xmlns:ows=" http://www.opengis.net/ows"
            > xmlns:gml=" http://www.opengis.net/gml"
            >  xmlns:apachesoap="http://xml.apache.org/xml-soap " 
            >  xmlns:impl="urn:Wms"
            >  xmlns:intf="urn:Wms" 
            >  xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
            >  xmlns:wsdl=" http://schemas.xmlsoap.org/wsdl/ "
            >  xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
            >  xmlns:xsd=" http://www.w3.org/2001/XMLSchema ">
            >
            >
            > <wsdl:types>
            >   <xsd:schema targetNamespace="urn:Wms"
            > xmlns="http://www.w3.org/2001/XMLSchema " 
            > xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"> <xsd:import
            > namespace=" http://www.opengis.net/ows "
            > schemaLocation="./wms_schemas.xsd"/> <xsd:import
            > namespace="http://www.opengis.net/sld "
            > schemaLocation="../sld/1.0.20/StyledLayerDescriptor.xsd"/> 
            >
            > <element name="QueryLayer" type="soapenc:string" minOccurs="0"/>
            > <element name="InfoFormat" type="soapenc:string" minOccurs="0"/> 
            > <element name="FeatureCount" type="soapenc:int" minOccurs="0"/>
            >
            > <element name="x" type="soapenc:int" minOccurs="0"/>
            > 
            > <element name="y" type="soapenc:int" minOccurs="0"/>
            >
            > <element name="InfoFormat" type="soapenc:string" minOccurs="0"/>
            > 
            > <element name="getMapReturn" type="soapenc:base64Binary"/>
            > <element name="string" type="soapenc:string"/>
            > <element name="Map" type="ows:MapType"/> 
            > <element name="Image" type="ows:ImageType"/>
            >
            >   </xsd:schema></wsdl:types>
            >
            >
            >    <wsdl:message name="getMapResponse">
            > 
            >       <wsdl:part name="getMapReturn" element="tns:getMapReturn"/>
            >
            >    </wsdl:message>
            >
            >    <wsdl:message name="getCapabilitiesRequest"> 
            >
            >       <wsdl:part name="version" element="ows:version"/>
            >       <wsdl:part name="service" element="ows:service"/>
            >
            >       <wsdl:part name="exceptions" element="ows:exceptions"/> 
            >
            >       <wsdl:part name="section" element="ows:section"/>
            >
            >    </wsdl:message>
            >
            >    <wsdl:message name="getCapabilitiesResponse">
            >
            >       <wsdl:part name="getCapabilitiesReturn" element="tns:string"/>
            >    </wsdl:message>
            >
            >    <wsdl:message name="getFeatureInfoResponse">
            >
            >       <wsdl:part name="getFeatureInfoReturn" element="tns:string"/>
            >
            >    </wsdl:message>
            >
            >    <wsdl:message name="getFeatureInfoRequest"> 
            >
            >       <wsdl:part name="version" element="ows:version"/>
            >       <wsdl:part name="service" element="ows:service"/>
            >
            >       <wsdl:part name="exceptions" element="ows:exceptions"/> 
            >
            > <wsdl:part name="Map" element="tns:Map"/>
            >
            >      <wsdl:part name="Image" element="tns:Image"/>
            >
            >       <wsdl:part name="StyledLayerDescriptor" 
            > element="sld:StyledLayerDescriptor"/>
            >
            > <wsdl:part name="QueryLayer" element="tns:QueryLayer"/>
            > <wsdl:part name="InfoFormat" element="tns:InfoFormat" /> 
            > <wsdl:part name="FeatureCount" element="tns:FeatureCount" />
            > <wsdl:part name="x" element="tns:x" />
            > <wsdl:part name="y" element="tns:y" /> 
            > <wsdl:part name="Vendor" element="ows:Vendor" />
            >
            >    </wsdl:message>
            >
            >    <wsdl:message name="getMapRequest">
            >
            >       <wsdl:part name="version" element="ows:version"/> 
            >
            >       <wsdl:part name="service" element="ows:service"/>
            >       <wsdl:part name="exceptions" element="ows:exceptions"/>
            >
            >       <wsdl:part name="Map" element="tns:Map"/> 
            >
            >      <wsdl:part name="Image" element="tns:Image"/>
            >
            >       <wsdl:part name="StyledLayerDescriptor"
            > element="sld:StyledLayerDescriptor"/> 
            >
            >    </wsdl:message>
            >
            >    <wsdl:portType name="Wms">
            >       <wsdl:operation name="getMap" parameterOrder="version service
            > exceptions Map Image StyledLayerDescriptor"> 
            >
            >          <wsdl:input message="impl:getMapRequest" name="getMapRequest"/>
            >
            >          <wsdl:output message="impl:getMapResponse"
            > name="getMapResponse"/>
            >
            >       </wsdl:operation> 
            >
            >       <wsdl:operation name="getCapabilities" parameterOrder="version
            > service exceptions section">
            >
            >          <wsdl:input message="impl:getCapabilitiesRequest" 
            > name="getCapabilitiesRequest"/> <wsdl:output
            > message="impl:getCapabilitiesResponse" name="getCapabilitiesResponse"/>
            >
            >       </wsdl:operation>
            >
            >       <wsdl:operation name="getFeatureInfo" parameterOrder="version
            > service
            > exceptions Map Image StyledLayerDescriptor QueryLayer InfoFormat
            > FeatureCount x y Vendor"> 
            >
            >          <wsdl:input message="impl:getFeatureInfoRequest"
            > name="getFeatureInfoRequest"/>
            >
            >          <wsdl:output message="impl:getFeatureInfoResponse" 
            > name="getFeatureInfoResponse"/>
            >
            >       </wsdl:operation>
            >    </wsdl:portType>
            >
            >    <wsdl:binding name="wmsSoapBinding" type="impl:Wms"> 
            >
            >       <wsdlsoap:binding style="document"
            > transport="http://schemas.xmlsoap.org/soap/http"/ >
            >
            >       <wsdl:operation name="getMap"> 
            >
            >          <wsdlsoap:operation soapAction=""/>
            >
            >          <wsdl:input name="getMapRequest">
            >             <wsdlsoap:body  namespace="urn:Wms" use="literal"/>
            >
            >          </wsdl:input>
            >
            >          <wsdl:output name="getMapResponse">
            >
            >             <wsdlsoap:body  namespace="urn:Wms" use="literal"/>
            >
            >          </wsdl:output>
            >
            >       </wsdl:operation>
            >       <wsdl:operation name="getCapabilities"> 
            >
            >          <wsdlsoap:operation soapAction=""/>
            >
            >          <wsdl:input name="getCapabilitiesRequest">
            >
            >             <wsdlsoap:body  namespace="urn:Wms" use="literal"/>
            >
            >          </wsdl:input>
            >
            >          <wsdl:output name="getCapabilitiesResponse">
            >             <wsdlsoap:body  namespace="urn:Wms" use="literal"/>
            >
            >          </wsdl:output>
            >
            >       </wsdl:operation>
            >
            >       <wsdl:operation name="getFeatureInfo"> 
            >
            >          <wsdlsoap:operation soapAction=""/>
            >
            >          <wsdl:input name="getFeatureInfoRequest">
            >             <wsdlsoap:body  namespace="urn:Wms" use="literal"/>
            >
            >          </wsdl:input>
            >
            >          <wsdl:output name="getFeatureInfoResponse">
            >
            >             <wsdlsoap:body  namespace="urn:Wms" use="literal"/>
            >
            >          </wsdl:output>
            >
            >       </wsdl:operation>
            >    </wsdl:binding>
            >
            >    <wsdl:service name="WmsService"> 
            >
            >       <wsdl:port binding="impl:wmsSoapBinding" name="wms">
            >
            >          <wsdlsoap:address
            > location=" http://localhost:8080/axis/services/wms"/>
            >
            >       </wsdl:port>
            >
            >    </wsdl:service>
            > </wsdl:definitions>
            >
            >
            >
            >   ----- Original Message ----- 
            >   From: Anne Thomas Manes
            >   To: axis-user@ws.apache.org
            >   Sent: Tuesday, December 13, 2005 1:56 AM
            >   Subject: Re: Server.generalException - makeTypeElement() was told to 
            > create a type "{http://www.opengis.net/sld}>FeatureTypeConstraint", with
            > no
            > containing element
            >
            >
            >   This definition in your urn:Wms schema should be removed: 
            >
            >   <xsd:element name="StyledLayerDescriptor"
            > ref="sld:StyledLayerDescriptor"
            >
            >   minOccurs="0"/>
            >
            >   The element is defined in the sld schema. There's no reason to define it 
            > again in the Wms schema. Besides, you can't name an element and reference
            > another element in the same definition.
            >
            >
            >   Anne
            >
            >   ps -- with such a complex schema, I strongly encourage you to switch to 
            > document/literal rather than rpc/encoded.
            >
            >
            >   On 12/11/05, Ales St < stanax@seznam.cz> wrote:
            >     Hi
            >     I have a problem, I use Axis 1.3. and I generate classes from wsdl by
            >     wsdl2java and when I translate it and copy to Tomcat and tryed to see
            > a
            > list of services and their wsdl it write this:
            >
            >     AXIS error
            >     Sorry, something seems to have gone wrong... here are the details:
            >     Fault - makeTypeElement() was told to create a type
            >     "{http://www.opengis.net/sld} >FeatureTypeConstraint", with no
            > containing element
            >     AxisFault
            >     faultCode:
            >     { http://schemas.xmlsoap.org/soap/envelope/}Server.generalException 
            >     faultSubcode:
            >     faultString: makeTypeElement() was told to create a type
            >     "{http://www.opengis.net/sld} >FeatureTypeConstraint", with no 
            > containing element
            >     faultActor:  faultNode:  faultDetail:
            >     {http://xml.apache.org/axis/}hostname:pocitac
            >
            >
            >     So can enybody write me what is wrong? It is wery important for me. 
            > Down I enclose wsdl and xsd file.If you want to see all importants files,
            > you can find them on www.sweb.cz/stanax/xsd.zip
            >     Tahnks
            >                 Ales 
            >
            >     Wsdl:
            >     <?xml version="1.0" encoding="UTF-8"?>
            >     <wsdl:definitions targetNamespace="urn:Wms"
            >     xmlns:tns="urn:Wms"
            >     xmlns:sld=" http://www.opengis.net/sld"
            >     xmlns:ows="http://www.opengis.net/ows"
            >     xmlns:gml=" http://www.opengis.net/gml"
            >     xmlns:apachesoap="http://xml.apache.org/xml-soap"
            >     xmlns:impl="urn:Wms"
            >     xmlns:intf="urn:Wms" 
            >     xmlns:soapenc=" http://schemas.xmlsoap.org/soap/encoding/ "
            >     xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/ "
            >     xmlns:wsdlsoap=" http://schemas.xmlsoap.org/wsdl/soap/"
            >     xmlns:xsd="http://www.w3.org/2001/XMLSchema ">
            >
            >
            >     <wsdl:types>
            >       <xsd:schema targetNamespace="urn:Wms"
            >     xmlns="http://www.w3.org/2001/XMLSchema "
            >     xmlns:soapenc=" http://schemas.xmlsoap.org/soap/encoding/ "> 
            >          <xsd:import namespace=" http://www.opengis.net/ows"
            >     schemaLocation="./wms_schemas.xsd"/>
            >          <xsd:import namespace="http://www.opengis.net/sld"
            >     schemaLocation="../sld/1.0.20/StyledLayerDescriptor.xsd"/>
            >
            >     <xsd:element name="StyledLayerDescriptor"
            > ref="sld:StyledLayerDescriptor" minOccurs="0"/> 
            >
            >     <element name="QueryLayer" type="soapenc:string" minOccurs="0"/>
            >     <element name="InfoFormat" type="soapenc:string" minOccurs="0"/> 
            >     <element name="FeatureCount" type="soapenc:int" minOccurs="0"/>
            >
            >     <element name="x" type="soapenc:int" minOccurs="0"/> 
            >     <element name="y" type="soapenc:int" minOccurs="0"/>
            >
            >       </xsd:schema>
            >
            >     </wsdl:types>
            >
            >
            >        <wsdl:message name="getMapResponse"> 
            >
            >           <wsdl:part name="getMapReturn" type="soapenc:base64Binary"/>
            >
            >        </wsdl:message>
            >
            >        <wsdl:message name="getCapabilitiesRequest">
            > 
            >           <wsdl:part name="version" element="ows:version"/>
            >
            >           <wsdl:part name="service" element="ows:service"/>
            >
            >           <wsdl:part name="exceptions" element="ows:exceptions"/> 
            >
            >           <wsdl:part name="section" element="ows:section"/>
            >
            >        </wsdl:message>
            >
            >        <wsdl:message name="getCapabilitiesResponse"> 
            >
            >           <wsdl:part name="getCapabilitiesReturn" type="soapenc:string"/>
            >
            >        </wsdl:message>
            >
            >        <wsdl:message name="getFeatureInfoResponse">
            >
            >           <wsdl:part name="getFeatureInfoReturn" type="soapenc:string"/>
            >
            >        </wsdl:message>
            >
            >        <wsdl:message name="getFeatureInfoRequest">
            >
            >           <wsdl:part name="version" element="ows:version"/>
            >
            >           <wsdl:part name="service" element="ows:service"/>
            >
            >           <wsdl:part name="exceptions" element="ows:exceptions"/> 
            >
            >       <wsdl:part name="Map" type="ows:MapType"/>
            >
            >          <wsdl:part name="Image" type="ows:ImageType"/>
            >
            >           <wsdl:part name="StyledLayerDescriptor" 
            >     element="tns:StyledLayerDescriptor"/>
            >
            >     <wsdl:part name="QueryLayer" element="tns:QueryLayer"/>
            >     <wsdl:part name="InfoFormat" element="tns:InfoFormat" /> 
            >     <wsdl:part name="FeatureCount" element="tns:FeatureCount" />
            >     <wsdl:part name="x" element="tns:x" />
            >     <wsdl:part name="y" element="tns:y" /> 
            >     <wsdl:part name="Vendor" element="ows:Vendor" />
            >
            >        </wsdl:message>
            >
            >        <wsdl:message name="getMapRequest">
            >
            >           <wsdl:part name="version" element="ows:version"/> 
            >
            >           <wsdl:part name="service" element="ows:service"/>
            >
            >           <wsdl:part name="exceptions" element="ows:exceptions"/>
            >
            >           <wsdl:part name="Map" type="ows:MapType"/>
            >
            >           <wsdl:part name="Image" type="ows:ImageType"/>
            >
            >           <wsdl:part name="StyledLayerDescriptor" 
            >     element="tns:StyledLayerDescriptor"/>
            >
            >
            >        </wsdl:message>
            >
            >        <wsdl:portType name="Wms">
            >
            >           <wsdl:operation name="getMap" parameterOrder="version service
            >     exceptions Map Image StyledLayerDescriptor">
            >
            >              <wsdl:input message="impl:getMapRequest"
            > name="getMapRequest"/>
            >
            >              <wsdl:output message="impl:getMapResponse"
            > name="getMapResponse"/>
            >
            >           </wsdl:operation>
            >
            >           <wsdl:operation name="getCapabilities" parameterOrder="version
            > service exceptions section">
            >
            >              <wsdl:input message="impl:getCapabilitiesRequest"
            >     name="getCapabilitiesRequest"/>
            >
            >              <wsdl:output message="impl:getCapabilitiesResponse"
            >     name="getCapabilitiesResponse"/>
            >
            >           </wsdl:operation>
            >
            >           <wsdl:operation name="getFeatureInfo" parameterOrder="version
            > service exceptions Map Image StyledLayerDescriptor QueryLayer InfoFormat
            > FeatureCount x y Vendor">
            >
            >              <wsdl:input message="impl:getFeatureInfoRequest"
            >     name="getFeatureInfoRequest"/>
            >
            >              <wsdl:output message="impl:getFeatureInfoResponse"
            >     name="getFeatureInfoResponse"/>
            >
            >           </wsdl:operation>
            >
            >        </wsdl:portType>
            >
            >        <wsdl:binding name="wmsSoapBinding" type="impl:Wms"> 
            >
            >           <wsdlsoap:binding style="rpc"
            >     transport="http://schemas.xmlsoap.org/soap/http"/ >
            >
            >           <wsdl:operation name="getMap"> 
            >
            >              <wsdlsoap:operation soapAction=""/>
            >
            >              <wsdl:input name="getMapRequest">
            >
            >                 <wsdlsoap:body
            >     encodingStyle=" http://schemas.xmlsoap.org/soap/encoding/"
            >     namespace="urn:Wms" use="encoded"/>
            >
            >              </wsdl:input>
            >
            >              <wsdl:output name="getMapResponse">
            >
            >                 <wsdlsoap:body
            >     encodingStyle="http://schemas.xmlsoap.org/soap/encoding/ " 
            >     namespace="urn:Wms" use="encoded"/>
            >
            >              </wsdl:output>
            >
            >           </wsdl:operation>
            >
            >           <wsdl:operation name="getCapabilities"> 
            >
            >              <wsdlsoap:operation soapAction=""/>
            >
            >              <wsdl:input name="getCapabilitiesRequest">
            >
            >                 <wsdlsoap:body
            >     encodingStyle=" http://schemas.xmlsoap.org/soap/encoding/ "
            >     namespace="urn:Wms" use="encoded"/>
            >
            >              </wsdl:input>
            >
            >              <wsdl:output name="getCapabilitiesResponse">
            >
            >                 <wsdlsoap:body
            >     encodingStyle="http://schemas.xmlsoap.org/soap/encoding/ "
            >     namespace="urn:Wms" use="encoded"/>
            >
            >              </wsdl:output>
            >
            >           </wsdl:operation>
            >
            >           <wsdl:operation name="getFeatureInfo"> 
            >
            >              <wsdlsoap:operation soapAction=""/>
            >
            >              <wsdl:input name="getFeatureInfoRequest">
            >
            >                 <wsdlsoap:body
            >     encodingStyle="http://schemas.xmlsoap.org/soap/encoding/ "
            >     namespace="urn:Wms" use="encoded"/>
            >
            >              </wsdl:input>
            >
            >              <wsdl:output name="getFeatureInfoResponse">
            >
            >                 <wsdlsoap:body
            >     encodingStyle=" http://schemas.xmlsoap.org/soap/encoding/ "
            >     namespace="urn:Wms" use="encoded"/>
            >
            >              </wsdl:output>
            >
            >           </wsdl:operation>
            >
            >        </wsdl:binding> 
            >
            >        <wsdl:service name="WmsService">
            >
            >           <wsdl:port binding="impl:wmsSoapBinding" name="wms">
            >
            >              <wsdlsoap:address 
            >     location=" http://localhost:8080/axis/services/wms"/>
            > 
            >           </wsdl:port>
            >
            >        </wsdl:service> 
            >
            >     </wsdl:definitions>
            >
            >
            >
            >
            >
            >
            >     xsd file StyledLayerDescriptor.xsd:
            >
            >     <?xml version="1.0" encoding="UTF-8"?> 
            >     <xsd:schema targetNamespace="http://www.opengis.net/sld"
            >                 xmlns:sld=" http://www.opengis.net/sld"
            >                 xmlns:ogc="http://www.opengis.net/ogc"
            >                 xmlns:xsd="http://www.w3.org/2001/XMLSchema "
            >                 elementFormDefault="qualified">
            >       <xsd:include schemaLocation="FeatureStyle.xsd"/>
            >       <xsd:import namespace="http://www.opengis.net/ogc "
            >                   schemaLocation="../../filter/1.0.0/filter.xsd"/>
            >
            >     <!--
            >
            > ***********************************************************************
            > --> <xsd:annotation>
            >         <xsd:documentation> 
            >           STYLED LAYER DESCRIPTOR version 1.0.20 (2002-09-21)
            >         </xsd:documentation>
            >       </xsd:annotation>
            >
            >       <xsd:element name="StyledLayerDescriptor"> 
            >         <xsd:annotation>
            >           <xsd:documentation>
            >             A StyledLayerDescriptor is a sequence of styled layers,
            > represented at the first level by NamedLayer and UserLayer elements.
            > </xsd:documentation>
            >         </xsd:annotation>
            >         <xsd:complexType> 
            >           <xsd:sequence>
            >             <xsd:element ref="sld:Name" minOccurs="0"/>
            >             <xsd:element ref="sld:Description" minOccurs="0"/>
            >             <xsd:element ref="sld:EnvironmentVariables" minOccurs="0"/>
            >             <xsd:element ref="sld:UseSLDLibrary" minOccurs="0"
            >                                                  maxOccurs="unbounded"/>
            >             <xsd:choice minOccurs="0" maxOccurs="unbounded">
            >               <xsd:element ref="sld:NamedLayer"/>
            >               <xsd:element ref="sld:UserLayer"/>
            >             </xsd:choice>
            >           </xsd:sequence>
            >           <xsd:attribute name="version" type="sld:VersionType" 
            > use="required"/> </xsd:complexType>
            >       </xsd:element>
            >
            >     <!--
            >
            > ***********************************************************************
            > --> <xsd:annotation> 
            >         <xsd:documentation>
            >           RUN-TIME ENVIRONMENT VARIABLES
            >         </xsd:documentation>
            >       </xsd:annotation>
            >
            >       <xsd:element name="EnvironmentVariables"> 
            >         <xsd:annotation>
            >           <xsd:documentation>
            >             An "EnvironmentVariables" element includes an XML blob which
            >             can be used to declare the values to use for global
            > environment
            >             variables during the execution of the styling operations.
            >             These variables may be refered to in styles and symbols in the
            >             same way as feature properties.
            >           </xsd:documentation>
            >         </xsd:annotation>
            >         <xsd:complexType> 
            >           <xsd:sequence>
            >             <xsd:any/>
            >           </xsd:sequence>
            >         </xsd:complexType>
            >       </xsd:element>
            >
            >     <!--
            >
            > ***********************************************************************
            > --> <xsd:annotation>
            >         <xsd:documentation>
            >           SLD LIBRARIES
            >         </xsd:documentation> 
            >       </xsd:annotation>
            >
            >       <xsd:element name="UseSLDLibrary">
            >         <xsd:annotation>
            >           <xsd:documentation>
            >             The UseSLDLibrary tag specifies that an external SLD document
            >             should be used as a "library" of named layers and styles to
            >             augment the set of named layers and styles that are available
            >             for use inside of a WMS.  In the event of name collisions, the
            >             SLD library takes precedence over the ones internal to the
            > WMS.
            >             Any number of libraries may be specified in an SLD and each
            >             successive library takes precedence over the former ones in
            > the
            >             case of name collisions.
            >           </xsd:documentation>
            >         </xsd:annotation>
            >         <xsd:complexType> 
            >           <xsd:sequence>
            >             <xsd:element ref="sld:OnlineResource"/>
            >           </xsd:sequence>
            >         </xsd:complexType>
            >       </xsd:element> 
            >
            >     <!--
            >
            > ***********************************************************************
            > --> <xsd:annotation>
            >         <xsd:documentation>
            >           LAYERS AND STYLES 
            >         </xsd:documentation>
            >       </xsd:annotation>
            >
            >       <xsd:element name="NamedLayer">
            >         <xsd:annotation>
            >           <xsd:documentation> 
            >             A NamedLayer is a layer of data that has a name advertised by
            > a
            > WMS. </xsd:documentation>
            >         </xsd:annotation>
            >         <xsd:complexType>
            >           <xsd:sequence> 
            >             <xsd:element ref="sld:Name"/>
            >             <xsd:element ref="sld:Description" minOccurs="0"/>
            >             <xsd:element ref="sld:LayerFeatureConstraints" minOccurs="0"/>
            >             <xsd:choice minOccurs="0" maxOccurs="unbounded">
            >               <xsd:element ref="sld:NamedStyle"/>
            >               <xsd:element ref="sld:UserStyle"/>
            >             </xsd:choice>
            >           </xsd:sequence>
            >         </xsd:complexType>
            >       </xsd:element>
            >
            >       <xsd:element name="NamedStyle"> 
            >         <xsd:annotation>
            >           <xsd:documentation>
            >             A NamedStyle is used to refer to a style that has a name in a
            > WMS. </xsd:documentation>
            >         </xsd:annotation>
            >         <xsd:complexType>
            >           <xsd:sequence> 
            >             <xsd:element ref="sld:Name"/>
            >             <xsd:element ref="sld:Description" minOccurs="0"/>
            >           </xsd:sequence>
            >         </xsd:complexType>
            >       </xsd:element>
            >
            >       <xsd:element name="UserLayer"> 
            >         <xsd:annotation>
            >           <xsd:documentation>
            >             A UserLayer allows a user-defined layer to be built from WFS
            > and WCS data.
            >           </xsd:documentation>
            >         </xsd:annotation>
            >         <xsd:complexType>
            >           <xsd:sequence> 
            >             <xsd:element ref="sld:Name" minOccurs="0"/>
            >             <xsd:element ref="sld:Description" minOccurs="0"/>
            >             <xsd:element ref="sld:RemoteOWS" minOccurs="0"/>
            >             <xsd:element ref="sld:LayerFeatureConstraints"/>
            >             <xsd:element ref="sld:UserStyle" maxOccurs="unbounded"/>
            >           </xsd:sequence>
            >         </xsd:complexType>
            >       </xsd:element>
            >
            >       <xsd:element name="RemoteOWS"> 
            >         <xsd:annotation>
            >           <xsd:documentation>
            >             A RemoteOWS gives a reference to a remote WFS/WCS/other-OWS
            > server. </xsd:documentation>
            >         </xsd:annotation>
            >         <xsd:complexType>
            >           <xsd:sequence> 
            >             <xsd:element ref="sld:Service"/>
            >             <xsd:element ref="sld:OnlineResource"/>
            >           </xsd:sequence>
            >         </xsd:complexType> 
            >       </xsd:element>
            >
            >       <xsd:element name="Service">
            >         <xsd:annotation>
            >           <xsd:documentation>
            >             A Service refers to the type of a remote OWS server.
            >           </xsd:documentation>
            >         </xsd:annotation>
            >         <xsd:simpleType>
            >           <xsd:restriction base="xsd:string"> 
            >             <xsd:enumeration value="WFS"/>
            >             <xsd:enumeration value="WCS"/>
            >           </xsd:restriction>
            >         </xsd:simpleType>
            >       </xsd:element>
            >
            >       <xsd:element name="LayerFeatureConstraints">
            >         <xsd:annotation>
            >           <xsd:documentation>
            >             LayerFeatureConstraints define what features &amp; feature
            > types are referenced in a layer.
            >           </xsd:documentation>
            >         </xsd:annotation>
            >         <xsd:complexType> 
            >           <xsd:sequence>
            >             <xsd:element ref="sld:FeatureTypeConstraint"
            > maxOccurs="unbounded"/> </xsd:sequence>
            >         </xsd:complexType> 
            >       </xsd:element>
            >
            >       <xsd:element name="FeatureTypeConstraint">
            >         <xsd:annotation>
            >           <xsd:documentation>
            >             A FeatureTypeConstraint identifies a specific feature type and
            >             supplies fitlering.
            >           </xsd:documentation>
            >         </xsd:annotation>
            >         <xsd:complexType> 
            >           <xsd:sequence>
            >             <xsd:element ref="sld:FeatureTypeName" minOccurs="0"/>
            >             <xsd:element ref="ogc:Filter" minOccurs="0"/>
            >             <xsd:element ref="sld:Extent" minOccurs="0" 
            > maxOccurs="unbounded"/> </xsd:sequence>
            >         </xsd:complexType>
            >       </xsd:element>
            >
            >       <xsd:element name="Extent">
            >         <xsd:annotation> 
            >           <xsd:documentation>
            >             An Extent gives feature/coverage/raster/matrix dimension
            > extent. </xsd:documentation>
            >         </xsd:annotation>
            >         <xsd:complexType>
            >           <xsd:sequence>
            >             <xsd:element ref="sld:Name"/>
            >             <xsd:element ref="sld:Value"/>
            >           </xsd:sequence>
            >         </xsd:complexType>
            >       </xsd:element> 
            >       <xsd:element name="Value" type="xsd:string"/>
            >
            >       <xsd:element name="UserStyle">
            >         <xsd:annotation>
            >           <xsd:documentation> 
            >             A UserStyle allows user-defined styling and is semantically
            >             equivalent to a WMS named style.
            >           </xsd:documentation>
            >         </xsd:annotation>
            >         <xsd:complexType> 
            >           <xsd:sequence>
            >             <xsd:element ref="sld:Name" minOccurs="0"/>
            >             <xsd:element ref="sld:Description" minOccurs="0"/>
            >             <xsd:element ref="sld:IsDefault" minOccurs="0"/>
            >             <xsd:element ref="sld:FeatureStyle" maxOccurs="unbounded"/>
            >           </xsd:sequence>
            >         </xsd:complexType>
            >       </xsd:element>
            >       <xsd:element name="IsDefault" type="xsd:boolean"/> 
            >
            >     </xsd:schema>








Re: Server.generalException - makeTypeElement() was told to create a type "{http://www.opengis.net/sld}>StyledLayerDescriptor", with no containing element

Posted by Anne Thomas Manes <at...@gmail.com>.
I suggest you copy common.xsd (and any other schemas with a targetnamespace
of sld) into StyledLayerDescription.xsd, and do the same for the other
schemas so that you have only one schema for each namespace. Then you should
be able to import those schemas into your wsdl types section and get it to
work.

Anne

On 12/13/05, Ales St <st...@seznam.cz> wrote:
>
> Hi,
> You thing that I must copy file StyledLayerDescriptor.xsd in wsdl
> definitions? Because I did it and still the problem. Or you thing, that I
> must coppy files included in StyledLayerDescriptor.xsd to this
> StyledLayerDescriptor.xsd file? Problem is , that the multi-nested
> includes is more only that in StyledLayerDescriptor.xsd file. So it some
> other solution? If you have some time please see my wsdl which is coppyed
> down,because I not sure,that it is ok. Problem is that this is my
> dissertation on university and it is very important for me to solve it.
> Thank you for your time
>                 Ales
>
> ----- Original Message -----
> *From:* Anne Thomas Manes <at...@gmail.com>
> *To:* axis-user@ws.apache.org
> *Sent:* Tuesday, December 13, 2005 10:57 PM
> *Subject:* Re: Server.generalException - makeTypeElement() was told to
> create a type "{http://www.opengis.net/sld}<http://www.opengis.net/sld%7D>>StyledLayerDescriptor",
> with no containing element
>
> It could be that Axis is having a little trouble dealing with the
> multi-nested includes. You might try copying the included schema definitions
> into the sld schema and giving it a try. (just paste the element and type
> definitions in -- remove the <schema...>, <include..>, and <import...>
> stuff).
>
> If this fixes the problem, please log a bug.
>
> Thanks,
> Anne
>
> On 12/13/05, Ales St <st...@seznam.cz> wrote:
> >
> > Hi Anne
> > I include it , and I have a still the same problem. In file
> > StyledLayerDescriptor.xsd  is include file FeatureStyle.xsd" in which is
> > include file Symbol.xsd and in it is include file common.xsd so I thing,
> > that problem is somewhere else,bud I don´t know where.
> >             Ales
> >
> > ----- Original Message -----
> > *From:* Anne Thomas Manes <at...@gmail.com>
> > *To:* axis-user@ws.apache.org
> >  *Sent:* Tuesday, December 13, 2005 10:33 PM
> > *Subject:* Re: Server.generalException - makeTypeElement() was told to
> > create a type "{http://www.opengis.net/sld}<http://www.opengis.net/sld%7D>>StyledLayerDescriptor",
> > with no containing element
> >
> > I repeat an earlier comment I made to you.
> >
> > The StyledLayerDescriptor.xsd schema references a number of elements
> > that are not defined in the schema (Name, Description, etc.) These elements
> > are defined in a different schema (common.xsd). You must edit the
> > StyledLayerDescriptor.xsd schema and <xsd:include> the common.xsdschema.
> >
> > Anne
> >
> > On 12/13/05, Ales St <st...@seznam.cz> wrote:
> > >
> > > Hi,
> > > I have a new problem I writed now a document/literal oriented wsdl,
> > > classes
> > > are generated, but when  I try to see wsdl on axis-server side Axis
> > > error is
> > > generated:
> > >
> > > AXIS error
> > > Sorry, something seems to have gone wrong... here are the details:
> > >
> > > Fault - makeTypeElement() was told to create a type
> > > "{http://www.opengis.net/sld} <http://www.opengis.net/sld%7D>>StyledLayerDescriptor",
> > > with no containing
> > > elementAxisFault
> > > faultCode:
> > > {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
> > > <http://schemas.xmlsoap.org/soap/envelope/%7DServer.generalException>
> > > faultSubcode:
> > > faultString: makeTypeElement() was told to create a type
> > > "{http://www.opengis.net/sld} <http://www.opengis.net/sld%7D>>StyledLayerDescriptor",
> > > with no containing
> > > element
> > > faultActor:  faultNode:  faultDetail:
> > >         { http://xml.apache.org/axis/}hostname:pocitac<http://xml.apache.org/axis/%7Dhostname:pocitac>
> > >
> > > So I don´t knew what is wrong, it could be some import xsd problem,
> > > but I
> > > don´t knew which and how to solve it. I see some files on web but,
> > > they look
> > > like similar as that which I have. I give here a wsdl file, and all
> > > other
> > > files which is important to generate is in www.sweb.cz/stanax/xsd.zip.
> > > I will be wery happy if somebody help me, because I solve this problem
> > > for
> > > some days and I can´t a solution.
> > > Thank you
> > >                 Ales
> > > wsdl file:
> > > <?xml version="1.0" encoding="UTF-8"?>
> > > <wsdl:definitions targetNamespace="urn:Wms"
> > > xmlns:apachesoap=" http://xml.apache.org/xml-soap"
> > > xmlns:impl="urn:Wms"
> > > xmlns:intf="urn:Wms"
> > > xmlns:wsdl=" http://schemas.xmlsoap.org/wsdl/"
> > > xmlns:sld="http://www.opengis.net/sld"
> > > xmlns:ows=" http://www.opengis.net/ows"
> > > xmlns:wsdlsoap=" http://schemas.xmlsoap.org/wsdl/soap/"
> > > xmlns:xsd="http://www.w3.org/2001/XMLSchema ">
> > >
> > > <wsdl:types>
> > > <xsd:schema elementFormDefault="qualified"
> > > targetNamespace="urn:Wms"
> > > xmlns="http://www.w3.org/2001/XMLSchema "
> > > xmlns:sld="http://www.opengis.net/sld "
> > > xmlns:ows="http://www.opengis.net/ows">
> > >
> > > <xsd:import namespace="http://www.opengis.net/sld"
> > > schemaLocation="../sld/1.0.20/StyledLayerDescriptor.xsd"/>
> > >   <xsd:import namespace=" http://www.opengis.net/ows"
> > >          schemaLocation="./wms_schemas.xsd"/>
> > > <element name="getFeatureInfo">
> > >     <complexType>
> > >      <sequence>
> > >       <element ref ="ows:version"/>
> > >       <element  ref ="ows:service"/>
> > >       <element ref ="ows:exceptions"/>
> > >       <element  ref ="ows:Map"/>
> > >       <element  ref ="ows:Image"/>
> > >       <element  ref ="sld:StyledLayerDescriptor"/>
> > >       <element name="QueryLayer" type ="xsd:string"/>
> > >       <element name="InfoFormat" type ="xsd:string"/>
> > >       <element name="FeatureCount" type ="xsd:int"/>
> > >       <element name="x" type ="xsd:int"/>
> > >       <element name="y" type ="xsd:int"/>
> > >       <element ref ="ows:Vendor"/>
> > >      </sequence>
> > >     </complexType>
> > >    </element>
> > >
> > >    <element name="getFeatureInfoResponse">
> > >     <complexType>
> > >      <sequence>
> > >       <element name="getFeatureInfoReturn" type="xsd:string"/>
> > >      </sequence>
> > >     </complexType>
> > >    </element>
> > >
> > >    <element name="getMap">
> > >     <complexType>
> > >      <sequence>
> > >       <element ref ="ows:version"/>
> > >       <element  ref ="ows:service"/>
> > >       <element  ref ="ows:exceptions"/>
> > >       <element  ref ="ows:Map"/>
> > >       <element  ref ="ows:Image"/>
> > >       <element  ref ="sld:StyledLayerDescriptor"/>
> > >      </sequence>
> > >     </complexType>
> > >    </element>
> > >    <element name="getMapResponse">
> > >     <complexType>
> > >      <sequence>
> > >       <element name="getMapReturn" type="xsd:base64Binary"/>
> > >      </sequence>
> > >     </complexType>
> > >    </element>
> > >    <element name="getCapabilities">
> > >     <complexType>
> > >      <sequence>
> > >       <element  ref ="ows:version"/>
> > >       <element  ref ="ows:service"/>
> > >       <element ref ="ows:exceptions"/>
> > >       <element  ref ="ows:section"/>
> > >      </sequence>
> > >     </complexType>
> > >    </element>
> > >    <element name="getCapabilitiesResponse">
> > >     <complexType>
> > >      <sequence>
> > >       <element name="getCapabilitiesReturn" type="xsd:string"/>
> > >      </sequence>
> > >     </complexType>
> > >    </element>
> > >   </xsd:schema>
> > >
> > > </wsdl:types>
> > >    <wsdl:message name="getMapResponse">
> > >
> > >       <wsdl:part element="impl:getMapResponse" name="parameters"/>
> > >
> > >    </wsdl:message>
> > >
> > >    <wsdl:message name="getCapabilitiesRequest">
> > >
> > >       <wsdl:part element="impl:getCapabilities" name="parameters"/>
> > >
> > >    </wsdl:message>
> > >
> > >    <wsdl:message name="getCapabilitiesResponse">
> > >
> > >       <wsdl:part element="impl:getCapabilitiesResponse"
> > > name="parameters"/>
> > >
> > >    </wsdl:message>
> > >
> > >    <wsdl:message name="getFeatureInfoResponse">
> > >
> > >       <wsdl:part element="impl:getFeatureInfoResponse"
> > > name="parameters"/>
> > >
> > >    </wsdl:message>
> > >
> > >    <wsdl:message name="getFeatureInfoRequest">
> > >
> > >       <wsdl:part element="impl:getFeatureInfo" name="parameters"/>
> > >
> > >    </wsdl:message>
> > >
> > >    <wsdl:message name="getMapRequest">
> > >
> > >       <wsdl:part element="impl:getMap" name="parameters"/>
> > >
> > >    </wsdl:message>
> > >
> > >    <wsdl:portType name="Wms">
> > >
> > >       <wsdl:operation name="getFeatureInfo">
> > >
> > >          <wsdl:input message="impl:getFeatureInfoRequest"
> > > name="getFeatureInfoRequest"/>
> > >
> > >          <wsdl:output message="impl:getFeatureInfoResponse"
> > > name="getFeatureInfoResponse"/>
> > >
> > >       </wsdl:operation>
> > >
> > >       <wsdl:operation name="getMap">
> > >
> > >          <wsdl:input message="impl:getMapRequest"
> > > name="getMapRequest"/>
> > >
> > >          <wsdl:output message="impl:getMapResponse"
> > > name="getMapResponse"/>
> > >
> > >       </wsdl:operation>
> > >
> > >       <wsdl:operation name="getCapabilities">
> > >
> > >          <wsdl:input message="impl:getCapabilitiesRequest"
> > > name="getCapabilitiesRequest"/>
> > >
> > >          <wsdl:output message="impl:getCapabilitiesResponse"
> > > name="getCapabilitiesResponse"/>
> > >
> > >       </wsdl:operation>
> > >
> > >    </wsdl:portType>
> > >
> > >    <wsdl:binding name="wmsSoapBinding" type="impl:Wms">
> > >
> > >       <wsdlsoap:binding style="document"
> > > transport="http://schemas.xmlsoap.org/soap/http"/<http://schemas.xmlsoap.org/soap/http%22/>>
> > >
> > >
> > >       <wsdl:operation name="getFeatureInfo">
> > >
> > >          <wsdlsoap:operation soapAction=""/>
> > >
> > >          <wsdl:input name="getFeatureInfoRequest">
> > >
> > >             <wsdlsoap:body use="literal"/>
> > >
> > >          </wsdl:input>
> > >
> > >          <wsdl:output name="getFeatureInfoResponse">
> > >
> > >             <wsdlsoap:body use="literal"/>
> > >
> > >          </wsdl:output>
> > >
> > >       </wsdl:operation>
> > >
> > >       <wsdl:operation name="getMap">
> > >
> > >          <wsdlsoap:operation soapAction=""/>
> > >
> > >          <wsdl:input name="getMapRequest">
> > >
> > >             <wsdlsoap:body use="literal"/>
> > >
> > >          </wsdl:input>
> > >
> > >          <wsdl:output name="getMapResponse">
> > >
> > >             <wsdlsoap:body use="literal"/>
> > >
> > >          </wsdl:output>
> > >
> > >       </wsdl:operation>
> > >
> > >       <wsdl:operation name="getCapabilities">
> > >
> > >          <wsdlsoap:operation soapAction=""/>
> > >
> > >          <wsdl:input name="getCapabilitiesRequest">
> > >
> > >             <wsdlsoap:body use="literal"/>
> > >
> > >          </wsdl:input>
> > >
> > >          <wsdl:output name="getCapabilitiesResponse">
> > >
> > >             <wsdlsoap:body use="literal"/>
> > >
> > >          </wsdl:output>
> > >
> > >       </wsdl:operation>
> > >
> > >    </wsdl:binding>
> > >
> > >    <wsdl:service name="WmsService">
> > >
> > >       <wsdl:port binding="impl:wmsSoapBinding" name="wms">
> > >
> > >          <wsdlsoap:address
> > > location="http://localhost:8080/axis/services/wms"/<http://localhost:8080/axis/services/wms%22/>>
> > >
> > >
> > >       </wsdl:port>
> > >
> > >    </wsdl:service>
> > >
> > > </wsdl:definitions>
> > >
> > >
> > >
> > >
> > >
> > > ----- Original Message -----
> > > From: "iksrazal" <ik...@gmail.com>
> > > To: <axis-user@ws.apache.org >
> > > Sent: Tuesday, December 13, 2005 2:56 PM
> > > Subject: Re: Server.generalException - makeTypeElement() was told to
> > > create
> > > a type "{http://www.opengis.net/sld} <http://www.opengis.net/sld%7D>>FeatureTypeConstraint",
> > > with no
> > > containing element
> > >
> > >
> > > > So I decided,
> > > > that my wsdl is wrong, but I don´t know where is a mistake.
> > >
> > > Try the "free as in beer" soa wsdl editor from cape clear. Or try
> > > wooden:
> > >
> > > http://incubator.apache.org/woden/
> > >
> > > HTH,
> > > iksrazal
> > >
> > > Em Terça 13 Dezembro 2005 11:39, o Ales St escreveu:
> > > > Hi
> > > > I removed that definition, and I tryed to rewrite my wsdl definition
> > > to
> > > > document/literal  type,classes are generated. But when I tryed to se
> > > wsdl
> > > > which is generated by server, the sam Axis error was generated and
> > > in
> > > > server console was writed this: "Request Message type information
> > > has
> > > > multiple parts that one single wrapped complexType.UseWRAPPED/LITERAL if
> > > > interoping with some other soap stack becomes a problem." So I
> > > decided,
> > > > that my wsdl is wrong, but I don´t know where is a mistake. I write
> > > my
> > > > wsdl
> > > > by inspirating some wsdl which I find on the web, because I can't
> > > wind
> > > > some
> > > > good definition, how to write it. So if you knew about some good,
> > > please
> > > > send me it. And please see my wsdl,and write to me, where is a
> > > problem.
> > > > Thank you
> > > >             Ales
> > > >
> > > > New wsdl:
> > > > <?xml version="1.0" encoding="UTF-8"?>
> > > > <wsdl:definitions targetNamespace="urn:Wms"
> > > >  xmlns:tns="urn:Wms"
> > > >  xmlns:sld=" http://www.opengis.net/sld"
> > > >  xmlns:ows=" http://www.opengis.net/ows"
> > > > xmlns:gml=" http://www.opengis.net/gml"
> > > >  xmlns:apachesoap="http://xml.apache.org/xml-soap"
> > > >  xmlns:impl="urn:Wms"
> > > >  xmlns:intf="urn:Wms"
> > > >  xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
> > > >  xmlns:wsdl=" http://schemas.xmlsoap.org/wsdl/ "
> > > >  xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
> > > >  xmlns:xsd=" http://www.w3.org/2001/XMLSchema ">
> > > >
> > > >
> > > > <wsdl:types>
> > > >   <xsd:schema targetNamespace="urn:Wms"
> > > > xmlns="http://www.w3.org/2001/XMLSchema "
> > > > xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
> > > <xsd:import
> > > > namespace=" http://www.opengis.net/ows "
> > > > schemaLocation="./wms_schemas.xsd"/> <xsd:import
> > > > namespace="http://www.opengis.net/sld "
> > > > schemaLocation="../sld/1.0.20/StyledLayerDescriptor.xsd"/>
> > > >
> > > > <element name="QueryLayer" type="soapenc:string" minOccurs="0"/>
> > > > <element name="InfoFormat" type="soapenc:string" minOccurs="0"/>
> > > > <element name="FeatureCount" type="soapenc:int" minOccurs="0"/>
> > > >
> > > > <element name="x" type="soapenc:int" minOccurs="0"/>
> > > >
> > > > <element name="y" type="soapenc:int" minOccurs="0"/>
> > > >
> > > > <element name="InfoFormat" type="soapenc:string" minOccurs="0"/>
> > > >
> > > > <element name="getMapReturn" type="soapenc:base64Binary"/>
> > > > <element name="string" type="soapenc:string"/>
> > > > <element name="Map" type="ows:MapType"/>
> > > > <element name="Image" type="ows:ImageType"/>
> > > >
> > > >   </xsd:schema></wsdl:types>
> > > >
> > > >
> > > >    <wsdl:message name="getMapResponse">
> > > >
> > > >       <wsdl:part name="getMapReturn" element="tns:getMapReturn"/>
> > > >
> > > >    </wsdl:message>
> > > >
> > > >    <wsdl:message name="getCapabilitiesRequest">
> > > >
> > > >       <wsdl:part name="version" element="ows:version"/>
> > > >       <wsdl:part name="service" element="ows:service"/>
> > > >
> > > >       <wsdl:part name="exceptions" element="ows:exceptions"/>
> > > >
> > > >       <wsdl:part name="section" element="ows:section"/>
> > > >
> > > >    </wsdl:message>
> > > >
> > > >    <wsdl:message name="getCapabilitiesResponse">
> > > >
> > > >       <wsdl:part name="getCapabilitiesReturn" element="tns:string"/>
> > > >    </wsdl:message>
> > > >
> > > >    <wsdl:message name="getFeatureInfoResponse">
> > > >
> > > >       <wsdl:part name="getFeatureInfoReturn" element="tns:string"/>
> > > >
> > > >    </wsdl:message>
> > > >
> > > >    <wsdl:message name="getFeatureInfoRequest">
> > > >
> > > >       <wsdl:part name="version" element="ows:version"/>
> > > >       <wsdl:part name="service" element="ows:service"/>
> > > >
> > > >       <wsdl:part name="exceptions" element="ows:exceptions"/>
> > > >
> > > > <wsdl:part name="Map" element="tns:Map"/>
> > > >
> > > >      <wsdl:part name="Image" element="tns:Image"/>
> > > >
> > > >       <wsdl:part name="StyledLayerDescriptor"
> > > > element="sld:StyledLayerDescriptor"/>
> > > >
> > > > <wsdl:part name="QueryLayer" element="tns:QueryLayer"/>
> > > > <wsdl:part name="InfoFormat" element="tns:InfoFormat" />
> > > > <wsdl:part name="FeatureCount" element="tns:FeatureCount" />
> > > > <wsdl:part name="x" element="tns:x" />
> > > > <wsdl:part name="y" element="tns:y" />
> > > > <wsdl:part name="Vendor" element="ows:Vendor" />
> > > >
> > > >    </wsdl:message>
> > > >
> > > >    <wsdl:message name="getMapRequest">
> > > >
> > > >       <wsdl:part name="version" element="ows:version"/>
> > > >
> > > >       <wsdl:part name="service" element="ows:service"/>
> > > >       <wsdl:part name="exceptions" element="ows:exceptions"/>
> > > >
> > > >       <wsdl:part name="Map" element="tns:Map"/>
> > > >
> > > >      <wsdl:part name="Image" element="tns:Image"/>
> > > >
> > > >       <wsdl:part name="StyledLayerDescriptor"
> > > > element="sld:StyledLayerDescriptor"/>
> > > >
> > > >    </wsdl:message>
> > > >
> > > >    <wsdl:portType name="Wms">
> > > >       <wsdl:operation name="getMap" parameterOrder="version service
> > > > exceptions Map Image StyledLayerDescriptor">
> > > >
> > > >          <wsdl:input message="impl:getMapRequest"
> > > name="getMapRequest"/>
> > > >
> > > >          <wsdl:output message="impl:getMapResponse"
> > > > name="getMapResponse"/>
> > > >
> > > >       </wsdl:operation>
> > > >
> > > >       <wsdl:operation name="getCapabilities" parameterOrder="version
> > > > service exceptions section">
> > > >
> > > >          <wsdl:input message="impl:getCapabilitiesRequest"
> > > > name="getCapabilitiesRequest"/> <wsdl:output
> > > > message="impl:getCapabilitiesResponse"
> > > name="getCapabilitiesResponse"/>
> > > >
> > > >       </wsdl:operation>
> > > >
> > > >       <wsdl:operation name="getFeatureInfo" parameterOrder="version
> > > > service
> > > > exceptions Map Image StyledLayerDescriptor QueryLayer InfoFormat
> > > > FeatureCount x y Vendor">
> > > >
> > > >          <wsdl:input message="impl:getFeatureInfoRequest"
> > > > name="getFeatureInfoRequest"/>
> > > >
> > > >          <wsdl:output message="impl:getFeatureInfoResponse"
> > > > name="getFeatureInfoResponse"/>
> > > >
> > > >       </wsdl:operation>
> > > >    </wsdl:portType>
> > > >
> > > >    <wsdl:binding name="wmsSoapBinding" type="impl:Wms">
> > > >
> > > >       <wsdlsoap:binding style="document"
> > > > transport="http://schemas.xmlsoap.org/soap/http"/
> > > <http://schemas.xmlsoap.org/soap/http%22/>>
> > > >
> > > >       <wsdl:operation name="getMap">
> > > >
> > > >          <wsdlsoap:operation soapAction=""/>
> > > >
> > > >          <wsdl:input name="getMapRequest">
> > > >             <wsdlsoap:body  namespace="urn:Wms" use="literal"/>
> > > >
> > > >          </wsdl:input>
> > > >
> > > >          <wsdl:output name="getMapResponse">
> > > >
> > > >             <wsdlsoap:body  namespace="urn:Wms" use="literal"/>
> > > >
> > > >          </wsdl:output>
> > > >
> > > >       </wsdl:operation>
> > > >       <wsdl:operation name="getCapabilities">
> > > >
> > > >          <wsdlsoap:operation soapAction=""/>
> > > >
> > > >          <wsdl:input name="getCapabilitiesRequest">
> > > >
> > > >             <wsdlsoap:body  namespace="urn:Wms" use="literal"/>
> > > >
> > > >          </wsdl:input>
> > > >
> > > >          <wsdl:output name="getCapabilitiesResponse">
> > > >             <wsdlsoap:body  namespace="urn:Wms" use="literal"/>
> > > >
> > > >          </wsdl:output>
> > > >
> > > >       </wsdl:operation>
> > > >
> > > >       <wsdl:operation name="getFeatureInfo">
> > > >
> > > >          <wsdlsoap:operation soapAction=""/>
> > > >
> > > >          <wsdl:input name="getFeatureInfoRequest">
> > > >             <wsdlsoap:body  namespace="urn:Wms" use="literal"/>
> > > >
> > > >          </wsdl:input>
> > > >
> > > >          <wsdl:output name="getFeatureInfoResponse">
> > > >
> > > >             <wsdlsoap:body  namespace="urn:Wms" use="literal"/>
> > > >
> > > >          </wsdl:output>
> > > >
> > > >       </wsdl:operation>
> > > >    </wsdl:binding>
> > > >
> > > >    <wsdl:service name="WmsService">
> > > >
> > > >       <wsdl:port binding="impl:wmsSoapBinding" name="wms">
> > > >
> > > >          <wsdlsoap:address
> > > > location=" http://localhost:8080/axis/services/wms"/<http://localhost:8080/axis/services/wms%22/>
> > > >
> > > >
> > > >       </wsdl:port>
> > > >
> > > >    </wsdl:service>
> > > > </wsdl:definitions>
> > > >
> > > >
> > > >
> > > >   ----- Original Message -----
> > > >   From: Anne Thomas Manes
> > > >   To: axis-user@ws.apache.org
> > > >   Sent: Tuesday, December 13, 2005 1:56 AM
> > > >   Subject: Re: Server.generalException - makeTypeElement() was told
> > > to
> > > > create a type "{http://www.opengis.net/sld}<http://www.opengis.net/sld%7D>>FeatureTypeConstraint",
> > > with
> > > > no
> > > > containing element
> > > >
> > > >
> > > >   This definition in your urn:Wms schema should be removed:
> > > >
> > > >   <xsd:element name="StyledLayerDescriptor"
> > > > ref="sld:StyledLayerDescriptor"
> > > >
> > > >   minOccurs="0"/>
> > > >
> > > >   The element is defined in the sld schema. There's no reason to
> > > define it
> > > > again in the Wms schema. Besides, you can't name an element and
> > > reference
> > > > another element in the same definition.
> > > >
> > > >
> > > >   Anne
> > > >
> > > >   ps -- with such a complex schema, I strongly encourage you to
> > > switch to
> > > > document/literal rather than rpc/encoded.
> > > >
> > > >
> > > >   On 12/11/05, Ales St < stanax@seznam.cz> wrote:
> > > >     Hi
> > > >     I have a problem, I use Axis 1.3. and I generate classes from
> > > wsdl by
> > > >     wsdl2java and when I translate it and copy to Tomcat and tryed
> > > to see
> > > > a
> > > > list of services and their wsdl it write this:
> > > >
> > > >     AXIS error
> > > >     Sorry, something seems to have gone wrong... here are the
> > > details:
> > > >     Fault - makeTypeElement() was told to create a type
> > > >     "{http://www.opengis.net/sld} <http://www.opengis.net/sld%7D>>FeatureTypeConstraint",
> > > with no
> > > > containing element
> > > >     AxisFault
> > > >     faultCode:
> > > >     { http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
> > > <http://schemas.xmlsoap.org/soap/envelope/%7DServer.generalException>
> > > >     faultSubcode:
> > > >     faultString: makeTypeElement() was told to create a type
> > > >     "{http://www.opengis.net/sld} >FeatureTypeConstraint", with no
> > > > containing element
> > > >     faultActor:  faultNode:  faultDetail:
> > > >     {http://xml.apache.org/axis/}hostname:pocitac<http://xml.apache.org/axis/%7Dhostname:pocitac>
> > > >
> > > >
> > > >     So can enybody write me what is wrong? It is wery important for
> > > me.
> > > > Down I enclose wsdl and xsd file.If you want to see all importants
> > > files,
> > > > you can find them on www.sweb.cz/stanax/xsd.zip
> > > >     Tahnks
> > > >                 Ales
> > > >
> > > >     Wsdl:
> > > >     <?xml version="1.0" encoding="UTF-8"?>
> > > >     <wsdl:definitions targetNamespace="urn:Wms"
> > > >     xmlns:tns="urn:Wms"
> > > >     xmlns:sld=" http://www.opengis.net/sld"
> > > >     xmlns:ows="http://www.opengis.net/ows"
> > > >     xmlns:gml=" http://www.opengis.net/gml"
> > > >     xmlns:apachesoap="http://xml.apache.org/xml-soap"
> > > >     xmlns:impl="urn:Wms"
> > > >     xmlns:intf="urn:Wms"
> > > >     xmlns:soapenc=" http://schemas.xmlsoap.org/soap/encoding/"
> > > >     xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/ "
> > > >     xmlns:wsdlsoap=" http://schemas.xmlsoap.org/wsdl/soap/"
> > > >     xmlns:xsd="http://www.w3.org/2001/XMLSchema ">
> > > >
> > > >
> > > >     <wsdl:types>
> > > >       <xsd:schema targetNamespace="urn:Wms"
> > > >     xmlns="http://www.w3.org/2001/XMLSchema "
> > > >     xmlns:soapenc=" http://schemas.xmlsoap.org/soap/encoding/">
> > > >          <xsd:import namespace=" http://www.opengis.net/ows"
> > > >     schemaLocation="./wms_schemas.xsd"/>
> > > >          <xsd:import namespace="http://www.opengis.net/sld"
> > > >     schemaLocation="../sld/1.0.20/StyledLayerDescriptor.xsd"/>
> > > >
> > > >     <xsd:element name="StyledLayerDescriptor"
> > > > ref="sld:StyledLayerDescriptor" minOccurs="0"/>
> > > >
> > > >     <element name="QueryLayer" type="soapenc:string" minOccurs="0"/>
> > > >     <element name="InfoFormat" type="soapenc:string" minOccurs="0"/>
> > >
> > > >     <element name="FeatureCount" type="soapenc:int" minOccurs="0"/>
> > > >
> > > >     <element name="x" type="soapenc:int" minOccurs="0"/>
> > > >     <element name="y" type="soapenc:int" minOccurs="0"/>
> > > >
> > > >       </xsd:schema>
> > > >
> > > >     </wsdl:types>
> > > >
> > > >
> > > >        <wsdl:message name="getMapResponse">
> > > >
> > > >           <wsdl:part name="getMapReturn"
> > > type="soapenc:base64Binary"/>
> > > >
> > > >        </wsdl:message>
> > > >
> > > >        <wsdl:message name="getCapabilitiesRequest">
> > > >
> > > >           <wsdl:part name="version" element="ows:version"/>
> > > >
> > > >           <wsdl:part name="service" element="ows:service"/>
> > > >
> > > >           <wsdl:part name="exceptions" element="ows:exceptions"/>
> > > >
> > > >           <wsdl:part name="section" element="ows:section"/>
> > > >
> > > >        </wsdl:message>
> > > >
> > > >        <wsdl:message name="getCapabilitiesResponse">
> > > >
> > > >           <wsdl:part name="getCapabilitiesReturn"
> > > type="soapenc:string"/>
> > > >
> > > >        </wsdl:message>
> > > >
> > > >        <wsdl:message name="getFeatureInfoResponse">
> > > >
> > > >           <wsdl:part name="getFeatureInfoReturn"
> > > type="soapenc:string"/>
> > > >
> > > >        </wsdl:message>
> > > >
> > > >        <wsdl:message name="getFeatureInfoRequest">
> > > >
> > > >           <wsdl:part name="version" element="ows:version"/>
> > > >
> > > >           <wsdl:part name="service" element="ows:service"/>
> > > >
> > > >           <wsdl:part name="exceptions" element="ows:exceptions"/>
> > > >
> > > >       <wsdl:part name="Map" type="ows:MapType"/>
> > > >
> > > >          <wsdl:part name="Image" type="ows:ImageType"/>
> > > >
> > > >           <wsdl:part name="StyledLayerDescriptor"
> > > >     element="tns:StyledLayerDescriptor"/>
> > > >
> > > >     <wsdl:part name="QueryLayer" element="tns:QueryLayer"/>
> > > >     <wsdl:part name="InfoFormat" element="tns:InfoFormat" />
> > > >     <wsdl:part name="FeatureCount" element="tns:FeatureCount" />
> > > >     <wsdl:part name="x" element="tns:x" />
> > > >     <wsdl:part name="y" element="tns:y" />
> > > >     <wsdl:part name="Vendor" element="ows:Vendor" />
> > > >
> > > >        </wsdl:message>
> > > >
> > > >        <wsdl:message name="getMapRequest">
> > > >
> > > >           <wsdl:part name="version" element="ows:version"/>
> > > >
> > > >           <wsdl:part name="service" element="ows:service"/>
> > > >
> > > >           <wsdl:part name="exceptions" element="ows:exceptions"/>
> > > >
> > > >           <wsdl:part name="Map" type="ows:MapType"/>
> > > >
> > > >           <wsdl:part name="Image" type="ows:ImageType"/>
> > > >
> > > >           <wsdl:part name="StyledLayerDescriptor"
> > > >     element="tns:StyledLayerDescriptor"/>
> > > >
> > > >
> > > >        </wsdl:message>
> > > >
> > > >        <wsdl:portType name="Wms">
> > > >
> > > >           <wsdl:operation name="getMap" parameterOrder="version
> > > service
> > > >     exceptions Map Image StyledLayerDescriptor">
> > > >
> > > >              <wsdl:input message="impl:getMapRequest"
> > > > name="getMapRequest"/>
> > > >
> > > >              <wsdl:output message="impl:getMapResponse"
> > > > name="getMapResponse"/>
> > > >
> > > >           </wsdl:operation>
> > > >
> > > >           <wsdl:operation name="getCapabilities"
> > > parameterOrder="version
> > > > service exceptions section">
> > > >
> > > >              <wsdl:input message="impl:getCapabilitiesRequest"
> > > >     name="getCapabilitiesRequest"/>
> > > >
> > > >              <wsdl:output message="impl:getCapabilitiesResponse"
> > > >     name="getCapabilitiesResponse"/>
> > > >
> > > >           </wsdl:operation>
> > > >
> > > >           <wsdl:operation name="getFeatureInfo"
> > > parameterOrder="version
> > > > service exceptions Map Image StyledLayerDescriptor QueryLayer
> > > InfoFormat
> > > > FeatureCount x y Vendor">
> > > >
> > > >              <wsdl:input message="impl:getFeatureInfoRequest"
> > > >     name="getFeatureInfoRequest"/>
> > > >
> > > >              <wsdl:output message="impl:getFeatureInfoResponse"
> > > >     name="getFeatureInfoResponse"/>
> > > >
> > > >           </wsdl:operation>
> > > >
> > > >        </wsdl:portType>
> > > >
> > > >        <wsdl:binding name="wmsSoapBinding" type="impl:Wms">
> > > >
> > > >           <wsdlsoap:binding style="rpc"
> > > >     transport="http://schemas.xmlsoap.org/soap/http"/<http://schemas.xmlsoap.org/soap/http%22/>>
> > > >
> > > >           <wsdl:operation name="getMap">
> > > >
> > > >              <wsdlsoap:operation soapAction=""/>
> > > >
> > > >              <wsdl:input name="getMapRequest">
> > > >
> > > >                 <wsdlsoap:body
> > > >     encodingStyle=" http://schemas.xmlsoap.org/soap/encoding/"
> > > >     namespace="urn:Wms" use="encoded"/>
> > > >
> > > >              </wsdl:input>
> > > >
> > > >              <wsdl:output name="getMapResponse">
> > > >
> > > >                 <wsdlsoap:body
> > > >     encodingStyle="http://schemas.xmlsoap.org/soap/encoding/ "
> > > >     namespace="urn:Wms" use="encoded"/>
> > > >
> > > >              </wsdl:output>
> > > >
> > > >           </wsdl:operation>
> > > >
> > > >           <wsdl:operation name="getCapabilities">
> > > >
> > > >              <wsdlsoap:operation soapAction=""/>
> > > >
> > > >              <wsdl:input name="getCapabilitiesRequest">
> > > >
> > > >                 <wsdlsoap:body
> > > >     encodingStyle=" http://schemas.xmlsoap.org/soap/encoding/ "
> > > >     namespace="urn:Wms" use="encoded"/>
> > > >
> > > >              </wsdl:input>
> > > >
> > > >              <wsdl:output name="getCapabilitiesResponse">
> > > >
> > > >                 <wsdlsoap:body
> > > >     encodingStyle="http://schemas.xmlsoap.org/soap/encoding/ "
> > > >     namespace="urn:Wms" use="encoded"/>
> > > >
> > > >              </wsdl:output>
> > > >
> > > >           </wsdl:operation>
> > > >
> > > >           <wsdl:operation name="getFeatureInfo">
> > > >
> > > >              <wsdlsoap:operation soapAction=""/>
> > > >
> > > >              <wsdl:input name="getFeatureInfoRequest">
> > > >
> > > >                 <wsdlsoap:body
> > > >     encodingStyle="http://schemas.xmlsoap.org/soap/encoding/ "
> > > >     namespace="urn:Wms" use="encoded"/>
> > > >
> > > >              </wsdl:input>
> > > >
> > > >              <wsdl:output name="getFeatureInfoResponse">
> > > >
> > > >                 <wsdlsoap:body
> > > >     encodingStyle=" http://schemas.xmlsoap.org/soap/encoding/ "
> > > >     namespace="urn:Wms" use="encoded"/>
> > > >
> > > >              </wsdl:output>
> > > >
> > > >           </wsdl:operation>
> > > >
> > > >        </wsdl:binding>
> > > >
> > > >        <wsdl:service name="WmsService">
> > > >
> > > >           <wsdl:port binding="impl:wmsSoapBinding" name="wms">
> > > >
> > > >              <wsdlsoap:address
> > > >     location=" http://localhost:8080/axis/services/wms"/<http://localhost:8080/axis/services/wms%22/>
> > > >
> > > >
> > > >           </wsdl:port>
> > > >
> > > >        </wsdl:service>
> > > >
> > > >     </wsdl:definitions>
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >     xsd file StyledLayerDescriptor.xsd:
> > > >
> > > >     <?xml version="1.0" encoding="UTF-8"?>
> > > >     <xsd:schema targetNamespace="http://www.opengis.net/sld"
> > > >                 xmlns:sld=" http://www.opengis.net/sld"
> > > >                 xmlns:ogc="http://www.opengis.net/ogc"
> > > >                 xmlns:xsd="http://www.w3.org/2001/XMLSchema "
> > > >                 elementFormDefault="qualified">
> > > >       <xsd:include schemaLocation="FeatureStyle.xsd"/>
> > > >       <xsd:import namespace="http://www.opengis.net/ogc "
> > > >                   schemaLocation="../../filter/1.0.0/filter.xsd"/>
> > > >
> > > >     <!--
> > > >
> > > >
> > > ***********************************************************************
> > > > --> <xsd:annotation>
> > > >         <xsd:documentation>
> > > >           STYLED LAYER DESCRIPTOR version 1.0.20 (2002-09-21)
> > > >         </xsd:documentation>
> > > >       </xsd:annotation>
> > > >
> > > >       <xsd:element name="StyledLayerDescriptor">
> > > >         <xsd:annotation>
> > > >           <xsd:documentation>
> > > >             A StyledLayerDescriptor is a sequence of styled layers,
> > > > represented at the first level by NamedLayer and UserLayer elements.
> > > > </xsd:documentation>
> > > >         </xsd:annotation>
> > > >         <xsd:complexType>
> > > >           <xsd:sequence>
> > > >             <xsd:element ref="sld:Name" minOccurs="0"/>
> > > >             <xsd:element ref="sld:Description" minOccurs="0"/>
> > > >             <xsd:element ref="sld:EnvironmentVariables"
> > > minOccurs="0"/>
> > > >             <xsd:element ref="sld:UseSLDLibrary" minOccurs="0"
> > >
> > > >                                                  maxOccurs="unbounded"/>
> > > >             <xsd:choice minOccurs="0" maxOccurs="unbounded">
> > > >               <xsd:element ref="sld:NamedLayer"/>
> > > >               <xsd:element ref="sld:UserLayer"/>
> > > >             </xsd:choice>
> > > >           </xsd:sequence>
> > > >           <xsd:attribute name="version" type="sld:VersionType"
> > > > use="required"/> </xsd:complexType>
> > > >       </xsd:element>
> > > >
> > > >     <!--
> > > >
> > > >
> > > ***********************************************************************
> > > > --> <xsd:annotation>
> > > >         <xsd:documentation>
> > > >           RUN-TIME ENVIRONMENT VARIABLES
> > > >         </xsd:documentation>
> > > >       </xsd:annotation>
> > > >
> > > >       <xsd:element name="EnvironmentVariables">
> > > >         <xsd:annotation>
> > > >           <xsd:documentation>
> > > >             An "EnvironmentVariables" element includes an XML blob
> > > which
> > > >             can be used to declare the values to use for global
> > > > environment
> > > >             variables during the execution of the styling
> > > operations.
> > > >             These variables may be refered to in styles and symbols
> > > in the
> > > >             same way as feature properties.
> > > >           </xsd:documentation>
> > > >         </xsd:annotation>
> > > >         <xsd:complexType>
> > > >           <xsd:sequence>
> > > >             <xsd:any/>
> > > >           </xsd:sequence>
> > > >         </xsd:complexType>
> > > >       </xsd:element>
> > > >
> > > >     <!--
> > > >
> > > >
> > > ***********************************************************************
> > > > --> <xsd:annotation>
> > > >         <xsd:documentation>
> > > >           SLD LIBRARIES
> > > >         </xsd:documentation>
> > > >       </xsd:annotation>
> > > >
> > > >       <xsd:element name="UseSLDLibrary">
> > > >         <xsd:annotation>
> > > >           <xsd:documentation>
> > > >             The UseSLDLibrary tag specifies that an external SLD
> > > document
> > > >             should be used as a "library" of named layers and styles
> > > to
> > > >             augment the set of named layers and styles that are
> > > available
> > > >             for use inside of a WMS.  In the event of name
> > > collisions, the
> > > >             SLD library takes precedence over the ones internal to
> > > the
> > > > WMS.
> > > >             Any number of libraries may be specified in an SLD and
> > > each
> > > >             successive library takes precedence over the former ones
> > > in
> > > > the
> > > >             case of name collisions.
> > > >           </xsd:documentation>
> > > >         </xsd:annotation>
> > > >         <xsd:complexType>
> > > >           <xsd:sequence>
> > > >             <xsd:element ref="sld:OnlineResource"/>
> > > >           </xsd:sequence>
> > > >         </xsd:complexType>
> > > >       </xsd:element>
> > > >
> > > >     <!--
> > > >
> > > >
> > > ***********************************************************************
> > > > --> <xsd:annotation>
> > > >         <xsd:documentation>
> > > >           LAYERS AND STYLES
> > > >         </xsd:documentation>
> > > >       </xsd:annotation>
> > > >
> > > >       <xsd:element name="NamedLayer">
> > > >         <xsd:annotation>
> > > >           <xsd:documentation>
> > > >             A NamedLayer is a layer of data that has a name
> > > advertised by
> > > > a
> > > > WMS. </xsd:documentation>
> > > >         </xsd:annotation>
> > > >         <xsd:complexType>
> > > >           <xsd:sequence>
> > > >             <xsd:element ref="sld:Name"/>
> > > >             <xsd:element ref="sld:Description" minOccurs="0"/>
> > > >             <xsd:element ref="sld:LayerFeatureConstraints"
> > > minOccurs="0"/>
> > > >             <xsd:choice minOccurs="0" maxOccurs="unbounded">
> > > >               <xsd:element ref="sld:NamedStyle"/>
> > > >               <xsd:element ref="sld:UserStyle"/>
> > > >             </xsd:choice>
> > > >           </xsd:sequence>
> > > >         </xsd:complexType>
> > > >       </xsd:element>
> > > >
> > > >       <xsd:element name="NamedStyle">
> > > >         <xsd:annotation>
> > > >           <xsd:documentation>
> > > >             A NamedStyle is used to refer to a style that has a name
> > > in a
> > > > WMS. </xsd:documentation>
> > > >         </xsd:annotation>
> > > >         <xsd:complexType>
> > > >           <xsd:sequence>
> > > >             <xsd:element ref="sld:Name"/>
> > > >             <xsd:element ref="sld:Description" minOccurs="0"/>
> > > >           </xsd:sequence>
> > > >         </xsd:complexType>
> > > >       </xsd:element>
> > > >
> > > >       <xsd:element name="UserLayer">
> > > >         <xsd:annotation>
> > > >           <xsd:documentation>
> > > >             A UserLayer allows a user-defined layer to be built from
> > > WFS
> > > > and WCS data.
> > > >           </xsd:documentation>
> > > >         </xsd:annotation>
> > > >         <xsd:complexType>
> > > >           <xsd:sequence>
> > > >             <xsd:element ref="sld:Name" minOccurs="0"/>
> > > >             <xsd:element ref="sld:Description" minOccurs="0"/>
> > > >             <xsd:element ref="sld:RemoteOWS" minOccurs="0"/>
> > > >             <xsd:element ref="sld:LayerFeatureConstraints"/>
> > > >             <xsd:element ref="sld:UserStyle" maxOccurs="unbounded"/>
> > > >           </xsd:sequence>
> > > >         </xsd:complexType>
> > > >       </xsd:element>
> > > >
> > > >       <xsd:element name="RemoteOWS">
> > > >         <xsd:annotation>
> > > >           <xsd:documentation>
> > > >             A RemoteOWS gives a reference to a remote
> > > WFS/WCS/other-OWS
> > > > server. </xsd:documentation>
> > > >         </xsd:annotation>
> > > >         <xsd:complexType>
> > > >           <xsd:sequence>
> > > >             <xsd:element ref="sld:Service"/>
> > > >             <xsd:element ref="sld:OnlineResource"/>
> > > >           </xsd:sequence>
> > > >         </xsd:complexType>
> > > >       </xsd:element>
> > > >
> > > >       <xsd:element name="Service">
> > > >         <xsd:annotation>
> > > >           <xsd:documentation>
> > > >             A Service refers to the type of a remote OWS server.
> > > >           </xsd:documentation>
> > > >         </xsd:annotation>
> > > >         <xsd:simpleType>
> > > >           <xsd:restriction base="xsd:string">
> > > >             <xsd:enumeration value="WFS"/>
> > > >             <xsd:enumeration value="WCS"/>
> > > >           </xsd:restriction>
> > > >         </xsd:simpleType>
> > > >       </xsd:element>
> > > >
> > > >       <xsd:element name="LayerFeatureConstraints">
> > > >         <xsd:annotation>
> > > >           <xsd:documentation>
> > > >             LayerFeatureConstraints define what features &amp;
> > > feature
> > > > types are referenced in a layer.
> > > >           </xsd:documentation>
> > > >         </xsd:annotation>
> > > >         <xsd:complexType>
> > > >           <xsd:sequence>
> > > >             <xsd:element ref="sld:FeatureTypeConstraint"
> > > > maxOccurs="unbounded"/> </xsd:sequence>
> > > >         </xsd:complexType>
> > > >       </xsd:element>
> > > >
> > > >       <xsd:element name="FeatureTypeConstraint">
> > > >         <xsd:annotation>
> > > >           <xsd:documentation>
> > > >             A FeatureTypeConstraint identifies a specific feature
> > > type and
> > > >             supplies fitlering.
> > > >           </xsd:documentation>
> > > >         </xsd:annotation>
> > > >         <xsd:complexType>
> > > >           <xsd:sequence>
> > > >             <xsd:element ref="sld:FeatureTypeName" minOccurs="0"/>
> > > >             <xsd:element ref="ogc:Filter" minOccurs="0"/>
> > > >             <xsd:element ref="sld:Extent" minOccurs="0"
> > > > maxOccurs="unbounded"/> </xsd:sequence>
> > > >         </xsd:complexType>
> > > >       </xsd:element>
> > > >
> > > >       <xsd:element name="Extent">
> > > >         <xsd:annotation>
> > > >           <xsd:documentation>
> > > >             An Extent gives feature/coverage/raster/matrix dimension
> > > > extent. </xsd:documentation>
> > > >         </xsd:annotation>
> > > >         <xsd:complexType>
> > > >           <xsd:sequence>
> > > >             <xsd:element ref="sld:Name"/>
> > > >             <xsd:element ref="sld:Value"/>
> > > >           </xsd:sequence>
> > > >         </xsd:complexType>
> > > >       </xsd:element>
> > > >       <xsd:element name="Value" type="xsd:string"/>
> > > >
> > > >       <xsd:element name="UserStyle">
> > > >         <xsd:annotation>
> > > >           <xsd:documentation>
> > > >             A UserStyle allows user-defined styling and is
> > > semantically
> > > >             equivalent to a WMS named style.
> > > >           </xsd:documentation>
> > > >         </xsd:annotation>
> > > >         <xsd:complexType>
> > > >           <xsd:sequence>
> > > >             <xsd:element ref="sld:Name" minOccurs="0"/>
> > > >             <xsd:element ref="sld:Description" minOccurs="0"/>
> > > >             <xsd:element ref="sld:IsDefault" minOccurs="0"/>
> > > >             <xsd:element ref="sld:FeatureStyle"
> > > maxOccurs="unbounded"/>
> > > >           </xsd:sequence>
> > > >         </xsd:complexType>
> > > >       </xsd:element>
> > > >       <xsd:element name="IsDefault" type="xsd:boolean"/>
> > > >
> > > >     </xsd:schema>
> > >
> > >
> >
>

Re: Server.generalException - makeTypeElement() was told to create a type "{http://www.opengis.net/sld}>StyledLayerDescriptor", with no containing element

Posted by Ales St <st...@seznam.cz>.
Hi,
You thing that I must copy file StyledLayerDescriptor.xsd in wsdl definitions? Because I did it and still the problem. Or you thing, that I must coppy files included in StyledLayerDescriptor.xsd to this StyledLayerDescriptor.xsd file? Problem is , that the multi-nested includes is more only that in StyledLayerDescriptor.xsd file. So it some other solution? If you have some time please see my wsdl which is coppyed down,because I not sure,that it is ok. Problem is that this is my dissertation on university and it is very important for me to solve it.
Thank you for your time
                Ales
  ----- Original Message ----- 
  From: Anne Thomas Manes 
  To: axis-user@ws.apache.org 
  Sent: Tuesday, December 13, 2005 10:57 PM
  Subject: Re: Server.generalException - makeTypeElement() was told to create a type "{http://www.opengis.net/sld}>StyledLayerDescriptor", with no containing element


  It could be that Axis is having a little trouble dealing with the multi-nested includes. You might try copying the included schema definitions into the sld schema and giving it a try. (just paste the element and type definitions in -- remove the <schema...>, <include..>, and <import...> stuff).

  If this fixes the problem, please log a bug.

  Thanks,
  Anne


  On 12/13/05, Ales St <st...@seznam.cz> wrote:
    Hi Anne
    I include it , and I have a still the same problem. In file StyledLayerDescriptor.xsd  is include file FeatureStyle.xsd" in which is include file Symbol.xsd and in it is include file common.xsd so I thing, that problem is somewhere else,bud I don´t know where.
                Ales
      ----- Original Message ----- 
      From: Anne Thomas Manes 
      To: axis-user@ws.apache.org 
      Sent: Tuesday, December 13, 2005 10:33 PM
      Subject: Re: Server.generalException - makeTypeElement() was told to create a type "{http://www.opengis.net/sld}>StyledLayerDescriptor", with no containing element


      I repeat an earlier comment I made to you. 

      The StyledLayerDescriptor.xsd schema references a number of elements that are not defined in the schema (Name, Description, etc.) These elements are defined in a different schema (common.xsd). You must edit the StyledLayerDescriptor.xsd schema and <xsd:include> the common.xsd schema.

      Anne


      On 12/13/05, Ales St <st...@seznam.cz> wrote: 
        Hi,
        I have a new problem I writed now a document/literal oriented wsdl, classes
        are generated, but when  I try to see wsdl on axis-server side Axis error is
        generated:

        AXIS error
        Sorry, something seems to have gone wrong... here are the details: 

        Fault - makeTypeElement() was told to create a type
        "{http://www.opengis.net/sld}>StyledLayerDescriptor", with no containing
        elementAxisFault
        faultCode: 
        {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException 
        faultSubcode:
        faultString: makeTypeElement() was told to create a type 
        "{http://www.opengis.net/sld}>StyledLayerDescriptor", with no containing
        element
        faultActor:  faultNode:  faultDetail:
                { http://xml.apache.org/axis/}hostname:pocitac

        So I don´t knew what is wrong, it could be some import xsd problem, but I
        don´t knew which and how to solve it. I see some files on web but, they look
        like similar as that which I have. I give here a wsdl file, and all other 
        files which is important to generate is in www.sweb.cz/stanax/xsd.zip .
        I will be wery happy if somebody help me, because I solve this problem for
        some days and I can´t a solution. 
        Thank you
                        Ales
        wsdl file:
        <?xml version="1.0" encoding="UTF-8"?>
        <wsdl:definitions targetNamespace="urn:Wms"
        xmlns:apachesoap=" http://xml.apache.org/xml-soap"
        xmlns:impl="urn:Wms"
        xmlns:intf="urn:Wms"
        xmlns:wsdl=" http://schemas.xmlsoap.org/wsdl/"
        xmlns:sld="http://www.opengis.net/sld"
        xmlns:ows=" http://www.opengis.net/ows"
        xmlns:wsdlsoap=" http://schemas.xmlsoap.org/wsdl/soap/"
        xmlns:xsd="http://www.w3.org/2001/XMLSchema ">

        <wsdl:types>
        <xsd:schema elementFormDefault="qualified" 
        targetNamespace="urn:Wms"
        xmlns="http://www.w3.org/2001/XMLSchema "
        xmlns:sld="http://www.opengis.net/sld "
        xmlns:ows="http://www.opengis.net/ows">

        <xsd:import namespace="http://www.opengis.net/sld"
        schemaLocation="../sld/1.0.20/StyledLayerDescriptor.xsd"/> 
          <xsd:import namespace=" http://www.opengis.net/ows"
                 schemaLocation="./wms_schemas.xsd"/> 
        <element name="getFeatureInfo">
            <complexType>
             <sequence>
              <element ref ="ows:version"/>
              <element  ref ="ows:service"/>
              <element ref ="ows:exceptions"/> 
              <element  ref ="ows:Map"/>
              <element  ref ="ows:Image"/>
              <element  ref ="sld:StyledLayerDescriptor"/>
              <element name="QueryLayer" type ="xsd:string"/> 
              <element name="InfoFormat" type ="xsd:string"/>
              <element name="FeatureCount" type ="xsd:int"/>
              <element name="x" type ="xsd:int"/> 
              <element name="y" type ="xsd:int"/>
              <element ref ="ows:Vendor"/>
             </sequence>
            </complexType>
           </element>

           <element name="getFeatureInfoResponse"> 
            <complexType>
             <sequence>
              <element name="getFeatureInfoReturn" type="xsd:string"/>
             </sequence>
            </complexType>
           </element> 

           <element name="getMap">
            <complexType>
             <sequence>
              <element ref ="ows:version"/>
              <element  ref ="ows:service"/>
              <element  ref ="ows:exceptions"/> 
              <element  ref ="ows:Map"/>
              <element  ref ="ows:Image"/>
              <element  ref ="sld:StyledLayerDescriptor"/>
             </sequence>
            </complexType> 
           </element>
           <element name="getMapResponse">
            <complexType>
             <sequence>
              <element name="getMapReturn" type="xsd:base64Binary"/>
             </sequence>
            </complexType>
           </element>
           <element name="getCapabilities">
            <complexType>
             <sequence>
              <element  ref ="ows:version"/> 
              <element  ref ="ows:service"/>
              <element ref ="ows:exceptions"/>
              <element  ref ="ows:section"/>
             </sequence>
            </complexType> 
           </element>
           <element name="getCapabilitiesResponse">
            <complexType>
             <sequence>
              <element name="getCapabilitiesReturn" type="xsd:string"/> 
             </sequence>
            </complexType>
           </element>
          </xsd:schema>

        </wsdl:types>
           <wsdl:message name="getMapResponse">

              <wsdl:part element="impl:getMapResponse" name="parameters"/> 

           </wsdl:message>

           <wsdl:message name="getCapabilitiesRequest">

              <wsdl:part element="impl:getCapabilities" name="parameters"/>

           </wsdl:message> 

           <wsdl:message name="getCapabilitiesResponse">

              <wsdl:part element="impl:getCapabilitiesResponse" name="parameters"/>

           </wsdl:message>

           <wsdl:message name="getFeatureInfoResponse">

              <wsdl:part element="impl:getFeatureInfoResponse" name="parameters"/>

           </wsdl:message>

           <wsdl:message name="getFeatureInfoRequest"> 

              <wsdl:part element="impl:getFeatureInfo" name="parameters"/>

           </wsdl:message>

           <wsdl:message name="getMapRequest">

              <wsdl:part element="impl:getMap" name="parameters"/> 

           </wsdl:message>

           <wsdl:portType name="Wms">

              <wsdl:operation name="getFeatureInfo">

                 <wsdl:input message="impl:getFeatureInfoRequest" 
        name="getFeatureInfoRequest"/>

                 <wsdl:output message="impl:getFeatureInfoResponse"
        name="getFeatureInfoResponse"/>

              </wsdl:operation>

              <wsdl:operation name="getMap"> 

                 <wsdl:input message="impl:getMapRequest" name="getMapRequest"/>

                 <wsdl:output message="impl:getMapResponse" name="getMapResponse"/>

              </wsdl:operation>

              <wsdl:operation name="getCapabilities">

                 <wsdl:input message="impl:getCapabilitiesRequest"
        name="getCapabilitiesRequest"/> 

                 <wsdl:output message="impl:getCapabilitiesResponse"
        name="getCapabilitiesResponse"/>

              </wsdl:operation>

           </wsdl:portType>

           <wsdl:binding name="wmsSoapBinding" type="impl:Wms"> 

              <wsdlsoap:binding style="document"
        transport="http://schemas.xmlsoap.org/soap/http"/> 

              <wsdl:operation name="getFeatureInfo"> 

                 <wsdlsoap:operation soapAction=""/>

                 <wsdl:input name="getFeatureInfoRequest">

                    <wsdlsoap:body use="literal"/>

                 </wsdl:input> 

                 <wsdl:output name="getFeatureInfoResponse">

                    <wsdlsoap:body use="literal"/>

                 </wsdl:output>

              </wsdl:operation>

              <wsdl:operation name="getMap">

                 <wsdlsoap:operation soapAction=""/>

                 <wsdl:input name="getMapRequest">

                    <wsdlsoap:body use="literal"/> 

                 </wsdl:input>

                 <wsdl:output name="getMapResponse">

                    <wsdlsoap:body use="literal"/>

                 </wsdl:output>

              </wsdl:operation> 

              <wsdl:operation name="getCapabilities">

                 <wsdlsoap:operation soapAction=""/>

                 <wsdl:input name="getCapabilitiesRequest">

                    <wsdlsoap:body use="literal"/> 

                 </wsdl:input>

                 <wsdl:output name="getCapabilitiesResponse">

                    <wsdlsoap:body use="literal"/>

                 </wsdl:output>

              </wsdl:operation>

           </wsdl:binding>

           <wsdl:service name="WmsService">

              <wsdl:port binding="impl:wmsSoapBinding" name="wms">

                 <wsdlsoap:address 
        location="http://localhost:8080/axis/services/wms"/> 

              </wsdl:port>

           </wsdl:service>

        </wsdl:definitions> 





        ----- Original Message -----
        From: "iksrazal" <ik...@gmail.com>
        To: <axis-user@ws.apache.org >
        Sent: Tuesday, December 13, 2005 2:56 PM
        Subject: Re: Server.generalException - makeTypeElement() was told to create
        a type "{http://www.opengis.net/sld}>FeatureTypeConstraint", with no 
        containing element


        > So I decided,
        > that my wsdl is wrong, but I don´t know where is a mistake.

        Try the "free as in beer" soa wsdl editor from cape clear. Or try wooden:

        http://incubator.apache.org/woden/ 

        HTH,
        iksrazal

        Em Terça 13 Dezembro 2005 11:39, o Ales St escreveu:
        > Hi
        > I removed that definition, and I tryed to rewrite my wsdl definition to
        > document/literal  type,classes are generated. But when I tryed to se wsdl 
        > which is generated by server, the sam Axis error was generated and in
        > server console was writed this: "Request Message type information has
        > multiple parts that one single wrapped complexType.Use WRAPPED/LITERAL if
        > interoping with some other soap stack becomes a problem." So I decided,
        > that my wsdl is wrong, but I don´t know where is a mistake. I write my
        > wsdl
        > by inspirating some wsdl which I find on the web, because I can't wind 
        > some
        > good definition, how to write it. So if you knew about some good, please
        > send me it. And please see my wsdl,and write to me, where is a problem.
        > Thank you
        >             Ales
        >
        > New wsdl:
        > <?xml version="1.0" encoding="UTF-8"?>
        > <wsdl:definitions targetNamespace="urn:Wms"
        >  xmlns:tns="urn:Wms"
        >  xmlns:sld=" http://www.opengis.net/sld"
        >  xmlns:ows=" http://www.opengis.net/ows"
        > xmlns:gml=" http://www.opengis.net/gml"
        >  xmlns:apachesoap="http://xml.apache.org/xml-soap" 
        >  xmlns:impl="urn:Wms"
        >  xmlns:intf="urn:Wms" 
        >  xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
        >  xmlns:wsdl=" http://schemas.xmlsoap.org/wsdl/ "
        >  xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
        >  xmlns:xsd=" http://www.w3.org/2001/XMLSchema ">
        >
        >
        > <wsdl:types>
        >   <xsd:schema targetNamespace="urn:Wms"
        > xmlns="http://www.w3.org/2001/XMLSchema " 
        > xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"> <xsd:import
        > namespace=" http://www.opengis.net/ows "
        > schemaLocation="./wms_schemas.xsd"/> <xsd:import
        > namespace="http://www.opengis.net/sld "
        > schemaLocation="../sld/1.0.20/StyledLayerDescriptor.xsd"/> 
        >
        > <element name="QueryLayer" type="soapenc:string" minOccurs="0"/>
        > <element name="InfoFormat" type="soapenc:string" minOccurs="0"/> 
        > <element name="FeatureCount" type="soapenc:int" minOccurs="0"/>
        >
        > <element name="x" type="soapenc:int" minOccurs="0"/>
        > 
        > <element name="y" type="soapenc:int" minOccurs="0"/>
        >
        > <element name="InfoFormat" type="soapenc:string" minOccurs="0"/>
        > 
        > <element name="getMapReturn" type="soapenc:base64Binary"/>
        > <element name="string" type="soapenc:string"/>
        > <element name="Map" type="ows:MapType"/> 
        > <element name="Image" type="ows:ImageType"/>
        >
        >   </xsd:schema></wsdl:types>
        >
        >
        >    <wsdl:message name="getMapResponse">
        > 
        >       <wsdl:part name="getMapReturn" element="tns:getMapReturn"/>
        >
        >    </wsdl:message>
        >
        >    <wsdl:message name="getCapabilitiesRequest"> 
        >
        >       <wsdl:part name="version" element="ows:version"/>
        >       <wsdl:part name="service" element="ows:service"/>
        >
        >       <wsdl:part name="exceptions" element="ows:exceptions"/> 
        >
        >       <wsdl:part name="section" element="ows:section"/>
        >
        >    </wsdl:message>
        >
        >    <wsdl:message name="getCapabilitiesResponse">
        >
        >       <wsdl:part name="getCapabilitiesReturn" element="tns:string"/>
        >    </wsdl:message>
        >
        >    <wsdl:message name="getFeatureInfoResponse">
        >
        >       <wsdl:part name="getFeatureInfoReturn" element="tns:string"/>
        >
        >    </wsdl:message>
        >
        >    <wsdl:message name="getFeatureInfoRequest"> 
        >
        >       <wsdl:part name="version" element="ows:version"/>
        >       <wsdl:part name="service" element="ows:service"/>
        >
        >       <wsdl:part name="exceptions" element="ows:exceptions"/> 
        >
        > <wsdl:part name="Map" element="tns:Map"/>
        >
        >      <wsdl:part name="Image" element="tns:Image"/>
        >
        >       <wsdl:part name="StyledLayerDescriptor" 
        > element="sld:StyledLayerDescriptor"/>
        >
        > <wsdl:part name="QueryLayer" element="tns:QueryLayer"/>
        > <wsdl:part name="InfoFormat" element="tns:InfoFormat" /> 
        > <wsdl:part name="FeatureCount" element="tns:FeatureCount" />
        > <wsdl:part name="x" element="tns:x" />
        > <wsdl:part name="y" element="tns:y" /> 
        > <wsdl:part name="Vendor" element="ows:Vendor" />
        >
        >    </wsdl:message>
        >
        >    <wsdl:message name="getMapRequest">
        >
        >       <wsdl:part name="version" element="ows:version"/> 
        >
        >       <wsdl:part name="service" element="ows:service"/>
        >       <wsdl:part name="exceptions" element="ows:exceptions"/>
        >
        >       <wsdl:part name="Map" element="tns:Map"/> 
        >
        >      <wsdl:part name="Image" element="tns:Image"/>
        >
        >       <wsdl:part name="StyledLayerDescriptor"
        > element="sld:StyledLayerDescriptor"/> 
        >
        >    </wsdl:message>
        >
        >    <wsdl:portType name="Wms">
        >       <wsdl:operation name="getMap" parameterOrder="version service
        > exceptions Map Image StyledLayerDescriptor"> 
        >
        >          <wsdl:input message="impl:getMapRequest" name="getMapRequest"/>
        >
        >          <wsdl:output message="impl:getMapResponse"
        > name="getMapResponse"/>
        >
        >       </wsdl:operation> 
        >
        >       <wsdl:operation name="getCapabilities" parameterOrder="version
        > service exceptions section">
        >
        >          <wsdl:input message="impl:getCapabilitiesRequest" 
        > name="getCapabilitiesRequest"/> <wsdl:output
        > message="impl:getCapabilitiesResponse" name="getCapabilitiesResponse"/>
        >
        >       </wsdl:operation>
        >
        >       <wsdl:operation name="getFeatureInfo" parameterOrder="version
        > service
        > exceptions Map Image StyledLayerDescriptor QueryLayer InfoFormat
        > FeatureCount x y Vendor"> 
        >
        >          <wsdl:input message="impl:getFeatureInfoRequest"
        > name="getFeatureInfoRequest"/>
        >
        >          <wsdl:output message="impl:getFeatureInfoResponse" 
        > name="getFeatureInfoResponse"/>
        >
        >       </wsdl:operation>
        >    </wsdl:portType>
        >
        >    <wsdl:binding name="wmsSoapBinding" type="impl:Wms"> 
        >
        >       <wsdlsoap:binding style="document"
        > transport="http://schemas.xmlsoap.org/soap/http"/ >
        >
        >       <wsdl:operation name="getMap"> 
        >
        >          <wsdlsoap:operation soapAction=""/>
        >
        >          <wsdl:input name="getMapRequest">
        >             <wsdlsoap:body  namespace="urn:Wms" use="literal"/>
        >
        >          </wsdl:input>
        >
        >          <wsdl:output name="getMapResponse">
        >
        >             <wsdlsoap:body  namespace="urn:Wms" use="literal"/>
        >
        >          </wsdl:output>
        >
        >       </wsdl:operation>
        >       <wsdl:operation name="getCapabilities"> 
        >
        >          <wsdlsoap:operation soapAction=""/>
        >
        >          <wsdl:input name="getCapabilitiesRequest">
        >
        >             <wsdlsoap:body  namespace="urn:Wms" use="literal"/>
        >
        >          </wsdl:input>
        >
        >          <wsdl:output name="getCapabilitiesResponse">
        >             <wsdlsoap:body  namespace="urn:Wms" use="literal"/>
        >
        >          </wsdl:output>
        >
        >       </wsdl:operation>
        >
        >       <wsdl:operation name="getFeatureInfo"> 
        >
        >          <wsdlsoap:operation soapAction=""/>
        >
        >          <wsdl:input name="getFeatureInfoRequest">
        >             <wsdlsoap:body  namespace="urn:Wms" use="literal"/>
        >
        >          </wsdl:input>
        >
        >          <wsdl:output name="getFeatureInfoResponse">
        >
        >             <wsdlsoap:body  namespace="urn:Wms" use="literal"/>
        >
        >          </wsdl:output>
        >
        >       </wsdl:operation>
        >    </wsdl:binding>
        >
        >    <wsdl:service name="WmsService"> 
        >
        >       <wsdl:port binding="impl:wmsSoapBinding" name="wms">
        >
        >          <wsdlsoap:address
        > location=" http://localhost:8080/axis/services/wms"/>
        >
        >       </wsdl:port>
        >
        >    </wsdl:service>
        > </wsdl:definitions>
        >
        >
        >
        >   ----- Original Message ----- 
        >   From: Anne Thomas Manes
        >   To: axis-user@ws.apache.org
        >   Sent: Tuesday, December 13, 2005 1:56 AM
        >   Subject: Re: Server.generalException - makeTypeElement() was told to 
        > create a type "{http://www.opengis.net/sld}>FeatureTypeConstraint", with
        > no
        > containing element
        >
        >
        >   This definition in your urn:Wms schema should be removed: 
        >
        >   <xsd:element name="StyledLayerDescriptor"
        > ref="sld:StyledLayerDescriptor"
        >
        >   minOccurs="0"/>
        >
        >   The element is defined in the sld schema. There's no reason to define it 
        > again in the Wms schema. Besides, you can't name an element and reference
        > another element in the same definition.
        >
        >
        >   Anne
        >
        >   ps -- with such a complex schema, I strongly encourage you to switch to 
        > document/literal rather than rpc/encoded.
        >
        >
        >   On 12/11/05, Ales St < stanax@seznam.cz> wrote:
        >     Hi
        >     I have a problem, I use Axis 1.3. and I generate classes from wsdl by
        >     wsdl2java and when I translate it and copy to Tomcat and tryed to see
        > a
        > list of services and their wsdl it write this:
        >
        >     AXIS error
        >     Sorry, something seems to have gone wrong... here are the details:
        >     Fault - makeTypeElement() was told to create a type
        >     "{http://www.opengis.net/sld} >FeatureTypeConstraint", with no
        > containing element
        >     AxisFault
        >     faultCode:
        >     { http://schemas.xmlsoap.org/soap/envelope/}Server.generalException 
        >     faultSubcode:
        >     faultString: makeTypeElement() was told to create a type
        >     "{http://www.opengis.net/sld} >FeatureTypeConstraint", with no 
        > containing element
        >     faultActor:  faultNode:  faultDetail:
        >     {http://xml.apache.org/axis/}hostname:pocitac
        >
        >
        >     So can enybody write me what is wrong? It is wery important for me. 
        > Down I enclose wsdl and xsd file.If you want to see all importants files,
        > you can find them on www.sweb.cz/stanax/xsd.zip
        >     Tahnks
        >                 Ales 
        >
        >     Wsdl:
        >     <?xml version="1.0" encoding="UTF-8"?>
        >     <wsdl:definitions targetNamespace="urn:Wms"
        >     xmlns:tns="urn:Wms"
        >     xmlns:sld=" http://www.opengis.net/sld"
        >     xmlns:ows="http://www.opengis.net/ows"
        >     xmlns:gml=" http://www.opengis.net/gml"
        >     xmlns:apachesoap="http://xml.apache.org/xml-soap"
        >     xmlns:impl="urn:Wms"
        >     xmlns:intf="urn:Wms" 
        >     xmlns:soapenc=" http://schemas.xmlsoap.org/soap/encoding/"
        >     xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/ "
        >     xmlns:wsdlsoap=" http://schemas.xmlsoap.org/wsdl/soap/"
        >     xmlns:xsd="http://www.w3.org/2001/XMLSchema ">
        >
        >
        >     <wsdl:types>
        >       <xsd:schema targetNamespace="urn:Wms"
        >     xmlns="http://www.w3.org/2001/XMLSchema "
        >     xmlns:soapenc=" http://schemas.xmlsoap.org/soap/encoding/"> 
        >          <xsd:import namespace=" http://www.opengis.net/ows"
        >     schemaLocation="./wms_schemas.xsd"/>
        >          <xsd:import namespace="http://www.opengis.net/sld"
        >     schemaLocation="../sld/1.0.20/StyledLayerDescriptor.xsd"/>
        >
        >     <xsd:element name="StyledLayerDescriptor"
        > ref="sld:StyledLayerDescriptor" minOccurs="0"/> 
        >
        >     <element name="QueryLayer" type="soapenc:string" minOccurs="0"/>
        >     <element name="InfoFormat" type="soapenc:string" minOccurs="0"/> 
        >     <element name="FeatureCount" type="soapenc:int" minOccurs="0"/>
        >
        >     <element name="x" type="soapenc:int" minOccurs="0"/> 
        >     <element name="y" type="soapenc:int" minOccurs="0"/>
        >
        >       </xsd:schema>
        >
        >     </wsdl:types>
        >
        >
        >        <wsdl:message name="getMapResponse"> 
        >
        >           <wsdl:part name="getMapReturn" type="soapenc:base64Binary"/>
        >
        >        </wsdl:message>
        >
        >        <wsdl:message name="getCapabilitiesRequest">
        > 
        >           <wsdl:part name="version" element="ows:version"/>
        >
        >           <wsdl:part name="service" element="ows:service"/>
        >
        >           <wsdl:part name="exceptions" element="ows:exceptions"/> 
        >
        >           <wsdl:part name="section" element="ows:section"/>
        >
        >        </wsdl:message>
        >
        >        <wsdl:message name="getCapabilitiesResponse"> 
        >
        >           <wsdl:part name="getCapabilitiesReturn" type="soapenc:string"/>
        >
        >        </wsdl:message>
        >
        >        <wsdl:message name="getFeatureInfoResponse">
        >
        >           <wsdl:part name="getFeatureInfoReturn" type="soapenc:string"/>
        >
        >        </wsdl:message>
        >
        >        <wsdl:message name="getFeatureInfoRequest">
        >
        >           <wsdl:part name="version" element="ows:version"/>
        >
        >           <wsdl:part name="service" element="ows:service"/>
        >
        >           <wsdl:part name="exceptions" element="ows:exceptions"/> 
        >
        >       <wsdl:part name="Map" type="ows:MapType"/>
        >
        >          <wsdl:part name="Image" type="ows:ImageType"/>
        >
        >           <wsdl:part name="StyledLayerDescriptor" 
        >     element="tns:StyledLayerDescriptor"/>
        >
        >     <wsdl:part name="QueryLayer" element="tns:QueryLayer"/>
        >     <wsdl:part name="InfoFormat" element="tns:InfoFormat" /> 
        >     <wsdl:part name="FeatureCount" element="tns:FeatureCount" />
        >     <wsdl:part name="x" element="tns:x" />
        >     <wsdl:part name="y" element="tns:y" /> 
        >     <wsdl:part name="Vendor" element="ows:Vendor" />
        >
        >        </wsdl:message>
        >
        >        <wsdl:message name="getMapRequest">
        >
        >           <wsdl:part name="version" element="ows:version"/> 
        >
        >           <wsdl:part name="service" element="ows:service"/>
        >
        >           <wsdl:part name="exceptions" element="ows:exceptions"/>
        >
        >           <wsdl:part name="Map" type="ows:MapType"/>
        >
        >           <wsdl:part name="Image" type="ows:ImageType"/>
        >
        >           <wsdl:part name="StyledLayerDescriptor" 
        >     element="tns:StyledLayerDescriptor"/>
        >
        >
        >        </wsdl:message>
        >
        >        <wsdl:portType name="Wms">
        >
        >           <wsdl:operation name="getMap" parameterOrder="version service
        >     exceptions Map Image StyledLayerDescriptor">
        >
        >              <wsdl:input message="impl:getMapRequest"
        > name="getMapRequest"/>
        >
        >              <wsdl:output message="impl:getMapResponse"
        > name="getMapResponse"/>
        >
        >           </wsdl:operation>
        >
        >           <wsdl:operation name="getCapabilities" parameterOrder="version
        > service exceptions section">
        >
        >              <wsdl:input message="impl:getCapabilitiesRequest"
        >     name="getCapabilitiesRequest"/>
        >
        >              <wsdl:output message="impl:getCapabilitiesResponse"
        >     name="getCapabilitiesResponse"/>
        >
        >           </wsdl:operation>
        >
        >           <wsdl:operation name="getFeatureInfo" parameterOrder="version
        > service exceptions Map Image StyledLayerDescriptor QueryLayer InfoFormat
        > FeatureCount x y Vendor">
        >
        >              <wsdl:input message="impl:getFeatureInfoRequest"
        >     name="getFeatureInfoRequest"/>
        >
        >              <wsdl:output message="impl:getFeatureInfoResponse"
        >     name="getFeatureInfoResponse"/>
        >
        >           </wsdl:operation>
        >
        >        </wsdl:portType>
        >
        >        <wsdl:binding name="wmsSoapBinding" type="impl:Wms"> 
        >
        >           <wsdlsoap:binding style="rpc"
        >     transport="http://schemas.xmlsoap.org/soap/http"/ >
        >
        >           <wsdl:operation name="getMap"> 
        >
        >              <wsdlsoap:operation soapAction=""/>
        >
        >              <wsdl:input name="getMapRequest">
        >
        >                 <wsdlsoap:body
        >     encodingStyle=" http://schemas.xmlsoap.org/soap/encoding/"
        >     namespace="urn:Wms" use="encoded"/>
        >
        >              </wsdl:input>
        >
        >              <wsdl:output name="getMapResponse">
        >
        >                 <wsdlsoap:body
        >     encodingStyle="http://schemas.xmlsoap.org/soap/encoding/ " 
        >     namespace="urn:Wms" use="encoded"/>
        >
        >              </wsdl:output>
        >
        >           </wsdl:operation>
        >
        >           <wsdl:operation name="getCapabilities"> 
        >
        >              <wsdlsoap:operation soapAction=""/>
        >
        >              <wsdl:input name="getCapabilitiesRequest">
        >
        >                 <wsdlsoap:body
        >     encodingStyle=" http://schemas.xmlsoap.org/soap/encoding/ "
        >     namespace="urn:Wms" use="encoded"/>
        >
        >              </wsdl:input>
        >
        >              <wsdl:output name="getCapabilitiesResponse">
        >
        >                 <wsdlsoap:body
        >     encodingStyle="http://schemas.xmlsoap.org/soap/encoding/ "
        >     namespace="urn:Wms" use="encoded"/>
        >
        >              </wsdl:output>
        >
        >           </wsdl:operation>
        >
        >           <wsdl:operation name="getFeatureInfo"> 
        >
        >              <wsdlsoap:operation soapAction=""/>
        >
        >              <wsdl:input name="getFeatureInfoRequest">
        >
        >                 <wsdlsoap:body
        >     encodingStyle="http://schemas.xmlsoap.org/soap/encoding/ "
        >     namespace="urn:Wms" use="encoded"/>
        >
        >              </wsdl:input>
        >
        >              <wsdl:output name="getFeatureInfoResponse">
        >
        >                 <wsdlsoap:body
        >     encodingStyle=" http://schemas.xmlsoap.org/soap/encoding/ "
        >     namespace="urn:Wms" use="encoded"/>
        >
        >              </wsdl:output>
        >
        >           </wsdl:operation>
        >
        >        </wsdl:binding> 
        >
        >        <wsdl:service name="WmsService">
        >
        >           <wsdl:port binding="impl:wmsSoapBinding" name="wms">
        >
        >              <wsdlsoap:address 
        >     location=" http://localhost:8080/axis/services/wms"/>
        > 
        >           </wsdl:port>
        >
        >        </wsdl:service> 
        >
        >     </wsdl:definitions>
        >
        >
        >
        >
        >
        >
        >     xsd file StyledLayerDescriptor.xsd:
        >
        >     <?xml version="1.0" encoding="UTF-8"?> 
        >     <xsd:schema targetNamespace="http://www.opengis.net/sld"
        >                 xmlns:sld=" http://www.opengis.net/sld"
        >                 xmlns:ogc="http://www.opengis.net/ogc"
        >                 xmlns:xsd="http://www.w3.org/2001/XMLSchema "
        >                 elementFormDefault="qualified">
        >       <xsd:include schemaLocation="FeatureStyle.xsd"/>
        >       <xsd:import namespace="http://www.opengis.net/ogc "
        >                   schemaLocation="../../filter/1.0.0/filter.xsd"/>
        >
        >     <!--
        >
        > ***********************************************************************
        > --> <xsd:annotation>
        >         <xsd:documentation> 
        >           STYLED LAYER DESCRIPTOR version 1.0.20 (2002-09-21)
        >         </xsd:documentation>
        >       </xsd:annotation>
        >
        >       <xsd:element name="StyledLayerDescriptor"> 
        >         <xsd:annotation>
        >           <xsd:documentation>
        >             A StyledLayerDescriptor is a sequence of styled layers,
        > represented at the first level by NamedLayer and UserLayer elements.
        > </xsd:documentation>
        >         </xsd:annotation>
        >         <xsd:complexType> 
        >           <xsd:sequence>
        >             <xsd:element ref="sld:Name" minOccurs="0"/>
        >             <xsd:element ref="sld:Description" minOccurs="0"/>
        >             <xsd:element ref="sld:EnvironmentVariables" minOccurs="0"/>
        >             <xsd:element ref="sld:UseSLDLibrary" minOccurs="0"
        >                                                  maxOccurs="unbounded"/>
        >             <xsd:choice minOccurs="0" maxOccurs="unbounded">
        >               <xsd:element ref="sld:NamedLayer"/>
        >               <xsd:element ref="sld:UserLayer"/>
        >             </xsd:choice>
        >           </xsd:sequence>
        >           <xsd:attribute name="version" type="sld:VersionType" 
        > use="required"/> </xsd:complexType>
        >       </xsd:element>
        >
        >     <!--
        >
        > ***********************************************************************
        > --> <xsd:annotation> 
        >         <xsd:documentation>
        >           RUN-TIME ENVIRONMENT VARIABLES
        >         </xsd:documentation>
        >       </xsd:annotation>
        >
        >       <xsd:element name="EnvironmentVariables"> 
        >         <xsd:annotation>
        >           <xsd:documentation>
        >             An "EnvironmentVariables" element includes an XML blob which
        >             can be used to declare the values to use for global
        > environment
        >             variables during the execution of the styling operations.
        >             These variables may be refered to in styles and symbols in the
        >             same way as feature properties.
        >           </xsd:documentation>
        >         </xsd:annotation>
        >         <xsd:complexType> 
        >           <xsd:sequence>
        >             <xsd:any/>
        >           </xsd:sequence>
        >         </xsd:complexType>
        >       </xsd:element>
        >
        >     <!--
        >
        > ***********************************************************************
        > --> <xsd:annotation>
        >         <xsd:documentation>
        >           SLD LIBRARIES
        >         </xsd:documentation> 
        >       </xsd:annotation>
        >
        >       <xsd:element name="UseSLDLibrary">
        >         <xsd:annotation>
        >           <xsd:documentation>
        >             The UseSLDLibrary tag specifies that an external SLD document
        >             should be used as a "library" of named layers and styles to
        >             augment the set of named layers and styles that are available
        >             for use inside of a WMS.  In the event of name collisions, the
        >             SLD library takes precedence over the ones internal to the
        > WMS.
        >             Any number of libraries may be specified in an SLD and each
        >             successive library takes precedence over the former ones in
        > the
        >             case of name collisions.
        >           </xsd:documentation>
        >         </xsd:annotation>
        >         <xsd:complexType> 
        >           <xsd:sequence>
        >             <xsd:element ref="sld:OnlineResource"/>
        >           </xsd:sequence>
        >         </xsd:complexType>
        >       </xsd:element> 
        >
        >     <!--
        >
        > ***********************************************************************
        > --> <xsd:annotation>
        >         <xsd:documentation>
        >           LAYERS AND STYLES 
        >         </xsd:documentation>
        >       </xsd:annotation>
        >
        >       <xsd:element name="NamedLayer">
        >         <xsd:annotation>
        >           <xsd:documentation> 
        >             A NamedLayer is a layer of data that has a name advertised by
        > a
        > WMS. </xsd:documentation>
        >         </xsd:annotation>
        >         <xsd:complexType>
        >           <xsd:sequence> 
        >             <xsd:element ref="sld:Name"/>
        >             <xsd:element ref="sld:Description" minOccurs="0"/>
        >             <xsd:element ref="sld:LayerFeatureConstraints" minOccurs="0"/>
        >             <xsd:choice minOccurs="0" maxOccurs="unbounded">
        >               <xsd:element ref="sld:NamedStyle"/>
        >               <xsd:element ref="sld:UserStyle"/>
        >             </xsd:choice>
        >           </xsd:sequence>
        >         </xsd:complexType>
        >       </xsd:element>
        >
        >       <xsd:element name="NamedStyle"> 
        >         <xsd:annotation>
        >           <xsd:documentation>
        >             A NamedStyle is used to refer to a style that has a name in a
        > WMS. </xsd:documentation>
        >         </xsd:annotation>
        >         <xsd:complexType>
        >           <xsd:sequence> 
        >             <xsd:element ref="sld:Name"/>
        >             <xsd:element ref="sld:Description" minOccurs="0"/>
        >           </xsd:sequence>
        >         </xsd:complexType>
        >       </xsd:element>
        >
        >       <xsd:element name="UserLayer"> 
        >         <xsd:annotation>
        >           <xsd:documentation>
        >             A UserLayer allows a user-defined layer to be built from WFS
        > and WCS data.
        >           </xsd:documentation>
        >         </xsd:annotation>
        >         <xsd:complexType>
        >           <xsd:sequence> 
        >             <xsd:element ref="sld:Name" minOccurs="0"/>
        >             <xsd:element ref="sld:Description" minOccurs="0"/>
        >             <xsd:element ref="sld:RemoteOWS" minOccurs="0"/>
        >             <xsd:element ref="sld:LayerFeatureConstraints"/>
        >             <xsd:element ref="sld:UserStyle" maxOccurs="unbounded"/>
        >           </xsd:sequence>
        >         </xsd:complexType>
        >       </xsd:element>
        >
        >       <xsd:element name="RemoteOWS"> 
        >         <xsd:annotation>
        >           <xsd:documentation>
        >             A RemoteOWS gives a reference to a remote WFS/WCS/other-OWS
        > server. </xsd:documentation>
        >         </xsd:annotation>
        >         <xsd:complexType>
        >           <xsd:sequence> 
        >             <xsd:element ref="sld:Service"/>
        >             <xsd:element ref="sld:OnlineResource"/>
        >           </xsd:sequence>
        >         </xsd:complexType> 
        >       </xsd:element>
        >
        >       <xsd:element name="Service">
        >         <xsd:annotation>
        >           <xsd:documentation>
        >             A Service refers to the type of a remote OWS server.
        >           </xsd:documentation>
        >         </xsd:annotation>
        >         <xsd:simpleType>
        >           <xsd:restriction base="xsd:string"> 
        >             <xsd:enumeration value="WFS"/>
        >             <xsd:enumeration value="WCS"/>
        >           </xsd:restriction>
        >         </xsd:simpleType>
        >       </xsd:element>
        >
        >       <xsd:element name="LayerFeatureConstraints">
        >         <xsd:annotation>
        >           <xsd:documentation>
        >             LayerFeatureConstraints define what features &amp; feature
        > types are referenced in a layer.
        >           </xsd:documentation>
        >         </xsd:annotation>
        >         <xsd:complexType> 
        >           <xsd:sequence>
        >             <xsd:element ref="sld:FeatureTypeConstraint"
        > maxOccurs="unbounded"/> </xsd:sequence>
        >         </xsd:complexType> 
        >       </xsd:element>
        >
        >       <xsd:element name="FeatureTypeConstraint">
        >         <xsd:annotation>
        >           <xsd:documentation>
        >             A FeatureTypeConstraint identifies a specific feature type and
        >             supplies fitlering.
        >           </xsd:documentation>
        >         </xsd:annotation>
        >         <xsd:complexType> 
        >           <xsd:sequence>
        >             <xsd:element ref="sld:FeatureTypeName" minOccurs="0"/>
        >             <xsd:element ref="ogc:Filter" minOccurs="0"/>
        >             <xsd:element ref="sld:Extent" minOccurs="0" 
        > maxOccurs="unbounded"/> </xsd:sequence>
        >         </xsd:complexType>
        >       </xsd:element>
        >
        >       <xsd:element name="Extent">
        >         <xsd:annotation> 
        >           <xsd:documentation>
        >             An Extent gives feature/coverage/raster/matrix dimension
        > extent. </xsd:documentation>
        >         </xsd:annotation>
        >         <xsd:complexType>
        >           <xsd:sequence>
        >             <xsd:element ref="sld:Name"/>
        >             <xsd:element ref="sld:Value"/>
        >           </xsd:sequence>
        >         </xsd:complexType>
        >       </xsd:element> 
        >       <xsd:element name="Value" type="xsd:string"/>
        >
        >       <xsd:element name="UserStyle">
        >         <xsd:annotation>
        >           <xsd:documentation> 
        >             A UserStyle allows user-defined styling and is semantically
        >             equivalent to a WMS named style.
        >           </xsd:documentation>
        >         </xsd:annotation>
        >         <xsd:complexType> 
        >           <xsd:sequence>
        >             <xsd:element ref="sld:Name" minOccurs="0"/>
        >             <xsd:element ref="sld:Description" minOccurs="0"/>
        >             <xsd:element ref="sld:IsDefault" minOccurs="0"/>
        >             <xsd:element ref="sld:FeatureStyle" maxOccurs="unbounded"/>
        >           </xsd:sequence>
        >         </xsd:complexType>
        >       </xsd:element>
        >       <xsd:element name="IsDefault" type="xsd:boolean"/> 
        >
        >     </xsd:schema>






Re: Server.generalException - makeTypeElement() was told to create a type "{http://www.opengis.net/sld}>StyledLayerDescriptor", with no containing element

Posted by Anne Thomas Manes <at...@gmail.com>.
It could be that Axis is having a little trouble dealing with the
multi-nested includes. You might try copying the included schema definitions
into the sld schema and giving it a try. (just paste the element and type
definitions in -- remove the <schema...>, <include..>, and <import...>
stuff).

If this fixes the problem, please log a bug.

Thanks,
Anne

On 12/13/05, Ales St <st...@seznam.cz> wrote:
>
> Hi Anne
> I include it , and I have a still the same problem. In file
> StyledLayerDescriptor.xsd  is include file FeatureStyle.xsd" in which is
> include file Symbol.xsd and in it is include file common.xsd so I thing,
> that problem is somewhere else,bud I don´t know where.
>             Ales
>
> ----- Original Message -----
> *From:* Anne Thomas Manes <at...@gmail.com>
> *To:* axis-user@ws.apache.org
> *Sent:* Tuesday, December 13, 2005 10:33 PM
> *Subject:* Re: Server.generalException - makeTypeElement() was told to
> create a type "{http://www.opengis.net/sld}<http://www.opengis.net/sld%7D>>StyledLayerDescriptor",
> with no containing element
>
> I repeat an earlier comment I made to you.
>
> The StyledLayerDescriptor.xsd schema references a number of elements that
> are not defined in the schema (Name, Description, etc.) These elements are
> defined in a different schema (common.xsd). You must edit the
> StyledLayerDescriptor.xsd schema and <xsd:include> the common.xsd schema.
>
> Anne
>
> On 12/13/05, Ales St <st...@seznam.cz> wrote:
> >
> > Hi,
> > I have a new problem I writed now a document/literal oriented wsdl,
> > classes
> > are generated, but when  I try to see wsdl on axis-server side Axis
> > error is
> > generated:
> >
> > AXIS error
> > Sorry, something seems to have gone wrong... here are the details:
> >
> > Fault - makeTypeElement() was told to create a type
> > "{http://www.opengis.net/sld} <http://www.opengis.net/sld%7D>>StyledLayerDescriptor",
> > with no containing
> > elementAxisFault
> > faultCode:
> > {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException<http://schemas.xmlsoap.org/soap/envelope/%7DServer.generalException>
> > faultSubcode:
> > faultString: makeTypeElement() was told to create a type
> > "{http://www.opengis.net/sld} <http://www.opengis.net/sld%7D>>StyledLayerDescriptor",
> > with no containing
> > element
> > faultActor:  faultNode:  faultDetail:
> >         { http://xml.apache.org/axis/}hostname:pocitac<http://xml.apache.org/axis/%7Dhostname:pocitac>
> >
> > So I don´t knew what is wrong, it could be some import xsd problem, but
> > I
> > don´t knew which and how to solve it. I see some files on web but, they
> > look
> > like similar as that which I have. I give here a wsdl file, and all
> > other
> > files which is important to generate is in www.sweb.cz/stanax/xsd.zip .
> > I will be wery happy if somebody help me, because I solve this problem
> > for
> > some days and I can´t a solution.
> > Thank you
> >                 Ales
> > wsdl file:
> > <?xml version="1.0" encoding="UTF-8"?>
> > <wsdl:definitions targetNamespace="urn:Wms"
> > xmlns:apachesoap=" http://xml.apache.org/xml-soap"
> > xmlns:impl="urn:Wms"
> > xmlns:intf="urn:Wms"
> > xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
> > xmlns:sld="http://www.opengis.net/sld"
> > xmlns:ows="http://www.opengis.net/ows"
> > xmlns:wsdlsoap=" http://schemas.xmlsoap.org/wsdl/soap/"
> > xmlns:xsd="http://www.w3.org/2001/XMLSchema">
> >
> > <wsdl:types>
> > <xsd:schema elementFormDefault="qualified"
> > targetNamespace="urn:Wms"
> > xmlns="http://www.w3.org/2001/XMLSchema"
> > xmlns:sld="http://www.opengis.net/sld "
> > xmlns:ows="http://www.opengis.net/ows">
> >
> > <xsd:import namespace="http://www.opengis.net/sld"
> > schemaLocation="../sld/1.0.20/StyledLayerDescriptor.xsd"/>
> >   <xsd:import namespace=" http://www.opengis.net/ows"
> >          schemaLocation="./wms_schemas.xsd"/>
> > <element name="getFeatureInfo">
> >     <complexType>
> >      <sequence>
> >       <element ref ="ows:version"/>
> >       <element  ref ="ows:service"/>
> >       <element ref ="ows:exceptions"/>
> >       <element  ref ="ows:Map"/>
> >       <element  ref ="ows:Image"/>
> >       <element  ref ="sld:StyledLayerDescriptor"/>
> >       <element name="QueryLayer" type ="xsd:string"/>
> >       <element name="InfoFormat" type ="xsd:string"/>
> >       <element name="FeatureCount" type ="xsd:int"/>
> >       <element name="x" type ="xsd:int"/>
> >       <element name="y" type ="xsd:int"/>
> >       <element ref ="ows:Vendor"/>
> >      </sequence>
> >     </complexType>
> >    </element>
> >
> >    <element name="getFeatureInfoResponse">
> >     <complexType>
> >      <sequence>
> >       <element name="getFeatureInfoReturn" type="xsd:string"/>
> >      </sequence>
> >     </complexType>
> >    </element>
> >
> >    <element name="getMap">
> >     <complexType>
> >      <sequence>
> >       <element ref ="ows:version"/>
> >       <element  ref ="ows:service"/>
> >       <element  ref ="ows:exceptions"/>
> >       <element  ref ="ows:Map"/>
> >       <element  ref ="ows:Image"/>
> >       <element  ref ="sld:StyledLayerDescriptor"/>
> >      </sequence>
> >     </complexType>
> >    </element>
> >    <element name="getMapResponse">
> >     <complexType>
> >      <sequence>
> >       <element name="getMapReturn" type="xsd:base64Binary"/>
> >      </sequence>
> >     </complexType>
> >    </element>
> >    <element name="getCapabilities">
> >     <complexType>
> >      <sequence>
> >       <element  ref ="ows:version"/>
> >       <element  ref ="ows:service"/>
> >       <element ref ="ows:exceptions"/>
> >       <element  ref ="ows:section"/>
> >      </sequence>
> >     </complexType>
> >    </element>
> >    <element name="getCapabilitiesResponse">
> >     <complexType>
> >      <sequence>
> >       <element name="getCapabilitiesReturn" type="xsd:string"/>
> >      </sequence>
> >     </complexType>
> >    </element>
> >   </xsd:schema>
> >
> > </wsdl:types>
> >    <wsdl:message name="getMapResponse">
> >
> >       <wsdl:part element="impl:getMapResponse" name="parameters"/>
> >
> >    </wsdl:message>
> >
> >    <wsdl:message name="getCapabilitiesRequest">
> >
> >       <wsdl:part element="impl:getCapabilities" name="parameters"/>
> >
> >    </wsdl:message>
> >
> >    <wsdl:message name="getCapabilitiesResponse">
> >
> >       <wsdl:part element="impl:getCapabilitiesResponse"
> > name="parameters"/>
> >
> >    </wsdl:message>
> >
> >    <wsdl:message name="getFeatureInfoResponse">
> >
> >       <wsdl:part element="impl:getFeatureInfoResponse"
> > name="parameters"/>
> >
> >    </wsdl:message>
> >
> >    <wsdl:message name="getFeatureInfoRequest">
> >
> >       <wsdl:part element="impl:getFeatureInfo" name="parameters"/>
> >
> >    </wsdl:message>
> >
> >    <wsdl:message name="getMapRequest">
> >
> >       <wsdl:part element="impl:getMap" name="parameters"/>
> >
> >    </wsdl:message>
> >
> >    <wsdl:portType name="Wms">
> >
> >       <wsdl:operation name="getFeatureInfo">
> >
> >          <wsdl:input message="impl:getFeatureInfoRequest"
> > name="getFeatureInfoRequest"/>
> >
> >          <wsdl:output message="impl:getFeatureInfoResponse"
> > name="getFeatureInfoResponse"/>
> >
> >       </wsdl:operation>
> >
> >       <wsdl:operation name="getMap">
> >
> >          <wsdl:input message="impl:getMapRequest" name="getMapRequest"/>
> >
> >          <wsdl:output message="impl:getMapResponse"
> > name="getMapResponse"/>
> >
> >       </wsdl:operation>
> >
> >       <wsdl:operation name="getCapabilities">
> >
> >          <wsdl:input message="impl:getCapabilitiesRequest"
> > name="getCapabilitiesRequest"/>
> >
> >          <wsdl:output message="impl:getCapabilitiesResponse"
> > name="getCapabilitiesResponse"/>
> >
> >       </wsdl:operation>
> >
> >    </wsdl:portType>
> >
> >    <wsdl:binding name="wmsSoapBinding" type="impl:Wms">
> >
> >       <wsdlsoap:binding style="document"
> > transport="http://schemas.xmlsoap.org/soap/http"/<http://schemas.xmlsoap.org/soap/http%22/>
> > >
> >
> >       <wsdl:operation name="getFeatureInfo">
> >
> >          <wsdlsoap:operation soapAction=""/>
> >
> >          <wsdl:input name="getFeatureInfoRequest">
> >
> >             <wsdlsoap:body use="literal"/>
> >
> >          </wsdl:input>
> >
> >          <wsdl:output name="getFeatureInfoResponse">
> >
> >             <wsdlsoap:body use="literal"/>
> >
> >          </wsdl:output>
> >
> >       </wsdl:operation>
> >
> >       <wsdl:operation name="getMap">
> >
> >          <wsdlsoap:operation soapAction=""/>
> >
> >          <wsdl:input name="getMapRequest">
> >
> >             <wsdlsoap:body use="literal"/>
> >
> >          </wsdl:input>
> >
> >          <wsdl:output name="getMapResponse">
> >
> >             <wsdlsoap:body use="literal"/>
> >
> >          </wsdl:output>
> >
> >       </wsdl:operation>
> >
> >       <wsdl:operation name="getCapabilities">
> >
> >          <wsdlsoap:operation soapAction=""/>
> >
> >          <wsdl:input name="getCapabilitiesRequest">
> >
> >             <wsdlsoap:body use="literal"/>
> >
> >          </wsdl:input>
> >
> >          <wsdl:output name="getCapabilitiesResponse">
> >
> >             <wsdlsoap:body use="literal"/>
> >
> >          </wsdl:output>
> >
> >       </wsdl:operation>
> >
> >    </wsdl:binding>
> >
> >    <wsdl:service name="WmsService">
> >
> >       <wsdl:port binding="impl:wmsSoapBinding" name="wms">
> >
> >          <wsdlsoap:address
> > location="http://localhost:8080/axis/services/wms"/<http://localhost:8080/axis/services/wms%22/>
> > >
> >
> >       </wsdl:port>
> >
> >    </wsdl:service>
> >
> > </wsdl:definitions>
> >
> >
> >
> >
> >
> > ----- Original Message -----
> > From: "iksrazal" <ik...@gmail.com>
> > To: <axis-user@ws.apache.org >
> > Sent: Tuesday, December 13, 2005 2:56 PM
> > Subject: Re: Server.generalException - makeTypeElement() was told to
> > create
> > a type "{http://www.opengis.net/sld} <http://www.opengis.net/sld%7D>>FeatureTypeConstraint",
> > with no
> > containing element
> >
> >
> > > So I decided,
> > > that my wsdl is wrong, but I don´t know where is a mistake.
> >
> > Try the "free as in beer" soa wsdl editor from cape clear. Or try
> > wooden:
> >
> > http://incubator.apache.org/woden/
> >
> > HTH,
> > iksrazal
> >
> > Em Terça 13 Dezembro 2005 11:39, o Ales St escreveu:
> > > Hi
> > > I removed that definition, and I tryed to rewrite my wsdl definition
> > to
> > > document/literal  type,classes are generated. But when I tryed to se
> > wsdl
> > > which is generated by server, the sam Axis error was generated and in
> > > server console was writed this: "Request Message type information has
> > > multiple parts that one single wrapped complexType.Use WRAPPED/LITERAL
> > if
> > > interoping with some other soap stack becomes a problem." So I
> > decided,
> > > that my wsdl is wrong, but I don´t know where is a mistake. I write my
> > > wsdl
> > > by inspirating some wsdl which I find on the web, because I can't wind
> >
> > > some
> > > good definition, how to write it. So if you knew about some good,
> > please
> > > send me it. And please see my wsdl,and write to me, where is a
> > problem.
> > > Thank you
> > >             Ales
> > >
> > > New wsdl:
> > > <?xml version="1.0" encoding="UTF-8"?>
> > > <wsdl:definitions targetNamespace="urn:Wms"
> > >  xmlns:tns="urn:Wms"
> > >  xmlns:sld=" http://www.opengis.net/sld"
> > >  xmlns:ows="http://www.opengis.net/ows"
> > > xmlns:gml=" http://www.opengis.net/gml"
> > >  xmlns:apachesoap="http://xml.apache.org/xml-soap"
> > >  xmlns:impl="urn:Wms"
> > >  xmlns:intf="urn:Wms"
> > >  xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
> > >  xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/ "
> > >  xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
> > >  xmlns:xsd="http://www.w3.org/2001/XMLSchema ">
> > >
> > >
> > > <wsdl:types>
> > >   <xsd:schema targetNamespace="urn:Wms"
> > > xmlns="http://www.w3.org/2001/XMLSchema"
> > > xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"> <xsd:import
> > > namespace=" http://www.opengis.net/ows "
> > > schemaLocation="./wms_schemas.xsd"/> <xsd:import
> > > namespace="http://www.opengis.net/sld"
> > > schemaLocation="../sld/1.0.20/StyledLayerDescriptor.xsd"/>
> > >
> > > <element name="QueryLayer" type="soapenc:string" minOccurs="0"/>
> > > <element name="InfoFormat" type="soapenc:string" minOccurs="0"/>
> > > <element name="FeatureCount" type="soapenc:int" minOccurs="0"/>
> > >
> > > <element name="x" type="soapenc:int" minOccurs="0"/>
> > >
> > > <element name="y" type="soapenc:int" minOccurs="0"/>
> > >
> > > <element name="InfoFormat" type="soapenc:string" minOccurs="0"/>
> > >
> > > <element name="getMapReturn" type="soapenc:base64Binary"/>
> > > <element name="string" type="soapenc:string"/>
> > > <element name="Map" type="ows:MapType"/>
> > > <element name="Image" type="ows:ImageType"/>
> > >
> > >   </xsd:schema></wsdl:types>
> > >
> > >
> > >    <wsdl:message name="getMapResponse">
> > >
> > >       <wsdl:part name="getMapReturn" element="tns:getMapReturn"/>
> > >
> > >    </wsdl:message>
> > >
> > >    <wsdl:message name="getCapabilitiesRequest">
> > >
> > >       <wsdl:part name="version" element="ows:version"/>
> > >       <wsdl:part name="service" element="ows:service"/>
> > >
> > >       <wsdl:part name="exceptions" element="ows:exceptions"/>
> > >
> > >       <wsdl:part name="section" element="ows:section"/>
> > >
> > >    </wsdl:message>
> > >
> > >    <wsdl:message name="getCapabilitiesResponse">
> > >
> > >       <wsdl:part name="getCapabilitiesReturn" element="tns:string"/>
> > >    </wsdl:message>
> > >
> > >    <wsdl:message name="getFeatureInfoResponse">
> > >
> > >       <wsdl:part name="getFeatureInfoReturn" element="tns:string"/>
> > >
> > >    </wsdl:message>
> > >
> > >    <wsdl:message name="getFeatureInfoRequest">
> > >
> > >       <wsdl:part name="version" element="ows:version"/>
> > >       <wsdl:part name="service" element="ows:service"/>
> > >
> > >       <wsdl:part name="exceptions" element="ows:exceptions"/>
> > >
> > > <wsdl:part name="Map" element="tns:Map"/>
> > >
> > >      <wsdl:part name="Image" element="tns:Image"/>
> > >
> > >       <wsdl:part name="StyledLayerDescriptor"
> > > element="sld:StyledLayerDescriptor"/>
> > >
> > > <wsdl:part name="QueryLayer" element="tns:QueryLayer"/>
> > > <wsdl:part name="InfoFormat" element="tns:InfoFormat" />
> > > <wsdl:part name="FeatureCount" element="tns:FeatureCount" />
> > > <wsdl:part name="x" element="tns:x" />
> > > <wsdl:part name="y" element="tns:y" />
> > > <wsdl:part name="Vendor" element="ows:Vendor" />
> > >
> > >    </wsdl:message>
> > >
> > >    <wsdl:message name="getMapRequest">
> > >
> > >       <wsdl:part name="version" element="ows:version"/>
> > >
> > >       <wsdl:part name="service" element="ows:service"/>
> > >       <wsdl:part name="exceptions" element="ows:exceptions"/>
> > >
> > >       <wsdl:part name="Map" element="tns:Map"/>
> > >
> > >      <wsdl:part name="Image" element="tns:Image"/>
> > >
> > >       <wsdl:part name="StyledLayerDescriptor"
> > > element="sld:StyledLayerDescriptor"/>
> > >
> > >    </wsdl:message>
> > >
> > >    <wsdl:portType name="Wms">
> > >       <wsdl:operation name="getMap" parameterOrder="version service
> > > exceptions Map Image StyledLayerDescriptor">
> > >
> > >          <wsdl:input message="impl:getMapRequest"
> > name="getMapRequest"/>
> > >
> > >          <wsdl:output message="impl:getMapResponse"
> > > name="getMapResponse"/>
> > >
> > >       </wsdl:operation>
> > >
> > >       <wsdl:operation name="getCapabilities" parameterOrder="version
> > > service exceptions section">
> > >
> > >          <wsdl:input message="impl:getCapabilitiesRequest"
> > > name="getCapabilitiesRequest"/> <wsdl:output
> > > message="impl:getCapabilitiesResponse"
> > name="getCapabilitiesResponse"/>
> > >
> > >       </wsdl:operation>
> > >
> > >       <wsdl:operation name="getFeatureInfo" parameterOrder="version
> > > service
> > > exceptions Map Image StyledLayerDescriptor QueryLayer InfoFormat
> > > FeatureCount x y Vendor">
> > >
> > >          <wsdl:input message="impl:getFeatureInfoRequest"
> > > name="getFeatureInfoRequest"/>
> > >
> > >          <wsdl:output message="impl:getFeatureInfoResponse"
> > > name="getFeatureInfoResponse"/>
> > >
> > >       </wsdl:operation>
> > >    </wsdl:portType>
> > >
> > >    <wsdl:binding name="wmsSoapBinding" type="impl:Wms">
> > >
> > >       <wsdlsoap:binding style="document"
> > > transport="http://schemas.xmlsoap.org/soap/http"/<http://schemas.xmlsoap.org/soap/http%22/>
> > >
> > >
> > >       <wsdl:operation name="getMap">
> > >
> > >          <wsdlsoap:operation soapAction=""/>
> > >
> > >          <wsdl:input name="getMapRequest">
> > >             <wsdlsoap:body  namespace="urn:Wms" use="literal"/>
> > >
> > >          </wsdl:input>
> > >
> > >          <wsdl:output name="getMapResponse">
> > >
> > >             <wsdlsoap:body  namespace="urn:Wms" use="literal"/>
> > >
> > >          </wsdl:output>
> > >
> > >       </wsdl:operation>
> > >       <wsdl:operation name="getCapabilities">
> > >
> > >          <wsdlsoap:operation soapAction=""/>
> > >
> > >          <wsdl:input name="getCapabilitiesRequest">
> > >
> > >             <wsdlsoap:body  namespace="urn:Wms" use="literal"/>
> > >
> > >          </wsdl:input>
> > >
> > >          <wsdl:output name="getCapabilitiesResponse">
> > >             <wsdlsoap:body  namespace="urn:Wms" use="literal"/>
> > >
> > >          </wsdl:output>
> > >
> > >       </wsdl:operation>
> > >
> > >       <wsdl:operation name="getFeatureInfo">
> > >
> > >          <wsdlsoap:operation soapAction=""/>
> > >
> > >          <wsdl:input name="getFeatureInfoRequest">
> > >             <wsdlsoap:body  namespace="urn:Wms" use="literal"/>
> > >
> > >          </wsdl:input>
> > >
> > >          <wsdl:output name="getFeatureInfoResponse">
> > >
> > >             <wsdlsoap:body  namespace="urn:Wms" use="literal"/>
> > >
> > >          </wsdl:output>
> > >
> > >       </wsdl:operation>
> > >    </wsdl:binding>
> > >
> > >    <wsdl:service name="WmsService">
> > >
> > >       <wsdl:port binding="impl:wmsSoapBinding" name="wms">
> > >
> > >          <wsdlsoap:address
> > > location=" http://localhost:8080/axis/services/wms"/<http://localhost:8080/axis/services/wms%22/>
> > >
> > >
> > >       </wsdl:port>
> > >
> > >    </wsdl:service>
> > > </wsdl:definitions>
> > >
> > >
> > >
> > >   ----- Original Message -----
> > >   From: Anne Thomas Manes
> > >   To: axis-user@ws.apache.org
> > >   Sent: Tuesday, December 13, 2005 1:56 AM
> > >   Subject: Re: Server.generalException - makeTypeElement() was told to
> >
> > > create a type "{http://www.opengis.net/sld}<http://www.opengis.net/sld%7D>>FeatureTypeConstraint",
> > with
> > > no
> > > containing element
> > >
> > >
> > >   This definition in your urn:Wms schema should be removed:
> > >
> > >   <xsd:element name="StyledLayerDescriptor"
> > > ref="sld:StyledLayerDescriptor"
> > >
> > >   minOccurs="0"/>
> > >
> > >   The element is defined in the sld schema. There's no reason to
> > define it
> > > again in the Wms schema. Besides, you can't name an element and
> > reference
> > > another element in the same definition.
> > >
> > >
> > >   Anne
> > >
> > >   ps -- with such a complex schema, I strongly encourage you to switch
> > to
> > > document/literal rather than rpc/encoded.
> > >
> > >
> > >   On 12/11/05, Ales St < stanax@seznam.cz> wrote:
> > >     Hi
> > >     I have a problem, I use Axis 1.3. and I generate classes from wsdl
> > by
> > >     wsdl2java and when I translate it and copy to Tomcat and tryed to
> > see
> > > a
> > > list of services and their wsdl it write this:
> > >
> > >     AXIS error
> > >     Sorry, something seems to have gone wrong... here are the details:
> > >     Fault - makeTypeElement() was told to create a type
> > >     "{http://www.opengis.net/sld} <http://www.opengis.net/sld%7D>>FeatureTypeConstraint",
> > with no
> > > containing element
> > >     AxisFault
> > >     faultCode:
> > >     { http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
> > <http://schemas.xmlsoap.org/soap/envelope/%7DServer.generalException>
> > >     faultSubcode:
> > >     faultString: makeTypeElement() was told to create a type
> > >     "{http://www.opengis.net/sld} >FeatureTypeConstraint", with no
> > > containing element
> > >     faultActor:  faultNode:  faultDetail:
> > >     {http://xml.apache.org/axis/}hostname:pocitac<http://xml.apache.org/axis/%7Dhostname:pocitac>
> > >
> > >
> > >     So can enybody write me what is wrong? It is wery important for
> > me.
> > > Down I enclose wsdl and xsd file.If you want to see all importants
> > files,
> > > you can find them on www.sweb.cz/stanax/xsd.zip
> > >     Tahnks
> > >                 Ales
> > >
> > >     Wsdl:
> > >     <?xml version="1.0" encoding="UTF-8"?>
> > >     <wsdl:definitions targetNamespace="urn:Wms"
> > >     xmlns:tns="urn:Wms"
> > >     xmlns:sld=" http://www.opengis.net/sld"
> > >     xmlns:ows="http://www.opengis.net/ows"
> > >     xmlns:gml=" http://www.opengis.net/gml"
> > >     xmlns:apachesoap="http://xml.apache.org/xml-soap"
> > >     xmlns:impl="urn:Wms"
> > >     xmlns:intf="urn:Wms"
> > >     xmlns:soapenc=" http://schemas.xmlsoap.org/soap/encoding/"
> > >     xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/ "
> > >     xmlns:wsdlsoap=" http://schemas.xmlsoap.org/wsdl/soap/"
> > >     xmlns:xsd="http://www.w3.org/2001/XMLSchema ">
> > >
> > >
> > >     <wsdl:types>
> > >       <xsd:schema targetNamespace="urn:Wms"
> > >     xmlns="http://www.w3.org/2001/XMLSchema "
> > >     xmlns:soapenc=" http://schemas.xmlsoap.org/soap/encoding/">
> > >          <xsd:import namespace=" http://www.opengis.net/ows"
> > >     schemaLocation="./wms_schemas.xsd"/>
> > >          <xsd:import namespace="http://www.opengis.net/sld"
> > >     schemaLocation="../sld/1.0.20/StyledLayerDescriptor.xsd"/>
> > >
> > >     <xsd:element name="StyledLayerDescriptor"
> > > ref="sld:StyledLayerDescriptor" minOccurs="0"/>
> > >
> > >     <element name="QueryLayer" type="soapenc:string" minOccurs="0"/>
> > >     <element name="InfoFormat" type="soapenc:string" minOccurs="0"/>
> > >     <element name="FeatureCount" type="soapenc:int" minOccurs="0"/>
> > >
> > >     <element name="x" type="soapenc:int" minOccurs="0"/>
> > >     <element name="y" type="soapenc:int" minOccurs="0"/>
> > >
> > >       </xsd:schema>
> > >
> > >     </wsdl:types>
> > >
> > >
> > >        <wsdl:message name="getMapResponse">
> > >
> > >           <wsdl:part name="getMapReturn" type="soapenc:base64Binary"/>
> > >
> > >        </wsdl:message>
> > >
> > >        <wsdl:message name="getCapabilitiesRequest">
> > >
> > >           <wsdl:part name="version" element="ows:version"/>
> > >
> > >           <wsdl:part name="service" element="ows:service"/>
> > >
> > >           <wsdl:part name="exceptions" element="ows:exceptions"/>
> > >
> > >           <wsdl:part name="section" element="ows:section"/>
> > >
> > >        </wsdl:message>
> > >
> > >        <wsdl:message name="getCapabilitiesResponse">
> > >
> > >           <wsdl:part name="getCapabilitiesReturn"
> > type="soapenc:string"/>
> > >
> > >        </wsdl:message>
> > >
> > >        <wsdl:message name="getFeatureInfoResponse">
> > >
> > >           <wsdl:part name="getFeatureInfoReturn"
> > type="soapenc:string"/>
> > >
> > >        </wsdl:message>
> > >
> > >        <wsdl:message name="getFeatureInfoRequest">
> > >
> > >           <wsdl:part name="version" element="ows:version"/>
> > >
> > >           <wsdl:part name="service" element="ows:service"/>
> > >
> > >           <wsdl:part name="exceptions" element="ows:exceptions"/>
> > >
> > >       <wsdl:part name="Map" type="ows:MapType"/>
> > >
> > >          <wsdl:part name="Image" type="ows:ImageType"/>
> > >
> > >           <wsdl:part name="StyledLayerDescriptor"
> > >     element="tns:StyledLayerDescriptor"/>
> > >
> > >     <wsdl:part name="QueryLayer" element="tns:QueryLayer"/>
> > >     <wsdl:part name="InfoFormat" element="tns:InfoFormat" />
> > >     <wsdl:part name="FeatureCount" element="tns:FeatureCount" />
> > >     <wsdl:part name="x" element="tns:x" />
> > >     <wsdl:part name="y" element="tns:y" />
> > >     <wsdl:part name="Vendor" element="ows:Vendor" />
> > >
> > >        </wsdl:message>
> > >
> > >        <wsdl:message name="getMapRequest">
> > >
> > >           <wsdl:part name="version" element="ows:version"/>
> > >
> > >           <wsdl:part name="service" element="ows:service"/>
> > >
> > >           <wsdl:part name="exceptions" element="ows:exceptions"/>
> > >
> > >           <wsdl:part name="Map" type="ows:MapType"/>
> > >
> > >           <wsdl:part name="Image" type="ows:ImageType"/>
> > >
> > >           <wsdl:part name="StyledLayerDescriptor"
> > >     element="tns:StyledLayerDescriptor"/>
> > >
> > >
> > >        </wsdl:message>
> > >
> > >        <wsdl:portType name="Wms">
> > >
> > >           <wsdl:operation name="getMap" parameterOrder="version
> > service
> > >     exceptions Map Image StyledLayerDescriptor">
> > >
> > >              <wsdl:input message="impl:getMapRequest"
> > > name="getMapRequest"/>
> > >
> > >              <wsdl:output message="impl:getMapResponse"
> > > name="getMapResponse"/>
> > >
> > >           </wsdl:operation>
> > >
> > >           <wsdl:operation name="getCapabilities"
> > parameterOrder="version
> > > service exceptions section">
> > >
> > >              <wsdl:input message="impl:getCapabilitiesRequest"
> > >     name="getCapabilitiesRequest"/>
> > >
> > >              <wsdl:output message="impl:getCapabilitiesResponse"
> > >     name="getCapabilitiesResponse"/>
> > >
> > >           </wsdl:operation>
> > >
> > >           <wsdl:operation name="getFeatureInfo"
> > parameterOrder="version
> > > service exceptions Map Image StyledLayerDescriptor QueryLayer
> > InfoFormat
> > > FeatureCount x y Vendor">
> > >
> > >              <wsdl:input message="impl:getFeatureInfoRequest"
> > >     name="getFeatureInfoRequest"/>
> > >
> > >              <wsdl:output message="impl:getFeatureInfoResponse"
> > >     name="getFeatureInfoResponse"/>
> > >
> > >           </wsdl:operation>
> > >
> > >        </wsdl:portType>
> > >
> > >        <wsdl:binding name="wmsSoapBinding" type="impl:Wms">
> > >
> > >           <wsdlsoap:binding style="rpc"
> > >     transport="http://schemas.xmlsoap.org/soap/http"/<http://schemas.xmlsoap.org/soap/http%22/>>
> > >
> > >           <wsdl:operation name="getMap">
> > >
> > >              <wsdlsoap:operation soapAction=""/>
> > >
> > >              <wsdl:input name="getMapRequest">
> > >
> > >                 <wsdlsoap:body
> > >     encodingStyle=" http://schemas.xmlsoap.org/soap/encoding/"
> > >     namespace="urn:Wms" use="encoded"/>
> > >
> > >              </wsdl:input>
> > >
> > >              <wsdl:output name="getMapResponse">
> > >
> > >                 <wsdlsoap:body
> > >     encodingStyle="http://schemas.xmlsoap.org/soap/encoding/ "
> > >     namespace="urn:Wms" use="encoded"/>
> > >
> > >              </wsdl:output>
> > >
> > >           </wsdl:operation>
> > >
> > >           <wsdl:operation name="getCapabilities">
> > >
> > >              <wsdlsoap:operation soapAction=""/>
> > >
> > >              <wsdl:input name="getCapabilitiesRequest">
> > >
> > >                 <wsdlsoap:body
> > >     encodingStyle=" http://schemas.xmlsoap.org/soap/encoding/ "
> > >     namespace="urn:Wms" use="encoded"/>
> > >
> > >              </wsdl:input>
> > >
> > >              <wsdl:output name="getCapabilitiesResponse">
> > >
> > >                 <wsdlsoap:body
> > >     encodingStyle="http://schemas.xmlsoap.org/soap/encoding/ "
> > >     namespace="urn:Wms" use="encoded"/>
> > >
> > >              </wsdl:output>
> > >
> > >           </wsdl:operation>
> > >
> > >           <wsdl:operation name="getFeatureInfo">
> > >
> > >              <wsdlsoap:operation soapAction=""/>
> > >
> > >              <wsdl:input name="getFeatureInfoRequest">
> > >
> > >                 <wsdlsoap:body
> > >     encodingStyle="http://schemas.xmlsoap.org/soap/encoding/ "
> > >     namespace="urn:Wms" use="encoded"/>
> > >
> > >              </wsdl:input>
> > >
> > >              <wsdl:output name="getFeatureInfoResponse">
> > >
> > >                 <wsdlsoap:body
> > >     encodingStyle=" http://schemas.xmlsoap.org/soap/encoding/ "
> > >     namespace="urn:Wms" use="encoded"/>
> > >
> > >              </wsdl:output>
> > >
> > >           </wsdl:operation>
> > >
> > >        </wsdl:binding>
> > >
> > >        <wsdl:service name="WmsService">
> > >
> > >           <wsdl:port binding="impl:wmsSoapBinding" name="wms">
> > >
> > >              <wsdlsoap:address
> > >     location=" http://localhost:8080/axis/services/wms"/<http://localhost:8080/axis/services/wms%22/>
> > >
> > >
> > >           </wsdl:port>
> > >
> > >        </wsdl:service>
> > >
> > >     </wsdl:definitions>
> > >
> > >
> > >
> > >
> > >
> > >
> > >     xsd file StyledLayerDescriptor.xsd:
> > >
> > >     <?xml version="1.0" encoding="UTF-8"?>
> > >     <xsd:schema targetNamespace="http://www.opengis.net/sld"
> > >                 xmlns:sld=" http://www.opengis.net/sld"
> > >                 xmlns:ogc="http://www.opengis.net/ogc"
> > >                 xmlns:xsd="http://www.w3.org/2001/XMLSchema "
> > >                 elementFormDefault="qualified">
> > >       <xsd:include schemaLocation="FeatureStyle.xsd"/>
> > >       <xsd:import namespace="http://www.opengis.net/ogc "
> > >                   schemaLocation="../../filter/1.0.0/filter.xsd"/>
> > >
> > >     <!--
> > >
> > >
> > ***********************************************************************
> > > --> <xsd:annotation>
> > >         <xsd:documentation>
> > >           STYLED LAYER DESCRIPTOR version 1.0.20 (2002-09-21)
> > >         </xsd:documentation>
> > >       </xsd:annotation>
> > >
> > >       <xsd:element name="StyledLayerDescriptor">
> > >         <xsd:annotation>
> > >           <xsd:documentation>
> > >             A StyledLayerDescriptor is a sequence of styled layers,
> > > represented at the first level by NamedLayer and UserLayer elements.
> > > </xsd:documentation>
> > >         </xsd:annotation>
> > >         <xsd:complexType>
> > >           <xsd:sequence>
> > >             <xsd:element ref="sld:Name" minOccurs="0"/>
> > >             <xsd:element ref="sld:Description" minOccurs="0"/>
> > >             <xsd:element ref="sld:EnvironmentVariables"
> > minOccurs="0"/>
> > >             <xsd:element ref="sld:UseSLDLibrary" minOccurs="0"
> >
> > >                                                  maxOccurs="unbounded"/>
> > >             <xsd:choice minOccurs="0" maxOccurs="unbounded">
> > >               <xsd:element ref="sld:NamedLayer"/>
> > >               <xsd:element ref="sld:UserLayer"/>
> > >             </xsd:choice>
> > >           </xsd:sequence>
> > >           <xsd:attribute name="version" type="sld:VersionType"
> > > use="required"/> </xsd:complexType>
> > >       </xsd:element>
> > >
> > >     <!--
> > >
> > >
> > ***********************************************************************
> > > --> <xsd:annotation>
> > >         <xsd:documentation>
> > >           RUN-TIME ENVIRONMENT VARIABLES
> > >         </xsd:documentation>
> > >       </xsd:annotation>
> > >
> > >       <xsd:element name="EnvironmentVariables">
> > >         <xsd:annotation>
> > >           <xsd:documentation>
> > >             An "EnvironmentVariables" element includes an XML blob
> > which
> > >             can be used to declare the values to use for global
> > > environment
> > >             variables during the execution of the styling operations.
> > >             These variables may be refered to in styles and symbols in
> > the
> > >             same way as feature properties.
> > >           </xsd:documentation>
> > >         </xsd:annotation>
> > >         <xsd:complexType>
> > >           <xsd:sequence>
> > >             <xsd:any/>
> > >           </xsd:sequence>
> > >         </xsd:complexType>
> > >       </xsd:element>
> > >
> > >     <!--
> > >
> > >
> > ***********************************************************************
> > > --> <xsd:annotation>
> > >         <xsd:documentation>
> > >           SLD LIBRARIES
> > >         </xsd:documentation>
> > >       </xsd:annotation>
> > >
> > >       <xsd:element name="UseSLDLibrary">
> > >         <xsd:annotation>
> > >           <xsd:documentation>
> > >             The UseSLDLibrary tag specifies that an external SLD
> > document
> > >             should be used as a "library" of named layers and styles
> > to
> > >             augment the set of named layers and styles that are
> > available
> > >             for use inside of a WMS.  In the event of name collisions,
> > the
> > >             SLD library takes precedence over the ones internal to the
> > > WMS.
> > >             Any number of libraries may be specified in an SLD and
> > each
> > >             successive library takes precedence over the former ones
> > in
> > > the
> > >             case of name collisions.
> > >           </xsd:documentation>
> > >         </xsd:annotation>
> > >         <xsd:complexType>
> > >           <xsd:sequence>
> > >             <xsd:element ref="sld:OnlineResource"/>
> > >           </xsd:sequence>
> > >         </xsd:complexType>
> > >       </xsd:element>
> > >
> > >     <!--
> > >
> > >
> > ***********************************************************************
> > > --> <xsd:annotation>
> > >         <xsd:documentation>
> > >           LAYERS AND STYLES
> > >         </xsd:documentation>
> > >       </xsd:annotation>
> > >
> > >       <xsd:element name="NamedLayer">
> > >         <xsd:annotation>
> > >           <xsd:documentation>
> > >             A NamedLayer is a layer of data that has a name advertised
> > by
> > > a
> > > WMS. </xsd:documentation>
> > >         </xsd:annotation>
> > >         <xsd:complexType>
> > >           <xsd:sequence>
> > >             <xsd:element ref="sld:Name"/>
> > >             <xsd:element ref="sld:Description" minOccurs="0"/>
> > >             <xsd:element ref="sld:LayerFeatureConstraints"
> > minOccurs="0"/>
> > >             <xsd:choice minOccurs="0" maxOccurs="unbounded">
> > >               <xsd:element ref="sld:NamedStyle"/>
> > >               <xsd:element ref="sld:UserStyle"/>
> > >             </xsd:choice>
> > >           </xsd:sequence>
> > >         </xsd:complexType>
> > >       </xsd:element>
> > >
> > >       <xsd:element name="NamedStyle">
> > >         <xsd:annotation>
> > >           <xsd:documentation>
> > >             A NamedStyle is used to refer to a style that has a name
> > in a
> > > WMS. </xsd:documentation>
> > >         </xsd:annotation>
> > >         <xsd:complexType>
> > >           <xsd:sequence>
> > >             <xsd:element ref="sld:Name"/>
> > >             <xsd:element ref="sld:Description" minOccurs="0"/>
> > >           </xsd:sequence>
> > >         </xsd:complexType>
> > >       </xsd:element>
> > >
> > >       <xsd:element name="UserLayer">
> > >         <xsd:annotation>
> > >           <xsd:documentation>
> > >             A UserLayer allows a user-defined layer to be built from
> > WFS
> > > and WCS data.
> > >           </xsd:documentation>
> > >         </xsd:annotation>
> > >         <xsd:complexType>
> > >           <xsd:sequence>
> > >             <xsd:element ref="sld:Name" minOccurs="0"/>
> > >             <xsd:element ref="sld:Description" minOccurs="0"/>
> > >             <xsd:element ref="sld:RemoteOWS" minOccurs="0"/>
> > >             <xsd:element ref="sld:LayerFeatureConstraints"/>
> > >             <xsd:element ref="sld:UserStyle" maxOccurs="unbounded"/>
> > >           </xsd:sequence>
> > >         </xsd:complexType>
> > >       </xsd:element>
> > >
> > >       <xsd:element name="RemoteOWS">
> > >         <xsd:annotation>
> > >           <xsd:documentation>
> > >             A RemoteOWS gives a reference to a remote
> > WFS/WCS/other-OWS
> > > server. </xsd:documentation>
> > >         </xsd:annotation>
> > >         <xsd:complexType>
> > >           <xsd:sequence>
> > >             <xsd:element ref="sld:Service"/>
> > >             <xsd:element ref="sld:OnlineResource"/>
> > >           </xsd:sequence>
> > >         </xsd:complexType>
> > >       </xsd:element>
> > >
> > >       <xsd:element name="Service">
> > >         <xsd:annotation>
> > >           <xsd:documentation>
> > >             A Service refers to the type of a remote OWS server.
> > >           </xsd:documentation>
> > >         </xsd:annotation>
> > >         <xsd:simpleType>
> > >           <xsd:restriction base="xsd:string">
> > >             <xsd:enumeration value="WFS"/>
> > >             <xsd:enumeration value="WCS"/>
> > >           </xsd:restriction>
> > >         </xsd:simpleType>
> > >       </xsd:element>
> > >
> > >       <xsd:element name="LayerFeatureConstraints">
> > >         <xsd:annotation>
> > >           <xsd:documentation>
> > >             LayerFeatureConstraints define what features &amp; feature
> > > types are referenced in a layer.
> > >           </xsd:documentation>
> > >         </xsd:annotation>
> > >         <xsd:complexType>
> > >           <xsd:sequence>
> > >             <xsd:element ref="sld:FeatureTypeConstraint"
> > > maxOccurs="unbounded"/> </xsd:sequence>
> > >         </xsd:complexType>
> > >       </xsd:element>
> > >
> > >       <xsd:element name="FeatureTypeConstraint">
> > >         <xsd:annotation>
> > >           <xsd:documentation>
> > >             A FeatureTypeConstraint identifies a specific feature type
> > and
> > >             supplies fitlering.
> > >           </xsd:documentation>
> > >         </xsd:annotation>
> > >         <xsd:complexType>
> > >           <xsd:sequence>
> > >             <xsd:element ref="sld:FeatureTypeName" minOccurs="0"/>
> > >             <xsd:element ref="ogc:Filter" minOccurs="0"/>
> > >             <xsd:element ref="sld:Extent" minOccurs="0"
> > > maxOccurs="unbounded"/> </xsd:sequence>
> > >         </xsd:complexType>
> > >       </xsd:element>
> > >
> > >       <xsd:element name="Extent">
> > >         <xsd:annotation>
> > >           <xsd:documentation>
> > >             An Extent gives feature/coverage/raster/matrix dimension
> > > extent. </xsd:documentation>
> > >         </xsd:annotation>
> > >         <xsd:complexType>
> > >           <xsd:sequence>
> > >             <xsd:element ref="sld:Name"/>
> > >             <xsd:element ref="sld:Value"/>
> > >           </xsd:sequence>
> > >         </xsd:complexType>
> > >       </xsd:element>
> > >       <xsd:element name="Value" type="xsd:string"/>
> > >
> > >       <xsd:element name="UserStyle">
> > >         <xsd:annotation>
> > >           <xsd:documentation>
> > >             A UserStyle allows user-defined styling and is
> > semantically
> > >             equivalent to a WMS named style.
> > >           </xsd:documentation>
> > >         </xsd:annotation>
> > >         <xsd:complexType>
> > >           <xsd:sequence>
> > >             <xsd:element ref="sld:Name" minOccurs="0"/>
> > >             <xsd:element ref="sld:Description" minOccurs="0"/>
> > >             <xsd:element ref="sld:IsDefault" minOccurs="0"/>
> > >             <xsd:element ref="sld:FeatureStyle"
> > maxOccurs="unbounded"/>
> > >           </xsd:sequence>
> > >         </xsd:complexType>
> > >       </xsd:element>
> > >       <xsd:element name="IsDefault" type="xsd:boolean"/>
> > >
> > >     </xsd:schema>
> >
> >
>

Re: Server.generalException - makeTypeElement() was told to create a type "{http://www.opengis.net/sld}>StyledLayerDescriptor", with no containing element

Posted by Ales St <st...@seznam.cz>.
Hi Anne
I include it , and I have a still the same problem. In file StyledLayerDescriptor.xsd  is include file FeatureStyle.xsd" in which is include file Symbol.xsd and in it is include file common.xsd so I thing, that problem is somewhere else,bud I don´t know where.
            Ales
  ----- Original Message ----- 
  From: Anne Thomas Manes 
  To: axis-user@ws.apache.org 
  Sent: Tuesday, December 13, 2005 10:33 PM
  Subject: Re: Server.generalException - makeTypeElement() was told to create a type "{http://www.opengis.net/sld}>StyledLayerDescriptor", with no containing element


  I repeat an earlier comment I made to you. 

  The StyledLayerDescriptor.xsd schema references a number of elements that are not defined in the schema (Name, Description, etc.) These elements are defined in a different schema (common.xsd). You must edit the StyledLayerDescriptor.xsd schema and <xsd:include> the common.xsd schema.

  Anne


  On 12/13/05, Ales St <st...@seznam.cz> wrote:
    Hi,
    I have a new problem I writed now a document/literal oriented wsdl, classes
    are generated, but when  I try to see wsdl on axis-server side Axis error is
    generated:

    AXIS error
    Sorry, something seems to have gone wrong... here are the details: 

    Fault - makeTypeElement() was told to create a type
    "{http://www.opengis.net/sld}>StyledLayerDescriptor", with no containing
    elementAxisFault
    faultCode: 
    {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
    faultSubcode:
    faultString: makeTypeElement() was told to create a type 
    "{http://www.opengis.net/sld}>StyledLayerDescriptor", with no containing
    element
    faultActor:  faultNode:  faultDetail:
            { http://xml.apache.org/axis/}hostname:pocitac

    So I don´t knew what is wrong, it could be some import xsd problem, but I
    don´t knew which and how to solve it. I see some files on web but, they look
    like similar as that which I have. I give here a wsdl file, and all other 
    files which is important to generate is in www.sweb.cz/stanax/xsd.zip .
    I will be wery happy if somebody help me, because I solve this problem for
    some days and I can´t a solution. 
    Thank you
                    Ales
    wsdl file:
    <?xml version="1.0" encoding="UTF-8"?>
    <wsdl:definitions targetNamespace="urn:Wms"
    xmlns:apachesoap=" http://xml.apache.org/xml-soap"
    xmlns:impl="urn:Wms"
    xmlns:intf="urn:Wms"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    xmlns:sld="http://www.opengis.net/sld"
    xmlns:ows="http://www.opengis.net/ows"
    xmlns:wsdlsoap=" http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema">

    <wsdl:types>
    <xsd:schema elementFormDefault="qualified" 
    targetNamespace="urn:Wms"
    xmlns="http://www.w3.org/2001/XMLSchema"
    xmlns:sld="http://www.opengis.net/sld "
    xmlns:ows="http://www.opengis.net/ows">

    <xsd:import namespace="http://www.opengis.net/sld"
    schemaLocation="../sld/1.0.20/StyledLayerDescriptor.xsd"/>
      <xsd:import namespace=" http://www.opengis.net/ows"
             schemaLocation="./wms_schemas.xsd"/> 
    <element name="getFeatureInfo">
        <complexType>
         <sequence>
          <element ref ="ows:version"/>
          <element  ref ="ows:service"/>
          <element ref ="ows:exceptions"/> 
          <element  ref ="ows:Map"/>
          <element  ref ="ows:Image"/>
          <element  ref ="sld:StyledLayerDescriptor"/>
          <element name="QueryLayer" type ="xsd:string"/> 
          <element name="InfoFormat" type ="xsd:string"/>
          <element name="FeatureCount" type ="xsd:int"/>
          <element name="x" type ="xsd:int"/> 
          <element name="y" type ="xsd:int"/>
          <element ref ="ows:Vendor"/>
         </sequence>
        </complexType>
       </element>

       <element name="getFeatureInfoResponse"> 
        <complexType>
         <sequence>
          <element name="getFeatureInfoReturn" type="xsd:string"/>
         </sequence>
        </complexType>
       </element> 

       <element name="getMap">
        <complexType>
         <sequence>
          <element ref ="ows:version"/>
          <element  ref ="ows:service"/>
          <element  ref ="ows:exceptions"/> 
          <element  ref ="ows:Map"/>
          <element  ref ="ows:Image"/>
          <element  ref ="sld:StyledLayerDescriptor"/>
         </sequence>
        </complexType> 
       </element>
       <element name="getMapResponse">
        <complexType>
         <sequence>
          <element name="getMapReturn" type="xsd:base64Binary"/>
         </sequence>
        </complexType>
       </element>
       <element name="getCapabilities">
        <complexType>
         <sequence>
          <element  ref ="ows:version"/> 
          <element  ref ="ows:service"/>
          <element ref ="ows:exceptions"/>
          <element  ref ="ows:section"/>
         </sequence>
        </complexType> 
       </element>
       <element name="getCapabilitiesResponse">
        <complexType>
         <sequence>
          <element name="getCapabilitiesReturn" type="xsd:string"/> 
         </sequence>
        </complexType>
       </element>
      </xsd:schema>

    </wsdl:types>
       <wsdl:message name="getMapResponse">

          <wsdl:part element="impl:getMapResponse" name="parameters"/> 

       </wsdl:message>

       <wsdl:message name="getCapabilitiesRequest">

          <wsdl:part element="impl:getCapabilities" name="parameters"/>

       </wsdl:message> 

       <wsdl:message name="getCapabilitiesResponse">

          <wsdl:part element="impl:getCapabilitiesResponse" name="parameters"/>

       </wsdl:message>

       <wsdl:message name="getFeatureInfoResponse">

          <wsdl:part element="impl:getFeatureInfoResponse" name="parameters"/>

       </wsdl:message>

       <wsdl:message name="getFeatureInfoRequest"> 

          <wsdl:part element="impl:getFeatureInfo" name="parameters"/>

       </wsdl:message>

       <wsdl:message name="getMapRequest">

          <wsdl:part element="impl:getMap" name="parameters"/> 

       </wsdl:message>

       <wsdl:portType name="Wms">

          <wsdl:operation name="getFeatureInfo">

             <wsdl:input message="impl:getFeatureInfoRequest" 
    name="getFeatureInfoRequest"/>

             <wsdl:output message="impl:getFeatureInfoResponse"
    name="getFeatureInfoResponse"/>

          </wsdl:operation>

          <wsdl:operation name="getMap"> 

             <wsdl:input message="impl:getMapRequest" name="getMapRequest"/>

             <wsdl:output message="impl:getMapResponse" name="getMapResponse"/>

          </wsdl:operation>

          <wsdl:operation name="getCapabilities">

             <wsdl:input message="impl:getCapabilitiesRequest"
    name="getCapabilitiesRequest"/> 

             <wsdl:output message="impl:getCapabilitiesResponse"
    name="getCapabilitiesResponse"/>

          </wsdl:operation>

       </wsdl:portType>

       <wsdl:binding name="wmsSoapBinding" type="impl:Wms"> 

          <wsdlsoap:binding style="document"
    transport="http://schemas.xmlsoap.org/soap/http"/>

          <wsdl:operation name="getFeatureInfo"> 

             <wsdlsoap:operation soapAction=""/>

             <wsdl:input name="getFeatureInfoRequest">

                <wsdlsoap:body use="literal"/>

             </wsdl:input> 

             <wsdl:output name="getFeatureInfoResponse">

                <wsdlsoap:body use="literal"/>

             </wsdl:output>

          </wsdl:operation>

          <wsdl:operation name="getMap">

             <wsdlsoap:operation soapAction=""/>

             <wsdl:input name="getMapRequest">

                <wsdlsoap:body use="literal"/> 

             </wsdl:input>

             <wsdl:output name="getMapResponse">

                <wsdlsoap:body use="literal"/>

             </wsdl:output>

          </wsdl:operation> 

          <wsdl:operation name="getCapabilities">

             <wsdlsoap:operation soapAction=""/>

             <wsdl:input name="getCapabilitiesRequest">

                <wsdlsoap:body use="literal"/> 

             </wsdl:input>

             <wsdl:output name="getCapabilitiesResponse">

                <wsdlsoap:body use="literal"/>

             </wsdl:output>

          </wsdl:operation>

       </wsdl:binding>

       <wsdl:service name="WmsService">

          <wsdl:port binding="impl:wmsSoapBinding" name="wms">

             <wsdlsoap:address 
    location="http://localhost:8080/axis/services/wms"/>

          </wsdl:port>

       </wsdl:service>

    </wsdl:definitions> 





    ----- Original Message -----
    From: "iksrazal" <ik...@gmail.com>
    To: <axis-user@ws.apache.org >
    Sent: Tuesday, December 13, 2005 2:56 PM
    Subject: Re: Server.generalException - makeTypeElement() was told to create
    a type "{http://www.opengis.net/sld}>FeatureTypeConstraint", with no 
    containing element


    > So I decided,
    > that my wsdl is wrong, but I don´t know where is a mistake.

    Try the "free as in beer" soa wsdl editor from cape clear. Or try wooden:

    http://incubator.apache.org/woden/

    HTH,
    iksrazal

    Em Terça 13 Dezembro 2005 11:39, o Ales St escreveu:
    > Hi
    > I removed that definition, and I tryed to rewrite my wsdl definition to
    > document/literal  type,classes are generated. But when I tryed to se wsdl 
    > which is generated by server, the sam Axis error was generated and in
    > server console was writed this: "Request Message type information has
    > multiple parts that one single wrapped complexType.Use WRAPPED/LITERAL if
    > interoping with some other soap stack becomes a problem." So I decided,
    > that my wsdl is wrong, but I don´t know where is a mistake. I write my
    > wsdl
    > by inspirating some wsdl which I find on the web, because I can't wind 
    > some
    > good definition, how to write it. So if you knew about some good, please
    > send me it. And please see my wsdl,and write to me, where is a problem.
    > Thank you
    >             Ales
    >
    > New wsdl:
    > <?xml version="1.0" encoding="UTF-8"?>
    > <wsdl:definitions targetNamespace="urn:Wms"
    >  xmlns:tns="urn:Wms"
    >  xmlns:sld=" http://www.opengis.net/sld"
    >  xmlns:ows="http://www.opengis.net/ows"
    > xmlns:gml=" http://www.opengis.net/gml"
    >  xmlns:apachesoap="http://xml.apache.org/xml-soap"
    >  xmlns:impl="urn:Wms"
    >  xmlns:intf="urn:Wms" 
    >  xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
    >  xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/ "
    >  xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
    >  xmlns:xsd="http://www.w3.org/2001/XMLSchema ">
    >
    >
    > <wsdl:types>
    >   <xsd:schema targetNamespace="urn:Wms"
    > xmlns="http://www.w3.org/2001/XMLSchema" 
    > xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"> <xsd:import
    > namespace=" http://www.opengis.net/ows "
    > schemaLocation="./wms_schemas.xsd"/> <xsd:import
    > namespace="http://www.opengis.net/sld"
    > schemaLocation="../sld/1.0.20/StyledLayerDescriptor.xsd"/> 
    >
    > <element name="QueryLayer" type="soapenc:string" minOccurs="0"/>
    > <element name="InfoFormat" type="soapenc:string" minOccurs="0"/> 
    > <element name="FeatureCount" type="soapenc:int" minOccurs="0"/>
    >
    > <element name="x" type="soapenc:int" minOccurs="0"/>
    > 
    > <element name="y" type="soapenc:int" minOccurs="0"/>
    >
    > <element name="InfoFormat" type="soapenc:string" minOccurs="0"/>
    > 
    > <element name="getMapReturn" type="soapenc:base64Binary"/>
    > <element name="string" type="soapenc:string"/>
    > <element name="Map" type="ows:MapType"/> 
    > <element name="Image" type="ows:ImageType"/>
    >
    >   </xsd:schema></wsdl:types>
    >
    >
    >    <wsdl:message name="getMapResponse">
    > 
    >       <wsdl:part name="getMapReturn" element="tns:getMapReturn"/>
    >
    >    </wsdl:message>
    >
    >    <wsdl:message name="getCapabilitiesRequest"> 
    >
    >       <wsdl:part name="version" element="ows:version"/>
    >       <wsdl:part name="service" element="ows:service"/>
    >
    >       <wsdl:part name="exceptions" element="ows:exceptions"/> 
    >
    >       <wsdl:part name="section" element="ows:section"/>
    >
    >    </wsdl:message>
    >
    >    <wsdl:message name="getCapabilitiesResponse">
    >
    >       <wsdl:part name="getCapabilitiesReturn" element="tns:string"/>
    >    </wsdl:message>
    >
    >    <wsdl:message name="getFeatureInfoResponse">
    >
    >       <wsdl:part name="getFeatureInfoReturn" element="tns:string"/>
    >
    >    </wsdl:message>
    >
    >    <wsdl:message name="getFeatureInfoRequest"> 
    >
    >       <wsdl:part name="version" element="ows:version"/>
    >       <wsdl:part name="service" element="ows:service"/>
    >
    >       <wsdl:part name="exceptions" element="ows:exceptions"/> 
    >
    > <wsdl:part name="Map" element="tns:Map"/>
    >
    >      <wsdl:part name="Image" element="tns:Image"/>
    >
    >       <wsdl:part name="StyledLayerDescriptor" 
    > element="sld:StyledLayerDescriptor"/>
    >
    > <wsdl:part name="QueryLayer" element="tns:QueryLayer"/>
    > <wsdl:part name="InfoFormat" element="tns:InfoFormat" /> 
    > <wsdl:part name="FeatureCount" element="tns:FeatureCount" />
    > <wsdl:part name="x" element="tns:x" />
    > <wsdl:part name="y" element="tns:y" /> 
    > <wsdl:part name="Vendor" element="ows:Vendor" />
    >
    >    </wsdl:message>
    >
    >    <wsdl:message name="getMapRequest">
    >
    >       <wsdl:part name="version" element="ows:version"/> 
    >
    >       <wsdl:part name="service" element="ows:service"/>
    >       <wsdl:part name="exceptions" element="ows:exceptions"/>
    >
    >       <wsdl:part name="Map" element="tns:Map"/> 
    >
    >      <wsdl:part name="Image" element="tns:Image"/>
    >
    >       <wsdl:part name="StyledLayerDescriptor"
    > element="sld:StyledLayerDescriptor"/> 
    >
    >    </wsdl:message>
    >
    >    <wsdl:portType name="Wms">
    >       <wsdl:operation name="getMap" parameterOrder="version service
    > exceptions Map Image StyledLayerDescriptor"> 
    >
    >          <wsdl:input message="impl:getMapRequest" name="getMapRequest"/>
    >
    >          <wsdl:output message="impl:getMapResponse"
    > name="getMapResponse"/>
    >
    >       </wsdl:operation> 
    >
    >       <wsdl:operation name="getCapabilities" parameterOrder="version
    > service exceptions section">
    >
    >          <wsdl:input message="impl:getCapabilitiesRequest" 
    > name="getCapabilitiesRequest"/> <wsdl:output
    > message="impl:getCapabilitiesResponse" name="getCapabilitiesResponse"/>
    >
    >       </wsdl:operation>
    >
    >       <wsdl:operation name="getFeatureInfo" parameterOrder="version
    > service
    > exceptions Map Image StyledLayerDescriptor QueryLayer InfoFormat
    > FeatureCount x y Vendor"> 
    >
    >          <wsdl:input message="impl:getFeatureInfoRequest"
    > name="getFeatureInfoRequest"/>
    >
    >          <wsdl:output message="impl:getFeatureInfoResponse" 
    > name="getFeatureInfoResponse"/>
    >
    >       </wsdl:operation>
    >    </wsdl:portType>
    >
    >    <wsdl:binding name="wmsSoapBinding" type="impl:Wms"> 
    >
    >       <wsdlsoap:binding style="document"
    > transport="http://schemas.xmlsoap.org/soap/http"/>
    >
    >       <wsdl:operation name="getMap"> 
    >
    >          <wsdlsoap:operation soapAction=""/>
    >
    >          <wsdl:input name="getMapRequest">
    >             <wsdlsoap:body  namespace="urn:Wms" use="literal"/>
    >
    >          </wsdl:input>
    >
    >          <wsdl:output name="getMapResponse">
    >
    >             <wsdlsoap:body  namespace="urn:Wms" use="literal"/>
    >
    >          </wsdl:output>
    >
    >       </wsdl:operation>
    >       <wsdl:operation name="getCapabilities"> 
    >
    >          <wsdlsoap:operation soapAction=""/>
    >
    >          <wsdl:input name="getCapabilitiesRequest">
    >
    >             <wsdlsoap:body  namespace="urn:Wms" use="literal"/>
    >
    >          </wsdl:input>
    >
    >          <wsdl:output name="getCapabilitiesResponse">
    >             <wsdlsoap:body  namespace="urn:Wms" use="literal"/>
    >
    >          </wsdl:output>
    >
    >       </wsdl:operation>
    >
    >       <wsdl:operation name="getFeatureInfo"> 
    >
    >          <wsdlsoap:operation soapAction=""/>
    >
    >          <wsdl:input name="getFeatureInfoRequest">
    >             <wsdlsoap:body  namespace="urn:Wms" use="literal"/>
    >
    >          </wsdl:input>
    >
    >          <wsdl:output name="getFeatureInfoResponse">
    >
    >             <wsdlsoap:body  namespace="urn:Wms" use="literal"/>
    >
    >          </wsdl:output>
    >
    >       </wsdl:operation>
    >    </wsdl:binding>
    >
    >    <wsdl:service name="WmsService"> 
    >
    >       <wsdl:port binding="impl:wmsSoapBinding" name="wms">
    >
    >          <wsdlsoap:address
    > location=" http://localhost:8080/axis/services/wms"/>
    >
    >       </wsdl:port>
    >
    >    </wsdl:service>
    > </wsdl:definitions>
    >
    >
    >
    >   ----- Original Message ----- 
    >   From: Anne Thomas Manes
    >   To: axis-user@ws.apache.org
    >   Sent: Tuesday, December 13, 2005 1:56 AM
    >   Subject: Re: Server.generalException - makeTypeElement() was told to 
    > create a type "{http://www.opengis.net/sld}>FeatureTypeConstraint", with
    > no
    > containing element
    >
    >
    >   This definition in your urn:Wms schema should be removed: 
    >
    >   <xsd:element name="StyledLayerDescriptor"
    > ref="sld:StyledLayerDescriptor"
    >
    >   minOccurs="0"/>
    >
    >   The element is defined in the sld schema. There's no reason to define it 
    > again in the Wms schema. Besides, you can't name an element and reference
    > another element in the same definition.
    >
    >
    >   Anne
    >
    >   ps -- with such a complex schema, I strongly encourage you to switch to 
    > document/literal rather than rpc/encoded.
    >
    >
    >   On 12/11/05, Ales St < stanax@seznam.cz> wrote:
    >     Hi
    >     I have a problem, I use Axis 1.3. and I generate classes from wsdl by
    >     wsdl2java and when I translate it and copy to Tomcat and tryed to see
    > a
    > list of services and their wsdl it write this:
    >
    >     AXIS error
    >     Sorry, something seems to have gone wrong... here are the details:
    >     Fault - makeTypeElement() was told to create a type
    >     "{http://www.opengis.net/sld} >FeatureTypeConstraint", with no
    > containing element
    >     AxisFault
    >     faultCode:
    >     { http://schemas.xmlsoap.org/soap/envelope/}Server.generalException 
    >     faultSubcode:
    >     faultString: makeTypeElement() was told to create a type
    >     "{http://www.opengis.net/sld} >FeatureTypeConstraint", with no 
    > containing element
    >     faultActor:  faultNode:  faultDetail:
    >     {http://xml.apache.org/axis/}hostname:pocitac
    >
    >
    >     So can enybody write me what is wrong? It is wery important for me. 
    > Down I enclose wsdl and xsd file.If you want to see all importants files,
    > you can find them on www.sweb.cz/stanax/xsd.zip
    >     Tahnks
    >                 Ales 
    >
    >     Wsdl:
    >     <?xml version="1.0" encoding="UTF-8"?>
    >     <wsdl:definitions targetNamespace="urn:Wms"
    >     xmlns:tns="urn:Wms"
    >     xmlns:sld=" http://www.opengis.net/sld"
    >     xmlns:ows="http://www.opengis.net/ows"
    >     xmlns:gml=" http://www.opengis.net/gml"
    >     xmlns:apachesoap="http://xml.apache.org/xml-soap"
    >     xmlns:impl="urn:Wms"
    >     xmlns:intf="urn:Wms" 
    >     xmlns:soapenc=" http://schemas.xmlsoap.org/soap/encoding/"
    >     xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/ "
    >     xmlns:wsdlsoap=" http://schemas.xmlsoap.org/wsdl/soap/"
    >     xmlns:xsd="http://www.w3.org/2001/XMLSchema ">
    >
    >
    >     <wsdl:types>
    >       <xsd:schema targetNamespace="urn:Wms"
    >     xmlns="http://www.w3.org/2001/XMLSchema "
    >     xmlns:soapenc=" http://schemas.xmlsoap.org/soap/encoding/">
    >          <xsd:import namespace=" http://www.opengis.net/ows"
    >     schemaLocation="./wms_schemas.xsd"/>
    >          <xsd:import namespace="http://www.opengis.net/sld"
    >     schemaLocation="../sld/1.0.20/StyledLayerDescriptor.xsd"/>
    >
    >     <xsd:element name="StyledLayerDescriptor"
    > ref="sld:StyledLayerDescriptor" minOccurs="0"/> 
    >
    >     <element name="QueryLayer" type="soapenc:string" minOccurs="0"/>
    >     <element name="InfoFormat" type="soapenc:string" minOccurs="0"/> 
    >     <element name="FeatureCount" type="soapenc:int" minOccurs="0"/>
    >
    >     <element name="x" type="soapenc:int" minOccurs="0"/> 
    >     <element name="y" type="soapenc:int" minOccurs="0"/>
    >
    >       </xsd:schema>
    >
    >     </wsdl:types>
    >
    >
    >        <wsdl:message name="getMapResponse"> 
    >
    >           <wsdl:part name="getMapReturn" type="soapenc:base64Binary"/>
    >
    >        </wsdl:message>
    >
    >        <wsdl:message name="getCapabilitiesRequest">
    > 
    >           <wsdl:part name="version" element="ows:version"/>
    >
    >           <wsdl:part name="service" element="ows:service"/>
    >
    >           <wsdl:part name="exceptions" element="ows:exceptions"/> 
    >
    >           <wsdl:part name="section" element="ows:section"/>
    >
    >        </wsdl:message>
    >
    >        <wsdl:message name="getCapabilitiesResponse"> 
    >
    >           <wsdl:part name="getCapabilitiesReturn" type="soapenc:string"/>
    >
    >        </wsdl:message>
    >
    >        <wsdl:message name="getFeatureInfoResponse">
    >
    >           <wsdl:part name="getFeatureInfoReturn" type="soapenc:string"/>
    >
    >        </wsdl:message>
    >
    >        <wsdl:message name="getFeatureInfoRequest">
    >
    >           <wsdl:part name="version" element="ows:version"/>
    >
    >           <wsdl:part name="service" element="ows:service"/>
    >
    >           <wsdl:part name="exceptions" element="ows:exceptions"/> 
    >
    >       <wsdl:part name="Map" type="ows:MapType"/>
    >
    >          <wsdl:part name="Image" type="ows:ImageType"/>
    >
    >           <wsdl:part name="StyledLayerDescriptor" 
    >     element="tns:StyledLayerDescriptor"/>
    >
    >     <wsdl:part name="QueryLayer" element="tns:QueryLayer"/>
    >     <wsdl:part name="InfoFormat" element="tns:InfoFormat" /> 
    >     <wsdl:part name="FeatureCount" element="tns:FeatureCount" />
    >     <wsdl:part name="x" element="tns:x" />
    >     <wsdl:part name="y" element="tns:y" /> 
    >     <wsdl:part name="Vendor" element="ows:Vendor" />
    >
    >        </wsdl:message>
    >
    >        <wsdl:message name="getMapRequest">
    >
    >           <wsdl:part name="version" element="ows:version"/> 
    >
    >           <wsdl:part name="service" element="ows:service"/>
    >
    >           <wsdl:part name="exceptions" element="ows:exceptions"/>
    >
    >           <wsdl:part name="Map" type="ows:MapType"/>
    >
    >           <wsdl:part name="Image" type="ows:ImageType"/>
    >
    >           <wsdl:part name="StyledLayerDescriptor" 
    >     element="tns:StyledLayerDescriptor"/>
    >
    >
    >        </wsdl:message>
    >
    >        <wsdl:portType name="Wms">
    >
    >           <wsdl:operation name="getMap" parameterOrder="version service
    >     exceptions Map Image StyledLayerDescriptor">
    >
    >              <wsdl:input message="impl:getMapRequest"
    > name="getMapRequest"/>
    >
    >              <wsdl:output message="impl:getMapResponse"
    > name="getMapResponse"/>
    >
    >           </wsdl:operation>
    >
    >           <wsdl:operation name="getCapabilities" parameterOrder="version
    > service exceptions section">
    >
    >              <wsdl:input message="impl:getCapabilitiesRequest"
    >     name="getCapabilitiesRequest"/>
    >
    >              <wsdl:output message="impl:getCapabilitiesResponse"
    >     name="getCapabilitiesResponse"/>
    >
    >           </wsdl:operation>
    >
    >           <wsdl:operation name="getFeatureInfo" parameterOrder="version
    > service exceptions Map Image StyledLayerDescriptor QueryLayer InfoFormat
    > FeatureCount x y Vendor">
    >
    >              <wsdl:input message="impl:getFeatureInfoRequest"
    >     name="getFeatureInfoRequest"/>
    >
    >              <wsdl:output message="impl:getFeatureInfoResponse"
    >     name="getFeatureInfoResponse"/>
    >
    >           </wsdl:operation>
    >
    >        </wsdl:portType>
    >
    >        <wsdl:binding name="wmsSoapBinding" type="impl:Wms"> 
    >
    >           <wsdlsoap:binding style="rpc"
    >     transport="http://schemas.xmlsoap.org/soap/http"/ >
    >
    >           <wsdl:operation name="getMap"> 
    >
    >              <wsdlsoap:operation soapAction=""/>
    >
    >              <wsdl:input name="getMapRequest">
    >
    >                 <wsdlsoap:body
    >     encodingStyle=" http://schemas.xmlsoap.org/soap/encoding/"
    >     namespace="urn:Wms" use="encoded"/>
    >
    >              </wsdl:input>
    >
    >              <wsdl:output name="getMapResponse">
    >
    >                 <wsdlsoap:body
    >     encodingStyle="http://schemas.xmlsoap.org/soap/encoding/ " 
    >     namespace="urn:Wms" use="encoded"/>
    >
    >              </wsdl:output>
    >
    >           </wsdl:operation>
    >
    >           <wsdl:operation name="getCapabilities"> 
    >
    >              <wsdlsoap:operation soapAction=""/>
    >
    >              <wsdl:input name="getCapabilitiesRequest">
    >
    >                 <wsdlsoap:body
    >     encodingStyle=" http://schemas.xmlsoap.org/soap/encoding/ "
    >     namespace="urn:Wms" use="encoded"/>
    >
    >              </wsdl:input>
    >
    >              <wsdl:output name="getCapabilitiesResponse">
    >
    >                 <wsdlsoap:body
    >     encodingStyle="http://schemas.xmlsoap.org/soap/encoding/ "
    >     namespace="urn:Wms" use="encoded"/>
    >
    >              </wsdl:output>
    >
    >           </wsdl:operation>
    >
    >           <wsdl:operation name="getFeatureInfo"> 
    >
    >              <wsdlsoap:operation soapAction=""/>
    >
    >              <wsdl:input name="getFeatureInfoRequest">
    >
    >                 <wsdlsoap:body
    >     encodingStyle="http://schemas.xmlsoap.org/soap/encoding/ "
    >     namespace="urn:Wms" use="encoded"/>
    >
    >              </wsdl:input>
    >
    >              <wsdl:output name="getFeatureInfoResponse">
    >
    >                 <wsdlsoap:body
    >     encodingStyle=" http://schemas.xmlsoap.org/soap/encoding/ "
    >     namespace="urn:Wms" use="encoded"/>
    >
    >              </wsdl:output>
    >
    >           </wsdl:operation>
    >
    >        </wsdl:binding> 
    >
    >        <wsdl:service name="WmsService">
    >
    >           <wsdl:port binding="impl:wmsSoapBinding" name="wms">
    >
    >              <wsdlsoap:address 
    >     location=" http://localhost:8080/axis/services/wms"/>
    >
    >           </wsdl:port>
    >
    >        </wsdl:service> 
    >
    >     </wsdl:definitions>
    >
    >
    >
    >
    >
    >
    >     xsd file StyledLayerDescriptor.xsd:
    >
    >     <?xml version="1.0" encoding="UTF-8"?> 
    >     <xsd:schema targetNamespace="http://www.opengis.net/sld"
    >                 xmlns:sld=" http://www.opengis.net/sld"
    >                 xmlns:ogc="http://www.opengis.net/ogc"
    >                 xmlns:xsd="http://www.w3.org/2001/XMLSchema "
    >                 elementFormDefault="qualified">
    >       <xsd:include schemaLocation="FeatureStyle.xsd"/>
    >       <xsd:import namespace="http://www.opengis.net/ogc "
    >                   schemaLocation="../../filter/1.0.0/filter.xsd"/>
    >
    >     <!--
    >
    > ***********************************************************************
    > --> <xsd:annotation>
    >         <xsd:documentation> 
    >           STYLED LAYER DESCRIPTOR version 1.0.20 (2002-09-21)
    >         </xsd:documentation>
    >       </xsd:annotation>
    >
    >       <xsd:element name="StyledLayerDescriptor"> 
    >         <xsd:annotation>
    >           <xsd:documentation>
    >             A StyledLayerDescriptor is a sequence of styled layers,
    > represented at the first level by NamedLayer and UserLayer elements.
    > </xsd:documentation>
    >         </xsd:annotation>
    >         <xsd:complexType> 
    >           <xsd:sequence>
    >             <xsd:element ref="sld:Name" minOccurs="0"/>
    >             <xsd:element ref="sld:Description" minOccurs="0"/>
    >             <xsd:element ref="sld:EnvironmentVariables" minOccurs="0"/>
    >             <xsd:element ref="sld:UseSLDLibrary" minOccurs="0"
    >                                                  maxOccurs="unbounded"/>
    >             <xsd:choice minOccurs="0" maxOccurs="unbounded">
    >               <xsd:element ref="sld:NamedLayer"/>
    >               <xsd:element ref="sld:UserLayer"/>
    >             </xsd:choice>
    >           </xsd:sequence>
    >           <xsd:attribute name="version" type="sld:VersionType" 
    > use="required"/> </xsd:complexType>
    >       </xsd:element>
    >
    >     <!--
    >
    > ***********************************************************************
    > --> <xsd:annotation> 
    >         <xsd:documentation>
    >           RUN-TIME ENVIRONMENT VARIABLES
    >         </xsd:documentation>
    >       </xsd:annotation>
    >
    >       <xsd:element name="EnvironmentVariables"> 
    >         <xsd:annotation>
    >           <xsd:documentation>
    >             An "EnvironmentVariables" element includes an XML blob which
    >             can be used to declare the values to use for global
    > environment
    >             variables during the execution of the styling operations.
    >             These variables may be refered to in styles and symbols in the
    >             same way as feature properties.
    >           </xsd:documentation>
    >         </xsd:annotation>
    >         <xsd:complexType> 
    >           <xsd:sequence>
    >             <xsd:any/>
    >           </xsd:sequence>
    >         </xsd:complexType>
    >       </xsd:element>
    >
    >     <!--
    >
    > ***********************************************************************
    > --> <xsd:annotation>
    >         <xsd:documentation>
    >           SLD LIBRARIES
    >         </xsd:documentation> 
    >       </xsd:annotation>
    >
    >       <xsd:element name="UseSLDLibrary">
    >         <xsd:annotation>
    >           <xsd:documentation>
    >             The UseSLDLibrary tag specifies that an external SLD document
    >             should be used as a "library" of named layers and styles to
    >             augment the set of named layers and styles that are available
    >             for use inside of a WMS.  In the event of name collisions, the
    >             SLD library takes precedence over the ones internal to the
    > WMS.
    >             Any number of libraries may be specified in an SLD and each
    >             successive library takes precedence over the former ones in
    > the
    >             case of name collisions.
    >           </xsd:documentation>
    >         </xsd:annotation>
    >         <xsd:complexType> 
    >           <xsd:sequence>
    >             <xsd:element ref="sld:OnlineResource"/>
    >           </xsd:sequence>
    >         </xsd:complexType>
    >       </xsd:element> 
    >
    >     <!--
    >
    > ***********************************************************************
    > --> <xsd:annotation>
    >         <xsd:documentation>
    >           LAYERS AND STYLES 
    >         </xsd:documentation>
    >       </xsd:annotation>
    >
    >       <xsd:element name="NamedLayer">
    >         <xsd:annotation>
    >           <xsd:documentation> 
    >             A NamedLayer is a layer of data that has a name advertised by
    > a
    > WMS. </xsd:documentation>
    >         </xsd:annotation>
    >         <xsd:complexType>
    >           <xsd:sequence> 
    >             <xsd:element ref="sld:Name"/>
    >             <xsd:element ref="sld:Description" minOccurs="0"/>
    >             <xsd:element ref="sld:LayerFeatureConstraints" minOccurs="0"/>
    >             <xsd:choice minOccurs="0" maxOccurs="unbounded">
    >               <xsd:element ref="sld:NamedStyle"/>
    >               <xsd:element ref="sld:UserStyle"/>
    >             </xsd:choice>
    >           </xsd:sequence>
    >         </xsd:complexType>
    >       </xsd:element>
    >
    >       <xsd:element name="NamedStyle"> 
    >         <xsd:annotation>
    >           <xsd:documentation>
    >             A NamedStyle is used to refer to a style that has a name in a
    > WMS. </xsd:documentation>
    >         </xsd:annotation>
    >         <xsd:complexType>
    >           <xsd:sequence> 
    >             <xsd:element ref="sld:Name"/>
    >             <xsd:element ref="sld:Description" minOccurs="0"/>
    >           </xsd:sequence>
    >         </xsd:complexType>
    >       </xsd:element>
    >
    >       <xsd:element name="UserLayer"> 
    >         <xsd:annotation>
    >           <xsd:documentation>
    >             A UserLayer allows a user-defined layer to be built from WFS
    > and WCS data.
    >           </xsd:documentation>
    >         </xsd:annotation>
    >         <xsd:complexType>
    >           <xsd:sequence> 
    >             <xsd:element ref="sld:Name" minOccurs="0"/>
    >             <xsd:element ref="sld:Description" minOccurs="0"/>
    >             <xsd:element ref="sld:RemoteOWS" minOccurs="0"/>
    >             <xsd:element ref="sld:LayerFeatureConstraints"/>
    >             <xsd:element ref="sld:UserStyle" maxOccurs="unbounded"/>
    >           </xsd:sequence>
    >         </xsd:complexType>
    >       </xsd:element>
    >
    >       <xsd:element name="RemoteOWS"> 
    >         <xsd:annotation>
    >           <xsd:documentation>
    >             A RemoteOWS gives a reference to a remote WFS/WCS/other-OWS
    > server. </xsd:documentation>
    >         </xsd:annotation>
    >         <xsd:complexType>
    >           <xsd:sequence> 
    >             <xsd:element ref="sld:Service"/>
    >             <xsd:element ref="sld:OnlineResource"/>
    >           </xsd:sequence>
    >         </xsd:complexType> 
    >       </xsd:element>
    >
    >       <xsd:element name="Service">
    >         <xsd:annotation>
    >           <xsd:documentation>
    >             A Service refers to the type of a remote OWS server.
    >           </xsd:documentation>
    >         </xsd:annotation>
    >         <xsd:simpleType>
    >           <xsd:restriction base="xsd:string"> 
    >             <xsd:enumeration value="WFS"/>
    >             <xsd:enumeration value="WCS"/>
    >           </xsd:restriction>
    >         </xsd:simpleType>
    >       </xsd:element>
    >
    >       <xsd:element name="LayerFeatureConstraints">
    >         <xsd:annotation>
    >           <xsd:documentation>
    >             LayerFeatureConstraints define what features &amp; feature
    > types are referenced in a layer.
    >           </xsd:documentation>
    >         </xsd:annotation>
    >         <xsd:complexType> 
    >           <xsd:sequence>
    >             <xsd:element ref="sld:FeatureTypeConstraint"
    > maxOccurs="unbounded"/> </xsd:sequence>
    >         </xsd:complexType> 
    >       </xsd:element>
    >
    >       <xsd:element name="FeatureTypeConstraint">
    >         <xsd:annotation>
    >           <xsd:documentation>
    >             A FeatureTypeConstraint identifies a specific feature type and
    >             supplies fitlering.
    >           </xsd:documentation>
    >         </xsd:annotation>
    >         <xsd:complexType> 
    >           <xsd:sequence>
    >             <xsd:element ref="sld:FeatureTypeName" minOccurs="0"/>
    >             <xsd:element ref="ogc:Filter" minOccurs="0"/>
    >             <xsd:element ref="sld:Extent" minOccurs="0" 
    > maxOccurs="unbounded"/> </xsd:sequence>
    >         </xsd:complexType>
    >       </xsd:element>
    >
    >       <xsd:element name="Extent">
    >         <xsd:annotation> 
    >           <xsd:documentation>
    >             An Extent gives feature/coverage/raster/matrix dimension
    > extent. </xsd:documentation>
    >         </xsd:annotation>
    >         <xsd:complexType>
    >           <xsd:sequence>
    >             <xsd:element ref="sld:Name"/>
    >             <xsd:element ref="sld:Value"/>
    >           </xsd:sequence>
    >         </xsd:complexType>
    >       </xsd:element> 
    >       <xsd:element name="Value" type="xsd:string"/>
    >
    >       <xsd:element name="UserStyle">
    >         <xsd:annotation>
    >           <xsd:documentation> 
    >             A UserStyle allows user-defined styling and is semantically
    >             equivalent to a WMS named style.
    >           </xsd:documentation>
    >         </xsd:annotation>
    >         <xsd:complexType> 
    >           <xsd:sequence>
    >             <xsd:element ref="sld:Name" minOccurs="0"/>
    >             <xsd:element ref="sld:Description" minOccurs="0"/>
    >             <xsd:element ref="sld:IsDefault" minOccurs="0"/>
    >             <xsd:element ref="sld:FeatureStyle" maxOccurs="unbounded"/>
    >           </xsd:sequence>
    >         </xsd:complexType>
    >       </xsd:element>
    >       <xsd:element name="IsDefault" type="xsd:boolean"/> 
    >
    >     </xsd:schema>




Re: Server.generalException - makeTypeElement() was told to create a type "{http://www.opengis.net/sld}>StyledLayerDescriptor", with no containing element

Posted by Anne Thomas Manes <at...@gmail.com>.
I repeat an earlier comment I made to you.

The StyledLayerDescriptor.xsd schema references a number of elements that
are not defined in the schema (Name, Description, etc.) These elements are
defined in a different schema (common.xsd). You must edit the
StyledLayerDescriptor.xsd schema and <xsd:include> the common.xsd schema.

Anne

On 12/13/05, Ales St <st...@seznam.cz> wrote:
>
> Hi,
> I have a new problem I writed now a document/literal oriented wsdl,
> classes
> are generated, but when  I try to see wsdl on axis-server side Axis error
> is
> generated:
>
> AXIS error
> Sorry, something seems to have gone wrong... here are the details:
>
> Fault - makeTypeElement() was told to create a type
> "{http://www.opengis.net/sld}>StyledLayerDescriptor", with no containing
> elementAxisFault
> faultCode:
> {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
> faultSubcode:
> faultString: makeTypeElement() was told to create a type
> "{http://www.opengis.net/sld}>StyledLayerDescriptor", with no containing
> element
> faultActor:  faultNode:  faultDetail:
>         {http://xml.apache.org/axis/}hostname:pocitac
>
> So I don´t knew what is wrong, it could be some import xsd problem, but I
> don´t knew which and how to solve it. I see some files on web but, they
> look
> like similar as that which I have. I give here a wsdl file, and all other
> files which is important to generate is in www.sweb.cz/stanax/xsd.zip .
> I will be wery happy if somebody help me, because I solve this problem for
> some days and I can´t a solution.
> Thank you
>                 Ales
> wsdl file:
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions targetNamespace="urn:Wms"
> xmlns:apachesoap="http://xml.apache.org/xml-soap"
> xmlns:impl="urn:Wms"
> xmlns:intf="urn:Wms"
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
> xmlns:sld="http://www.opengis.net/sld"
> xmlns:ows="http://www.opengis.net/ows"
> xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema">
>
> <wsdl:types>
> <xsd:schema elementFormDefault="qualified"
> targetNamespace="urn:Wms"
> xmlns="http://www.w3.org/2001/XMLSchema"
> xmlns:sld="http://www.opengis.net/sld"
> xmlns:ows="http://www.opengis.net/ows">
>
> <xsd:import namespace="http://www.opengis.net/sld"
> schemaLocation="../sld/1.0.20/StyledLayerDescriptor.xsd"/>
>   <xsd:import namespace=" http://www.opengis.net/ows"
>          schemaLocation="./wms_schemas.xsd"/>
> <element name="getFeatureInfo">
>     <complexType>
>      <sequence>
>       <element ref ="ows:version"/>
>       <element  ref ="ows:service"/>
>       <element ref ="ows:exceptions"/>
>       <element  ref ="ows:Map"/>
>       <element  ref ="ows:Image"/>
>       <element  ref ="sld:StyledLayerDescriptor"/>
>       <element name="QueryLayer" type ="xsd:string"/>
>       <element name="InfoFormat" type ="xsd:string"/>
>       <element name="FeatureCount" type ="xsd:int"/>
>       <element name="x" type ="xsd:int"/>
>       <element name="y" type ="xsd:int"/>
>       <element ref ="ows:Vendor"/>
>      </sequence>
>     </complexType>
>    </element>
>
>    <element name="getFeatureInfoResponse">
>     <complexType>
>      <sequence>
>       <element name="getFeatureInfoReturn" type="xsd:string"/>
>      </sequence>
>     </complexType>
>    </element>
>
>    <element name="getMap">
>     <complexType>
>      <sequence>
>       <element ref ="ows:version"/>
>       <element  ref ="ows:service"/>
>       <element  ref ="ows:exceptions"/>
>       <element  ref ="ows:Map"/>
>       <element  ref ="ows:Image"/>
>       <element  ref ="sld:StyledLayerDescriptor"/>
>      </sequence>
>     </complexType>
>    </element>
>    <element name="getMapResponse">
>     <complexType>
>      <sequence>
>       <element name="getMapReturn" type="xsd:base64Binary"/>
>      </sequence>
>     </complexType>
>    </element>
>    <element name="getCapabilities">
>     <complexType>
>      <sequence>
>       <element  ref ="ows:version"/>
>       <element  ref ="ows:service"/>
>       <element ref ="ows:exceptions"/>
>       <element  ref ="ows:section"/>
>      </sequence>
>     </complexType>
>    </element>
>    <element name="getCapabilitiesResponse">
>     <complexType>
>      <sequence>
>       <element name="getCapabilitiesReturn" type="xsd:string"/>
>      </sequence>
>     </complexType>
>    </element>
>   </xsd:schema>
>
> </wsdl:types>
>    <wsdl:message name="getMapResponse">
>
>       <wsdl:part element="impl:getMapResponse" name="parameters"/>
>
>    </wsdl:message>
>
>    <wsdl:message name="getCapabilitiesRequest">
>
>       <wsdl:part element="impl:getCapabilities" name="parameters"/>
>
>    </wsdl:message>
>
>    <wsdl:message name="getCapabilitiesResponse">
>
>       <wsdl:part element="impl:getCapabilitiesResponse"
> name="parameters"/>
>
>    </wsdl:message>
>
>    <wsdl:message name="getFeatureInfoResponse">
>
>       <wsdl:part element="impl:getFeatureInfoResponse" name="parameters"/>
>
>    </wsdl:message>
>
>    <wsdl:message name="getFeatureInfoRequest">
>
>       <wsdl:part element="impl:getFeatureInfo" name="parameters"/>
>
>    </wsdl:message>
>
>    <wsdl:message name="getMapRequest">
>
>       <wsdl:part element="impl:getMap" name="parameters"/>
>
>    </wsdl:message>
>
>    <wsdl:portType name="Wms">
>
>       <wsdl:operation name="getFeatureInfo">
>
>          <wsdl:input message="impl:getFeatureInfoRequest"
> name="getFeatureInfoRequest"/>
>
>          <wsdl:output message="impl:getFeatureInfoResponse"
> name="getFeatureInfoResponse"/>
>
>       </wsdl:operation>
>
>       <wsdl:operation name="getMap">
>
>          <wsdl:input message="impl:getMapRequest" name="getMapRequest"/>
>
>          <wsdl:output message="impl:getMapResponse"
> name="getMapResponse"/>
>
>       </wsdl:operation>
>
>       <wsdl:operation name="getCapabilities">
>
>          <wsdl:input message="impl:getCapabilitiesRequest"
> name="getCapabilitiesRequest"/>
>
>          <wsdl:output message="impl:getCapabilitiesResponse"
> name="getCapabilitiesResponse"/>
>
>       </wsdl:operation>
>
>    </wsdl:portType>
>
>    <wsdl:binding name="wmsSoapBinding" type="impl:Wms">
>
>       <wsdlsoap:binding style="document"
> transport="http://schemas.xmlsoap.org/soap/http"/>
>
>       <wsdl:operation name="getFeatureInfo">
>
>          <wsdlsoap:operation soapAction=""/>
>
>          <wsdl:input name="getFeatureInfoRequest">
>
>             <wsdlsoap:body use="literal"/>
>
>          </wsdl:input>
>
>          <wsdl:output name="getFeatureInfoResponse">
>
>             <wsdlsoap:body use="literal"/>
>
>          </wsdl:output>
>
>       </wsdl:operation>
>
>       <wsdl:operation name="getMap">
>
>          <wsdlsoap:operation soapAction=""/>
>
>          <wsdl:input name="getMapRequest">
>
>             <wsdlsoap:body use="literal"/>
>
>          </wsdl:input>
>
>          <wsdl:output name="getMapResponse">
>
>             <wsdlsoap:body use="literal"/>
>
>          </wsdl:output>
>
>       </wsdl:operation>
>
>       <wsdl:operation name="getCapabilities">
>
>          <wsdlsoap:operation soapAction=""/>
>
>          <wsdl:input name="getCapabilitiesRequest">
>
>             <wsdlsoap:body use="literal"/>
>
>          </wsdl:input>
>
>          <wsdl:output name="getCapabilitiesResponse">
>
>             <wsdlsoap:body use="literal"/>
>
>          </wsdl:output>
>
>       </wsdl:operation>
>
>    </wsdl:binding>
>
>    <wsdl:service name="WmsService">
>
>       <wsdl:port binding="impl:wmsSoapBinding" name="wms">
>
>          <wsdlsoap:address
> location="http://localhost:8080/axis/services/wms"/>
>
>       </wsdl:port>
>
>    </wsdl:service>
>
> </wsdl:definitions>
>
>
>
>
>
> ----- Original Message -----
> From: "iksrazal" <ik...@gmail.com>
> To: <ax...@ws.apache.org>
> Sent: Tuesday, December 13, 2005 2:56 PM
> Subject: Re: Server.generalException - makeTypeElement() was told to
> create
> a type "{http://www.opengis.net/sld}>FeatureTypeConstraint", with no
> containing element
>
>
> > So I decided,
> > that my wsdl is wrong, but I don´t know where is a mistake.
>
> Try the "free as in beer" soa wsdl editor from cape clear. Or try wooden:
>
> http://incubator.apache.org/woden/
>
> HTH,
> iksrazal
>
> Em Terça 13 Dezembro 2005 11:39, o Ales St escreveu:
> > Hi
> > I removed that definition, and I tryed to rewrite my wsdl definition to
> > document/literal  type,classes are generated. But when I tryed to se
> wsdl
> > which is generated by server, the sam Axis error was generated and in
> > server console was writed this: "Request Message type information has
> > multiple parts that one single wrapped complexType.Use WRAPPED/LITERAL
> if
> > interoping with some other soap stack becomes a problem." So I decided,
> > that my wsdl is wrong, but I don´t know where is a mistake. I write my
> > wsdl
> > by inspirating some wsdl which I find on the web, because I can't wind
> > some
> > good definition, how to write it. So if you knew about some good, please
> > send me it. And please see my wsdl,and write to me, where is a problem.
> > Thank you
> >             Ales
> >
> > New wsdl:
> > <?xml version="1.0" encoding="UTF-8"?>
> > <wsdl:definitions targetNamespace="urn:Wms"
> >  xmlns:tns="urn:Wms"
> >  xmlns:sld="http://www.opengis.net/sld"
> >  xmlns:ows="http://www.opengis.net/ows"
> > xmlns:gml="http://www.opengis.net/gml"
> >  xmlns:apachesoap="http://xml.apache.org/xml-soap"
> >  xmlns:impl="urn:Wms"
> >  xmlns:intf="urn:Wms"
> >  xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
> >  xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
> >  xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
> >  xmlns:xsd="http://www.w3.org/2001/XMLSchema">
> >
> >
> > <wsdl:types>
> >   <xsd:schema targetNamespace="urn:Wms"
> > xmlns="http://www.w3.org/2001/XMLSchema"
> > xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"> <xsd:import
> > namespace=" http://www.opengis.net/ows"
> > schemaLocation="./wms_schemas.xsd"/> <xsd:import
> > namespace="http://www.opengis.net/sld"
> > schemaLocation="../sld/1.0.20/StyledLayerDescriptor.xsd"/>
> >
> > <element name="QueryLayer" type="soapenc:string" minOccurs="0"/>
> > <element name="InfoFormat" type="soapenc:string" minOccurs="0"/>
> > <element name="FeatureCount" type="soapenc:int" minOccurs="0"/>
> >
> > <element name="x" type="soapenc:int" minOccurs="0"/>
> >
> > <element name="y" type="soapenc:int" minOccurs="0"/>
> >
> > <element name="InfoFormat" type="soapenc:string" minOccurs="0"/>
> >
> > <element name="getMapReturn" type="soapenc:base64Binary"/>
> > <element name="string" type="soapenc:string"/>
> > <element name="Map" type="ows:MapType"/>
> > <element name="Image" type="ows:ImageType"/>
> >
> >   </xsd:schema></wsdl:types>
> >
> >
> >    <wsdl:message name="getMapResponse">
> >
> >       <wsdl:part name="getMapReturn" element="tns:getMapReturn"/>
> >
> >    </wsdl:message>
> >
> >    <wsdl:message name="getCapabilitiesRequest">
> >
> >       <wsdl:part name="version" element="ows:version"/>
> >       <wsdl:part name="service" element="ows:service"/>
> >
> >       <wsdl:part name="exceptions" element="ows:exceptions"/>
> >
> >       <wsdl:part name="section" element="ows:section"/>
> >
> >    </wsdl:message>
> >
> >    <wsdl:message name="getCapabilitiesResponse">
> >
> >       <wsdl:part name="getCapabilitiesReturn" element="tns:string"/>
> >    </wsdl:message>
> >
> >    <wsdl:message name="getFeatureInfoResponse">
> >
> >       <wsdl:part name="getFeatureInfoReturn" element="tns:string"/>
> >
> >    </wsdl:message>
> >
> >    <wsdl:message name="getFeatureInfoRequest">
> >
> >       <wsdl:part name="version" element="ows:version"/>
> >       <wsdl:part name="service" element="ows:service"/>
> >
> >       <wsdl:part name="exceptions" element="ows:exceptions"/>
> >
> > <wsdl:part name="Map" element="tns:Map"/>
> >
> >      <wsdl:part name="Image" element="tns:Image"/>
> >
> >       <wsdl:part name="StyledLayerDescriptor"
> > element="sld:StyledLayerDescriptor"/>
> >
> > <wsdl:part name="QueryLayer" element="tns:QueryLayer"/>
> > <wsdl:part name="InfoFormat" element="tns:InfoFormat" />
> > <wsdl:part name="FeatureCount" element="tns:FeatureCount" />
> > <wsdl:part name="x" element="tns:x" />
> > <wsdl:part name="y" element="tns:y" />
> > <wsdl:part name="Vendor" element="ows:Vendor" />
> >
> >    </wsdl:message>
> >
> >    <wsdl:message name="getMapRequest">
> >
> >       <wsdl:part name="version" element="ows:version"/>
> >
> >       <wsdl:part name="service" element="ows:service"/>
> >       <wsdl:part name="exceptions" element="ows:exceptions"/>
> >
> >       <wsdl:part name="Map" element="tns:Map"/>
> >
> >      <wsdl:part name="Image" element="tns:Image"/>
> >
> >       <wsdl:part name="StyledLayerDescriptor"
> > element="sld:StyledLayerDescriptor"/>
> >
> >    </wsdl:message>
> >
> >    <wsdl:portType name="Wms">
> >       <wsdl:operation name="getMap" parameterOrder="version service
> > exceptions Map Image StyledLayerDescriptor">
> >
> >          <wsdl:input message="impl:getMapRequest" name="getMapRequest"/>
> >
> >          <wsdl:output message="impl:getMapResponse"
> > name="getMapResponse"/>
> >
> >       </wsdl:operation>
> >
> >       <wsdl:operation name="getCapabilities" parameterOrder="version
> > service exceptions section">
> >
> >          <wsdl:input message="impl:getCapabilitiesRequest"
> > name="getCapabilitiesRequest"/> <wsdl:output
> > message="impl:getCapabilitiesResponse" name="getCapabilitiesResponse"/>
> >
> >       </wsdl:operation>
> >
> >       <wsdl:operation name="getFeatureInfo" parameterOrder="version
> > service
> > exceptions Map Image StyledLayerDescriptor QueryLayer InfoFormat
> > FeatureCount x y Vendor">
> >
> >          <wsdl:input message="impl:getFeatureInfoRequest"
> > name="getFeatureInfoRequest"/>
> >
> >          <wsdl:output message="impl:getFeatureInfoResponse"
> > name="getFeatureInfoResponse"/>
> >
> >       </wsdl:operation>
> >    </wsdl:portType>
> >
> >    <wsdl:binding name="wmsSoapBinding" type="impl:Wms">
> >
> >       <wsdlsoap:binding style="document"
> > transport="http://schemas.xmlsoap.org/soap/http"/>
> >
> >       <wsdl:operation name="getMap">
> >
> >          <wsdlsoap:operation soapAction=""/>
> >
> >          <wsdl:input name="getMapRequest">
> >             <wsdlsoap:body  namespace="urn:Wms" use="literal"/>
> >
> >          </wsdl:input>
> >
> >          <wsdl:output name="getMapResponse">
> >
> >             <wsdlsoap:body  namespace="urn:Wms" use="literal"/>
> >
> >          </wsdl:output>
> >
> >       </wsdl:operation>
> >       <wsdl:operation name="getCapabilities">
> >
> >          <wsdlsoap:operation soapAction=""/>
> >
> >          <wsdl:input name="getCapabilitiesRequest">
> >
> >             <wsdlsoap:body  namespace="urn:Wms" use="literal"/>
> >
> >          </wsdl:input>
> >
> >          <wsdl:output name="getCapabilitiesResponse">
> >             <wsdlsoap:body  namespace="urn:Wms" use="literal"/>
> >
> >          </wsdl:output>
> >
> >       </wsdl:operation>
> >
> >       <wsdl:operation name="getFeatureInfo">
> >
> >          <wsdlsoap:operation soapAction=""/>
> >
> >          <wsdl:input name="getFeatureInfoRequest">
> >             <wsdlsoap:body  namespace="urn:Wms" use="literal"/>
> >
> >          </wsdl:input>
> >
> >          <wsdl:output name="getFeatureInfoResponse">
> >
> >             <wsdlsoap:body  namespace="urn:Wms" use="literal"/>
> >
> >          </wsdl:output>
> >
> >       </wsdl:operation>
> >    </wsdl:binding>
> >
> >    <wsdl:service name="WmsService">
> >
> >       <wsdl:port binding="impl:wmsSoapBinding" name="wms">
> >
> >          <wsdlsoap:address
> > location="http://localhost:8080/axis/services/wms"/>
> >
> >       </wsdl:port>
> >
> >    </wsdl:service>
> > </wsdl:definitions>
> >
> >
> >
> >   ----- Original Message -----
> >   From: Anne Thomas Manes
> >   To: axis-user@ws.apache.org
> >   Sent: Tuesday, December 13, 2005 1:56 AM
> >   Subject: Re: Server.generalException - makeTypeElement() was told to
> > create a type "{http://www.opengis.net/sld}>FeatureTypeConstraint", with
> > no
> > containing element
> >
> >
> >   This definition in your urn:Wms schema should be removed:
> >
> >   <xsd:element name="StyledLayerDescriptor"
> > ref="sld:StyledLayerDescriptor"
> >
> >   minOccurs="0"/>
> >
> >   The element is defined in the sld schema. There's no reason to define
> it
> > again in the Wms schema. Besides, you can't name an element and
> reference
> > another element in the same definition.
> >
> >
> >   Anne
> >
> >   ps -- with such a complex schema, I strongly encourage you to switch
> to
> > document/literal rather than rpc/encoded.
> >
> >
> >   On 12/11/05, Ales St < stanax@seznam.cz> wrote:
> >     Hi
> >     I have a problem, I use Axis 1.3. and I generate classes from wsdl
> by
> >     wsdl2java and when I translate it and copy to Tomcat and tryed to
> see
> > a
> > list of services and their wsdl it write this:
> >
> >     AXIS error
> >     Sorry, something seems to have gone wrong... here are the details:
> >     Fault - makeTypeElement() was told to create a type
> >     "{http://www.opengis.net/sld}>FeatureTypeConstraint", with no
> > containing element
> >     AxisFault
> >     faultCode:
> >     { http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
> >     faultSubcode:
> >     faultString: makeTypeElement() was told to create a type
> >     "{http://www.opengis.net/sld} >FeatureTypeConstraint", with no
> > containing element
> >     faultActor:  faultNode:  faultDetail:
> >     {http://xml.apache.org/axis/}hostname:pocitac
> >
> >
> >     So can enybody write me what is wrong? It is wery important for me.
> > Down I enclose wsdl and xsd file.If you want to see all importants
> files,
> > you can find them on www.sweb.cz/stanax/xsd.zip
> >     Tahnks
> >                 Ales
> >
> >     Wsdl:
> >     <?xml version="1.0" encoding="UTF-8"?>
> >     <wsdl:definitions targetNamespace="urn:Wms"
> >     xmlns:tns="urn:Wms"
> >     xmlns:sld="http://www.opengis.net/sld"
> >     xmlns:ows="http://www.opengis.net/ows"
> >     xmlns:gml=" http://www.opengis.net/gml"
> >     xmlns:apachesoap="http://xml.apache.org/xml-soap"
> >     xmlns:impl="urn:Wms"
> >     xmlns:intf="urn:Wms"
> >     xmlns:soapenc=" http://schemas.xmlsoap.org/soap/encoding/"
> >     xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
> >     xmlns:wsdlsoap=" http://schemas.xmlsoap.org/wsdl/soap/"
> >     xmlns:xsd="http://www.w3.org/2001/XMLSchema">
> >
> >
> >     <wsdl:types>
> >       <xsd:schema targetNamespace="urn:Wms"
> >     xmlns="http://www.w3.org/2001/XMLSchema"
> >     xmlns:soapenc=" http://schemas.xmlsoap.org/soap/encoding/">
> >          <xsd:import namespace=" http://www.opengis.net/ows"
> >     schemaLocation="./wms_schemas.xsd"/>
> >          <xsd:import namespace="http://www.opengis.net/sld"
> >     schemaLocation="../sld/1.0.20/StyledLayerDescriptor.xsd"/>
> >
> >     <xsd:element name="StyledLayerDescriptor"
> > ref="sld:StyledLayerDescriptor" minOccurs="0"/>
> >
> >     <element name="QueryLayer" type="soapenc:string" minOccurs="0"/>
> >     <element name="InfoFormat" type="soapenc:string" minOccurs="0"/>
> >     <element name="FeatureCount" type="soapenc:int" minOccurs="0"/>
> >
> >     <element name="x" type="soapenc:int" minOccurs="0"/>
> >     <element name="y" type="soapenc:int" minOccurs="0"/>
> >
> >       </xsd:schema>
> >
> >     </wsdl:types>
> >
> >
> >        <wsdl:message name="getMapResponse">
> >
> >           <wsdl:part name="getMapReturn" type="soapenc:base64Binary"/>
> >
> >        </wsdl:message>
> >
> >        <wsdl:message name="getCapabilitiesRequest">
> >
> >           <wsdl:part name="version" element="ows:version"/>
> >
> >           <wsdl:part name="service" element="ows:service"/>
> >
> >           <wsdl:part name="exceptions" element="ows:exceptions"/>
> >
> >           <wsdl:part name="section" element="ows:section"/>
> >
> >        </wsdl:message>
> >
> >        <wsdl:message name="getCapabilitiesResponse">
> >
> >           <wsdl:part name="getCapabilitiesReturn"
> type="soapenc:string"/>
> >
> >        </wsdl:message>
> >
> >        <wsdl:message name="getFeatureInfoResponse">
> >
> >           <wsdl:part name="getFeatureInfoReturn" type="soapenc:string"/>
> >
> >        </wsdl:message>
> >
> >        <wsdl:message name="getFeatureInfoRequest">
> >
> >           <wsdl:part name="version" element="ows:version"/>
> >
> >           <wsdl:part name="service" element="ows:service"/>
> >
> >           <wsdl:part name="exceptions" element="ows:exceptions"/>
> >
> >       <wsdl:part name="Map" type="ows:MapType"/>
> >
> >          <wsdl:part name="Image" type="ows:ImageType"/>
> >
> >           <wsdl:part name="StyledLayerDescriptor"
> >     element="tns:StyledLayerDescriptor"/>
> >
> >     <wsdl:part name="QueryLayer" element="tns:QueryLayer"/>
> >     <wsdl:part name="InfoFormat" element="tns:InfoFormat" />
> >     <wsdl:part name="FeatureCount" element="tns:FeatureCount" />
> >     <wsdl:part name="x" element="tns:x" />
> >     <wsdl:part name="y" element="tns:y" />
> >     <wsdl:part name="Vendor" element="ows:Vendor" />
> >
> >        </wsdl:message>
> >
> >        <wsdl:message name="getMapRequest">
> >
> >           <wsdl:part name="version" element="ows:version"/>
> >
> >           <wsdl:part name="service" element="ows:service"/>
> >
> >           <wsdl:part name="exceptions" element="ows:exceptions"/>
> >
> >           <wsdl:part name="Map" type="ows:MapType"/>
> >
> >           <wsdl:part name="Image" type="ows:ImageType"/>
> >
> >           <wsdl:part name="StyledLayerDescriptor"
> >     element="tns:StyledLayerDescriptor"/>
> >
> >
> >        </wsdl:message>
> >
> >        <wsdl:portType name="Wms">
> >
> >           <wsdl:operation name="getMap" parameterOrder="version service
> >     exceptions Map Image StyledLayerDescriptor">
> >
> >              <wsdl:input message="impl:getMapRequest"
> > name="getMapRequest"/>
> >
> >              <wsdl:output message="impl:getMapResponse"
> > name="getMapResponse"/>
> >
> >           </wsdl:operation>
> >
> >           <wsdl:operation name="getCapabilities" parameterOrder="version
> > service exceptions section">
> >
> >              <wsdl:input message="impl:getCapabilitiesRequest"
> >     name="getCapabilitiesRequest"/>
> >
> >              <wsdl:output message="impl:getCapabilitiesResponse"
> >     name="getCapabilitiesResponse"/>
> >
> >           </wsdl:operation>
> >
> >           <wsdl:operation name="getFeatureInfo" parameterOrder="version
> > service exceptions Map Image StyledLayerDescriptor QueryLayer InfoFormat
> > FeatureCount x y Vendor">
> >
> >              <wsdl:input message="impl:getFeatureInfoRequest"
> >     name="getFeatureInfoRequest"/>
> >
> >              <wsdl:output message="impl:getFeatureInfoResponse"
> >     name="getFeatureInfoResponse"/>
> >
> >           </wsdl:operation>
> >
> >        </wsdl:portType>
> >
> >        <wsdl:binding name="wmsSoapBinding" type="impl:Wms">
> >
> >           <wsdlsoap:binding style="rpc"
> >     transport="http://schemas.xmlsoap.org/soap/http"/ >
> >
> >           <wsdl:operation name="getMap">
> >
> >              <wsdlsoap:operation soapAction=""/>
> >
> >              <wsdl:input name="getMapRequest">
> >
> >                 <wsdlsoap:body
> >     encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> >     namespace="urn:Wms" use="encoded"/>
> >
> >              </wsdl:input>
> >
> >              <wsdl:output name="getMapResponse">
> >
> >                 <wsdlsoap:body
> >     encodingStyle="http://schemas.xmlsoap.org/soap/encoding/ "
> >     namespace="urn:Wms" use="encoded"/>
> >
> >              </wsdl:output>
> >
> >           </wsdl:operation>
> >
> >           <wsdl:operation name="getCapabilities">
> >
> >              <wsdlsoap:operation soapAction=""/>
> >
> >              <wsdl:input name="getCapabilitiesRequest">
> >
> >                 <wsdlsoap:body
> >     encodingStyle=" http://schemas.xmlsoap.org/soap/encoding/"
> >     namespace="urn:Wms" use="encoded"/>
> >
> >              </wsdl:input>
> >
> >              <wsdl:output name="getCapabilitiesResponse">
> >
> >                 <wsdlsoap:body
> >     encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> >     namespace="urn:Wms" use="encoded"/>
> >
> >              </wsdl:output>
> >
> >           </wsdl:operation>
> >
> >           <wsdl:operation name="getFeatureInfo">
> >
> >              <wsdlsoap:operation soapAction=""/>
> >
> >              <wsdl:input name="getFeatureInfoRequest">
> >
> >                 <wsdlsoap:body
> >     encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> >     namespace="urn:Wms" use="encoded"/>
> >
> >              </wsdl:input>
> >
> >              <wsdl:output name="getFeatureInfoResponse">
> >
> >                 <wsdlsoap:body
> >     encodingStyle=" http://schemas.xmlsoap.org/soap/encoding/"
> >     namespace="urn:Wms" use="encoded"/>
> >
> >              </wsdl:output>
> >
> >           </wsdl:operation>
> >
> >        </wsdl:binding>
> >
> >        <wsdl:service name="WmsService">
> >
> >           <wsdl:port binding="impl:wmsSoapBinding" name="wms">
> >
> >              <wsdlsoap:address
> >     location=" http://localhost:8080/axis/services/wms"/>
> >
> >           </wsdl:port>
> >
> >        </wsdl:service>
> >
> >     </wsdl:definitions>
> >
> >
> >
> >
> >
> >
> >     xsd file StyledLayerDescriptor.xsd:
> >
> >     <?xml version="1.0" encoding="UTF-8"?>
> >     <xsd:schema targetNamespace="http://www.opengis.net/sld"
> >                 xmlns:sld=" http://www.opengis.net/sld"
> >                 xmlns:ogc="http://www.opengis.net/ogc"
> >                 xmlns:xsd="http://www.w3.org/2001/XMLSchema "
> >                 elementFormDefault="qualified">
> >       <xsd:include schemaLocation="FeatureStyle.xsd"/>
> >       <xsd:import namespace="http://www.opengis.net/ogc "
> >                   schemaLocation="../../filter/1.0.0/filter.xsd"/>
> >
> >     <!--
> >
> > ***********************************************************************
> > --> <xsd:annotation>
> >         <xsd:documentation>
> >           STYLED LAYER DESCRIPTOR version 1.0.20 (2002-09-21)
> >         </xsd:documentation>
> >       </xsd:annotation>
> >
> >       <xsd:element name="StyledLayerDescriptor">
> >         <xsd:annotation>
> >           <xsd:documentation>
> >             A StyledLayerDescriptor is a sequence of styled layers,
> > represented at the first level by NamedLayer and UserLayer elements.
> > </xsd:documentation>
> >         </xsd:annotation>
> >         <xsd:complexType>
> >           <xsd:sequence>
> >             <xsd:element ref="sld:Name" minOccurs="0"/>
> >             <xsd:element ref="sld:Description" minOccurs="0"/>
> >             <xsd:element ref="sld:EnvironmentVariables" minOccurs="0"/>
> >             <xsd:element ref="sld:UseSLDLibrary" minOccurs="0"
> >                                                  maxOccurs="unbounded"/>
> >             <xsd:choice minOccurs="0" maxOccurs="unbounded">
> >               <xsd:element ref="sld:NamedLayer"/>
> >               <xsd:element ref="sld:UserLayer"/>
> >             </xsd:choice>
> >           </xsd:sequence>
> >           <xsd:attribute name="version" type="sld:VersionType"
> > use="required"/> </xsd:complexType>
> >       </xsd:element>
> >
> >     <!--
> >
> > ***********************************************************************
> > --> <xsd:annotation>
> >         <xsd:documentation>
> >           RUN-TIME ENVIRONMENT VARIABLES
> >         </xsd:documentation>
> >       </xsd:annotation>
> >
> >       <xsd:element name="EnvironmentVariables">
> >         <xsd:annotation>
> >           <xsd:documentation>
> >             An "EnvironmentVariables" element includes an XML blob which
> >             can be used to declare the values to use for global
> > environment
> >             variables during the execution of the styling operations.
> >             These variables may be refered to in styles and symbols in
> the
> >             same way as feature properties.
> >           </xsd:documentation>
> >         </xsd:annotation>
> >         <xsd:complexType>
> >           <xsd:sequence>
> >             <xsd:any/>
> >           </xsd:sequence>
> >         </xsd:complexType>
> >       </xsd:element>
> >
> >     <!--
> >
> > ***********************************************************************
> > --> <xsd:annotation>
> >         <xsd:documentation>
> >           SLD LIBRARIES
> >         </xsd:documentation>
> >       </xsd:annotation>
> >
> >       <xsd:element name="UseSLDLibrary">
> >         <xsd:annotation>
> >           <xsd:documentation>
> >             The UseSLDLibrary tag specifies that an external SLD
> document
> >             should be used as a "library" of named layers and styles to
> >             augment the set of named layers and styles that are
> available
> >             for use inside of a WMS.  In the event of name collisions,
> the
> >             SLD library takes precedence over the ones internal to the
> > WMS.
> >             Any number of libraries may be specified in an SLD and each
> >             successive library takes precedence over the former ones in
> > the
> >             case of name collisions.
> >           </xsd:documentation>
> >         </xsd:annotation>
> >         <xsd:complexType>
> >           <xsd:sequence>
> >             <xsd:element ref="sld:OnlineResource"/>
> >           </xsd:sequence>
> >         </xsd:complexType>
> >       </xsd:element>
> >
> >     <!--
> >
> > ***********************************************************************
> > --> <xsd:annotation>
> >         <xsd:documentation>
> >           LAYERS AND STYLES
> >         </xsd:documentation>
> >       </xsd:annotation>
> >
> >       <xsd:element name="NamedLayer">
> >         <xsd:annotation>
> >           <xsd:documentation>
> >             A NamedLayer is a layer of data that has a name advertised
> by
> > a
> > WMS. </xsd:documentation>
> >         </xsd:annotation>
> >         <xsd:complexType>
> >           <xsd:sequence>
> >             <xsd:element ref="sld:Name"/>
> >             <xsd:element ref="sld:Description" minOccurs="0"/>
> >             <xsd:element ref="sld:LayerFeatureConstraints"
> minOccurs="0"/>
> >             <xsd:choice minOccurs="0" maxOccurs="unbounded">
> >               <xsd:element ref="sld:NamedStyle"/>
> >               <xsd:element ref="sld:UserStyle"/>
> >             </xsd:choice>
> >           </xsd:sequence>
> >         </xsd:complexType>
> >       </xsd:element>
> >
> >       <xsd:element name="NamedStyle">
> >         <xsd:annotation>
> >           <xsd:documentation>
> >             A NamedStyle is used to refer to a style that has a name in
> a
> > WMS. </xsd:documentation>
> >         </xsd:annotation>
> >         <xsd:complexType>
> >           <xsd:sequence>
> >             <xsd:element ref="sld:Name"/>
> >             <xsd:element ref="sld:Description" minOccurs="0"/>
> >           </xsd:sequence>
> >         </xsd:complexType>
> >       </xsd:element>
> >
> >       <xsd:element name="UserLayer">
> >         <xsd:annotation>
> >           <xsd:documentation>
> >             A UserLayer allows a user-defined layer to be built from WFS
> > and WCS data.
> >           </xsd:documentation>
> >         </xsd:annotation>
> >         <xsd:complexType>
> >           <xsd:sequence>
> >             <xsd:element ref="sld:Name" minOccurs="0"/>
> >             <xsd:element ref="sld:Description" minOccurs="0"/>
> >             <xsd:element ref="sld:RemoteOWS" minOccurs="0"/>
> >             <xsd:element ref="sld:LayerFeatureConstraints"/>
> >             <xsd:element ref="sld:UserStyle" maxOccurs="unbounded"/>
> >           </xsd:sequence>
> >         </xsd:complexType>
> >       </xsd:element>
> >
> >       <xsd:element name="RemoteOWS">
> >         <xsd:annotation>
> >           <xsd:documentation>
> >             A RemoteOWS gives a reference to a remote WFS/WCS/other-OWS
> > server. </xsd:documentation>
> >         </xsd:annotation>
> >         <xsd:complexType>
> >           <xsd:sequence>
> >             <xsd:element ref="sld:Service"/>
> >             <xsd:element ref="sld:OnlineResource"/>
> >           </xsd:sequence>
> >         </xsd:complexType>
> >       </xsd:element>
> >
> >       <xsd:element name="Service">
> >         <xsd:annotation>
> >           <xsd:documentation>
> >             A Service refers to the type of a remote OWS server.
> >           </xsd:documentation>
> >         </xsd:annotation>
> >         <xsd:simpleType>
> >           <xsd:restriction base="xsd:string">
> >             <xsd:enumeration value="WFS"/>
> >             <xsd:enumeration value="WCS"/>
> >           </xsd:restriction>
> >         </xsd:simpleType>
> >       </xsd:element>
> >
> >       <xsd:element name="LayerFeatureConstraints">
> >         <xsd:annotation>
> >           <xsd:documentation>
> >             LayerFeatureConstraints define what features &amp; feature
> > types are referenced in a layer.
> >           </xsd:documentation>
> >         </xsd:annotation>
> >         <xsd:complexType>
> >           <xsd:sequence>
> >             <xsd:element ref="sld:FeatureTypeConstraint"
> > maxOccurs="unbounded"/> </xsd:sequence>
> >         </xsd:complexType>
> >       </xsd:element>
> >
> >       <xsd:element name="FeatureTypeConstraint">
> >         <xsd:annotation>
> >           <xsd:documentation>
> >             A FeatureTypeConstraint identifies a specific feature type
> and
> >             supplies fitlering.
> >           </xsd:documentation>
> >         </xsd:annotation>
> >         <xsd:complexType>
> >           <xsd:sequence>
> >             <xsd:element ref="sld:FeatureTypeName" minOccurs="0"/>
> >             <xsd:element ref="ogc:Filter" minOccurs="0"/>
> >             <xsd:element ref="sld:Extent" minOccurs="0"
> > maxOccurs="unbounded"/> </xsd:sequence>
> >         </xsd:complexType>
> >       </xsd:element>
> >
> >       <xsd:element name="Extent">
> >         <xsd:annotation>
> >           <xsd:documentation>
> >             An Extent gives feature/coverage/raster/matrix dimension
> > extent. </xsd:documentation>
> >         </xsd:annotation>
> >         <xsd:complexType>
> >           <xsd:sequence>
> >             <xsd:element ref="sld:Name"/>
> >             <xsd:element ref="sld:Value"/>
> >           </xsd:sequence>
> >         </xsd:complexType>
> >       </xsd:element>
> >       <xsd:element name="Value" type="xsd:string"/>
> >
> >       <xsd:element name="UserStyle">
> >         <xsd:annotation>
> >           <xsd:documentation>
> >             A UserStyle allows user-defined styling and is semantically
> >             equivalent to a WMS named style.
> >           </xsd:documentation>
> >         </xsd:annotation>
> >         <xsd:complexType>
> >           <xsd:sequence>
> >             <xsd:element ref="sld:Name" minOccurs="0"/>
> >             <xsd:element ref="sld:Description" minOccurs="0"/>
> >             <xsd:element ref="sld:IsDefault" minOccurs="0"/>
> >             <xsd:element ref="sld:FeatureStyle" maxOccurs="unbounded"/>
> >           </xsd:sequence>
> >         </xsd:complexType>
> >       </xsd:element>
> >       <xsd:element name="IsDefault" type="xsd:boolean"/>
> >
> >     </xsd:schema>
>
>

Server.generalException - makeTypeElement() was told to create a type "{http://www.opengis.net/sld}>StyledLayerDescriptor", with no containing element

Posted by Ales St <st...@seznam.cz>.
Hi,
I have a new problem I writed now a document/literal oriented wsdl, classes 
are generated, but when  I try to see wsdl on axis-server side Axis error is 
generated:

AXIS error
Sorry, something seems to have gone wrong... here are the details:

Fault - makeTypeElement() was told to create a type 
"{http://www.opengis.net/sld}>StyledLayerDescriptor", with no containing 
elementAxisFault
 faultCode: 
{http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
 faultSubcode:
 faultString: makeTypeElement() was told to create a type 
"{http://www.opengis.net/sld}>StyledLayerDescriptor", with no containing 
element
 faultActor:  faultNode:  faultDetail:
	{http://xml.apache.org/axis/}hostname:pocitac

So I don´t knew what is wrong, it could be some import xsd problem, but I 
don´t knew which and how to solve it. I see some files on web but, they look 
like similar as that which I have. I give here a wsdl file, and all other 
files which is important to generate is in www.sweb.cz/stanax/xsd.zip .
I will be wery happy if somebody help me, because I solve this problem for 
some days and I can´t a solution.
Thank you
                Ales
wsdl file:
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="urn:Wms"
 xmlns:apachesoap="http://xml.apache.org/xml-soap"
 xmlns:impl="urn:Wms"
 xmlns:intf="urn:Wms"
 xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:sld="http://www.opengis.net/sld"
 xmlns:ows="http://www.opengis.net/ows"
 xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
 xmlns:xsd="http://www.w3.org/2001/XMLSchema">

 <wsdl:types>
 <xsd:schema elementFormDefault="qualified"
 targetNamespace="urn:Wms"
 xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:sld="http://www.opengis.net/sld"
 xmlns:ows="http://www.opengis.net/ows">

<xsd:import namespace="http://www.opengis.net/sld" 
schemaLocation="../sld/1.0.20/StyledLayerDescriptor.xsd"/>
  <xsd:import namespace=" http://www.opengis.net/ows"
         schemaLocation="./wms_schemas.xsd"/>
 <element name="getFeatureInfo">
    <complexType>
     <sequence>
      <element ref ="ows:version"/>
      <element  ref ="ows:service"/>
      <element ref ="ows:exceptions"/>
      <element  ref ="ows:Map"/>
      <element  ref ="ows:Image"/>
      <element  ref ="sld:StyledLayerDescriptor"/>
      <element name="QueryLayer" type ="xsd:string"/>
      <element name="InfoFormat" type ="xsd:string"/>
      <element name="FeatureCount" type ="xsd:int"/>
      <element name="x" type ="xsd:int"/>
      <element name="y" type ="xsd:int"/>
      <element ref ="ows:Vendor"/>
     </sequence>
    </complexType>
   </element>

   <element name="getFeatureInfoResponse">
    <complexType>
     <sequence>
      <element name="getFeatureInfoReturn" type="xsd:string"/>
     </sequence>
    </complexType>
   </element>

   <element name="getMap">
    <complexType>
     <sequence>
      <element ref ="ows:version"/>
      <element  ref ="ows:service"/>
      <element  ref ="ows:exceptions"/>
      <element  ref ="ows:Map"/>
      <element  ref ="ows:Image"/>
      <element  ref ="sld:StyledLayerDescriptor"/>
     </sequence>
    </complexType>
   </element>
   <element name="getMapResponse">
    <complexType>
     <sequence>
      <element name="getMapReturn" type="xsd:base64Binary"/>
     </sequence>
    </complexType>
   </element>
   <element name="getCapabilities">
    <complexType>
     <sequence>
      <element  ref ="ows:version"/>
      <element  ref ="ows:service"/>
      <element ref ="ows:exceptions"/>
      <element  ref ="ows:section"/>
     </sequence>
    </complexType>
   </element>
   <element name="getCapabilitiesResponse">
    <complexType>
     <sequence>
      <element name="getCapabilitiesReturn" type="xsd:string"/>
     </sequence>
    </complexType>
   </element>
  </xsd:schema>

 </wsdl:types>
   <wsdl:message name="getMapResponse">

      <wsdl:part element="impl:getMapResponse" name="parameters"/>

   </wsdl:message>

   <wsdl:message name="getCapabilitiesRequest">

      <wsdl:part element="impl:getCapabilities" name="parameters"/>

   </wsdl:message>

   <wsdl:message name="getCapabilitiesResponse">

      <wsdl:part element="impl:getCapabilitiesResponse" name="parameters"/>

   </wsdl:message>

   <wsdl:message name="getFeatureInfoResponse">

      <wsdl:part element="impl:getFeatureInfoResponse" name="parameters"/>

   </wsdl:message>

   <wsdl:message name="getFeatureInfoRequest">

      <wsdl:part element="impl:getFeatureInfo" name="parameters"/>

   </wsdl:message>

   <wsdl:message name="getMapRequest">

      <wsdl:part element="impl:getMap" name="parameters"/>

   </wsdl:message>

   <wsdl:portType name="Wms">

      <wsdl:operation name="getFeatureInfo">

         <wsdl:input message="impl:getFeatureInfoRequest" 
name="getFeatureInfoRequest"/>

         <wsdl:output message="impl:getFeatureInfoResponse" 
name="getFeatureInfoResponse"/>

      </wsdl:operation>

      <wsdl:operation name="getMap">

         <wsdl:input message="impl:getMapRequest" name="getMapRequest"/>

         <wsdl:output message="impl:getMapResponse" name="getMapResponse"/>

      </wsdl:operation>

      <wsdl:operation name="getCapabilities">

         <wsdl:input message="impl:getCapabilitiesRequest" 
name="getCapabilitiesRequest"/>

         <wsdl:output message="impl:getCapabilitiesResponse" 
name="getCapabilitiesResponse"/>

      </wsdl:operation>

   </wsdl:portType>

   <wsdl:binding name="wmsSoapBinding" type="impl:Wms">

      <wsdlsoap:binding style="document" 
transport="http://schemas.xmlsoap.org/soap/http"/>

      <wsdl:operation name="getFeatureInfo">

         <wsdlsoap:operation soapAction=""/>

         <wsdl:input name="getFeatureInfoRequest">

            <wsdlsoap:body use="literal"/>

         </wsdl:input>

         <wsdl:output name="getFeatureInfoResponse">

            <wsdlsoap:body use="literal"/>

         </wsdl:output>

      </wsdl:operation>

      <wsdl:operation name="getMap">

         <wsdlsoap:operation soapAction=""/>

         <wsdl:input name="getMapRequest">

            <wsdlsoap:body use="literal"/>

         </wsdl:input>

         <wsdl:output name="getMapResponse">

            <wsdlsoap:body use="literal"/>

         </wsdl:output>

      </wsdl:operation>

      <wsdl:operation name="getCapabilities">

         <wsdlsoap:operation soapAction=""/>

         <wsdl:input name="getCapabilitiesRequest">

            <wsdlsoap:body use="literal"/>

         </wsdl:input>

         <wsdl:output name="getCapabilitiesResponse">

            <wsdlsoap:body use="literal"/>

         </wsdl:output>

      </wsdl:operation>

   </wsdl:binding>

   <wsdl:service name="WmsService">

      <wsdl:port binding="impl:wmsSoapBinding" name="wms">

         <wsdlsoap:address 
location="http://localhost:8080/axis/services/wms"/>

      </wsdl:port>

   </wsdl:service>

</wsdl:definitions>





----- Original Message ----- 
From: "iksrazal" <ik...@gmail.com>
To: <ax...@ws.apache.org>
Sent: Tuesday, December 13, 2005 2:56 PM
Subject: Re: Server.generalException - makeTypeElement() was told to create 
a type "{http://www.opengis.net/sld}>FeatureTypeConstraint", with no 
containing element


> So I decided,
> that my wsdl is wrong, but I don´t know where is a mistake.

Try the "free as in beer" soa wsdl editor from cape clear. Or try wooden:

http://incubator.apache.org/woden/

HTH,
iksrazal

Em Terça 13 Dezembro 2005 11:39, o Ales St escreveu:
> Hi
> I removed that definition, and I tryed to rewrite my wsdl definition to
> document/literal  type,classes are generated. But when I tryed to se wsdl
> which is generated by server, the sam Axis error was generated and in
> server console was writed this: "Request Message type information has
> multiple parts that one single wrapped complexType.Use WRAPPED/LITERAL if
> interoping with some other soap stack becomes a problem." So I decided,
> that my wsdl is wrong, but I don´t know where is a mistake. I write my 
> wsdl
> by inspirating some wsdl which I find on the web, because I can't wind 
> some
> good definition, how to write it. So if you knew about some good, please
> send me it. And please see my wsdl,and write to me, where is a problem.
> Thank you
>             Ales
>
> New wsdl:
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions targetNamespace="urn:Wms"
>  xmlns:tns="urn:Wms"
>  xmlns:sld="http://www.opengis.net/sld"
>  xmlns:ows="http://www.opengis.net/ows"
> xmlns:gml="http://www.opengis.net/gml"
>  xmlns:apachesoap="http://xml.apache.org/xml-soap"
>  xmlns:impl="urn:Wms"
>  xmlns:intf="urn:Wms"
>  xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
>  xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
>  xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
>  xmlns:xsd="http://www.w3.org/2001/XMLSchema">
>
>
> <wsdl:types>
>   <xsd:schema targetNamespace="urn:Wms"
> xmlns="http://www.w3.org/2001/XMLSchema"
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"> <xsd:import
> namespace=" http://www.opengis.net/ows"
> schemaLocation="./wms_schemas.xsd"/> <xsd:import
> namespace="http://www.opengis.net/sld"
> schemaLocation="../sld/1.0.20/StyledLayerDescriptor.xsd"/>
>
> <element name="QueryLayer" type="soapenc:string" minOccurs="0"/>
> <element name="InfoFormat" type="soapenc:string" minOccurs="0"/>
> <element name="FeatureCount" type="soapenc:int" minOccurs="0"/>
>
> <element name="x" type="soapenc:int" minOccurs="0"/>
>
> <element name="y" type="soapenc:int" minOccurs="0"/>
>
> <element name="InfoFormat" type="soapenc:string" minOccurs="0"/>
>
> <element name="getMapReturn" type="soapenc:base64Binary"/>
> <element name="string" type="soapenc:string"/>
> <element name="Map" type="ows:MapType"/>
> <element name="Image" type="ows:ImageType"/>
>
>   </xsd:schema></wsdl:types>
>
>
>    <wsdl:message name="getMapResponse">
>
>       <wsdl:part name="getMapReturn" element="tns:getMapReturn"/>
>
>    </wsdl:message>
>
>    <wsdl:message name="getCapabilitiesRequest">
>
>       <wsdl:part name="version" element="ows:version"/>
>       <wsdl:part name="service" element="ows:service"/>
>
>       <wsdl:part name="exceptions" element="ows:exceptions"/>
>
>       <wsdl:part name="section" element="ows:section"/>
>
>    </wsdl:message>
>
>    <wsdl:message name="getCapabilitiesResponse">
>
>       <wsdl:part name="getCapabilitiesReturn" element="tns:string"/>
>    </wsdl:message>
>
>    <wsdl:message name="getFeatureInfoResponse">
>
>       <wsdl:part name="getFeatureInfoReturn" element="tns:string"/>
>
>    </wsdl:message>
>
>    <wsdl:message name="getFeatureInfoRequest">
>
>       <wsdl:part name="version" element="ows:version"/>
>       <wsdl:part name="service" element="ows:service"/>
>
>       <wsdl:part name="exceptions" element="ows:exceptions"/>
>
> <wsdl:part name="Map" element="tns:Map"/>
>
>      <wsdl:part name="Image" element="tns:Image"/>
>
>       <wsdl:part name="StyledLayerDescriptor"
> element="sld:StyledLayerDescriptor"/>
>
> <wsdl:part name="QueryLayer" element="tns:QueryLayer"/>
> <wsdl:part name="InfoFormat" element="tns:InfoFormat" />
> <wsdl:part name="FeatureCount" element="tns:FeatureCount" />
> <wsdl:part name="x" element="tns:x" />
> <wsdl:part name="y" element="tns:y" />
> <wsdl:part name="Vendor" element="ows:Vendor" />
>
>    </wsdl:message>
>
>    <wsdl:message name="getMapRequest">
>
>       <wsdl:part name="version" element="ows:version"/>
>
>       <wsdl:part name="service" element="ows:service"/>
>       <wsdl:part name="exceptions" element="ows:exceptions"/>
>
>       <wsdl:part name="Map" element="tns:Map"/>
>
>      <wsdl:part name="Image" element="tns:Image"/>
>
>       <wsdl:part name="StyledLayerDescriptor"
> element="sld:StyledLayerDescriptor"/>
>
>    </wsdl:message>
>
>    <wsdl:portType name="Wms">
>       <wsdl:operation name="getMap" parameterOrder="version service
> exceptions Map Image StyledLayerDescriptor">
>
>          <wsdl:input message="impl:getMapRequest" name="getMapRequest"/>
>
>          <wsdl:output message="impl:getMapResponse" 
> name="getMapResponse"/>
>
>       </wsdl:operation>
>
>       <wsdl:operation name="getCapabilities" parameterOrder="version
> service exceptions section">
>
>          <wsdl:input message="impl:getCapabilitiesRequest"
> name="getCapabilitiesRequest"/> <wsdl:output
> message="impl:getCapabilitiesResponse" name="getCapabilitiesResponse"/>
>
>       </wsdl:operation>
>
>       <wsdl:operation name="getFeatureInfo" parameterOrder="version 
> service
> exceptions Map Image StyledLayerDescriptor QueryLayer InfoFormat
> FeatureCount x y Vendor">
>
>          <wsdl:input message="impl:getFeatureInfoRequest"
> name="getFeatureInfoRequest"/>
>
>          <wsdl:output message="impl:getFeatureInfoResponse"
> name="getFeatureInfoResponse"/>
>
>       </wsdl:operation>
>    </wsdl:portType>
>
>    <wsdl:binding name="wmsSoapBinding" type="impl:Wms">
>
>       <wsdlsoap:binding style="document"
> transport="http://schemas.xmlsoap.org/soap/http"/>
>
>       <wsdl:operation name="getMap">
>
>          <wsdlsoap:operation soapAction=""/>
>
>          <wsdl:input name="getMapRequest">
>             <wsdlsoap:body  namespace="urn:Wms" use="literal"/>
>
>          </wsdl:input>
>
>          <wsdl:output name="getMapResponse">
>
>             <wsdlsoap:body  namespace="urn:Wms" use="literal"/>
>
>          </wsdl:output>
>
>       </wsdl:operation>
>       <wsdl:operation name="getCapabilities">
>
>          <wsdlsoap:operation soapAction=""/>
>
>          <wsdl:input name="getCapabilitiesRequest">
>
>             <wsdlsoap:body  namespace="urn:Wms" use="literal"/>
>
>          </wsdl:input>
>
>          <wsdl:output name="getCapabilitiesResponse">
>             <wsdlsoap:body  namespace="urn:Wms" use="literal"/>
>
>          </wsdl:output>
>
>       </wsdl:operation>
>
>       <wsdl:operation name="getFeatureInfo">
>
>          <wsdlsoap:operation soapAction=""/>
>
>          <wsdl:input name="getFeatureInfoRequest">
>             <wsdlsoap:body  namespace="urn:Wms" use="literal"/>
>
>          </wsdl:input>
>
>          <wsdl:output name="getFeatureInfoResponse">
>
>             <wsdlsoap:body  namespace="urn:Wms" use="literal"/>
>
>          </wsdl:output>
>
>       </wsdl:operation>
>    </wsdl:binding>
>
>    <wsdl:service name="WmsService">
>
>       <wsdl:port binding="impl:wmsSoapBinding" name="wms">
>
>          <wsdlsoap:address
> location="http://localhost:8080/axis/services/wms"/>
>
>       </wsdl:port>
>
>    </wsdl:service>
> </wsdl:definitions>
>
>
>
>   ----- Original Message -----
>   From: Anne Thomas Manes
>   To: axis-user@ws.apache.org
>   Sent: Tuesday, December 13, 2005 1:56 AM
>   Subject: Re: Server.generalException - makeTypeElement() was told to
> create a type "{http://www.opengis.net/sld}>FeatureTypeConstraint", with 
> no
> containing element
>
>
>   This definition in your urn:Wms schema should be removed:
>
>   <xsd:element name="StyledLayerDescriptor" 
> ref="sld:StyledLayerDescriptor"
>
>   minOccurs="0"/>
>
>   The element is defined in the sld schema. There's no reason to define it
> again in the Wms schema. Besides, you can't name an element and reference
> another element in the same definition.
>
>
>   Anne
>
>   ps -- with such a complex schema, I strongly encourage you to switch to
> document/literal rather than rpc/encoded.
>
>
>   On 12/11/05, Ales St < stanax@seznam.cz> wrote:
>     Hi
>     I have a problem, I use Axis 1.3. and I generate classes from wsdl by
>     wsdl2java and when I translate it and copy to Tomcat and tryed to see 
> a
> list of services and their wsdl it write this:
>
>     AXIS error
>     Sorry, something seems to have gone wrong... here are the details:
>     Fault - makeTypeElement() was told to create a type
>     "{http://www.opengis.net/sld}>FeatureTypeConstraint", with no
> containing element
>     AxisFault
>     faultCode:
>     { http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
>     faultSubcode:
>     faultString: makeTypeElement() was told to create a type
>     "{http://www.opengis.net/sld} >FeatureTypeConstraint", with no
> containing element
>     faultActor:  faultNode:  faultDetail:
>     {http://xml.apache.org/axis/}hostname:pocitac
>
>
>     So can enybody write me what is wrong? It is wery important for me.
> Down I enclose wsdl and xsd file.If you want to see all importants files,
> you can find them on www.sweb.cz/stanax/xsd.zip
>     Tahnks
>                 Ales
>
>     Wsdl:
>     <?xml version="1.0" encoding="UTF-8"?>
>     <wsdl:definitions targetNamespace="urn:Wms"
>     xmlns:tns="urn:Wms"
>     xmlns:sld="http://www.opengis.net/sld"
>     xmlns:ows="http://www.opengis.net/ows"
>     xmlns:gml=" http://www.opengis.net/gml"
>     xmlns:apachesoap="http://xml.apache.org/xml-soap"
>     xmlns:impl="urn:Wms"
>     xmlns:intf="urn:Wms"
>     xmlns:soapenc=" http://schemas.xmlsoap.org/soap/encoding/"
>     xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
>     xmlns:wsdlsoap=" http://schemas.xmlsoap.org/wsdl/soap/"
>     xmlns:xsd="http://www.w3.org/2001/XMLSchema">
>
>
>     <wsdl:types>
>       <xsd:schema targetNamespace="urn:Wms"
>     xmlns="http://www.w3.org/2001/XMLSchema"
>     xmlns:soapenc=" http://schemas.xmlsoap.org/soap/encoding/">
>          <xsd:import namespace=" http://www.opengis.net/ows"
>     schemaLocation="./wms_schemas.xsd"/>
>          <xsd:import namespace="http://www.opengis.net/sld"
>     schemaLocation="../sld/1.0.20/StyledLayerDescriptor.xsd"/>
>
>     <xsd:element name="StyledLayerDescriptor"
> ref="sld:StyledLayerDescriptor" minOccurs="0"/>
>
>     <element name="QueryLayer" type="soapenc:string" minOccurs="0"/>
>     <element name="InfoFormat" type="soapenc:string" minOccurs="0"/>
>     <element name="FeatureCount" type="soapenc:int" minOccurs="0"/>
>
>     <element name="x" type="soapenc:int" minOccurs="0"/>
>     <element name="y" type="soapenc:int" minOccurs="0"/>
>
>       </xsd:schema>
>
>     </wsdl:types>
>
>
>        <wsdl:message name="getMapResponse">
>
>           <wsdl:part name="getMapReturn" type="soapenc:base64Binary"/>
>
>        </wsdl:message>
>
>        <wsdl:message name="getCapabilitiesRequest">
>
>           <wsdl:part name="version" element="ows:version"/>
>
>           <wsdl:part name="service" element="ows:service"/>
>
>           <wsdl:part name="exceptions" element="ows:exceptions"/>
>
>           <wsdl:part name="section" element="ows:section"/>
>
>        </wsdl:message>
>
>        <wsdl:message name="getCapabilitiesResponse">
>
>           <wsdl:part name="getCapabilitiesReturn" type="soapenc:string"/>
>
>        </wsdl:message>
>
>        <wsdl:message name="getFeatureInfoResponse">
>
>           <wsdl:part name="getFeatureInfoReturn" type="soapenc:string"/>
>
>        </wsdl:message>
>
>        <wsdl:message name="getFeatureInfoRequest">
>
>           <wsdl:part name="version" element="ows:version"/>
>
>           <wsdl:part name="service" element="ows:service"/>
>
>           <wsdl:part name="exceptions" element="ows:exceptions"/>
>
>       <wsdl:part name="Map" type="ows:MapType"/>
>
>          <wsdl:part name="Image" type="ows:ImageType"/>
>
>           <wsdl:part name="StyledLayerDescriptor"
>     element="tns:StyledLayerDescriptor"/>
>
>     <wsdl:part name="QueryLayer" element="tns:QueryLayer"/>
>     <wsdl:part name="InfoFormat" element="tns:InfoFormat" />
>     <wsdl:part name="FeatureCount" element="tns:FeatureCount" />
>     <wsdl:part name="x" element="tns:x" />
>     <wsdl:part name="y" element="tns:y" />
>     <wsdl:part name="Vendor" element="ows:Vendor" />
>
>        </wsdl:message>
>
>        <wsdl:message name="getMapRequest">
>
>           <wsdl:part name="version" element="ows:version"/>
>
>           <wsdl:part name="service" element="ows:service"/>
>
>           <wsdl:part name="exceptions" element="ows:exceptions"/>
>
>           <wsdl:part name="Map" type="ows:MapType"/>
>
>           <wsdl:part name="Image" type="ows:ImageType"/>
>
>           <wsdl:part name="StyledLayerDescriptor"
>     element="tns:StyledLayerDescriptor"/>
>
>
>        </wsdl:message>
>
>        <wsdl:portType name="Wms">
>
>           <wsdl:operation name="getMap" parameterOrder="version service
>     exceptions Map Image StyledLayerDescriptor">
>
>              <wsdl:input message="impl:getMapRequest"
> name="getMapRequest"/>
>
>              <wsdl:output message="impl:getMapResponse"
> name="getMapResponse"/>
>
>           </wsdl:operation>
>
>           <wsdl:operation name="getCapabilities" parameterOrder="version
> service exceptions section">
>
>              <wsdl:input message="impl:getCapabilitiesRequest"
>     name="getCapabilitiesRequest"/>
>
>              <wsdl:output message="impl:getCapabilitiesResponse"
>     name="getCapabilitiesResponse"/>
>
>           </wsdl:operation>
>
>           <wsdl:operation name="getFeatureInfo" parameterOrder="version
> service exceptions Map Image StyledLayerDescriptor QueryLayer InfoFormat
> FeatureCount x y Vendor">
>
>              <wsdl:input message="impl:getFeatureInfoRequest"
>     name="getFeatureInfoRequest"/>
>
>              <wsdl:output message="impl:getFeatureInfoResponse"
>     name="getFeatureInfoResponse"/>
>
>           </wsdl:operation>
>
>        </wsdl:portType>
>
>        <wsdl:binding name="wmsSoapBinding" type="impl:Wms">
>
>           <wsdlsoap:binding style="rpc"
>     transport="http://schemas.xmlsoap.org/soap/http"/ >
>
>           <wsdl:operation name="getMap">
>
>              <wsdlsoap:operation soapAction=""/>
>
>              <wsdl:input name="getMapRequest">
>
>                 <wsdlsoap:body
>     encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
>     namespace="urn:Wms" use="encoded"/>
>
>              </wsdl:input>
>
>              <wsdl:output name="getMapResponse">
>
>                 <wsdlsoap:body
>     encodingStyle="http://schemas.xmlsoap.org/soap/encoding/ "
>     namespace="urn:Wms" use="encoded"/>
>
>              </wsdl:output>
>
>           </wsdl:operation>
>
>           <wsdl:operation name="getCapabilities">
>
>              <wsdlsoap:operation soapAction=""/>
>
>              <wsdl:input name="getCapabilitiesRequest">
>
>                 <wsdlsoap:body
>     encodingStyle=" http://schemas.xmlsoap.org/soap/encoding/"
>     namespace="urn:Wms" use="encoded"/>
>
>              </wsdl:input>
>
>              <wsdl:output name="getCapabilitiesResponse">
>
>                 <wsdlsoap:body
>     encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
>     namespace="urn:Wms" use="encoded"/>
>
>              </wsdl:output>
>
>           </wsdl:operation>
>
>           <wsdl:operation name="getFeatureInfo">
>
>              <wsdlsoap:operation soapAction=""/>
>
>              <wsdl:input name="getFeatureInfoRequest">
>
>                 <wsdlsoap:body
>     encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
>     namespace="urn:Wms" use="encoded"/>
>
>              </wsdl:input>
>
>              <wsdl:output name="getFeatureInfoResponse">
>
>                 <wsdlsoap:body
>     encodingStyle=" http://schemas.xmlsoap.org/soap/encoding/"
>     namespace="urn:Wms" use="encoded"/>
>
>              </wsdl:output>
>
>           </wsdl:operation>
>
>        </wsdl:binding>
>
>        <wsdl:service name="WmsService">
>
>           <wsdl:port binding="impl:wmsSoapBinding" name="wms">
>
>              <wsdlsoap:address
>     location=" http://localhost:8080/axis/services/wms"/>
>
>           </wsdl:port>
>
>        </wsdl:service>
>
>     </wsdl:definitions>
>
>
>
>
>
>
>     xsd file StyledLayerDescriptor.xsd:
>
>     <?xml version="1.0" encoding="UTF-8"?>
>     <xsd:schema targetNamespace="http://www.opengis.net/sld"
>                 xmlns:sld=" http://www.opengis.net/sld"
>                 xmlns:ogc="http://www.opengis.net/ogc"
>                 xmlns:xsd="http://www.w3.org/2001/XMLSchema "
>                 elementFormDefault="qualified">
>       <xsd:include schemaLocation="FeatureStyle.xsd"/>
>       <xsd:import namespace="http://www.opengis.net/ogc "
>                   schemaLocation="../../filter/1.0.0/filter.xsd"/>
>
>     <!--
> 
> ***********************************************************************
> --> <xsd:annotation>
>         <xsd:documentation>
>           STYLED LAYER DESCRIPTOR version 1.0.20 (2002-09-21)
>         </xsd:documentation>
>       </xsd:annotation>
>
>       <xsd:element name="StyledLayerDescriptor">
>         <xsd:annotation>
>           <xsd:documentation>
>             A StyledLayerDescriptor is a sequence of styled layers,
> represented at the first level by NamedLayer and UserLayer elements.
> </xsd:documentation>
>         </xsd:annotation>
>         <xsd:complexType>
>           <xsd:sequence>
>             <xsd:element ref="sld:Name" minOccurs="0"/>
>             <xsd:element ref="sld:Description" minOccurs="0"/>
>             <xsd:element ref="sld:EnvironmentVariables" minOccurs="0"/>
>             <xsd:element ref="sld:UseSLDLibrary" minOccurs="0"
>                                                  maxOccurs="unbounded"/>
>             <xsd:choice minOccurs="0" maxOccurs="unbounded">
>               <xsd:element ref="sld:NamedLayer"/>
>               <xsd:element ref="sld:UserLayer"/>
>             </xsd:choice>
>           </xsd:sequence>
>           <xsd:attribute name="version" type="sld:VersionType"
> use="required"/> </xsd:complexType>
>       </xsd:element>
>
>     <!--
> 
> ***********************************************************************
> --> <xsd:annotation>
>         <xsd:documentation>
>           RUN-TIME ENVIRONMENT VARIABLES
>         </xsd:documentation>
>       </xsd:annotation>
>
>       <xsd:element name="EnvironmentVariables">
>         <xsd:annotation>
>           <xsd:documentation>
>             An "EnvironmentVariables" element includes an XML blob which
>             can be used to declare the values to use for global 
> environment
>             variables during the execution of the styling operations.
>             These variables may be refered to in styles and symbols in the
>             same way as feature properties.
>           </xsd:documentation>
>         </xsd:annotation>
>         <xsd:complexType>
>           <xsd:sequence>
>             <xsd:any/>
>           </xsd:sequence>
>         </xsd:complexType>
>       </xsd:element>
>
>     <!--
> 
> ***********************************************************************
> --> <xsd:annotation>
>         <xsd:documentation>
>           SLD LIBRARIES
>         </xsd:documentation>
>       </xsd:annotation>
>
>       <xsd:element name="UseSLDLibrary">
>         <xsd:annotation>
>           <xsd:documentation>
>             The UseSLDLibrary tag specifies that an external SLD document
>             should be used as a "library" of named layers and styles to
>             augment the set of named layers and styles that are available
>             for use inside of a WMS.  In the event of name collisions, the
>             SLD library takes precedence over the ones internal to the 
> WMS.
>             Any number of libraries may be specified in an SLD and each
>             successive library takes precedence over the former ones in 
> the
>             case of name collisions.
>           </xsd:documentation>
>         </xsd:annotation>
>         <xsd:complexType>
>           <xsd:sequence>
>             <xsd:element ref="sld:OnlineResource"/>
>           </xsd:sequence>
>         </xsd:complexType>
>       </xsd:element>
>
>     <!--
> 
> ***********************************************************************
> --> <xsd:annotation>
>         <xsd:documentation>
>           LAYERS AND STYLES
>         </xsd:documentation>
>       </xsd:annotation>
>
>       <xsd:element name="NamedLayer">
>         <xsd:annotation>
>           <xsd:documentation>
>             A NamedLayer is a layer of data that has a name advertised by 
> a
> WMS. </xsd:documentation>
>         </xsd:annotation>
>         <xsd:complexType>
>           <xsd:sequence>
>             <xsd:element ref="sld:Name"/>
>             <xsd:element ref="sld:Description" minOccurs="0"/>
>             <xsd:element ref="sld:LayerFeatureConstraints" minOccurs="0"/>
>             <xsd:choice minOccurs="0" maxOccurs="unbounded">
>               <xsd:element ref="sld:NamedStyle"/>
>               <xsd:element ref="sld:UserStyle"/>
>             </xsd:choice>
>           </xsd:sequence>
>         </xsd:complexType>
>       </xsd:element>
>
>       <xsd:element name="NamedStyle">
>         <xsd:annotation>
>           <xsd:documentation>
>             A NamedStyle is used to refer to a style that has a name in a
> WMS. </xsd:documentation>
>         </xsd:annotation>
>         <xsd:complexType>
>           <xsd:sequence>
>             <xsd:element ref="sld:Name"/>
>             <xsd:element ref="sld:Description" minOccurs="0"/>
>           </xsd:sequence>
>         </xsd:complexType>
>       </xsd:element>
>
>       <xsd:element name="UserLayer">
>         <xsd:annotation>
>           <xsd:documentation>
>             A UserLayer allows a user-defined layer to be built from WFS
> and WCS data.
>           </xsd:documentation>
>         </xsd:annotation>
>         <xsd:complexType>
>           <xsd:sequence>
>             <xsd:element ref="sld:Name" minOccurs="0"/>
>             <xsd:element ref="sld:Description" minOccurs="0"/>
>             <xsd:element ref="sld:RemoteOWS" minOccurs="0"/>
>             <xsd:element ref="sld:LayerFeatureConstraints"/>
>             <xsd:element ref="sld:UserStyle" maxOccurs="unbounded"/>
>           </xsd:sequence>
>         </xsd:complexType>
>       </xsd:element>
>
>       <xsd:element name="RemoteOWS">
>         <xsd:annotation>
>           <xsd:documentation>
>             A RemoteOWS gives a reference to a remote WFS/WCS/other-OWS
> server. </xsd:documentation>
>         </xsd:annotation>
>         <xsd:complexType>
>           <xsd:sequence>
>             <xsd:element ref="sld:Service"/>
>             <xsd:element ref="sld:OnlineResource"/>
>           </xsd:sequence>
>         </xsd:complexType>
>       </xsd:element>
>
>       <xsd:element name="Service">
>         <xsd:annotation>
>           <xsd:documentation>
>             A Service refers to the type of a remote OWS server.
>           </xsd:documentation>
>         </xsd:annotation>
>         <xsd:simpleType>
>           <xsd:restriction base="xsd:string">
>             <xsd:enumeration value="WFS"/>
>             <xsd:enumeration value="WCS"/>
>           </xsd:restriction>
>         </xsd:simpleType>
>       </xsd:element>
>
>       <xsd:element name="LayerFeatureConstraints">
>         <xsd:annotation>
>           <xsd:documentation>
>             LayerFeatureConstraints define what features &amp; feature
> types are referenced in a layer.
>           </xsd:documentation>
>         </xsd:annotation>
>         <xsd:complexType>
>           <xsd:sequence>
>             <xsd:element ref="sld:FeatureTypeConstraint"
> maxOccurs="unbounded"/> </xsd:sequence>
>         </xsd:complexType>
>       </xsd:element>
>
>       <xsd:element name="FeatureTypeConstraint">
>         <xsd:annotation>
>           <xsd:documentation>
>             A FeatureTypeConstraint identifies a specific feature type and
>             supplies fitlering.
>           </xsd:documentation>
>         </xsd:annotation>
>         <xsd:complexType>
>           <xsd:sequence>
>             <xsd:element ref="sld:FeatureTypeName" minOccurs="0"/>
>             <xsd:element ref="ogc:Filter" minOccurs="0"/>
>             <xsd:element ref="sld:Extent" minOccurs="0"
> maxOccurs="unbounded"/> </xsd:sequence>
>         </xsd:complexType>
>       </xsd:element>
>
>       <xsd:element name="Extent">
>         <xsd:annotation>
>           <xsd:documentation>
>             An Extent gives feature/coverage/raster/matrix dimension
> extent. </xsd:documentation>
>         </xsd:annotation>
>         <xsd:complexType>
>           <xsd:sequence>
>             <xsd:element ref="sld:Name"/>
>             <xsd:element ref="sld:Value"/>
>           </xsd:sequence>
>         </xsd:complexType>
>       </xsd:element>
>       <xsd:element name="Value" type="xsd:string"/>
>
>       <xsd:element name="UserStyle">
>         <xsd:annotation>
>           <xsd:documentation>
>             A UserStyle allows user-defined styling and is semantically
>             equivalent to a WMS named style.
>           </xsd:documentation>
>         </xsd:annotation>
>         <xsd:complexType>
>           <xsd:sequence>
>             <xsd:element ref="sld:Name" minOccurs="0"/>
>             <xsd:element ref="sld:Description" minOccurs="0"/>
>             <xsd:element ref="sld:IsDefault" minOccurs="0"/>
>             <xsd:element ref="sld:FeatureStyle" maxOccurs="unbounded"/>
>           </xsd:sequence>
>         </xsd:complexType>
>       </xsd:element>
>       <xsd:element name="IsDefault" type="xsd:boolean"/>
>
>     </xsd:schema> 


Re: Server.generalException - makeTypeElement() was told to create a type "{http://www.opengis.net/sld}>FeatureTypeConstraint", with no containing element

Posted by iksrazal <ik...@gmail.com>.
> So I decided,
> that my wsdl is wrong, but I don´t know where is a mistake.

Try the "free as in beer" soa wsdl editor from cape clear. Or try wooden: 

http://incubator.apache.org/woden/

HTH,
iksrazal

Em Terça 13 Dezembro 2005 11:39, o Ales St escreveu:
> Hi
> I removed that definition, and I tryed to rewrite my wsdl definition to
> document/literal  type,classes are generated. But when I tryed to se wsdl
> which is generated by server, the sam Axis error was generated and in
> server console was writed this: "Request Message type information has
> multiple parts that one single wrapped complexType.Use WRAPPED/LITERAL if
> interoping with some other soap stack becomes a problem." So I decided,
> that my wsdl is wrong, but I don´t know where is a mistake. I write my wsdl
> by inspirating some wsdl which I find on the web, because I can't wind some
> good definition, how to write it. So if you knew about some good, please
> send me it. And please see my wsdl,and write to me, where is a problem.
> Thank you
>             Ales
>
> New wsdl:
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions targetNamespace="urn:Wms"
>  xmlns:tns="urn:Wms"
>  xmlns:sld="http://www.opengis.net/sld"
>  xmlns:ows="http://www.opengis.net/ows"
> xmlns:gml="http://www.opengis.net/gml"
>  xmlns:apachesoap="http://xml.apache.org/xml-soap"
>  xmlns:impl="urn:Wms"
>  xmlns:intf="urn:Wms"
>  xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
>  xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
>  xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
>  xmlns:xsd="http://www.w3.org/2001/XMLSchema">
>
>
> <wsdl:types>
>   <xsd:schema targetNamespace="urn:Wms"
> xmlns="http://www.w3.org/2001/XMLSchema"
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"> <xsd:import
> namespace=" http://www.opengis.net/ows" 
> schemaLocation="./wms_schemas.xsd"/> <xsd:import
> namespace="http://www.opengis.net/sld"
> schemaLocation="../sld/1.0.20/StyledLayerDescriptor.xsd"/>
>
> <element name="QueryLayer" type="soapenc:string" minOccurs="0"/>
> <element name="InfoFormat" type="soapenc:string" minOccurs="0"/>
> <element name="FeatureCount" type="soapenc:int" minOccurs="0"/>
>
> <element name="x" type="soapenc:int" minOccurs="0"/>
>
> <element name="y" type="soapenc:int" minOccurs="0"/>
>
> <element name="InfoFormat" type="soapenc:string" minOccurs="0"/>
>
> <element name="getMapReturn" type="soapenc:base64Binary"/>
> <element name="string" type="soapenc:string"/>
> <element name="Map" type="ows:MapType"/>
> <element name="Image" type="ows:ImageType"/>
>
>   </xsd:schema></wsdl:types>
>
>
>    <wsdl:message name="getMapResponse">
>
>       <wsdl:part name="getMapReturn" element="tns:getMapReturn"/>
>
>    </wsdl:message>
>
>    <wsdl:message name="getCapabilitiesRequest">
>
>       <wsdl:part name="version" element="ows:version"/>
>       <wsdl:part name="service" element="ows:service"/>
>
>       <wsdl:part name="exceptions" element="ows:exceptions"/>
>
>       <wsdl:part name="section" element="ows:section"/>
>
>    </wsdl:message>
>
>    <wsdl:message name="getCapabilitiesResponse">
>
>       <wsdl:part name="getCapabilitiesReturn" element="tns:string"/>
>    </wsdl:message>
>
>    <wsdl:message name="getFeatureInfoResponse">
>
>       <wsdl:part name="getFeatureInfoReturn" element="tns:string"/>
>
>    </wsdl:message>
>
>    <wsdl:message name="getFeatureInfoRequest">
>
>       <wsdl:part name="version" element="ows:version"/>
>       <wsdl:part name="service" element="ows:service"/>
>
>       <wsdl:part name="exceptions" element="ows:exceptions"/>
>
> 	 <wsdl:part name="Map" element="tns:Map"/>
>
>      <wsdl:part name="Image" element="tns:Image"/>
>
>       <wsdl:part name="StyledLayerDescriptor"
> element="sld:StyledLayerDescriptor"/>
>
> <wsdl:part name="QueryLayer" element="tns:QueryLayer"/>
> <wsdl:part name="InfoFormat" element="tns:InfoFormat" />
> <wsdl:part name="FeatureCount" element="tns:FeatureCount" />
> <wsdl:part name="x" element="tns:x" />
> <wsdl:part name="y" element="tns:y" />
> <wsdl:part name="Vendor" element="ows:Vendor" />
>
>    </wsdl:message>
>
>    <wsdl:message name="getMapRequest">
>
>       <wsdl:part name="version" element="ows:version"/>
>
>       <wsdl:part name="service" element="ows:service"/>
>       <wsdl:part name="exceptions" element="ows:exceptions"/>
>
>       <wsdl:part name="Map" element="tns:Map"/>
>
>      <wsdl:part name="Image" element="tns:Image"/>
>
>       <wsdl:part name="StyledLayerDescriptor"
> element="sld:StyledLayerDescriptor"/>
>
>    </wsdl:message>
>
>    <wsdl:portType name="Wms">
>       <wsdl:operation name="getMap" parameterOrder="version service
> exceptions Map Image StyledLayerDescriptor">
>
>          <wsdl:input message="impl:getMapRequest" name="getMapRequest"/>
>
>          <wsdl:output message="impl:getMapResponse" name="getMapResponse"/>
>
>       </wsdl:operation>
>
>       <wsdl:operation name="getCapabilities" parameterOrder="version
> service exceptions section">
>
>          <wsdl:input message="impl:getCapabilitiesRequest"
> name="getCapabilitiesRequest"/> <wsdl:output
> message="impl:getCapabilitiesResponse" name="getCapabilitiesResponse"/>
>
>       </wsdl:operation>
>
>       <wsdl:operation name="getFeatureInfo" parameterOrder="version service
> exceptions Map Image StyledLayerDescriptor QueryLayer InfoFormat
> FeatureCount x y Vendor">
>
>          <wsdl:input message="impl:getFeatureInfoRequest"
> name="getFeatureInfoRequest"/>
>
>          <wsdl:output message="impl:getFeatureInfoResponse"
> name="getFeatureInfoResponse"/>
>
>       </wsdl:operation>
>    </wsdl:portType>
>
>    <wsdl:binding name="wmsSoapBinding" type="impl:Wms">
>
>       <wsdlsoap:binding style="document"
> transport="http://schemas.xmlsoap.org/soap/http"/>
>
>       <wsdl:operation name="getMap">
>
>          <wsdlsoap:operation soapAction=""/>
>
>          <wsdl:input name="getMapRequest">
>             <wsdlsoap:body  namespace="urn:Wms" use="literal"/>
>
>          </wsdl:input>
>
>          <wsdl:output name="getMapResponse">
>
>             <wsdlsoap:body  namespace="urn:Wms" use="literal"/>
>
>          </wsdl:output>
>
>       </wsdl:operation>
>       <wsdl:operation name="getCapabilities">
>
>          <wsdlsoap:operation soapAction=""/>
>
>          <wsdl:input name="getCapabilitiesRequest">
>
>             <wsdlsoap:body  namespace="urn:Wms" use="literal"/>
>
>          </wsdl:input>
>
>          <wsdl:output name="getCapabilitiesResponse">
>             <wsdlsoap:body  namespace="urn:Wms" use="literal"/>
>
>          </wsdl:output>
>
>       </wsdl:operation>
>
>       <wsdl:operation name="getFeatureInfo">
>
>          <wsdlsoap:operation soapAction=""/>
>
>          <wsdl:input name="getFeatureInfoRequest">
>             <wsdlsoap:body  namespace="urn:Wms" use="literal"/>
>
>          </wsdl:input>
>
>          <wsdl:output name="getFeatureInfoResponse">
>
>             <wsdlsoap:body  namespace="urn:Wms" use="literal"/>
>
>          </wsdl:output>
>
>       </wsdl:operation>
>    </wsdl:binding>
>
>    <wsdl:service name="WmsService">
>
>       <wsdl:port binding="impl:wmsSoapBinding" name="wms">
>
>          <wsdlsoap:address
> location="http://localhost:8080/axis/services/wms"/>
>
>       </wsdl:port>
>
>    </wsdl:service>
> </wsdl:definitions>
>
>
>
>   ----- Original Message -----
>   From: Anne Thomas Manes
>   To: axis-user@ws.apache.org
>   Sent: Tuesday, December 13, 2005 1:56 AM
>   Subject: Re: Server.generalException - makeTypeElement() was told to
> create a type "{http://www.opengis.net/sld}>FeatureTypeConstraint", with no
> containing element
>
>
>   This definition in your urn:Wms schema should be removed:
>
>   <xsd:element name="StyledLayerDescriptor" ref="sld:StyledLayerDescriptor"
>
>   minOccurs="0"/>
>
>   The element is defined in the sld schema. There's no reason to define it
> again in the Wms schema. Besides, you can't name an element and reference
> another element in the same definition.
>
>
>   Anne
>
>   ps -- with such a complex schema, I strongly encourage you to switch to
> document/literal rather than rpc/encoded.
>
>
>   On 12/11/05, Ales St < stanax@seznam.cz> wrote:
>     Hi
>     I have a problem, I use Axis 1.3. and I generate classes from wsdl by
>     wsdl2java and when I translate it and copy to Tomcat and tryed to see a
> list of services and their wsdl it write this:
>
>     AXIS error
>     Sorry, something seems to have gone wrong... here are the details:
>     Fault - makeTypeElement() was told to create a type
>     "{http://www.opengis.net/sld}>FeatureTypeConstraint", with no
> containing element
>     AxisFault
>     faultCode:
>     { http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
>     faultSubcode:
>     faultString: makeTypeElement() was told to create a type
>     "{http://www.opengis.net/sld} >FeatureTypeConstraint", with no
> containing element
>     faultActor:  faultNode:  faultDetail:
>     {http://xml.apache.org/axis/}hostname:pocitac
>
>
>     So can enybody write me what is wrong? It is wery important for me.
> Down I enclose wsdl and xsd file.If you want to see all importants files,
> you can find them on www.sweb.cz/stanax/xsd.zip
>     Tahnks
>                 Ales
>
>     Wsdl:
>     <?xml version="1.0" encoding="UTF-8"?>
>     <wsdl:definitions targetNamespace="urn:Wms"
>     xmlns:tns="urn:Wms"
>     xmlns:sld="http://www.opengis.net/sld"
>     xmlns:ows="http://www.opengis.net/ows"
>     xmlns:gml=" http://www.opengis.net/gml"
>     xmlns:apachesoap="http://xml.apache.org/xml-soap"
>     xmlns:impl="urn:Wms"
>     xmlns:intf="urn:Wms"
>     xmlns:soapenc=" http://schemas.xmlsoap.org/soap/encoding/"
>     xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
>     xmlns:wsdlsoap=" http://schemas.xmlsoap.org/wsdl/soap/"
>     xmlns:xsd="http://www.w3.org/2001/XMLSchema">
>
>
>     <wsdl:types>
>       <xsd:schema targetNamespace="urn:Wms"
>     xmlns="http://www.w3.org/2001/XMLSchema"
>     xmlns:soapenc=" http://schemas.xmlsoap.org/soap/encoding/">
>          <xsd:import namespace=" http://www.opengis.net/ows"
>     schemaLocation="./wms_schemas.xsd"/>
>          <xsd:import namespace="http://www.opengis.net/sld"
>     schemaLocation="../sld/1.0.20/StyledLayerDescriptor.xsd"/>
>
>     <xsd:element name="StyledLayerDescriptor"
> ref="sld:StyledLayerDescriptor" minOccurs="0"/>
>
>     <element name="QueryLayer" type="soapenc:string" minOccurs="0"/>
>     <element name="InfoFormat" type="soapenc:string" minOccurs="0"/>
>     <element name="FeatureCount" type="soapenc:int" minOccurs="0"/>
>
>     <element name="x" type="soapenc:int" minOccurs="0"/>
>     <element name="y" type="soapenc:int" minOccurs="0"/>
>
>       </xsd:schema>
>
>     </wsdl:types>
>
>
>        <wsdl:message name="getMapResponse">
>
>           <wsdl:part name="getMapReturn" type="soapenc:base64Binary"/>
>
>        </wsdl:message>
>
>        <wsdl:message name="getCapabilitiesRequest">
>
>           <wsdl:part name="version" element="ows:version"/>
>
>           <wsdl:part name="service" element="ows:service"/>
>
>           <wsdl:part name="exceptions" element="ows:exceptions"/>
>
>           <wsdl:part name="section" element="ows:section"/>
>
>        </wsdl:message>
>
>        <wsdl:message name="getCapabilitiesResponse">
>
>           <wsdl:part name="getCapabilitiesReturn" type="soapenc:string"/>
>
>        </wsdl:message>
>
>        <wsdl:message name="getFeatureInfoResponse">
>
>           <wsdl:part name="getFeatureInfoReturn" type="soapenc:string"/>
>
>        </wsdl:message>
>
>        <wsdl:message name="getFeatureInfoRequest">
>
>           <wsdl:part name="version" element="ows:version"/>
>
>           <wsdl:part name="service" element="ows:service"/>
>
>           <wsdl:part name="exceptions" element="ows:exceptions"/>
>
>       <wsdl:part name="Map" type="ows:MapType"/>
>
>          <wsdl:part name="Image" type="ows:ImageType"/>
>
>           <wsdl:part name="StyledLayerDescriptor"
>     element="tns:StyledLayerDescriptor"/>
>
>     <wsdl:part name="QueryLayer" element="tns:QueryLayer"/>
>     <wsdl:part name="InfoFormat" element="tns:InfoFormat" />
>     <wsdl:part name="FeatureCount" element="tns:FeatureCount" />
>     <wsdl:part name="x" element="tns:x" />
>     <wsdl:part name="y" element="tns:y" />
>     <wsdl:part name="Vendor" element="ows:Vendor" />
>
>        </wsdl:message>
>
>        <wsdl:message name="getMapRequest">
>
>           <wsdl:part name="version" element="ows:version"/>
>
>           <wsdl:part name="service" element="ows:service"/>
>
>           <wsdl:part name="exceptions" element="ows:exceptions"/>
>
>           <wsdl:part name="Map" type="ows:MapType"/>
>
>           <wsdl:part name="Image" type="ows:ImageType"/>
>
>           <wsdl:part name="StyledLayerDescriptor"
>     element="tns:StyledLayerDescriptor"/>
>
>
>        </wsdl:message>
>
>        <wsdl:portType name="Wms">
>
>           <wsdl:operation name="getMap" parameterOrder="version service
>     exceptions Map Image StyledLayerDescriptor">
>
>              <wsdl:input message="impl:getMapRequest"
> name="getMapRequest"/>
>
>              <wsdl:output message="impl:getMapResponse"
> name="getMapResponse"/>
>
>           </wsdl:operation>
>
>           <wsdl:operation name="getCapabilities" parameterOrder="version
> service exceptions section">
>
>              <wsdl:input message="impl:getCapabilitiesRequest"
>     name="getCapabilitiesRequest"/>
>
>              <wsdl:output message="impl:getCapabilitiesResponse"
>     name="getCapabilitiesResponse"/>
>
>           </wsdl:operation>
>
>           <wsdl:operation name="getFeatureInfo" parameterOrder="version
> service exceptions Map Image StyledLayerDescriptor QueryLayer InfoFormat
> FeatureCount x y Vendor">
>
>              <wsdl:input message="impl:getFeatureInfoRequest"
>     name="getFeatureInfoRequest"/>
>
>              <wsdl:output message="impl:getFeatureInfoResponse"
>     name="getFeatureInfoResponse"/>
>
>           </wsdl:operation>
>
>        </wsdl:portType>
>
>        <wsdl:binding name="wmsSoapBinding" type="impl:Wms">
>
>           <wsdlsoap:binding style="rpc"
>     transport="http://schemas.xmlsoap.org/soap/http"/ >
>
>           <wsdl:operation name="getMap">
>
>              <wsdlsoap:operation soapAction=""/>
>
>              <wsdl:input name="getMapRequest">
>
>                 <wsdlsoap:body
>     encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
>     namespace="urn:Wms" use="encoded"/>
>
>              </wsdl:input>
>
>              <wsdl:output name="getMapResponse">
>
>                 <wsdlsoap:body
>     encodingStyle="http://schemas.xmlsoap.org/soap/encoding/ "
>     namespace="urn:Wms" use="encoded"/>
>
>              </wsdl:output>
>
>           </wsdl:operation>
>
>           <wsdl:operation name="getCapabilities">
>
>              <wsdlsoap:operation soapAction=""/>
>
>              <wsdl:input name="getCapabilitiesRequest">
>
>                 <wsdlsoap:body
>     encodingStyle=" http://schemas.xmlsoap.org/soap/encoding/"
>     namespace="urn:Wms" use="encoded"/>
>
>              </wsdl:input>
>
>              <wsdl:output name="getCapabilitiesResponse">
>
>                 <wsdlsoap:body
>     encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
>     namespace="urn:Wms" use="encoded"/>
>
>              </wsdl:output>
>
>           </wsdl:operation>
>
>           <wsdl:operation name="getFeatureInfo">
>
>              <wsdlsoap:operation soapAction=""/>
>
>              <wsdl:input name="getFeatureInfoRequest">
>
>                 <wsdlsoap:body
>     encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
>     namespace="urn:Wms" use="encoded"/>
>
>              </wsdl:input>
>
>              <wsdl:output name="getFeatureInfoResponse">
>
>                 <wsdlsoap:body
>     encodingStyle=" http://schemas.xmlsoap.org/soap/encoding/"
>     namespace="urn:Wms" use="encoded"/>
>
>              </wsdl:output>
>
>           </wsdl:operation>
>
>        </wsdl:binding>
>
>        <wsdl:service name="WmsService">
>
>           <wsdl:port binding="impl:wmsSoapBinding" name="wms">
>
>              <wsdlsoap:address
>     location=" http://localhost:8080/axis/services/wms"/>
>
>           </wsdl:port>
>
>        </wsdl:service>
>
>     </wsdl:definitions>
>
>
>
>
>
>
>     xsd file StyledLayerDescriptor.xsd:
>
>     <?xml version="1.0" encoding="UTF-8"?>
>     <xsd:schema targetNamespace="http://www.opengis.net/sld"
>                 xmlns:sld=" http://www.opengis.net/sld"
>                 xmlns:ogc="http://www.opengis.net/ogc"
>                 xmlns:xsd="http://www.w3.org/2001/XMLSchema "
>                 elementFormDefault="qualified">
>       <xsd:include schemaLocation="FeatureStyle.xsd"/>
>       <xsd:import namespace="http://www.opengis.net/ogc "
>                   schemaLocation="../../filter/1.0.0/filter.xsd"/>
>
>     <!--
>     ***********************************************************************
> --> <xsd:annotation>
>         <xsd:documentation>
>           STYLED LAYER DESCRIPTOR version 1.0.20 (2002-09-21)
>         </xsd:documentation>
>       </xsd:annotation>
>
>       <xsd:element name="StyledLayerDescriptor">
>         <xsd:annotation>
>           <xsd:documentation>
>             A StyledLayerDescriptor is a sequence of styled layers,
> represented at the first level by NamedLayer and UserLayer elements.
> </xsd:documentation>
>         </xsd:annotation>
>         <xsd:complexType>
>           <xsd:sequence>
>             <xsd:element ref="sld:Name" minOccurs="0"/>
>             <xsd:element ref="sld:Description" minOccurs="0"/>
>             <xsd:element ref="sld:EnvironmentVariables" minOccurs="0"/>
>             <xsd:element ref="sld:UseSLDLibrary" minOccurs="0"
>                                                  maxOccurs="unbounded"/>
>             <xsd:choice minOccurs="0" maxOccurs="unbounded">
>               <xsd:element ref="sld:NamedLayer"/>
>               <xsd:element ref="sld:UserLayer"/>
>             </xsd:choice>
>           </xsd:sequence>
>           <xsd:attribute name="version" type="sld:VersionType"
> use="required"/> </xsd:complexType>
>       </xsd:element>
>
>     <!--
>     ***********************************************************************
> --> <xsd:annotation>
>         <xsd:documentation>
>           RUN-TIME ENVIRONMENT VARIABLES
>         </xsd:documentation>
>       </xsd:annotation>
>
>       <xsd:element name="EnvironmentVariables">
>         <xsd:annotation>
>           <xsd:documentation>
>             An "EnvironmentVariables" element includes an XML blob which
>             can be used to declare the values to use for global environment
>             variables during the execution of the styling operations.
>             These variables may be refered to in styles and symbols in the
>             same way as feature properties.
>           </xsd:documentation>
>         </xsd:annotation>
>         <xsd:complexType>
>           <xsd:sequence>
>             <xsd:any/>
>           </xsd:sequence>
>         </xsd:complexType>
>       </xsd:element>
>
>     <!--
>     ***********************************************************************
> --> <xsd:annotation>
>         <xsd:documentation>
>           SLD LIBRARIES
>         </xsd:documentation>
>       </xsd:annotation>
>
>       <xsd:element name="UseSLDLibrary">
>         <xsd:annotation>
>           <xsd:documentation>
>             The UseSLDLibrary tag specifies that an external SLD document
>             should be used as a "library" of named layers and styles to
>             augment the set of named layers and styles that are available
>             for use inside of a WMS.  In the event of name collisions, the
>             SLD library takes precedence over the ones internal to the WMS.
>             Any number of libraries may be specified in an SLD and each
>             successive library takes precedence over the former ones in the
>             case of name collisions.
>           </xsd:documentation>
>         </xsd:annotation>
>         <xsd:complexType>
>           <xsd:sequence>
>             <xsd:element ref="sld:OnlineResource"/>
>           </xsd:sequence>
>         </xsd:complexType>
>       </xsd:element>
>
>     <!--
>     ***********************************************************************
> --> <xsd:annotation>
>         <xsd:documentation>
>           LAYERS AND STYLES
>         </xsd:documentation>
>       </xsd:annotation>
>
>       <xsd:element name="NamedLayer">
>         <xsd:annotation>
>           <xsd:documentation>
>             A NamedLayer is a layer of data that has a name advertised by a
> WMS. </xsd:documentation>
>         </xsd:annotation>
>         <xsd:complexType>
>           <xsd:sequence>
>             <xsd:element ref="sld:Name"/>
>             <xsd:element ref="sld:Description" minOccurs="0"/>
>             <xsd:element ref="sld:LayerFeatureConstraints" minOccurs="0"/>
>             <xsd:choice minOccurs="0" maxOccurs="unbounded">
>               <xsd:element ref="sld:NamedStyle"/>
>               <xsd:element ref="sld:UserStyle"/>
>             </xsd:choice>
>           </xsd:sequence>
>         </xsd:complexType>
>       </xsd:element>
>
>       <xsd:element name="NamedStyle">
>         <xsd:annotation>
>           <xsd:documentation>
>             A NamedStyle is used to refer to a style that has a name in a
> WMS. </xsd:documentation>
>         </xsd:annotation>
>         <xsd:complexType>
>           <xsd:sequence>
>             <xsd:element ref="sld:Name"/>
>             <xsd:element ref="sld:Description" minOccurs="0"/>
>           </xsd:sequence>
>         </xsd:complexType>
>       </xsd:element>
>
>       <xsd:element name="UserLayer">
>         <xsd:annotation>
>           <xsd:documentation>
>             A UserLayer allows a user-defined layer to be built from WFS
> and WCS data.
>           </xsd:documentation>
>         </xsd:annotation>
>         <xsd:complexType>
>           <xsd:sequence>
>             <xsd:element ref="sld:Name" minOccurs="0"/>
>             <xsd:element ref="sld:Description" minOccurs="0"/>
>             <xsd:element ref="sld:RemoteOWS" minOccurs="0"/>
>             <xsd:element ref="sld:LayerFeatureConstraints"/>
>             <xsd:element ref="sld:UserStyle" maxOccurs="unbounded"/>
>           </xsd:sequence>
>         </xsd:complexType>
>       </xsd:element>
>
>       <xsd:element name="RemoteOWS">
>         <xsd:annotation>
>           <xsd:documentation>
>             A RemoteOWS gives a reference to a remote WFS/WCS/other-OWS
> server. </xsd:documentation>
>         </xsd:annotation>
>         <xsd:complexType>
>           <xsd:sequence>
>             <xsd:element ref="sld:Service"/>
>             <xsd:element ref="sld:OnlineResource"/>
>           </xsd:sequence>
>         </xsd:complexType>
>       </xsd:element>
>
>       <xsd:element name="Service">
>         <xsd:annotation>
>           <xsd:documentation>
>             A Service refers to the type of a remote OWS server.
>           </xsd:documentation>
>         </xsd:annotation>
>         <xsd:simpleType>
>           <xsd:restriction base="xsd:string">
>             <xsd:enumeration value="WFS"/>
>             <xsd:enumeration value="WCS"/>
>           </xsd:restriction>
>         </xsd:simpleType>
>       </xsd:element>
>
>       <xsd:element name="LayerFeatureConstraints">
>         <xsd:annotation>
>           <xsd:documentation>
>             LayerFeatureConstraints define what features &amp; feature
> types are referenced in a layer.
>           </xsd:documentation>
>         </xsd:annotation>
>         <xsd:complexType>
>           <xsd:sequence>
>             <xsd:element ref="sld:FeatureTypeConstraint"
> maxOccurs="unbounded"/> </xsd:sequence>
>         </xsd:complexType>
>       </xsd:element>
>
>       <xsd:element name="FeatureTypeConstraint">
>         <xsd:annotation>
>           <xsd:documentation>
>             A FeatureTypeConstraint identifies a specific feature type and
>             supplies fitlering.
>           </xsd:documentation>
>         </xsd:annotation>
>         <xsd:complexType>
>           <xsd:sequence>
>             <xsd:element ref="sld:FeatureTypeName" minOccurs="0"/>
>             <xsd:element ref="ogc:Filter" minOccurs="0"/>
>             <xsd:element ref="sld:Extent" minOccurs="0"
> maxOccurs="unbounded"/> </xsd:sequence>
>         </xsd:complexType>
>       </xsd:element>
>
>       <xsd:element name="Extent">
>         <xsd:annotation>
>           <xsd:documentation>
>             An Extent gives feature/coverage/raster/matrix dimension
> extent. </xsd:documentation>
>         </xsd:annotation>
>         <xsd:complexType>
>           <xsd:sequence>
>             <xsd:element ref="sld:Name"/>
>             <xsd:element ref="sld:Value"/>
>           </xsd:sequence>
>         </xsd:complexType>
>       </xsd:element>
>       <xsd:element name="Value" type="xsd:string"/>
>
>       <xsd:element name="UserStyle">
>         <xsd:annotation>
>           <xsd:documentation>
>             A UserStyle allows user-defined styling and is semantically
>             equivalent to a WMS named style.
>           </xsd:documentation>
>         </xsd:annotation>
>         <xsd:complexType>
>           <xsd:sequence>
>             <xsd:element ref="sld:Name" minOccurs="0"/>
>             <xsd:element ref="sld:Description" minOccurs="0"/>
>             <xsd:element ref="sld:IsDefault" minOccurs="0"/>
>             <xsd:element ref="sld:FeatureStyle" maxOccurs="unbounded"/>
>           </xsd:sequence>
>         </xsd:complexType>
>       </xsd:element>
>       <xsd:element name="IsDefault" type="xsd:boolean"/>
>
>     </xsd:schema>

Re: Server.generalException - makeTypeElement() was told to create a type "{http://www.opengis.net/sld}>FeatureTypeConstraint", with no containing element

Posted by Ales St <st...@seznam.cz>.
Hi 
I removed that definition, and I tryed to rewrite my wsdl definition to document/literal  type,classes are generated. But when I tryed to se wsdl which is generated by server, the sam Axis error was generated and in server console was writed this: "Request Message type information has multiple parts that one single wrapped complexType.Use WRAPPED/LITERAL if interoping with some other soap stack becomes a problem." So I decided, that my wsdl is wrong, but I don´t know where is a mistake. I write my wsdl by inspirating some wsdl which I find on the web, because I can't wind some good definition, how to write it. So if you knew about some good, please send me it. And please see my wsdl,and write to me, where is a problem.
Thank you
            Ales

New wsdl:
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="urn:Wms"
 xmlns:tns="urn:Wms"
 xmlns:sld="http://www.opengis.net/sld" 
 xmlns:ows="http://www.opengis.net/ows"
xmlns:gml="http://www.opengis.net/gml"
 xmlns:apachesoap="http://xml.apache.org/xml-soap"
 xmlns:impl="urn:Wms"
 xmlns:intf="urn:Wms"
 xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" 
 xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
 xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
 xmlns:xsd="http://www.w3.org/2001/XMLSchema">


<wsdl:types>
  <xsd:schema targetNamespace="urn:Wms" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
     <xsd:import namespace=" http://www.opengis.net/ows"  schemaLocation="./wms_schemas.xsd"/>
     <xsd:import namespace="http://www.opengis.net/sld" schemaLocation="../sld/1.0.20/StyledLayerDescriptor.xsd"/>

<element name="QueryLayer" type="soapenc:string" minOccurs="0"/>
<element name="InfoFormat" type="soapenc:string" minOccurs="0"/>
<element name="FeatureCount" type="soapenc:int" minOccurs="0"/>

<element name="x" type="soapenc:int" minOccurs="0"/>

<element name="y" type="soapenc:int" minOccurs="0"/>

<element name="InfoFormat" type="soapenc:string" minOccurs="0"/>

<element name="getMapReturn" type="soapenc:base64Binary"/>
<element name="string" type="soapenc:string"/>
<element name="Map" type="ows:MapType"/>
<element name="Image" type="ows:ImageType"/>

  </xsd:schema></wsdl:types>


   <wsdl:message name="getMapResponse">

      <wsdl:part name="getMapReturn" element="tns:getMapReturn"/>

   </wsdl:message>

   <wsdl:message name="getCapabilitiesRequest">

      <wsdl:part name="version" element="ows:version"/>
      <wsdl:part name="service" element="ows:service"/>

      <wsdl:part name="exceptions" element="ows:exceptions"/>

      <wsdl:part name="section" element="ows:section"/>

   </wsdl:message>

   <wsdl:message name="getCapabilitiesResponse">

      <wsdl:part name="getCapabilitiesReturn" element="tns:string"/>
   </wsdl:message>

   <wsdl:message name="getFeatureInfoResponse">

      <wsdl:part name="getFeatureInfoReturn" element="tns:string"/>

   </wsdl:message>

   <wsdl:message name="getFeatureInfoRequest">

      <wsdl:part name="version" element="ows:version"/>
      <wsdl:part name="service" element="ows:service"/>

      <wsdl:part name="exceptions" element="ows:exceptions"/>

	 <wsdl:part name="Map" element="tns:Map"/>

     <wsdl:part name="Image" element="tns:Image"/>

      <wsdl:part name="StyledLayerDescriptor" element="sld:StyledLayerDescriptor"/>

<wsdl:part name="QueryLayer" element="tns:QueryLayer"/>
<wsdl:part name="InfoFormat" element="tns:InfoFormat" />
<wsdl:part name="FeatureCount" element="tns:FeatureCount" />
<wsdl:part name="x" element="tns:x" />
<wsdl:part name="y" element="tns:y" />
<wsdl:part name="Vendor" element="ows:Vendor" />

   </wsdl:message>

   <wsdl:message name="getMapRequest">

      <wsdl:part name="version" element="ows:version"/>

      <wsdl:part name="service" element="ows:service"/>
      <wsdl:part name="exceptions" element="ows:exceptions"/>

      <wsdl:part name="Map" element="tns:Map"/>

     <wsdl:part name="Image" element="tns:Image"/>

      <wsdl:part name="StyledLayerDescriptor" element="sld:StyledLayerDescriptor"/>

   </wsdl:message>

   <wsdl:portType name="Wms">
      <wsdl:operation name="getMap" parameterOrder="version service exceptions Map Image StyledLayerDescriptor">

         <wsdl:input message="impl:getMapRequest" name="getMapRequest"/>

         <wsdl:output message="impl:getMapResponse" name="getMapResponse"/>

      </wsdl:operation>

      <wsdl:operation name="getCapabilities" parameterOrder="version service exceptions section">

         <wsdl:input message="impl:getCapabilitiesRequest" name="getCapabilitiesRequest"/>
         <wsdl:output message="impl:getCapabilitiesResponse" name="getCapabilitiesResponse"/>

      </wsdl:operation>

      <wsdl:operation name="getFeatureInfo" parameterOrder="version service exceptions Map Image StyledLayerDescriptor QueryLayer InfoFormat FeatureCount x y Vendor">

         <wsdl:input message="impl:getFeatureInfoRequest" name="getFeatureInfoRequest"/>

         <wsdl:output message="impl:getFeatureInfoResponse" name="getFeatureInfoResponse"/>

      </wsdl:operation>
   </wsdl:portType>

   <wsdl:binding name="wmsSoapBinding" type="impl:Wms">

      <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>

      <wsdl:operation name="getMap">

         <wsdlsoap:operation soapAction=""/>

         <wsdl:input name="getMapRequest">
            <wsdlsoap:body  namespace="urn:Wms" use="literal"/>

         </wsdl:input>

         <wsdl:output name="getMapResponse">

            <wsdlsoap:body  namespace="urn:Wms" use="literal"/>

         </wsdl:output>

      </wsdl:operation>
      <wsdl:operation name="getCapabilities">

         <wsdlsoap:operation soapAction=""/>

         <wsdl:input name="getCapabilitiesRequest">

            <wsdlsoap:body  namespace="urn:Wms" use="literal"/>

         </wsdl:input>

         <wsdl:output name="getCapabilitiesResponse">
            <wsdlsoap:body  namespace="urn:Wms" use="literal"/>

         </wsdl:output>

      </wsdl:operation>

      <wsdl:operation name="getFeatureInfo">

         <wsdlsoap:operation soapAction=""/>

         <wsdl:input name="getFeatureInfoRequest">
            <wsdlsoap:body  namespace="urn:Wms" use="literal"/>

         </wsdl:input>

         <wsdl:output name="getFeatureInfoResponse">

            <wsdlsoap:body  namespace="urn:Wms" use="literal"/>

         </wsdl:output>

      </wsdl:operation>
   </wsdl:binding>

   <wsdl:service name="WmsService">

      <wsdl:port binding="impl:wmsSoapBinding" name="wms">

         <wsdlsoap:address location="http://localhost:8080/axis/services/wms"/>

      </wsdl:port>

   </wsdl:service>
</wsdl:definitions>



  ----- Original Message ----- 
  From: Anne Thomas Manes 
  To: axis-user@ws.apache.org 
  Sent: Tuesday, December 13, 2005 1:56 AM
  Subject: Re: Server.generalException - makeTypeElement() was told to create a type "{http://www.opengis.net/sld}>FeatureTypeConstraint", with no containing element


  This definition in your urn:Wms schema should be removed:

  <xsd:element name="StyledLayerDescriptor" ref="sld:StyledLayerDescriptor"

  minOccurs="0"/>

  The element is defined in the sld schema. There's no reason to define it again in the Wms schema. Besides, you can't name an element and reference another element in the same definition. 


  Anne

  ps -- with such a complex schema, I strongly encourage you to switch to document/literal rather than rpc/encoded.


  On 12/11/05, Ales St < stanax@seznam.cz> wrote:
    Hi
    I have a problem, I use Axis 1.3. and I generate classes from wsdl by 
    wsdl2java and when I translate it and copy to Tomcat and tryed to see a list
    of services and their wsdl it write this:

    AXIS error
    Sorry, something seems to have gone wrong... here are the details:
    Fault - makeTypeElement() was told to create a type 
    "{http://www.opengis.net/sld}>FeatureTypeConstraint", with no containing
    element
    AxisFault
    faultCode:
    { http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
    faultSubcode:
    faultString: makeTypeElement() was told to create a type
    "{http://www.opengis.net/sld} >FeatureTypeConstraint", with no containing
    element
    faultActor:  faultNode:  faultDetail:
    {http://xml.apache.org/axis/}hostname:pocitac


    So can enybody write me what is wrong? It is wery important for me. Down I
    enclose wsdl and xsd file.If you want to see all importants files, you can
    find them on www.sweb.cz/stanax/xsd.zip
    Tahnks
                Ales

    Wsdl:
    <?xml version="1.0" encoding="UTF-8"?>
    <wsdl:definitions targetNamespace="urn:Wms"
    xmlns:tns="urn:Wms" 
    xmlns:sld="http://www.opengis.net/sld"
    xmlns:ows="http://www.opengis.net/ows"
    xmlns:gml=" http://www.opengis.net/gml"
    xmlns:apachesoap="http://xml.apache.org/xml-soap"
    xmlns:impl="urn:Wms"
    xmlns:intf="urn:Wms"
    xmlns:soapenc=" http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    xmlns:wsdlsoap=" http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema">


    <wsdl:types> 
      <xsd:schema targetNamespace="urn:Wms"
    xmlns="http://www.w3.org/2001/XMLSchema"
    xmlns:soapenc=" http://schemas.xmlsoap.org/soap/encoding/">
         <xsd:import namespace=" http://www.opengis.net/ows"
    schemaLocation="./wms_schemas.xsd"/> 
         <xsd:import namespace="http://www.opengis.net/sld"
    schemaLocation="../sld/1.0.20/StyledLayerDescriptor.xsd"/>

    <xsd:element name="StyledLayerDescriptor" ref="sld:StyledLayerDescriptor" 
    minOccurs="0"/>

    <element name="QueryLayer" type="soapenc:string" minOccurs="0"/>
    <element name="InfoFormat" type="soapenc:string" minOccurs="0"/> 
    <element name="FeatureCount" type="soapenc:int" minOccurs="0"/>

    <element name="x" type="soapenc:int" minOccurs="0"/>
    <element name="y" type="soapenc:int" minOccurs="0"/> 

      </xsd:schema>

    </wsdl:types>


       <wsdl:message name="getMapResponse">

          <wsdl:part name="getMapReturn" type="soapenc:base64Binary"/> 

       </wsdl:message>

       <wsdl:message name="getCapabilitiesRequest">

          <wsdl:part name="version" element="ows:version"/>

          <wsdl:part name="service" element="ows:service"/> 

          <wsdl:part name="exceptions" element="ows:exceptions"/>

          <wsdl:part name="section" element="ows:section"/>

       </wsdl:message>

       <wsdl:message name="getCapabilitiesResponse">

          <wsdl:part name="getCapabilitiesReturn" type="soapenc:string"/>

       </wsdl:message>

       <wsdl:message name="getFeatureInfoResponse"> 

          <wsdl:part name="getFeatureInfoReturn" type="soapenc:string"/>

       </wsdl:message>

       <wsdl:message name="getFeatureInfoRequest">

          <wsdl:part name="version" element="ows:version"/> 

          <wsdl:part name="service" element="ows:service"/>

          <wsdl:part name="exceptions" element="ows:exceptions"/>

      <wsdl:part name="Map" type="ows:MapType"/> 

         <wsdl:part name="Image" type="ows:ImageType"/>

          <wsdl:part name="StyledLayerDescriptor"
    element="tns:StyledLayerDescriptor"/>

    <wsdl:part name="QueryLayer" element="tns:QueryLayer"/> 
    <wsdl:part name="InfoFormat" element="tns:InfoFormat" />
    <wsdl:part name="FeatureCount" element="tns:FeatureCount" />
    <wsdl:part name="x" element="tns:x" /> 
    <wsdl:part name="y" element="tns:y" />
    <wsdl:part name="Vendor" element="ows:Vendor" />

       </wsdl:message>

       <wsdl:message name="getMapRequest"> 

          <wsdl:part name="version" element="ows:version"/>

          <wsdl:part name="service" element="ows:service"/>

          <wsdl:part name="exceptions" element="ows:exceptions"/> 

          <wsdl:part name="Map" type="ows:MapType"/>

          <wsdl:part name="Image" type="ows:ImageType"/>

          <wsdl:part name="StyledLayerDescriptor" 
    element="tns:StyledLayerDescriptor"/>


       </wsdl:message>

       <wsdl:portType name="Wms">

          <wsdl:operation name="getMap" parameterOrder="version service 
    exceptions Map Image StyledLayerDescriptor">

             <wsdl:input message="impl:getMapRequest" name="getMapRequest"/>

             <wsdl:output message="impl:getMapResponse" name="getMapResponse"/> 

          </wsdl:operation>

          <wsdl:operation name="getCapabilities" parameterOrder="version service
    exceptions section">

             <wsdl:input message="impl:getCapabilitiesRequest" 
    name="getCapabilitiesRequest"/>

             <wsdl:output message="impl:getCapabilitiesResponse"
    name="getCapabilitiesResponse"/>

          </wsdl:operation>

          <wsdl:operation name="getFeatureInfo" parameterOrder="version service
    exceptions Map Image StyledLayerDescriptor QueryLayer InfoFormat
    FeatureCount x y Vendor">

             <wsdl:input message="impl:getFeatureInfoRequest" 
    name="getFeatureInfoRequest"/>

             <wsdl:output message="impl:getFeatureInfoResponse"
    name="getFeatureInfoResponse"/>

          </wsdl:operation>

       </wsdl:portType> 

       <wsdl:binding name="wmsSoapBinding" type="impl:Wms">

          <wsdlsoap:binding style="rpc"
    transport="http://schemas.xmlsoap.org/soap/http"/ >

          <wsdl:operation name="getMap">

             <wsdlsoap:operation soapAction=""/>

             <wsdl:input name="getMapRequest">

                <wsdlsoap:body 
    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
    namespace="urn:Wms" use="encoded"/>

             </wsdl:input> 

             <wsdl:output name="getMapResponse">

                <wsdlsoap:body
    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/ "
    namespace="urn:Wms" use="encoded"/>

             </wsdl:output>

          </wsdl:operation>

          <wsdl:operation name="getCapabilities">

             <wsdlsoap:operation soapAction=""/>

             <wsdl:input name="getCapabilitiesRequest">

                <wsdlsoap:body
    encodingStyle=" http://schemas.xmlsoap.org/soap/encoding/"
    namespace="urn:Wms" use="encoded"/>

             </wsdl:input>

             <wsdl:output name="getCapabilitiesResponse"> 

                <wsdlsoap:body
    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
    namespace="urn:Wms" use="encoded"/> 

             </wsdl:output>

          </wsdl:operation>

          <wsdl:operation name="getFeatureInfo">

             <wsdlsoap:operation soapAction=""/>

             <wsdl:input name="getFeatureInfoRequest"> 

                <wsdlsoap:body
    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
    namespace="urn:Wms" use="encoded"/> 

             </wsdl:input>

             <wsdl:output name="getFeatureInfoResponse">

                <wsdlsoap:body
    encodingStyle=" http://schemas.xmlsoap.org/soap/encoding/"
    namespace="urn:Wms" use="encoded"/>

             </wsdl:output>

          </wsdl:operation>

       </wsdl:binding>

       <wsdl:service name="WmsService">

          <wsdl:port binding="impl:wmsSoapBinding" name="wms">

             <wsdlsoap:address
    location=" http://localhost:8080/axis/services/wms"/>

          </wsdl:port>

       </wsdl:service>

    </wsdl:definitions>






    xsd file StyledLayerDescriptor.xsd:

    <?xml version="1.0" encoding="UTF-8"?>
    <xsd:schema targetNamespace="http://www.opengis.net/sld"
                xmlns:sld=" http://www.opengis.net/sld"
                xmlns:ogc="http://www.opengis.net/ogc"
                xmlns:xsd="http://www.w3.org/2001/XMLSchema "
                elementFormDefault="qualified">
      <xsd:include schemaLocation="FeatureStyle.xsd"/>
      <xsd:import namespace="http://www.opengis.net/ogc "
                  schemaLocation="../../filter/1.0.0/filter.xsd"/>

    <!--
    *********************************************************************** -->
      <xsd:annotation>
        <xsd:documentation> 
          STYLED LAYER DESCRIPTOR version 1.0.20 (2002-09-21)
        </xsd:documentation>
      </xsd:annotation>

      <xsd:element name="StyledLayerDescriptor">
        <xsd:annotation> 
          <xsd:documentation>
            A StyledLayerDescriptor is a sequence of styled layers, represented
            at the first level by NamedLayer and UserLayer elements.
          </xsd:documentation>
        </xsd:annotation>
        <xsd:complexType>
          <xsd:sequence>
            <xsd:element ref="sld:Name" minOccurs="0"/>
            <xsd:element ref="sld:Description" minOccurs="0"/> 
            <xsd:element ref="sld:EnvironmentVariables" minOccurs="0"/>
            <xsd:element ref="sld:UseSLDLibrary" minOccurs="0"
                                                 maxOccurs="unbounded"/>
            <xsd:choice minOccurs="0" maxOccurs="unbounded">
              <xsd:element ref="sld:NamedLayer"/>
              <xsd:element ref="sld:UserLayer"/> 
            </xsd:choice>
          </xsd:sequence>
          <xsd:attribute name="version" type="sld:VersionType" use="required"/>
        </xsd:complexType>
      </xsd:element> 

    <!--
    *********************************************************************** -->
      <xsd:annotation>
        <xsd:documentation>
          RUN-TIME ENVIRONMENT VARIABLES
        </xsd:documentation> 
      </xsd:annotation>

      <xsd:element name="EnvironmentVariables">
        <xsd:annotation>
          <xsd:documentation>
            An "EnvironmentVariables" element includes an XML blob which 
            can be used to declare the values to use for global environment
            variables during the execution of the styling operations.
            These variables may be refered to in styles and symbols in the
            same way as feature properties.
          </xsd:documentation>
        </xsd:annotation>
        <xsd:complexType>
          <xsd:sequence>
            <xsd:any/>
          </xsd:sequence> 
        </xsd:complexType>
      </xsd:element>

    <!--
    *********************************************************************** -->
      <xsd:annotation>
        <xsd:documentation>
          SLD LIBRARIES 
        </xsd:documentation>
      </xsd:annotation>

      <xsd:element name="UseSLDLibrary">
        <xsd:annotation>
          <xsd:documentation>
            The UseSLDLibrary tag specifies that an external SLD document 
            should be used as a "library" of named layers and styles to
            augment the set of named layers and styles that are available
            for use inside of a WMS.  In the event of name collisions, the 
            SLD library takes precedence over the ones internal to the WMS.
            Any number of libraries may be specified in an SLD and each
            successive library takes precedence over the former ones in the 
            case of name collisions.
          </xsd:documentation>
        </xsd:annotation>
        <xsd:complexType>
          <xsd:sequence>
            <xsd:element ref="sld:OnlineResource"/> 
          </xsd:sequence>
        </xsd:complexType>
      </xsd:element>

    <!--
    *********************************************************************** -->
      <xsd:annotation>
        <xsd:documentation> 
          LAYERS AND STYLES
        </xsd:documentation>
      </xsd:annotation>

      <xsd:element name="NamedLayer">
        <xsd:annotation>
          <xsd:documentation>
            A NamedLayer is a layer of data that has a name advertised by a WMS. 
          </xsd:documentation>
        </xsd:annotation>
        <xsd:complexType>
          <xsd:sequence>
            <xsd:element ref="sld:Name"/>
            <xsd:element ref="sld:Description" minOccurs="0"/> 
            <xsd:element ref="sld:LayerFeatureConstraints" minOccurs="0"/>
            <xsd:choice minOccurs="0" maxOccurs="unbounded">
              <xsd:element ref="sld:NamedStyle"/> 
              <xsd:element ref="sld:UserStyle"/>
            </xsd:choice>
          </xsd:sequence>
        </xsd:complexType>
      </xsd:element>

      <xsd:element name="NamedStyle"> 
        <xsd:annotation>
          <xsd:documentation>
            A NamedStyle is used to refer to a style that has a name in a WMS.
          </xsd:documentation>
        </xsd:annotation>
        <xsd:complexType> 
          <xsd:sequence>
            <xsd:element ref="sld:Name"/>
            <xsd:element ref="sld:Description" minOccurs="0"/>
          </xsd:sequence>
        </xsd:complexType> 
      </xsd:element>

      <xsd:element name="UserLayer">
        <xsd:annotation>
          <xsd:documentation>
            A UserLayer allows a user-defined layer to be built from WFS and 
            WCS data.
          </xsd:documentation>
        </xsd:annotation>
        <xsd:complexType>
          <xsd:sequence>
            <xsd:element ref="sld:Name" minOccurs="0"/> 
            <xsd:element ref="sld:Description" minOccurs="0"/>
            <xsd:element ref="sld:RemoteOWS" minOccurs="0"/>
            <xsd:element ref="sld:LayerFeatureConstraints"/> 
            <xsd:element ref="sld:UserStyle" maxOccurs="unbounded"/>
          </xsd:sequence>
        </xsd:complexType>
      </xsd:element>

      <xsd:element name="RemoteOWS"> 
        <xsd:annotation>
          <xsd:documentation>
            A RemoteOWS gives a reference to a remote WFS/WCS/other-OWS server.
          </xsd:documentation>
        </xsd:annotation>
        <xsd:complexType> 
          <xsd:sequence>
            <xsd:element ref="sld:Service"/>
            <xsd:element ref="sld:OnlineResource"/>
          </xsd:sequence>
        </xsd:complexType>
      </xsd:element>

      <xsd:element name="Service">
        <xsd:annotation>
          <xsd:documentation>
            A Service refers to the type of a remote OWS server.
          </xsd:documentation> 
        </xsd:annotation>
        <xsd:simpleType>
          <xsd:restriction base="xsd:string">
            <xsd:enumeration value="WFS"/>
            <xsd:enumeration value="WCS"/> 
          </xsd:restriction>
        </xsd:simpleType>
      </xsd:element>

      <xsd:element name="LayerFeatureConstraints">
        <xsd:annotation>
          <xsd:documentation> 
            LayerFeatureConstraints define what features &amp; feature types are
            referenced in a layer.
          </xsd:documentation>
        </xsd:annotation>
        <xsd:complexType>
          <xsd:sequence> 
            <xsd:element ref="sld:FeatureTypeConstraint" maxOccurs="unbounded"/>
          </xsd:sequence>
        </xsd:complexType>
      </xsd:element>

      <xsd:element name="FeatureTypeConstraint"> 
        <xsd:annotation>
          <xsd:documentation>
            A FeatureTypeConstraint identifies a specific feature type and
            supplies fitlering.
          </xsd:documentation>
        </xsd:annotation> 
        <xsd:complexType>
          <xsd:sequence>
            <xsd:element ref="sld:FeatureTypeName" minOccurs="0"/>
            <xsd:element ref="ogc:Filter" minOccurs="0"/> 
            <xsd:element ref="sld:Extent" minOccurs="0" maxOccurs="unbounded"/>
          </xsd:sequence>
        </xsd:complexType>
      </xsd:element>

      <xsd:element name="Extent"> 
        <xsd:annotation>
          <xsd:documentation>
            An Extent gives feature/coverage/raster/matrix dimension extent.
          </xsd:documentation>
        </xsd:annotation>
        <xsd:complexType> 
          <xsd:sequence>
            <xsd:element ref="sld:Name"/>
            <xsd:element ref="sld:Value"/>
          </xsd:sequence>
        </xsd:complexType>
      </xsd:element> 
      <xsd:element name="Value" type="xsd:string"/>

      <xsd:element name="UserStyle">
        <xsd:annotation>
          <xsd:documentation>
            A UserStyle allows user-defined styling and is semantically 
            equivalent to a WMS named style.
          </xsd:documentation>
        </xsd:annotation>
        <xsd:complexType>
          <xsd:sequence>
            <xsd:element ref="sld:Name" minOccurs="0"/> 
            <xsd:element ref="sld:Description" minOccurs="0"/>
            <xsd:element ref="sld:IsDefault" minOccurs="0"/>
            <xsd:element ref="sld:FeatureStyle" maxOccurs="unbounded"/> 
          </xsd:sequence>
        </xsd:complexType>
      </xsd:element>
      <xsd:element name="IsDefault" type="xsd:boolean"/>

    </xsd:schema>




Re: Server.generalException - makeTypeElement() was told to create a type "{http://www.opengis.net/sld}>FeatureTypeConstraint", with no containing element

Posted by Anne Thomas Manes <at...@gmail.com>.
This definition in your urn:Wms schema should be removed:

<xsd:element name="StyledLayerDescriptor" ref="sld:StyledLayerDescriptor"
minOccurs="0"/>

The element is defined in the sld schema. There's no reason to define it
again in the Wms schema. Besides, you can't name an element and reference
another element in the same definition.

Anne

ps -- with such a complex schema, I strongly encourage you to switch to
document/literal rather than rpc/encoded.

On 12/11/05, Ales St <st...@seznam.cz> wrote:
>
> Hi
> I have a problem, I use Axis 1.3. and I generate classes from wsdl by
> wsdl2java and when I translate it and copy to Tomcat and tryed to see a
> list
> of services and their wsdl it write this:
>
> AXIS error
> Sorry, something seems to have gone wrong... here are the details:
> Fault - makeTypeElement() was told to create a type
> "{http://www.opengis.net/sld}>FeatureTypeConstraint", with no containing
> element
> AxisFault
> faultCode:
> {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
> faultSubcode:
> faultString: makeTypeElement() was told to create a type
> "{http://www.opengis.net/sld}>FeatureTypeConstraint", with no containing
> element
> faultActor:  faultNode:  faultDetail:
> {http://xml.apache.org/axis/}hostname:pocitac
>
>
> So can enybody write me what is wrong? It is wery important for me. Down I
> enclose wsdl and xsd file.If you want to see all importants files, you can
> find them on www.sweb.cz/stanax/xsd.zip
> Tahnks
>             Ales
>
> Wsdl:
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions targetNamespace="urn:Wms"
> xmlns:tns="urn:Wms"
> xmlns:sld="http://www.opengis.net/sld"
> xmlns:ows="http://www.opengis.net/ows"
> xmlns:gml="http://www.opengis.net/gml"
> xmlns:apachesoap="http://xml.apache.org/xml-soap"
> xmlns:impl="urn:Wms"
> xmlns:intf="urn:Wms"
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
> xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema">
>
>
> <wsdl:types>
>   <xsd:schema targetNamespace="urn:Wms"
> xmlns="http://www.w3.org/2001/XMLSchema"
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
>      <xsd:import namespace=" http://www.opengis.net/ows"
> schemaLocation="./wms_schemas.xsd"/>
>      <xsd:import namespace="http://www.opengis.net/sld"
> schemaLocation="../sld/1.0.20/StyledLayerDescriptor.xsd"/>
>
> <xsd:element name="StyledLayerDescriptor" ref="sld:StyledLayerDescriptor"
> minOccurs="0"/>
>
> <element name="QueryLayer" type="soapenc:string" minOccurs="0"/>
> <element name="InfoFormat" type="soapenc:string" minOccurs="0"/>
> <element name="FeatureCount" type="soapenc:int" minOccurs="0"/>
>
> <element name="x" type="soapenc:int" minOccurs="0"/>
> <element name="y" type="soapenc:int" minOccurs="0"/>
>
>   </xsd:schema>
>
> </wsdl:types>
>
>
>    <wsdl:message name="getMapResponse">
>
>       <wsdl:part name="getMapReturn" type="soapenc:base64Binary"/>
>
>    </wsdl:message>
>
>    <wsdl:message name="getCapabilitiesRequest">
>
>       <wsdl:part name="version" element="ows:version"/>
>
>       <wsdl:part name="service" element="ows:service"/>
>
>       <wsdl:part name="exceptions" element="ows:exceptions"/>
>
>       <wsdl:part name="section" element="ows:section"/>
>
>    </wsdl:message>
>
>    <wsdl:message name="getCapabilitiesResponse">
>
>       <wsdl:part name="getCapabilitiesReturn" type="soapenc:string"/>
>
>    </wsdl:message>
>
>    <wsdl:message name="getFeatureInfoResponse">
>
>       <wsdl:part name="getFeatureInfoReturn" type="soapenc:string"/>
>
>    </wsdl:message>
>
>    <wsdl:message name="getFeatureInfoRequest">
>
>       <wsdl:part name="version" element="ows:version"/>
>
>       <wsdl:part name="service" element="ows:service"/>
>
>       <wsdl:part name="exceptions" element="ows:exceptions"/>
>
>   <wsdl:part name="Map" type="ows:MapType"/>
>
>      <wsdl:part name="Image" type="ows:ImageType"/>
>
>       <wsdl:part name="StyledLayerDescriptor"
> element="tns:StyledLayerDescriptor"/>
>
> <wsdl:part name="QueryLayer" element="tns:QueryLayer"/>
> <wsdl:part name="InfoFormat" element="tns:InfoFormat" />
> <wsdl:part name="FeatureCount" element="tns:FeatureCount" />
> <wsdl:part name="x" element="tns:x" />
> <wsdl:part name="y" element="tns:y" />
> <wsdl:part name="Vendor" element="ows:Vendor" />
>
>    </wsdl:message>
>
>    <wsdl:message name="getMapRequest">
>
>       <wsdl:part name="version" element="ows:version"/>
>
>       <wsdl:part name="service" element="ows:service"/>
>
>       <wsdl:part name="exceptions" element="ows:exceptions"/>
>
>       <wsdl:part name="Map" type="ows:MapType"/>
>
>       <wsdl:part name="Image" type="ows:ImageType"/>
>
>       <wsdl:part name="StyledLayerDescriptor"
> element="tns:StyledLayerDescriptor"/>
>
>
>    </wsdl:message>
>
>    <wsdl:portType name="Wms">
>
>       <wsdl:operation name="getMap" parameterOrder="version service
> exceptions Map Image StyledLayerDescriptor">
>
>          <wsdl:input message="impl:getMapRequest" name="getMapRequest"/>
>
>          <wsdl:output message="impl:getMapResponse"
> name="getMapResponse"/>
>
>       </wsdl:operation>
>
>       <wsdl:operation name="getCapabilities" parameterOrder="version
> service
> exceptions section">
>
>          <wsdl:input message="impl:getCapabilitiesRequest"
> name="getCapabilitiesRequest"/>
>
>          <wsdl:output message="impl:getCapabilitiesResponse"
> name="getCapabilitiesResponse"/>
>
>       </wsdl:operation>
>
>       <wsdl:operation name="getFeatureInfo" parameterOrder="version
> service
> exceptions Map Image StyledLayerDescriptor QueryLayer InfoFormat
> FeatureCount x y Vendor">
>
>          <wsdl:input message="impl:getFeatureInfoRequest"
> name="getFeatureInfoRequest"/>
>
>          <wsdl:output message="impl:getFeatureInfoResponse"
> name="getFeatureInfoResponse"/>
>
>       </wsdl:operation>
>
>    </wsdl:portType>
>
>    <wsdl:binding name="wmsSoapBinding" type="impl:Wms">
>
>       <wsdlsoap:binding style="rpc"
> transport="http://schemas.xmlsoap.org/soap/http"/>
>
>       <wsdl:operation name="getMap">
>
>          <wsdlsoap:operation soapAction=""/>
>
>          <wsdl:input name="getMapRequest">
>
>             <wsdlsoap:body
> encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> namespace="urn:Wms" use="encoded"/>
>
>          </wsdl:input>
>
>          <wsdl:output name="getMapResponse">
>
>             <wsdlsoap:body
> encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> namespace="urn:Wms" use="encoded"/>
>
>          </wsdl:output>
>
>       </wsdl:operation>
>
>       <wsdl:operation name="getCapabilities">
>
>          <wsdlsoap:operation soapAction=""/>
>
>          <wsdl:input name="getCapabilitiesRequest">
>
>             <wsdlsoap:body
> encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> namespace="urn:Wms" use="encoded"/>
>
>          </wsdl:input>
>
>          <wsdl:output name="getCapabilitiesResponse">
>
>             <wsdlsoap:body
> encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> namespace="urn:Wms" use="encoded"/>
>
>          </wsdl:output>
>
>       </wsdl:operation>
>
>       <wsdl:operation name="getFeatureInfo">
>
>          <wsdlsoap:operation soapAction=""/>
>
>          <wsdl:input name="getFeatureInfoRequest">
>
>             <wsdlsoap:body
> encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> namespace="urn:Wms" use="encoded"/>
>
>          </wsdl:input>
>
>          <wsdl:output name="getFeatureInfoResponse">
>
>             <wsdlsoap:body
> encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> namespace="urn:Wms" use="encoded"/>
>
>          </wsdl:output>
>
>       </wsdl:operation>
>
>    </wsdl:binding>
>
>    <wsdl:service name="WmsService">
>
>       <wsdl:port binding="impl:wmsSoapBinding" name="wms">
>
>          <wsdlsoap:address
> location="http://localhost:8080/axis/services/wms"/>
>
>       </wsdl:port>
>
>    </wsdl:service>
>
> </wsdl:definitions>
>
>
>
>
>
>
> xsd file StyledLayerDescriptor.xsd:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <xsd:schema targetNamespace="http://www.opengis.net/sld"
>             xmlns:sld="http://www.opengis.net/sld"
>             xmlns:ogc="http://www.opengis.net/ogc"
>             xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>             elementFormDefault="qualified">
>   <xsd:include schemaLocation="FeatureStyle.xsd"/>
>   <xsd:import namespace="http://www.opengis.net/ogc"
>               schemaLocation="../../filter/1.0.0/filter.xsd"/>
>
> <!--
> ***********************************************************************
> -->
>   <xsd:annotation>
>     <xsd:documentation>
>       STYLED LAYER DESCRIPTOR version 1.0.20 (2002-09-21)
>     </xsd:documentation>
>   </xsd:annotation>
>
>   <xsd:element name="StyledLayerDescriptor">
>     <xsd:annotation>
>       <xsd:documentation>
>         A StyledLayerDescriptor is a sequence of styled layers,
> represented
>         at the first level by NamedLayer and UserLayer elements.
>       </xsd:documentation>
>     </xsd:annotation>
>     <xsd:complexType>
>       <xsd:sequence>
>         <xsd:element ref="sld:Name" minOccurs="0"/>
>         <xsd:element ref="sld:Description" minOccurs="0"/>
>         <xsd:element ref="sld:EnvironmentVariables" minOccurs="0"/>
>         <xsd:element ref="sld:UseSLDLibrary" minOccurs="0"
>                                              maxOccurs="unbounded"/>
>         <xsd:choice minOccurs="0" maxOccurs="unbounded">
>           <xsd:element ref="sld:NamedLayer"/>
>           <xsd:element ref="sld:UserLayer"/>
>         </xsd:choice>
>       </xsd:sequence>
>       <xsd:attribute name="version" type="sld:VersionType"
> use="required"/>
>     </xsd:complexType>
>   </xsd:element>
>
> <!--
> ***********************************************************************
> -->
>   <xsd:annotation>
>     <xsd:documentation>
>       RUN-TIME ENVIRONMENT VARIABLES
>     </xsd:documentation>
>   </xsd:annotation>
>
>   <xsd:element name="EnvironmentVariables">
>     <xsd:annotation>
>       <xsd:documentation>
>         An "EnvironmentVariables" element includes an XML blob which
>         can be used to declare the values to use for global environment
>         variables during the execution of the styling operations.
>         These variables may be refered to in styles and symbols in the
>         same way as feature properties.
>       </xsd:documentation>
>     </xsd:annotation>
>     <xsd:complexType>
>       <xsd:sequence>
>         <xsd:any/>
>       </xsd:sequence>
>     </xsd:complexType>
>   </xsd:element>
>
> <!--
> ***********************************************************************
> -->
>   <xsd:annotation>
>     <xsd:documentation>
>       SLD LIBRARIES
>     </xsd:documentation>
>   </xsd:annotation>
>
>   <xsd:element name="UseSLDLibrary">
>     <xsd:annotation>
>       <xsd:documentation>
>         The UseSLDLibrary tag specifies that an external SLD document
>         should be used as a "library" of named layers and styles to
>         augment the set of named layers and styles that are available
>         for use inside of a WMS.  In the event of name collisions, the
>         SLD library takes precedence over the ones internal to the WMS.
>         Any number of libraries may be specified in an SLD and each
>         successive library takes precedence over the former ones in the
>         case of name collisions.
>       </xsd:documentation>
>     </xsd:annotation>
>     <xsd:complexType>
>       <xsd:sequence>
>         <xsd:element ref="sld:OnlineResource"/>
>       </xsd:sequence>
>     </xsd:complexType>
>   </xsd:element>
>
> <!--
> ***********************************************************************
> -->
>   <xsd:annotation>
>     <xsd:documentation>
>       LAYERS AND STYLES
>     </xsd:documentation>
>   </xsd:annotation>
>
>   <xsd:element name="NamedLayer">
>     <xsd:annotation>
>       <xsd:documentation>
>         A NamedLayer is a layer of data that has a name advertised by a
> WMS.
>       </xsd:documentation>
>     </xsd:annotation>
>     <xsd:complexType>
>       <xsd:sequence>
>         <xsd:element ref="sld:Name"/>
>         <xsd:element ref="sld:Description" minOccurs="0"/>
>         <xsd:element ref="sld:LayerFeatureConstraints" minOccurs="0"/>
>         <xsd:choice minOccurs="0" maxOccurs="unbounded">
>           <xsd:element ref="sld:NamedStyle"/>
>           <xsd:element ref="sld:UserStyle"/>
>         </xsd:choice>
>       </xsd:sequence>
>     </xsd:complexType>
>   </xsd:element>
>
>   <xsd:element name="NamedStyle">
>     <xsd:annotation>
>       <xsd:documentation>
>         A NamedStyle is used to refer to a style that has a name in a WMS.
>       </xsd:documentation>
>     </xsd:annotation>
>     <xsd:complexType>
>       <xsd:sequence>
>         <xsd:element ref="sld:Name"/>
>         <xsd:element ref="sld:Description" minOccurs="0"/>
>       </xsd:sequence>
>     </xsd:complexType>
>   </xsd:element>
>
>   <xsd:element name="UserLayer">
>     <xsd:annotation>
>       <xsd:documentation>
>         A UserLayer allows a user-defined layer to be built from WFS and
>         WCS data.
>       </xsd:documentation>
>     </xsd:annotation>
>     <xsd:complexType>
>       <xsd:sequence>
>         <xsd:element ref="sld:Name" minOccurs="0"/>
>         <xsd:element ref="sld:Description" minOccurs="0"/>
>         <xsd:element ref="sld:RemoteOWS" minOccurs="0"/>
>         <xsd:element ref="sld:LayerFeatureConstraints"/>
>         <xsd:element ref="sld:UserStyle" maxOccurs="unbounded"/>
>       </xsd:sequence>
>     </xsd:complexType>
>   </xsd:element>
>
>   <xsd:element name="RemoteOWS">
>     <xsd:annotation>
>       <xsd:documentation>
>         A RemoteOWS gives a reference to a remote WFS/WCS/other-OWS
> server.
>       </xsd:documentation>
>     </xsd:annotation>
>     <xsd:complexType>
>       <xsd:sequence>
>         <xsd:element ref="sld:Service"/>
>         <xsd:element ref="sld:OnlineResource"/>
>       </xsd:sequence>
>     </xsd:complexType>
>   </xsd:element>
>
>   <xsd:element name="Service">
>     <xsd:annotation>
>       <xsd:documentation>
>         A Service refers to the type of a remote OWS server.
>       </xsd:documentation>
>     </xsd:annotation>
>     <xsd:simpleType>
>       <xsd:restriction base="xsd:string">
>         <xsd:enumeration value="WFS"/>
>         <xsd:enumeration value="WCS"/>
>       </xsd:restriction>
>     </xsd:simpleType>
>   </xsd:element>
>
>   <xsd:element name="LayerFeatureConstraints">
>     <xsd:annotation>
>       <xsd:documentation>
>         LayerFeatureConstraints define what features &amp; feature types
> are
>         referenced in a layer.
>       </xsd:documentation>
>     </xsd:annotation>
>     <xsd:complexType>
>       <xsd:sequence>
>         <xsd:element ref="sld:FeatureTypeConstraint"
> maxOccurs="unbounded"/>
>       </xsd:sequence>
>     </xsd:complexType>
>   </xsd:element>
>
>   <xsd:element name="FeatureTypeConstraint">
>     <xsd:annotation>
>       <xsd:documentation>
>         A FeatureTypeConstraint identifies a specific feature type and
>         supplies fitlering.
>       </xsd:documentation>
>     </xsd:annotation>
>     <xsd:complexType>
>       <xsd:sequence>
>         <xsd:element ref="sld:FeatureTypeName" minOccurs="0"/>
>         <xsd:element ref="ogc:Filter" minOccurs="0"/>
>         <xsd:element ref="sld:Extent" minOccurs="0"
> maxOccurs="unbounded"/>
>       </xsd:sequence>
>     </xsd:complexType>
>   </xsd:element>
>
>   <xsd:element name="Extent">
>     <xsd:annotation>
>       <xsd:documentation>
>         An Extent gives feature/coverage/raster/matrix dimension extent.
>       </xsd:documentation>
>     </xsd:annotation>
>     <xsd:complexType>
>       <xsd:sequence>
>         <xsd:element ref="sld:Name"/>
>         <xsd:element ref="sld:Value"/>
>       </xsd:sequence>
>     </xsd:complexType>
>   </xsd:element>
>   <xsd:element name="Value" type="xsd:string"/>
>
>   <xsd:element name="UserStyle">
>     <xsd:annotation>
>       <xsd:documentation>
>         A UserStyle allows user-defined styling and is semantically
>         equivalent to a WMS named style.
>       </xsd:documentation>
>     </xsd:annotation>
>     <xsd:complexType>
>       <xsd:sequence>
>         <xsd:element ref="sld:Name" minOccurs="0"/>
>         <xsd:element ref="sld:Description" minOccurs="0"/>
>         <xsd:element ref="sld:IsDefault" minOccurs="0"/>
>         <xsd:element ref="sld:FeatureStyle" maxOccurs="unbounded"/>
>       </xsd:sequence>
>     </xsd:complexType>
>   </xsd:element>
>   <xsd:element name="IsDefault" type="xsd:boolean"/>
>
> </xsd:schema>
>
>