How do i add to my c# project the bing translate api dll file ? And where do i find the dll file to download it ?

Answered How do i add to my c# project the bing translate api dll file ? And where do i find the dll file to download it ?

  • Tuesday, May 01, 2012 5:30 PM
     
      Has Code

    First of all i just got now my application id number.

    Im using visual studio 2010 pro windows 7 64bit .net 4 client profile

    I tried to add as service reference this address to my project: http://api.microsofttranslator.com/V1/SOAP.svc

    But then im getting error: Warning    6    Custom tool warning: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.   

    The error is in the file: Reference.svcmap.xml somehwere im not sure where and what the problem is. This is the file:

    <?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="ea121a00-9ad1-4d12-9fb5-9ce2f6797b7d" xmlns="urn:schemas-microsoft-com:xml-wcfservicemap">
      <ClientOptions>
        <GenerateAsynchronousMethods>false</GenerateAsynchronousMethods>
        <EnableDataBinding>true</EnableDataBinding>
        <ExcludedTypes />
        <ImportXmlTypes>false</ImportXmlTypes>
        <GenerateInternalTypes>false</GenerateInternalTypes>
        <GenerateMessageContracts>false</GenerateMessageContracts>
        <NamespaceMappings />
        <CollectionMappings />
        <GenerateSerializableTypes>true</GenerateSerializableTypes>
        <Serializer>Auto</Serializer>
        <UseSerializerForFaults>true</UseSerializerForFaults>
        <ReferenceAllAssemblies>true</ReferenceAllAssemblies>
        <ReferencedAssemblies />
        <ReferencedDataContractTypes />
        <ServiceContractMappings />
      </ClientOptions>
      <MetadataSources>
        <MetadataSource Address="http://api.microsofttranslator.com/V1/SOAP.svc" Protocol="http" SourceId="1" />
      </MetadataSources>
      <Metadata>
        <MetadataFile FileName="SoapService.wsdl" MetadataType="Wsdl" ID="8a92aa3b-e513-4075-98cd-16b2329ccb0b" SourceId="1" SourceUrl="http://api.microsofttranslator.com/V1/soap.svc?wsdl" />
        <MetadataFile FileName="soap.wsdl" MetadataType="Wsdl" ID="7f811c15-7f54-406d-a7ea-4a2ace056391" SourceId="1" SourceUrl="http://api.microsofttranslator.com/V1/soap.svc?wsdl=wsdl0" />
        <MetadataFile FileName="soap.xsd" MetadataType="Schema" ID="4f28947d-c275-4ea0-85ec-1f42cd91d3fc" SourceId="1" SourceUrl="http://api.microsofttranslator.com/V1/soap.svc?xsd=xsd2" />
        <MetadataFile FileName="soap1.xsd" MetadataType="Schema" ID="f4c9e17c-3344-43bf-92ef-8ccaec9f0079" SourceId="1" SourceUrl="http://api.microsofttranslator.com/V1/soap.svc?xsd=xsd1" />
        <MetadataFile FileName="SoapService1.wsdl" MetadataType="Wsdl" ID="269a030d-bd1f-4520-9445-21a7a0bb1d15" SourceId="1" SourceUrl="http://api.microsofttranslator.com/V1/SOAP.svc" />
        <MetadataFile FileName="soap2.xsd" MetadataType="Schema" ID="cf16afbe-6dcb-4083-99d9-a935f6c99850" SourceId="1" SourceUrl="http://api.microsofttranslator.com/V1/soap.svc?xsd=xsd0" />
      </Metadata>
      <Extensions>
        <ExtensionFile FileName="configuration91.svcinfo" Name="configuration91.svcinfo" />
        <ExtensionFile FileName="configuration.svcinfo" Name="configuration.svcinfo" />
      </Extensions>
    </ReferenceGroup>

    Maybe there is a dll file to download wich will save me this troubles and errors ?

    Thanks.


    danieli

All Replies

  • Tuesday, May 01, 2012 6:31 PM
     
     Answered
    Fixed did a new project and its ok.

    danieli

    • Marked As Answer by chocolade Tuesday, May 01, 2012 6:31 PM
    •