serialize wddx data in asp.net

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
 
S

sloan

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
 
B

bruce barker

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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,479
Members
44,900
Latest member
Nell636132

Latest Threads

Top