473,396 Members | 1,726 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Working with XML WDDX Packets using VB.Net

I am building a web based system using ASP.NET and VB.NET
which has to interact with a web service which uses XML
WDDX packets.

I have been given the XML Packet Specification by the Web
Service Provider but can't work out the best way to
interact with the WDDX packets.

Basically the way the Web Service works is that you send
a WDDX formatted Request packet to the given URL, their
service carries out search on their databases ( Electoral
registers and telephone directories) and then returns
either an Error packet or a Return packet with the search
results. The return packet stores the return data in WDDX
recordsets.

It seems that if I was using cold fusion then it would be
relatively easy as they have included WDDX technology
within their new release. I am using ASP.NET with Visual
Studio and I am confused regarding the best way to
interact with the WDDX Technology.

What I need to be able to do is

a) place variables values into the Request Packet ( does
the packet structure have to be a template like a xslt
style sheet?
b) send the request packet to the Web Service
c) extract the information from the Return Packets WDDX
recordsets and place them into my own variable /
parameters

Here are the structures of the Packets:

REQUEST PACKET:

Each request packet must take this general form:

<wddxPacket version='1.0'>
<header></header>
<data>
<struct>
<var name='VARIABLE'>
<string>VALUE</string>
</var>
<var name='VARIABLE2'>
<string>VALUE2</string>
</var>
....
<var name='VARIABLEX'>
<string>VALUEX</string>
</var>
</struct>
</data>
</wddxPacket>

And should be posted to:
http://corporate.192.com/xml/index.cfm

Variable names and values as follows.

All search packets must contain these variables:

USERNAME - As specified by your Corporate.192 account
manager.
PASSWORD - As above.

As well as either:

TYPE - The type of search you are trying to carry out.

RETURN PACKET

<wddxPacket version='1.0'>
<header></header>
<data>
<struct>
<var name='BT'>
<recordset rowCount='0'
fieldNames='FORENAME,SURNAME,NAME,COMPANY,SUB,BUSD ESC,SUBB
UILD,BUILDING,DOORNO,STREET,VILLAGE,POSTTOWN,COUNT Y,POSTCO
DE,TELEPHONE,LINE_TYPE,TARIFF'>
<field name='FORENAME'></field>
<field name='SURNAME'></field>
<field name='NAME'></field>
<field name='COMPANY'></field>
<field name='SUB'></field>
<field name='BUSDESC'></field>
<field name='SUBBUILD'></field>
<field name='BUILDING'></field>
<field name='DOORNO'></field>
<field name='STREET'></field>
<field name='VILLAGE'></field>
<field name='POSTTOWN'></field>
<field name='COUNTY'></field>
<field name='POSTCODE'></field>
<field name='TELEPHONE'></field>
<field name='LINE_TYPE'></field>
<field name='TARIFF'></field>
</recordset>
</var>
<var name='BU'>
<recordset rowCount='0'
fieldNames='COMPANY,LOB,SIC,HOUSENAME,DOORNO,STREE T,VILLAG
E,TOWN,COUNTY,POSTCODE,TELEPHONE,FAX'>
<field name='COMPANY'></field>
<field name='LOB'></field>
<field name='SIC'></field>
<field name='HOUSENAME'></field>
<field name='DOORNO'></field>
<field name='STREET'></field>
<field name='VILLAGE'></field>
<field name='TOWN'></field>
<field name='COUNTY'></field>
<field name='POSTCODE'></field>
<field name='TELEPHONE'></field>
<field name='FAX'></field>
</recordset>
</var>
<var name='ER'>
<recordset rowCount='0'
fieldNames='FORENAME,SURNAME,INIT,SUBBUILD,BUILDNA ME,DOORN
O,STREET,VILLAGE,TOWN,COUNTY,POSTCODE,TELEPHONE'>
<field name='FORENAME'></field>
<field name='SURNAME'></field>
<field name='INIT'></field>
<field name='SUBBUILD'></field>
<field name='BUILDNAME'></field>
<field name='DOORNO'></field>
<field name='STREET'></field>
<field name='VILLAGE'></field>
<field name='TOWN'></field>
<field name='COUNTY'></field>
<field name='POSTCODE'></field>
<field name='TELEPHONE'></field>
</recordset>
</var>
</struct>
</data>
</wddxPacket>

With return data stored in WDDX recordsets.
ERROR Packets

<wddxPacket version='1.0'>
<header></header>
<data>
<struct>
<var name='CODE'>
<string></string>
</var>
<var name='DATETIME'>
<dateTime>2001-9-
12T9:46:26+1:0</dateTime>
</var>
<var name='MESSAGE'>
<string></string>
</var>
</struct>
</data>
</wddxPacket>

CODES:

100 - Unspecified error - see "message" in error packet
for details
101 - Invalid username/password
102 - No search credits left
103 - Account expired
110 - You do not have access to this feature
120 - Not enough search parameters supplied
121 - Not enough search parameters supplied to carry out
BT search
122 - Locality specified in where (for who what where
search) is not recognized
130 - Grid ref not supplied (maps)
131 - Postcode not supplied (maps)
132 - Maps at this scale available in London only
133 - Grid ref not found for postcode supplied
140 - You did not supply customclient variable (for
custom pages)
141 - You did not specify search type in packet
150 - Xml packet not supplied to index page
151 - Error in xml packet

Please note that there will not be an error packet when
no results are found. There will simply be a normal
return packet with row count of zero.

Any help or guidance with this would be extremely helpful.

Thanks

Fraz

Nov 18 '05 #1
0 1874

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Tetedeiench | last post by:
Hi ! I am currently changing the server for my website, and i make a heavy use of openssl functions. Both servers use PHP4.3.3 with OpenSSL 0.9.6i. I was actually testing with this code,...
1
by: yawnmoth | last post by:
so... i'm trying to send some FTP packets, via PHP, and... i'm not really sure how to construct 'em. HTTP 1.0 packets have the following structure: GET http://whatever.com/ HTTP/1.0 Accept:...
4
by: Brian Rice | last post by:
I have a socket application that is sending and receiving packets asynchronously. It works great except, when I receive packets that are larger than my receive buffer which then generate several...
1
by: ygy | last post by:
When I receive the UDP packets,and then Set the image pixel using Image::Setpixel(),but When I invalidate the interface to show the image,the UDP packets missed.How to solve the problem? thank you...
0
by: Alexander Widera | last post by:
Hi, i want to call a wddx-service with asp.net ( c# ).... or i want to call a url .... how can i do this? description: - call a url .. - wait until there is a result - or there is a...
4
by: isthar | last post by:
Hi ! i am trying to serialise object which contains some unicode objects but looks like there is no way to do it. File...
1
by: Tim Arnold | last post by:
I'm confused about why I get this error: UnicodeError: ASCII encoding error: ordinal not in range(128) when I try to load a wddx file containing this string: <string>The image file,...
5
by: jaco.versfeld | last post by:
Hi There, I have a basic TCP client and TCP server in C++. The TCP client connects to the server, and after a setup phase starts to transmit a file to the TCP server using multiple packets...
4
by: SV | last post by:
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.