This is with regards to http://technet.rapaport.com/WebServices/Feeds/RapNetInventoryLink.asmx
above is your hosted service link
Using Asp.Net 4.0 adding Service Reference, your service gives below contract
web.config
<bindings>
<basicHttpBinding>
<binding name="RapNetInventoryLinkSoap" closeTimeout="00:01:00"
openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
useDefaultWebProxy="true">
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
maxBytesPerRead="4096" maxNameTableCharCount="16384" />
<security mode="None">
<transport clientCredentialType="None" proxyCredentialType="None"
realm="" />
<message clientCredentialType="UserName" algorithmSuite="Default" />
</security>
</binding>
</basicHttpBinding>
</bindings>
<client>
<endpoint address="http://technet.rapaport.com/WebServices/Feeds/RapNetInventoryLink.asmx"
binding="basicHttpBinding" bindingConfiguration="RapNetInventoryLinkSoap"
contract="RapLinkWebService.RapNetInventoryLinkSoap" name="RapNetInventoryLinkSoap" />
</client>
then how come your code ask to use
RapLinkWebService.
RapNetInventoryLink webServiceManager =
new RapLinkWebService.RapNetInventoryLink();
which is not listed in contract
http://technet.rapaport.com/Info/RapLink/SampleCode/WebService_Example.aspx
kindly suggest working example
I added given service path under service reference
the name of service is given as RapLinkWebService
under that I got RapNetInventoryLinkSoapClient
there is nothing called as RapNetInventoryLink
there are only
RapNetInventoryLinkParameters
RapNetInventoryLinkSoap
RapNetInventoryLinkSoapChannel
RapNetInventoryLinkSoapClient
Regards,
Anand M. Bohra