serialize wddx data in asp.net

  • Thread starter Thread starter SV
  • Start date Start date
S

SV

I am consuming Cold fusion web service in asp.net (VB) application.

My problem is: I am not able parse the data. The web service
returns:

<wddxPacket version=’1.0’><header></header><data><recordset
rowCount=’1’
fieldnames=’JOBID,JOBNO,COST,COSTDESC,SUCCESS,ERROR_MSG’><field
name=’JOBID’><string>2665</string></field><field
name=’JOBNO’><string></string></field><field name=’COST’><string></
string></field><field name=’COSTDESC’><string></string></field><field
name=’SUCCESS’><string>0</string></field><field
name=’ERROR_MSG’><string>Jobs booked for a future date must have a
Pickup Time specified</string></field></recordset></data></
wddxPacket>



What I have to do?

I go through this link http://www.topxml.com/code/cod-484_9846_wddx-parser-(updated-bug).aspx
and downloaded the library but it includes error as NUnitCore is
unavailable. I am using ASP.Net 2.0

Thanks in advance.

SV
 
ColdFusion wddx?? What year is it?

Try this:

http://sholliday.spaces.live.com/Blog/cns!A68482B9628A842A!148.entry


You could try the above and then put it into a dataset.

Or check my blog:

http://sholliday.spaces.live.com/feed.rss

Find the XmlSerializer entry, and maybe work backwards.


My approach would be to put the xml into a different format. I'm sure there
are other approaches.

...




I am consuming Cold fusion web service in asp.net (VB) application.

My problem is: I am not able parse the data. The web service
returns:

<wddxPacket version=’1.0’><header></header><data><recordset
rowCount=’1’
fieldnames=’JOBID,JOBNO,COST,COSTDESC,SUCCESS,ERROR_MSG’><field
name=’JOBID’><string>2665</string></field><field
name=’JOBNO’><string></string></field><field name=’COST’><string></
string></field><field name=’COSTDESC’><string></string></field><field
name=’SUCCESS’><string>0</string></field><field
name=’ERROR_MSG’><string>Jobs booked for a future date must have a
Pickup Time specified</string></field></recordset></data></
wddxPacket>



What I have to do?

I go through this link
http://www.topxml.com/code/cod-484_9846_wddx-parser-(updated-bug).aspx
and downloaded the library but it includes error as NUnitCore is
unavailable. I am using ASP.Net 2.0

Thanks in advance.

SV
 
its not a soap response, just plain xml, so you use the xmlReader or
xmldocument to to parse it (and its really simple xml). there are some
examples on the web for parsing just google it or read the .net docs on
reading xml.

-- bruce (sqlwork.com)
 
Back
Top