SOAP Webservice XML response

Hey guys

I have a SOAP webservice. One method has a return type of XmlDocument.

I then sent this service to guys that need to consume it. And this is there response:

I see the web service returns and xml string. Why not just wrap the results in the web service response itself?

Any ideas what he means by that? I have asked, but I have received no reply from him yet.

Any ideas? That I can make it return proper XML and not XML formatted string?

Thanks

Might help to know what stack the other guys are wokring in–that can explain alot. And can you post the method signatures?

They are writing an iPhone/Android app that talks to the service.

[WebMethod]
public XmlDocument getAd();

It generates a valid xml string and loads the doc from that. Then I return the doc. If I invoke the method in the browser, it shows me XML.

Maybe they making a mistake. I will try and follow up with other android/iphone app dev guys and see how it goes.

Ok, I think they are asking you to make an object and pass that so the response to the service. Eg:


public class MyDto
{
    public string Name {get; set; }
    public string Id {get; set; }
}

//service signature
public MyDto GetData() { . . . }

The response gets encoded as an xml string, but the generated WSDL will help the iPhone guys tooling create an object for you rather than manually parsing the XML.

ah, ok thanks. I understand. I will do that.

Thanks for the help