Hi,
I have a problem with Axis in java. I have generated some abstract class
named SymbolType, and some class LineSymbol which extend from it:
public class LineSymbol  extends net.opengis.www.sld.SymbolType{
private net.opengis.www.sld.Geometry geometry;
private net.opengis.www.sld.Stroke stroke;
........
}
And when i wanted to  initialize it:
SymbolType symbol=new SymbolType;
  symbol=new LineSymbol();

And then i try to run my aplication, a axis exception is generated:
org.xml.sax.SAXException: Invalid element in
net.opengis.www.sld.SymbolType - Geometry
All generated exception is down.
I hope, that my description of this problem is sufficient,if not, I will try
to describe it better.
Can someone help me how this problem to solve? Because I don't
knew what else could be wrong. And it is very important for me to solve it.
Thank for help

Classes was generated from wsdl file, in which is reference to some *.xsd file with definition of classes:
....
<xsd:element name="Symbol" type="sld:SymbolType" abstract="true"/>
<xsd:complexType name="SymbolType" abstract="true">
.....
<xsd:element name="LineSymbol" substitutionGroup="sld:Symbol">
   <xsd:annotation>
    <xsd:documentation>
       A LineSymbol is used to render a "stroke" along a linear geometry.
     </xsd:documentation>
   </xsd:annotation>
   <xsd:complexType>
     <xsd:complexContent>
       <xsd:extension base="sld:SymbolType">
         <xsd:sequence>
           <xsd:element ref="sld:Geometry" minOccurs="0"/>
           <xsd:element ref="sld:Stroke" minOccurs="0"/>
         </xsd:sequence>
       </xsd:extension>
     </xsd:complexContent>
   </xsd:complexType>
 </xsd:element>
All exception is:AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException faultSubcode: faultString: org.xml.sax.SAXException: Invalid element in net.opengis.www.sld.SymbolType - Geometry faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}hostname:pocitacorg.xml.sax.SAXException: Invalid element in net.opengis.www.sld.SymbolType - Geometry at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222) at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129) at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:633) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanEndElement(XMLNSDocumentScannerImpl.java:719) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1685) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242) at javax.xml.parsers.SAXParser.parse(SAXParser.java:375) at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227) at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696) at org.apache.axis.Message.getSOAPEnvelope(Message.java:435) at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62) at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206) at org.apache.axis.client.Call.invokeEngine(Call.java:2784) at org.apache.axis.client.Call.invoke(Call.java:2767) at org.apache.axis.client.Call.invoke(Call.java:2443) at org.apache.axis.client.Call.invoke(Call.java:2366) at org.apache.axis.client.Call.invoke(Call.java:1812) at wms.WmsSoapBindingStub.getMap(WmsSoapBindingStub.java:1013) at clSOAP.getMap(clSOAP.java:295) at clSOAP.main(clSOAP.java:314)org.xml.sax.SAXException: Invalid element in net.opengis.www.sld.SymbolType - Geometry

Reply via email to