RE: Reducing XML output
From: Dan Rogers (danro_at_microsoft.com)
Date: 03/08/05
- Next message: Dan Rogers: "RE: initialize COM within a web service"
- Previous message: Dan Rogers: "RE: Web Service with Admin rights"
- In reply to: Wagner: "Reducing XML output"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 08 Mar 2005 20:23:26 GMT
One thing to do right off is to not define methods the return data sets.
These methods will not be callable by non-.NET applications. Instead,
define custom types that you return, and have your service populate those
types from your back-end database ministrations.
--------------------
>From: Wagner <wagner@email.t-com.hr>
>Subject: Reducing XML output
>User-Agent: 40tude_Dialog/2.0.15.1hr
>MIME-Version: 1.0
>Content-Type: text/plain; charset="us-ascii"
>Content-Transfer-Encoding: 7bit
>Reply-To: wagner@email.t-com.hr
>Date: Tue, 8 Mar 2005 09:50:07 +0100
>Message-ID: <nsh9mgoy9a2y$.l9gumqdcdpsh.dlg@40tude.net>
>Newsgroups: microsoft.public.dotnet.framework.aspnet.webservices
>NNTP-Posting-Host: lns01-0468.dsl.iskon.hr 213.202.85.215
>Lines: 1
>Path:
TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msftngp1
3.phx.gbl
>Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet.webservices:28484
>X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webservices
>
>Hi,
>
>I'm a newbie in web services programing so I have a few questions:
>Is it possible to reduce size of xml output produced by .NET web service?
>I'm using SQLDataAdapter.Fill(DataSet, "Name") statement to fill dataset
>which is returned then by service. Web service type is DataSet.
>
>It works fine but I'd like to cut out begining of xml which is some kind of
>description of the xml because it takes bandwidth when is transfered.
>
>Thanks in advance
>
- Next message: Dan Rogers: "RE: initialize COM within a web service"
- Previous message: Dan Rogers: "RE: Web Service with Admin rights"
- In reply to: Wagner: "Reducing XML output"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|