HighTechTalks DotNet Forums  

Web Method Attributes

ASP.net Web Services microsoft.public.dotnet.framework.aspnet.webservices


Discuss Web Method Attributes in the ASP.net Web Services forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
jeff@cumpsty.co.uk
 
Posts: n/a

Default Web Method Attributes - 02-22-2007 , 09:34 AM






I have a Web Service with the following structure...

[WebMethod]
[return: XmlElementAttribute("Response", Namespace="http://
www.abc.biz/")]
public ResponseType DeliverRequest(string M, StateType CS,
ErrorCodeType EC, InfoType I)
{
ResponseType c = new ResponseType();

Return c;
}

Its Soap Response is ...
<soap:Envelope ...>
<soap:Body>
<DeliverRequestResponse xmlns="http://www.abc.biz/">
<Response />
</DeliverRequestResponse >
</soap:Body>
</soap:Envelope>

But I want it to be...
<soap:Envelope ...>
<soap:Body>
<Response />
</soap:Body>
</soap:Envelope>


Is there a method attribute that I can set to accomplish this?


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.