Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to call VFP Web Service from ASP.NET
Message
De
10/09/2002 11:47:15
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Web Services
Divers
Thread ID:
00697378
Message ID:
00698834
Vues:
12
But why would you want to throw in an extra line of code when you don't need it? That's what my point was ...

>Correct but what if I have XMLTextReader to use. There are a few other ways also you can do it too.
>
>>I think I've mentioned this before, but you don't need to have both StringReader *and* an XMLTextReader. All you need is this:
>>
>>
>>StringReader sr = new StringReader(lcXML);
>>loDataSet.ReadXML(sr, XmlReadMode.InferSchema);
>>
>>
>>~~Bonnie
>>
>>
>>>None of the DataSet.ReadXML overloaded method accepts XML String as an argument. Create a StringReader or XMLReader. For example,
>>>
>>>
>>>StringReader loStream = new StringReader(lcXML);
>>>XmlTextReader loXmlTextReader = new XmlTextReader(loStream);
>>>			
>>>loDataSet.ReadXml(loXmlTextReader,XmlReadMode.ReadSchema);
>>>
>>>loStream.Close();
>>>loXmlTextReader.Close();
>>>
>>>
>>>
>>>>Hi,Everybody
>>>>
>>>>I have build a vfP web service which return XML.
>>>>Weh I try to call this web service to fills dataet in ASP.NET I got
>>>>"Invalid URI: The URI scheme is not valid" error,here is my code in ASP.NET:
>>>>
>>>>Dim M_WEBSERVICE As New hk.com.kna.WEBSERVICE() && CREAT NEW WEB SERVICE OBJECT
>>>>Dim M_DATASET As New DataSet() && DATASET OBJECT TO HOLD RESULT
>>>>Dim M_RESULT As String = WEBSERVICE.GETXML("DO SOMTHING") && CALLS VFP WEB SERVICE
>>>>M_DATASET.ReadXml(M_RESULT) && ERROR HERE
>>>>
>>>>I can calls another VFP web service just return a single value.But have no luck on this.
>>>>
>>>>Anyone can enlighting me ?
>>>>
>>>>Thanks
>>>>Arnold
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform