ArcObjects SDK 10 .NET SOAP SOE samples (ServerSimpleSOAPSOE and ServerFindNearSOAPSOE) have incorrect sample WDSL files in the SupportFiles\XmlSchema folder.
This issue is not reproducible in the current release of the software. If you are encountering this issue, please contact Esri Technical Support (for customers in the United States) or your Esri distributor (for customers outside the United States) to resolve this issue.
解决办法
1. For the Simple SOAP SOE sample, add the following XML schemas in SimpleSoapSoe.wsdl right before the </types> tag. These XML schemas define the requests and responses for method EchoInput of the Simple SOAP SOE sample.<xs:schema xmlns="<a href="http://www.esri.com/schemas/ArcGIS/10.0" target="_blank">http://www.esri.com/schemas/ArcGIS/10.0</a>" xmlns:tns="<a href="http://examples.esri.com/schemas/SimpleSoapSOE/1.0" target="_blank">http://examples.esri.com/schemas/SimpleSoapSOE/1.0</a>" targetNamespace="<a href="http://examples.esri.com/schemas/SimpleSoapSOE/1.0" target="_blank">http://examples.esri.com/schemas/SimpleSoapSOE/1.0</a>"><xs:import namespace="<a href="http://www.esri.com/schemas/ArcGIS/10.0" target="_blank">http://www.esri.com/schemas/ArcGIS/10.0</a>" /><xs:element name="EchoInput"><xs:complexType><xs:sequence><xs:element name="Text" type="xs:string" /></xs:sequence></xs:complexType></xs:element><xs:element name="EchoInputResponse"><xs:complexType><xs:sequence><xs:element name="Result" type="xs:string" /></xs:sequence></xs:complexType></xs:element></xs:schema>2. For the Find near features SOAP SOE sample, add the following XML schemas in the sample FindNearFeaturesSoapSoe.wsdl right before </types> tag.<xs:schema xmlns="<a href="http://www.esri.com/schemas/ArcGIS/10.0" target="_blank">http://www.esri.com/schemas/ArcGIS/10.0</a>" xmlns:tns="<a href="http://examples.esri.com/schemas/FindNearFeaturesSoapSOE/1.0" target="_blank">http://examples.esri.com/schemas/FindNearFeaturesSoapSOE/1.0</a>" targetNamespace="<a href="http://examples.esri.com/schemas/FindNearFeaturesSoapSOE/1.0" target="_blank">http://examples.esri.com/schemas/FindNearFeaturesSoapSOE/1.0</a>"><xs:import namespace="<a href="http://www.esri.com/schemas/ArcGIS/10.0" target="_blank">http://www.esri.com/schemas/ArcGIS/10.0</a>" /><xs:element name="GetLayerInfos"><xs:complexType /></xs:element><xs:element name="GetLayerInfosResponse"><xs:complexType><xs:sequence><xs:element name="Result" type="tns:ArrayOfCustomLayerInfo" /></xs:sequence></xs:complexType></xs:element><xs:element name="FindNearFeatures"><xs:complexType><xs:sequence><xs:element name="LayerID" type="xs:int" /><xs:element name="Location" type="Point" /><xs:element name="Distance" type="xs:double" /></xs:sequence></xs:complexType></xs:element><xs:element name="FindNearFeaturesResponse"><xs:complexType><xs:sequence><xs:element name="Result" type="RecordSet" /></xs:sequence></xs:complexType></xs:element><xs:complexType name="CustomLayerInfo"><xs:sequence><xs:element name="Name" type="xs:string" /><xs:element name="ID" type="xs:int" /><xs:element name="Extent" type="Envelope" /></xs:sequence></xs:complexType><xs:complexType name="ArrayOfCustomLayerInfo"><xs:sequence><xs:element minOccurs="0" maxOccurs="unbounded" name="CustomLayerInfo" type="tns:CustomLayerInfo" /></xs:sequence></xs:complexType></xs:schema>