Click here to Skip to main content
15,896,207 members
Home / Discussions / Web Development
   

Web Development

 
QuestionWeb Method is chatty Pin
convivial.developer13-Feb-07 16:01
convivial.developer13-Feb-07 16:01 
Hi, I have a web method that is very chatty, here is sample output from it;

<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:tns="http://tempuri.org/" xmlns:types="http://tempuri.org/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<types:MyWebMethodResponse>
<MyWebMethodResult href="#id1"/>
</types:MyWebMethodResponse>
<soapenc:Array soapenc:arrayType="types:MyType[1]" id="id1">
<Item href="#id2"/>
</soapenc:Array>
<types:MyType id="id2" xsi:type="types:MyType">
<Id xsi:type="xsd:string">someid</Id>
<Number xsi:type="xsd:string">Number 1</Number>
<Title xsi:type="xsd:string">Title</Title>
<Addr xsi:type="xsd:string">some address</Addr>
<City xsi:type="xsd:string">some city</City>
<State xsi:type="xsd:string">some state</State>
<Zip xsi:type="xsd:string">11111</Zip>
<Times href="#id3"/>
</types:MyType>
<soapenc:Array soapenc:arrayType="types:Time[256]" id="id3">
<Item href="#id5"/>
<Item href="#id6"/>
<Item href="#id7"/>
<Item href="#id8"/>
<Item href="#id9"/>
...
<Item href="#id258"/>
<Item href="#id259"/>
<Item href="#id260"/>
</soapenc:Array>
<types:Time id="id5" xsi:type="types:Time">
<StartTime xsi:type="xsd:dateTime">2007-01-29T13:18:00.0000000-08:00</StartTime>
<EndTime xsi:type="xsd:dateTime">2007-01-29T13:18:00.0000000-08:00</EndTime>
</types:Time>
<types:Time id="id260" xsi:type="types:Time">
<StartTime xsi:type="xsd:dateTime">2007-01-29T13:18:00.0000000-08:00</StartTime>
<EndTime xsi:type="xsd:dateTime">2007-01-29T13:18:00.0000000-08:00</EndTime>
</types:Time>
</soap:Body>
</soap:Envelope>

All of those <Item href...> take up a lot of space, is there a way instruct .net not generate it?

This is the declaration over the webservice C# class file;
[WebService(Namespace=Constants.NAMESPACE), ToolboxItem(false), SoapRpcService]

The web method just has plain, [WebMethod] attribute and that's it.

Thanks,

QuestionJavascript confirm dialog and asp.net 2.0 using C# Pin
#realJSOP13-Feb-07 8:03
professional#realJSOP13-Feb-07 8:03 
AnswerRe: Javascript confirm dialog and asp.net 2.0 using C# Pin
Christian Graus13-Feb-07 8:53
protectorChristian Graus13-Feb-07 8:53 
GeneralRe: Javascript confirm dialog and asp.net 2.0 using C# Pin
#realJSOP13-Feb-07 9:01
professional#realJSOP13-Feb-07 9:01 
GeneralRe: Javascript confirm dialog and asp.net 2.0 using C# Pin
WoutL13-Feb-07 9:23
WoutL13-Feb-07 9:23 
GeneralRe: Javascript confirm dialog and asp.net 2.0 using C# Pin
Christian Graus13-Feb-07 10:42
protectorChristian Graus13-Feb-07 10:42 
JokeRe: Javascript confirm dialog and asp.net 2.0 using C# Pin
Guffa13-Feb-07 11:19
Guffa13-Feb-07 11:19 
GeneralRe: Javascript confirm dialog and asp.net 2.0 using C# Pin
Christian Graus13-Feb-07 12:40
protectorChristian Graus13-Feb-07 12:40 
AnswerRe: Javascript confirm dialog and asp.net 2.0 using C# Pin
Bradml13-Feb-07 20:21
Bradml13-Feb-07 20:21 
AnswerRe: Javascript confirm dialog and asp.net 2.0 using C# Pin
badgrs13-Feb-07 23:26
badgrs13-Feb-07 23:26 
AnswerRe: Javascript confirm dialog and asp.net 2.0 using C# Pin
Michael Sync15-Feb-07 23:33
Michael Sync15-Feb-07 23:33 
QuestionA beginner's question Pin
Bulky Fellow13-Feb-07 3:15
Bulky Fellow13-Feb-07 3:15 
AnswerRe: A beginner's question Pin
Bulky Fellow13-Feb-07 18:09
Bulky Fellow13-Feb-07 18:09 
AnswerRe: A beginner's question Pin
Bradml13-Feb-07 20:12
Bradml13-Feb-07 20:12 
GeneralRe: A beginner's question Pin
Bulky Fellow13-Feb-07 20:20
Bulky Fellow13-Feb-07 20:20 
GeneralRe: A beginner's question Pin
Bradml13-Feb-07 20:27
Bradml13-Feb-07 20:27 
QuestionDrop-down menu written in Javascript not working in IE6 Pin
MayyMagdy12-Feb-07 23:22
MayyMagdy12-Feb-07 23:22 
QuestionProblematic PHP Navigation Code: [modified] Pin
AndrewVos12-Feb-07 23:18
AndrewVos12-Feb-07 23:18 
AnswerRe: Problematic PHP Navigation Code: Pin
MatrixCoder13-Feb-07 6:58
MatrixCoder13-Feb-07 6:58 
GeneralRe: Problematic PHP Navigation Code: Pin
AndrewVos13-Feb-07 23:34
AndrewVos13-Feb-07 23:34 
AnswerRe: Problematic PHP Navigation Code: Pin
#realJSOP13-Feb-07 7:51
professional#realJSOP13-Feb-07 7:51 
GeneralRe: Problematic PHP Navigation Code: Pin
Bradml13-Feb-07 20:10
Bradml13-Feb-07 20:10 
QuestionFile Input in my Language Pin
Tyler4512-Feb-07 22:17
Tyler4512-Feb-07 22:17 
AnswerRe: File Input in my Language Pin
DavidNohejl13-Feb-07 12:01
DavidNohejl13-Feb-07 12:01 
AnswerRe: File Input in my Language Pin
Bradml13-Feb-07 20:10
Bradml13-Feb-07 20:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.