Wrong type in generated proxy

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • manekyn

    Wrong type in generated proxy

    Hi,
    I have a class with private members, I do custom serialization with
    IXmlSerializabl e 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.Dat aSet
    Dim results() As Object = Me.Invoke("getO bject", New Object(-1) {})
    Return CType(results(0 ),System.Data.D ataSet)
    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("getO bject", New Object(-1) {})
    Return CType(results(0 ),myLib.myObjec t)
    End Function

    I get exception "Client found response content type of '', but expected
    'text/xml'."

    Thanks for help,
    Manekyn


Working...