<?xml version="1.0" encoding="UTF-8"?> <configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0"> <system.serviceModel> <services> <service name="DemoCustomerBz.CustomerBz" behaviorConfiguration="FoxWcfServiceBehaviors"> <endpoint contract="DemoInterfaces.ICustomer" binding="basicHttpBinding"/> <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" /> </service> </services> <behaviors> <serviceBehaviors> <behavior name="FoxWcfServiceBehaviors" > <serviceDebug includeExceptionDetailInFaults="true" /> <serviceMetadata httpGetEnabled="true"/> </behavior> </serviceBehaviors> </behaviors> </system.serviceModel> <system.web> <compilation debug="true" /> </system.web> <system.webServer> <directoryBrowse enabled="false" /> </system.webServer> </configuration>And I'm actually able to run my service from VFP by doing this:
loWSHandler = NEWOBJECT("WSHandler",HOME()+"FFC\_ws3client.vcx") loWCF = loWSHandler.SetupClient("http://localhost/WCFService_IISHosted/Service.svc?wsdl") ? loWCF.GetCustomer(1)Good luck, all I can tell you is that it works for me.