473,385 Members | 1,582 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,385 software developers and data experts.

serializing multi level structure in Visual basic.net web service

I'm trying to serialize a compount structure set for a web service, the
sturctures are something like this:
Public Structure UserPhone
Public phonenumber As String
Public phonetype As Char
End Structure

Public Structure userdata
Public firstname As String
Public lastname As String
Public Phonenumers() As UserPhone
End Structure

Public Structure UserDiscipline
Public PrimaryUsers() As userdata
Public AlternateUsers() As userdata
Public Delay As Integer
Public Fillcount As Integer
End Structure

Public Structure UserActivation
Public PrimarySequence As String
Public AlternateSequence As String
Public Duration As Integer
Public CallApprove As userdata
Public Disciplines() As UserDiscipline
End Structure

and when asking the Webservice to show the contract for het specified method
he is showing only the first 2 levels

<activation>
<PrimarySequence>string</PrimarySequence>
<AlternateSequence>string</AlternateSequence>
<Duration>int</Duration>
<CallApprove>
<firstname>string</firstname>
<lastname>string</lastname>
<Phonenumers>
<UserPhone xsi:nil="true" />
<UserPhone xsi:nil="true" />
</Phonenumers>
</CallApprove>
<Disciplines>
<UserDiscipline>
<PrimaryUsers xsi:nil="true" />
<AlternateUsers xsi:nil="true" />
<Delay>int</Delay>
<Fillcount>int</Fillcount>
</UserDiscipline>
<UserDiscipline>
<PrimaryUsers xsi:nil="true" />
<AlternateUsers xsi:nil="true" />
<Delay>int</Delay>
<Fillcount>int</Fillcount>
</UserDiscipline>
</Disciplines>
</activation>

I would really want to have the complete multi-level structure in XML does
anybody have a suggestion on doing this?
Nov 12 '05 #1
0 2107

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

Similar topics

4
by: Shawn Brock | last post by:
This is a wildly broad question, so apologies in advance. I developed a very traditional app architecture in Visual Studio 5-6. The basic structure looked like this: GUI >> MTS >> Database The...
0
by: rgerla | last post by:
I'm trying to serialize a compount structure set for a web service, the sturctures are something like this: Public Structure UserPhone Public phonenumber As String Public phonetype As Char End...
10
by: copx | last post by:
I want to save a struct to disk.... as plain text. At the moment I do it with a function that just writes the data using fprintf. I mean like this: fprintf(fp, "%d %d", my_struct.a, my_struct.b)...
5
by: Alfonso Morra | last post by:
Hi, I am writing a messaging library which will allow me to send a generic message structure with custom "payloads". In many cases, a message must store a non-linear data structure (i.e....
4
by: Jason Shohet | last post by:
We are thinking of serializing an object & passing it toseveral functions on web service. This will happen about 35 times as the page loads. The class has about 20 attributes. We're not sure...
3
by: Zahid | last post by:
Hi, I have declared an array holding a custom declared structure. The structure looks like this: Private Structure MnuDataFrmFile Public menuGroup As String Public ItemDesc As String Public...
4
by: snowweb | last post by:
I am trying to implement a CSS hierarchical unfolding menu on a site. The thing is, it needs to be dynamically populated from the results of a database query. I previously had the menu working but...
6
by: dbuchanan | last post by:
There are three parts to this 1.) How do I cascade menus? 2.) And, how do I cascade menus with a multi-select CheckBoxList?
7
Curtis Rutland
by: Curtis Rutland | last post by:
Building A Silverlight (2.0) Multi-File Uploader All source code is C#. VB.NET source is coming soon. Note: This project requires Visual Studio 2008 SP1 or Visual Web Developer 2008 SP1 and...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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...

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.