Hi,
I'm looking for some good examples that illustrate how to code a web service
that exposes a custom collection so that the properties of the collection are
accessible on the client without having to do a httpwebreqeust call. 6 2303
I can't give you an example for that, but bear in mind, Web Services
share schema(W3C XML Schema) not type for contract. thus anything that
could be expressed as a valid Xml Schema can be expose(but for best
practice and interoperability... there some rules http://devresource.hp.com/drc/slide_...SDL/index.jsp).
so once the schema turn into proxy at the client side. they can modify
it accordingly to achieve the desired behaviors as long as the
serialized objects is still valid Xml instant of the schema
regards
erymuzuan
kbs wrote: Hi,
I'm looking for some good examples that illustrate how to code a web service that exposes a custom collection so that the properties of the collection are accessible on the client without having to do a httpwebreqeust call.
Agreed, web services share schema. Perhaps what I'm having a problem with is
properly serializing a custom collection. I'm experimenting with a simple
class who's properties are simple data types; a type safe array list that
contains a simple class who's properties are simple data types. No nested
collections. So what I'm looking for is the proper way to serialize a custom
collection.
"erymuzuan" wrote: I can't give you an example for that, but bear in mind, Web Services share schema(W3C XML Schema) not type for contract. thus anything that could be expressed as a valid Xml Schema can be expose(but for best practice and interoperability... there some rules http://devresource.hp.com/drc/slide_...SDL/index.jsp). so once the schema turn into proxy at the client side. they can modify it accordingly to achieve the desired behaviors as long as the serialized objects is still valid Xml instant of the schema
regards erymuzuan
kbs wrote: Hi,
I'm looking for some good examples that illustrate how to code a web service that exposes a custom collection so that the properties of the collection are accessible on the client without having to do a httpwebreqeust call.
You can definitely express arrays of simple types as XML schemas.
What are your "custom collections"? Are they collections deriving from
CollectionBase? Custom implementations if IList, etc?
Christoph Schittko
MVP XML http://weblogs.asp.net/cschittko -----Original Message----- From: Ken [mailto:Ke*@discussions.microsoft.com] Posted At: Sunday, January 23, 2005 9:51 AM Posted To: microsoft.public.dotnet.framework.webservices Conversation: Consuming Custom Collecction through a web service Subject: Re: Consuming Custom Collecction through a web service
Agreed, web services share schema. Perhaps what I'm having a problem
with is properly serializing a custom collection. I'm experimenting with a
simple class who's properties are simple data types; a type safe array list
that contains a simple class who's properties are simple data types. No
nested collections. So what I'm looking for is the proper way to serialize a custom collection. "erymuzuan" wrote:
I can't give you an example for that, but bear in mind, Web Services share schema(W3C XML Schema) not type for contract. thus anything
that could be expressed as a valid Xml Schema can be expose(but for best practice and interoperability... there some rules http://devresource.hp.com/drc/slide_...SDL/index.jsp). so once the schema turn into proxy at the client side. they can
modify it accordingly to achieve the desired behaviors as long as the serialized objects is still valid Xml instant of the schema
regards erymuzuan
kbs wrote: Hi,
I'm looking for some good examples that illustrate how to code a
web service that exposes a custom collection so that the properties of the collection are accessible on the client without having to do a httpwebreqeust
call.
My collection derive from IList and ICloneable.
"Christoph Schittko [MVP]" wrote: You can definitely express arrays of simple types as XML schemas.
What are your "custom collections"? Are they collections deriving from CollectionBase? Custom implementations if IList, etc?
Christoph Schittko MVP XML http://weblogs.asp.net/cschittko
-----Original Message----- From: Ken [mailto:Ke*@discussions.microsoft.com] Posted At: Sunday, January 23, 2005 9:51 AM Posted To: microsoft.public.dotnet.framework.webservices Conversation: Consuming Custom Collecction through a web service Subject: Re: Consuming Custom Collecction through a web service
Agreed, web services share schema. Perhaps what I'm having a problem with is properly serializing a custom collection. I'm experimenting with a simple class who's properties are simple data types; a type safe array list that contains a simple class who's properties are simple data types. No nested collections. So what I'm looking for is the proper way to serialize a custom collection. "erymuzuan" wrote:
I can't give you an example for that, but bear in mind, Web Services share schema(W3C XML Schema) not type for contract. thus anything that could be expressed as a valid Xml Schema can be expose(but for best practice and interoperability... there some rules http://devresource.hp.com/drc/slide_...SDL/index.jsp). so once the schema turn into proxy at the client side. they can modify it accordingly to achieve the desired behaviors as long as the serialized objects is still valid Xml instant of the schema
regards erymuzuan
kbs wrote: > Hi, > > I'm looking for some good examples that illustrate how to code a web service > that exposes a custom collection so that the properties of the collection are > accessible on the client without having to do a httpwebreqeust call. > >
Then you can implement IList and ICloneable to your generated type from
WSDL. make sure is't still valid Xml for the schema, I would suggest
using SOAP sniffer such as SOAPScope to check the Xml over the wire.
regards
erymuzuan
Ken wrote: My collection derive from IList and ICloneable.
"Christoph Schittko [MVP]" wrote:
You can definitely express arrays of simple types as XML schemas.
What are your "custom collections"? Are they collections deriving from CollectionBase? Custom implementations if IList, etc?
Christoph Schittko MVP XML http://weblogs.asp.net/cschittko
-----Original Message----- From: Ken [mailto:Ke*@discussions.microsoft.com] Posted At: Sunday, January 23, 2005 9:51 AM Posted To: microsoft.public.dotnet.framework.webservices Conversation: Consuming Custom Collecction through a web service Subject: Re: Consuming Custom Collecction through a web service
Agreed, web services share schema. Perhaps what I'm having a problem
with
is properly serializing a custom collection. I'm experimenting with a
simple
class who's properties are simple data types; a type safe array list
that
contains a simple class who's properties are simple data types. No
nested
collections. So what I'm looking for is the proper way to serialize a custom collection. "erymuzuan" wrote:
I can't give you an example for that, but bear in mind, Web Services share schema(W3C XML Schema) not type for contract. thus anything
that
could be expressed as a valid Xml Schema can be expose(but for best practice and interoperability... there some rules
http://devresource.hp.com/drc/slide_...SDL/index.jsp).
so once the schema turn into proxy at the client side. they can
modify
it accordingly to achieve the desired behaviors as long as the serialized objects is still valid Xml instant of the schema
regards erymuzuan
kbs wrote:
>Hi, > >I'm looking for some good examples that illustrate how to code a
web
service
>that exposes a custom collection so that the properties of the
collection are
>accessible on the client without having to do a httpwebreqeust
call.
>
If your collection implements IList, then the ASMX infrastructure will
only serialize the list elements, but not any other properties.
You need to declare the types in the list to the web service
infrastructure via XmlElement or XmlArrayItem attributes attached to the
return value or parameters (whichever applies to your case).
HTH,
Christoph Schittko
MVP XML http://weblogs.asp.net/cschittko -----Original Message----- From: Ken [mailto:Ke*@discussions.microsoft.com] Posted At: Sunday, January 23, 2005 5:53 PM Posted To: microsoft.public.dotnet.framework.webservices Conversation: Consuming Custom Collecction through a web service Subject: Re: Consuming Custom Collecction through a web service
My collection derive from IList and ICloneable.
"Christoph Schittko [MVP]" wrote:
You can definitely express arrays of simple types as XML schemas.
What are your "custom collections"? Are they collections deriving
from CollectionBase? Custom implementations if IList, etc?
Christoph Schittko MVP XML http://weblogs.asp.net/cschittko
-----Original Message----- From: Ken [mailto:Ke*@discussions.microsoft.com] Posted At: Sunday, January 23, 2005 9:51 AM Posted To: microsoft.public.dotnet.framework.webservices Conversation: Consuming Custom Collecction through a web service Subject: Re: Consuming Custom Collecction through a web service
Agreed, web services share schema. Perhaps what I'm having a
problem with is properly serializing a custom collection. I'm experimenting with a simple class who's properties are simple data types; a type safe array
list that contains a simple class who's properties are simple data types. No nested collections. So what I'm looking for is the proper way to
serialize a custom collection. "erymuzuan" wrote:
> I can't give you an example for that, but bear in mind, Web
Services > share schema(W3C XML Schema) not type for contract. thus
anything that > could be expressed as a valid Xml Schema can be expose(but for
best > practice and interoperability... there some rules >
http://devresource.hp.com/drc/slide_...SDL/index.jsp). > so once the schema turn into proxy at the client side. they can modify > it accordingly to achieve the desired behaviors as long as the > serialized objects is still valid Xml instant of the schema > > regards > erymuzuan > > kbs wrote: > > Hi, > > > > I'm looking for some good examples that illustrate how to code
a web service > > that exposes a custom collection so that the properties of the collection are > > accessible on the client without having to do a httpwebreqeust call. > > > > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Mantorok |
last post by:
Hi
I'm adding a Web Reference in my project and it pulls in the web-service
fine, but some of the custom classes are not being generated fully.
Example : I have a DocInfo class and although it...
|
by: Matt D |
last post by:
I've got two web services that use the same data types and that
clients will have to consume. I read the msdn article on sharing types...
|
by: Glenn Venzke |
last post by:
Is there any way to tell what type of application is consuming a web service?
I'm writing a web service that returns a string with 2 carriage returns. What
I want to do is replace these carriage...
|
by: s |
last post by:
'project with web service
<webmethod()> _
public function myws(id as integer)
'do db stuff with id and build document
Dim xd As New XmlDataDocument...
|
by: plmanikandan |
last post by:
I need to develop a application to consume a webservice.
For consuming web service i tried a example in Consuming a Web Service
in C# in http://www.csharphelp.com.But i am uanble to use that...
|
by: Jeremy Chapman |
last post by:
I've writtin a very simple web service in axis which returns an array of
classes.
I consume it in a .net app. When receiving the response, my .net app
generates an error "Cannot assign object...
|
by: =?Utf-8?B?R29yZG9u?= |
last post by:
Hi;
I can consume a web service from an asp.net application with no problem.
The web service connects to a remote server through ODBC and returns a data
set to the consuming software.
When...
|
by: jeanbdenis |
last post by:
Hi All,
I've been struggling with this issue for a while. I am using the autogenerated code from Excel VBA to consume a web service which takes as input a complex type and returns a complex...
|
by: asharda |
last post by:
I have a custom property grid. I am using custom property grid as I do
not want the error messages that the propertygrid shows when abphabets
are entered in interger fields.
The custom property...
|
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: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
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,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
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: 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...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
| |