Hi,
I am trying to do a SOAP call but I dont know how the XML I post needs to look for an abstract object. This is the schema for the abstract:
And this is the schema for type envelope that I'm interested in:HTML Code:<xs:complexType name="MapArea" abstract="true"> − <xs:annotation> <xs:documentation/> </xs:annotation> − <xs:sequence> − <xs:element minOccurs="0" name="Extent" type="Envelope"> − <xs:annotation> <xs:documentation>The geographic extent of the map.</xs:documentation> </xs:annotation> </xs:element> </xs:sequence> </xs:complexType>
How would the xml look? What I tried is postingHTML Code:<xs:complexType name="EnvelopeN"> − <xs:annotation> − <xs:documentation> A rectangle with sides parallel to a coordinate system defining the extent of another geometry; optionally has min and max measure, height and ID attributes. </xs:documentation> </xs:annotation> − <xs:complexContent mixed="false"> − <xs:extension base="Envelope"> − <xs:sequence> − <xs:element name="XMin" type="xs:double"> − <xs:annotation> <xs:documentation>The position of the left side.</xs:documentation> </xs:annotation> </xs:element> − <xs:element name="YMin" type="xs:double"> − <xs:annotation> <xs:documentation>The position of the bottom.</xs:documentation> </xs:annotation> </xs:element> − <xs:element name="XMax" type="xs:double"> − <xs:annotation> <xs:documentation>The position of the right side.</xs:documentation> </xs:annotation> </xs:element> − <xs:element name="YMax" type="xs:double"> − <xs:annotation> <xs:documentation>The position of the top.</xs:documentation> </xs:annotation> </xs:element> − <xs:element minOccurs="0" name="ZMin" type="xs:double"> − <xs:annotation> <xs:documentation>The minimum Z value in the area of the envelope.</xs:documentation> </xs:annotation> </xs:element> − <xs:element minOccurs="0" name="ZMax" type="xs:double"> − <xs:annotation> <xs:documentation>The maximum Z value in the area of the envelope.</xs:documentation> </xs:annotation> </xs:element> − <xs:element minOccurs="0" name="MMin" type="xs:double"> − <xs:annotation> − <xs:documentation> The minimum measure value in the area of the envelope. </xs:documentation> </xs:annotation> </xs:element> − <xs:element minOccurs="0" name="MMax" type="xs:double"> − <xs:annotation> − <xs:documentation> The maximum measure value in the area of the envelope. </xs:documentation> </xs:annotation> </xs:element> − <xs:element minOccurs="0" name="SpatialReference" type="SpatialReference"> − <xs:annotation> − <xs:documentation> The spatial reference associated with this geometry. </xs:documentation> </xs:annotation> </xs:element> </xs:sequence> </xs:extension> </xs:complexContent> </xs:complexType>
but its not happy with this.HTML Code:<MapArea> <Extent> <XMin>26.389286595046546</XMin> <YMin>-26.9687960840098</YMin> <XMax>30.134353404967854</XMax> <YMax>-25.0646439161136</YMax> </Extent> </MapArea>


Reply With Quote

Bookmarks