Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How about use \\x.x.x.x\xx.dbf in web s?
Message
De
20/12/2002 00:02:46
 
 
À
10/12/2002 09:27:06
Information générale
Forum:
Visual FoxPro
Catégorie:
Web Services
Divers
Thread ID:
00731329
Message ID:
00734786
Vues:
31
>code in web s:
>-----------------
>
>DEFINE CLASS testwebs as Session OLEPUBLIC
>
> FUNCTION test(i as Character) as String
> LOCAL cXML as String
> use \\192.168.0.252\aa.dbf

Problem is right here - \\192.168.0.252\aa.dbf is not a valid UNC. A UNC based on an IP address is in the form

\\dotted IP address\share name\file path relative to the share

> sele * from aa into cursor bb
> cursortoxml('bb','cXML',1,0,0,'')
> RETURN cXML
> ENDFUNC
>
>ENDDEFINE
>
>---------------------
>Then call...
>---------------------
>LOCAL bb as testwebs web service
>LOCAL loWS
>loWS = NEWOBJECT("Wsclient",HOME()+"ffc\_webservices.vcx")
>loWS.cWSName = "testwebs web service"
>bb = loWS.SetupClient("http://ABCSERVER/testone/testwebs.WSDL", "testwebs", "testwebsSoapPort")
>
>?bb.test('0016000022')
>---------------------
>But found error in "use \\192.168.0.252\aa.dbf"
>
>Map to j: -> use j:\aa.dbf ->error too
>
>by VFP ODBC ->error too
>
>-----------------------
>But run by com
>-----------------------
>bb=createobject('testwebs.testwebs')
>bb.test('0016000022')
>-----------------------
>no error ->Oh..God save me...
>
>-----------------------!!!!!!!!Why say not in web service!!!!! web s can not support network path???!
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform