Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Connecting to Webservice
Message
De
26/11/2007 23:14:06
 
 
À
26/11/2007 14:31:29
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
01270514
Message ID:
01271378
Vues:
18
>< < snip > >
>>The easiest way is to use the VFP TASK PANE - From the menu TOOLS|Task Pane. Once the pane opens, select the XML Web Services tab, and then click "Register a Web Service. In the box that appears enter your webservice address and the taskpane will register the service. If this is an ASMX service then type
>>
>>http://www.mywevservice.address.com/servicename.asmx?WSDL
>>
>>Note that you cannot use this interface for a service with complex objects. However once the service is registered, you can select a method and VFP will generate template code for you to copy and use in your own program, where you can build the objects easily for transmission.
>>
>>Bernard
>
>Hi Bernard,
>
>My problem seems to be that I can not figure out my URL address for the service. I have tried:
>http://www.localhost.com/servicename.asmx?WSDL
>http://{ localhost }/servicename.asmx?WSDL
>
>How do you specify the local host?
>
>Thanks,
>Beth

Hi Beth

There are a number of questions that need to be answered:

1. I assume from your post that this web service has been installed on your local computer. I also assume that IIS has been installed and is running on your computer? For this the least should be WindowsXP Pro. Check that you have a file like this:

C:\WINDOWS\system32\inetsrv\iis.msc and C:\WINDOWS\system32\inetsrv\inetmgr.exe. If you do then IIS is installed. Create a shortcut to either for easy access.

2. All web addresses whether they are http://localhost (not http://localhost.com) or http://www.levelextreme.com are translated into an IP address. Without going into the details of how and why, the easiest way for you to check is:

3. Click Start, Run. Type CMD to open a command window.
Type IPCONFIG and press Enter.
Note down the series of numbers next to I P Address - should start with 192.168. for a local card. This is your IPAddress(used below)

4. When installed on a local computer the web service would have been installed into a directory on your Hard Drive and a Virtual Directory setup in IIS. This is because XP can only serve up One Web Server but you can have any number of Virtual Directories. The VDirectory may not have the same name as your Physical Directory.

5. Lets say it was installed into a directory (any name) and the virtual directory was called "MyWebService" and that the ASMX file is called DEFAULT.ASMX

6. Open IE and type:

http://IPADDRESS/MyWebService/Default.asmx

If you get a proper Web page displaying all your methods for the service you are ok. Otherwise I advise you to contact the Web Service people and get them to setup the service as explaining all that is beyond the scope of this post.

Also check out this post:

http://www.foxite.com/archives/xml-web-service-0000148167.htm since
this site does not allow images. The part about IIS being started should also help you. Also search with google for setting up IIS.

Lets know how you go.

Bernard
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform