我正在为Windows Phone 7开发一个应用程序。我试图通过添加服务引用来使用web服务,以便我可以使用它中的函数但是,我收到了这个错误
Error 6 Custom tool error: Failed to generate code for the service reference 'myterraService'. Please check other error and warning messages for details. c:\users\khaled\documents\visual studio 2010\Projects\gpsWebservice\gpsWebservice\Service References\myterraService\Reference.svcmap 1 1 gpsWebservice
这里是文件
<?xml version="1.0" encoding="utf-8"?>
<ReferenceGroup xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ID="56ed3f74-7e58-4e12-8c13-3184488c3335" xmlns="urn:schemas-microsoft-com:xml-wcfservicemap">
<ClientOptions>
<GenerateAsynchronousMethods>true</GenerateAsynchronousMethods>
<EnableDataBinding>true</EnableDataBinding>
<ExcludedTypes />
<ImportXmlTypes>false</ImportXmlTypes>
<GenerateInternalTypes>false</GenerateInternalTypes>
<GenerateMessageContracts>false</GenerateMessageContracts>
<NamespaceMappings />
<CollectionMappings>
<CollectionMapping TypeName="System.Collections.ObjectModel.ObservableCollection`1" Category="List" />
</CollectionMappings>
<GenerateSerializableTypes>false</GenerateSerializableTypes>
<Serializer>Auto</Serializer>
<UseSerializerForFaults>true</UseSerializerForFaults>
<ReferenceAllAssemblies>true</ReferenceAllAssemblies>
<ReferencedAssemblies />
<ReferencedDataContractTypes />
<ServiceContractMappings />
</ClientOptions>
<MetadataSources>
<MetadataSource Address="http://msrmaps.com/TerraService2.asmx" Protocol="http" SourceId="1" />
</MetadataSources>
<Metadata>
<MetadataFile FileName="TerraService2.disco" MetadataType="Disco" ID="8998e6c4-ea3d-4c97-b1f9-da82ea7abb58" SourceId="1" SourceUrl="http://msrmaps.com/TerraService2.asmx?disco" />
<MetadataFile FileName="TerraService2.wsdl" MetadataType="Wsdl" ID="0507a16b-76e3-4ae8-bf87-8b21697a64d7" SourceId="1" SourceUrl="http://msrmaps.com/TerraService2.asmx?wsdl" />
</Metadata>
<Extensions>
<ExtensionFile FileName="configuration91.svcinfo" Name="configuration91.svcinfo" />
<ExtensionFile FileName="configuration.svcinfo" Name="configuration.svcinfo" />
</Extensions>
</ReferenceGroup>