Complex types from Java Axis Web Service not working in .Net

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

    #1

    Complex types from Java Axis Web Service not working in .Net

    We have a return object that has a super class called
    SoapReturnRespo nse. There are several implementing classes like User,
    Card, DataTable (not the .net one). When we add the reference in VS
    2003 and VS 2005 B2, VS is not able to type cast the more general type
    SoapReturnRespo nse into it's actual type of User, Card etc..

    For example:

    SoapReturn soapReturn = billing.getUser (email);
    if (soapReturn.ret urnStatus == 2) // expected response
    {
    SoapReturnRespo nse response = soapReturn.resp onse;
    User user = (User) response;
    }

    We get the error:
    Cannot convert type
    'WindowsApplica tion1.WebRefere nce.SoapReturnR esponse' to
    'WindowsApplica tion1.WebRefere nce.User'

    This works with PHP and Java Clients, can I get this to work in .Net or
    do I have to do this differently?


    The SoapReturnRespo nse contains an SoapReturnError object that has
    several attributes and that seems to work just fine since it's a single
    Object type.

    The server is Tomcat v5 with Axis v1.3. We have customers that want a
    ..Net, PHP and Java web service client applications.

    Any help with this would be greatly appreciated.

    Included from the WSDL file if needed

    <complexType abstract="true" name="SoapRetur nResponse">
    <sequence/>
    </complexType>

Working...