Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Web Services from Vista
Message
From
24/08/2007 02:30:54
 
 
General information
Forum:
Visual FoxPro
Category:
Web Services
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Vista
Miscellaneous
Thread ID:
01250082
Message ID:
01250093
Views:
20
Thanks,

At least I know it can be done. I'll have to dig in some more.

>Hmmm...
>
>Well, here are my files. They look similar to yours, but maybe I'm missing something.
>
>I have a simple WCF service called "DemoCustomerBz.CustomerBz", and an interface called "DemoInterfaces.ICustomer". I'm running on Vista Home Premium, VFP 9, and I have the SOAP 3.0 toolkit installed.
>
>here's my complete Web.Config file for my service:
>
>
><?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.
>
>Kevin
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Reply
Map
View

Click here to load this message in the networking platform