Hi,
I have a class with private members, I do custom serialization with
IXmlSerializable interface. My web service works fine when I test it. But
when I generate proxy by WSDL, there is a function in generated code
Public Function getObject() As System.Data.DataSet
Dim results() As Object = Me.Invoke("getObject", New Object(-1) {})
Return CType(results(0),System.Data.DataSet)
End Function
The problem is that function doesn't retern DataSet but my custom object.
Should I do something extra to wsdl recognize my custom type of object?
OK, when I correct this to something like that
Public Function getObject() As myLib.myObject
Dim results() As Object = Me.Invoke("getObject", New Object(-1) {})
Return CType(results(0),myLib.myObject)
End Function
I get exception "Client found response content type of '', but expected
'text/xml'."
Thanks for help,
Manekyn