Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Web Services from Vista
Message
De
24/08/2007 01:48:29
 
 
À
23/08/2007 23:27:54
Information générale
Forum:
Visual FoxPro
Catégorie:
Web Services
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Vista
Divers
Thread ID:
01250082
Message ID:
01250089
Vues:
16
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform