Ask a Question related to ASP.NET Web Services, Design and Development.
-
Jonathan via DotNetMonster.com #1
Returning XML from web service method
I have web service method that returns XML similar to what is shown below.
The actual return value from the web service method is an XmlDocument:
<?xml version="1.0" encoding="utf-8" ?>
<RESPONSE>
<STATUS Code="Completed">
</RESPONSE>
If using SOAP, I notice that when I examine the actual content that is
returned on the client, the XML declaration is removed and it will actually
add a xmlns attribute to the root element resulting in what follows:
<RESPONSE xmlns="">
<STATUS Code="Completed">
</RESPONSE>
Yet, if I use HTTP POST the response is exactly as it should be. If so, why
would it be different for POST instead of SOAP?
Why would this be happening? Is this something that the XmlSerializer is
doing?
--
Message posted via [url]http://www.dotnetmonster.com[/url]
Jonathan via DotNetMonster.com Guest
-
Please Help me- Returning DataSet from a Web Service
Hi All My Web Service is returning a DataSet. I realized that we cannot return a DataReader.. Normally we can use a DataReader( when not using... -
Returning a custom class in a Web Service
I am writing a Web Service in c# which returns a object structure as an out parameter. The object (an Order specification) is produced by xsd... -
Returning XML from a web service
We have a web service that basically does as follows <WebMethod()> Public Function Verify(ByRef strXML As String) As Intege Dim iRetCode As... -
Returning user-defined objects from a web method
Hello! I've created a web service that contains the following method: public Foo Bar() {...} Foo is a class that models simple objects with... -
Returning my object(s) from web service
Hi there I am trying to return an instance of a class from a web service that contains a collection of instances of another class. I have three...



Reply With Quote

