I need to write a web service in J2EE that returns an XML document. My requirement is that the client will be C#/.NET based. I need to know the best way to do this.
I have the string "public String getFile(String name)" version working where I can receive the data on the .NET side. But I don't think this is the best approach.
I though about using SAAJ and sending the XML file as an attachment, but I'm not sure how the C# client could read it. Can .NET access SOAP attachments?
I also thought about using "public Document getFile(String name)" and returning an XML document. But all I saw on the .NET side was the class XmlDocument. Does anyone know if this approach would work?
Thanks,
-MrManly
I have the string "public String getFile(String name)" version working where I can receive the data on the .NET side. But I don't think this is the best approach.
I though about using SAAJ and sending the XML file as an attachment, but I'm not sure how the C# client could read it. Can .NET access SOAP attachments?
I also thought about using "public Document getFile(String name)" and returning an XML document. But all I saw on the .NET side was the class XmlDocument. Does anyone know if this approach would work?
Thanks,
-MrManly