P
Pim75
Hello,
I've written a webservice that returns an array. The output of the
webservice has to be consumed by a classic asp application.
As classic asp can't read the returned array I want the webservice to
return a xml document instead of the array.
Can anyone tell me how I can output the array as a xml document?
The webservice looks as follows:
Public Function GetModellen() As Array
Dim ps As New TestSoap.Externalservice
Dim strArray() As TestSoap.TAutoModel
strArray = ps.GetModellen()
Return strArray
End Function
The array output from the webservice at this moment is:
<?xml version="1.0" encoding="utf-8"?>
<ArrayOfTAutoModel xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://
tempuri.org/">
<TAutoModel>
<ModelId>33</ModelId>
<Omschrijving>200</Omschrijving>
<Beginjaar>1984</Beginjaar>
</TAutoModel>
</ArrayOfTAutoModel>
Thanks in advance for your help!
I've written a webservice that returns an array. The output of the
webservice has to be consumed by a classic asp application.
As classic asp can't read the returned array I want the webservice to
return a xml document instead of the array.
Can anyone tell me how I can output the array as a xml document?
The webservice looks as follows:
Public Function GetModellen() As Array
Dim ps As New TestSoap.Externalservice
Dim strArray() As TestSoap.TAutoModel
strArray = ps.GetModellen()
Return strArray
End Function
The array output from the webservice at this moment is:
<?xml version="1.0" encoding="utf-8"?>
<ArrayOfTAutoModel xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://
tempuri.org/">
<TAutoModel>
<ModelId>33</ModelId>
<Omschrijving>200</Omschrijving>
<Beginjaar>1984</Beginjaar>
</TAutoModel>
</ArrayOfTAutoModel>
Thanks in advance for your help!