Web Method Attributes

J

jeff

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,992
Messages
2,570,220
Members
46,807
Latest member
ryef

Latest Threads

Top