Accessing SP2010 webservices
-
I've been trying to access the SharePoint 2010 WebServices, specifically Lists.asmx, with WCF but I keep getting 'Exception of type 'Microsoft.SharePoint.SoapServer.SoapServerException' was thrown." no inner exception or other details. I can access the WebServices as a .net 2.0 web reference with no problems. Anyone have a hint?
I know the language. I've read a book. - _Madmatt
-
I've been trying to access the SharePoint 2010 WebServices, specifically Lists.asmx, with WCF but I keep getting 'Exception of type 'Microsoft.SharePoint.SoapServer.SoapServerException' was thrown." no inner exception or other details. I can access the WebServices as a .net 2.0 web reference with no problems. Anyone have a hint?
I know the language. I've read a book. - _Madmatt
-
Which binding type are you using with WCF? I believe you should be using basicHttpBinding.
ahmedel wrote:
you should be using basicHttpBinding
Yes, of course I am
<bindings> <basicHttpBinding> <binding name="ListsSoap"> <security mode="TransportCredentialOnly"> <transport clientCredentialType="Ntlm" /> </security> </binding> </basicHttpBinding> </bindings> <client> <endpoint address="http://myserver/\_vti\_bin/Lists.asmx" binding="basicHttpBinding" bindingConfiguration="ListsSoap" contract="SPList.ListsSoap" name="ListsSoap" behaviorConfiguration="behave" /> </client>
I know the language. I've read a book. - _Madmatt