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

WCF and nested objects

I've been trying to figure out how to nest objects in a SOAP request
and response for a couple of days.

My client wants to pass me this XML document: (I've changed the
element names to because the spec is confidential).

<?xml version=1.0 encoding=utf-16?>
<Request xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance
xmlns:xsd=http://www.w3.org/2001/XMLSchema>
<Thing1 xmlns=urn:GetCLTSRequest>123456</thing1>
<Thing2 xmlns=urn:GetCLTSRequest>2008-01-23</thing2>
<Thing3 xmlns=urn:GetCLTSRequest>LMS</thing3>
<Collection1 xmlns=urn:GetCLTSRequest>
<Object1>
<Thing4>2532008</thing4>
<Thing5 >OX1234</thing5>
<Collection2>
<Object2>
<thing6>2545047</thing6>
<thing7>81-0615</thing7>
<thing8>1</thing8>
<thing9>60000</thing9>
</Object2>
</Collection2>
</Object1>
</Collection1>
</Request>

The Response is similarly complex with objects that are nested 3
levels deep. Through researching I've been able to find out how to
implement a SOAP message that is 2 levels deep. But nothing I've
tried allows me to accept a request or send a response that is 3
levels deep.

Can anyone tell me if this is even possible to do with WCF
implementing a SOAP message. And if so how?
Aug 20 '08 #1
2 2665
On Aug 20, 2:50*pm, "Christopher.M.We...@gmail.com"
<Christopher.M.We...@gmail.comwrote:
I've been trying to figure out how to nest objects in a SOAP request
and response for a couple of days.

My client wants to pass me this XML document: (I've changed the
element names to because the spec is confidential).

<?xml version=1.0 encoding=utf-16?>
* *<Request xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance
xmlns:xsd=http://www.w3.org/2001/XMLSchema>
* * * <Thing1 xmlns=urn:GetCLTSRequest>123456</thing1>
* * * <Thing2 xmlns=urn:GetCLTSRequest>2008-01-23</thing2>
* * * <Thing3 xmlns=urn:GetCLTSRequest>LMS</thing3>
* * * <Collection1 xmlns=urn:GetCLTSRequest>
* * * * *<Object1>
* * * * * * <Thing4>2532008</thing4>
* * * * * * <Thing5 >OX1234</thing5>
* * * * * * <Collection2>
* * * * * * * *<Object2>
* * * * * * * * * <thing6>2545047</thing6>
* * * * * * * * * <thing7>81-0615</thing7>
* * * * * * * * * <thing8>1</thing8>
* * * * * * * * * <thing9>60000</thing9>
* * * * * * * *</Object2>
* * * * * * </Collection2>
* * * * *</Object1>
* * * </Collection1>
* *</Request>

The Response is similarly complex with objects that are nested 3
levels deep. *Through researching I've been able to find out how to
implement a SOAP message that is 2 levels deep. *But nothing I've
tried allows me to accept a request or send a response that is 3
levels deep.

Can anyone tell me if this is even possible to do with WCF
implementing a SOAP message. *And if so how?
did I post this to the wrong group?
Aug 20 '08 #2
did I post this to the wrong group?- Hide quoted text -

Well, you could try the Indigo forum, but... what exactly doesn't
work? You could try generating the C# classes from the xsd (using
xsd.exe), and just see what you get by exposing those types over WCF?

Marc
Aug 20 '08 #3

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

Similar topics

26
by: Joshua Beall | last post by:
Hi All, I remember reading that both nested classes and namespaces would be available in PHP5. I know that namespaces got canceled (much sadness...), however, I *thought* that nested classes...
25
by: chad | last post by:
I am writing a program to do some reliability calculations that require several nested for-loops. However, I believe that as the models become more complex, the number of required for-loops will...
11
by: C# Learner | last post by:
Is it not possible to declare a nested class in a seperate file from its "parent" class -- i.e. in a similar way to the idea of spreading namespaces over more than one file?
8
by: Robert W. | last post by:
I've almost completed building a Model-View-Controller but have run into a snag. When an event is fired on a form control I want to automatically updated the "connnected" property in the Model. ...
1
by: Raju Joseph | last post by:
Hi All, We are in the process of developing an N-Tier app using VB.NET. We are extensively using classes (entity objects) in our design. Further, most of the times, we do have to specify nested...
6
by: Susan H | last post by:
I have Visual Studio 2005, trying to properly bind to a nested object tree. I can bind to the top level object just fine, but can't seem to "hook" my nested object in. I have a ShoppingCart...
37
by: Tim N. van der Leeuw | last post by:
Hi, The following might be documented somewhere, but it hit me unexpectedly and I couldn't exactly find this in the manual either. Problem is, that I cannot use augmented assignment operators...
18
by: desktop | last post by:
I have 3 types of objects: bob1, bob2 and bob3. Each object is identified by a unique ID which gets returned by the function getId(). All bobs are descendants from class BaseBob which is an...
9
by: Gabriel Rossetti | last post by:
Hello, I can't get getattr() to return nested functions, I tried this : .... def titi(): .... pass .... f = getattr(toto, "titi") .... print str(f) .... Traceback...
2
card
by: card | last post by:
Hi everyone, I have a question about referencing a nested class contained within a templated class. Of course the best way to show you is by example. Here's my templated classes: #include...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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...

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.