473,387 Members | 1,592 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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

We have a return object that has a super class called
SoapReturnResponse. 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
SoapReturnResponse into it's actual type of User, Card etc..

For example:

SoapReturn soapReturn = billing.getUser(email);
if (soapReturn.returnStatus == 2) // expected response
{
SoapReturnResponse response = soapReturn.response;
User user = (User) response;
}

We get the error:
Cannot convert type
'WindowsApplication1.WebReference.SoapReturnRespon se' to
'WindowsApplication1.WebReference.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 SoapReturnResponse 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="SoapReturnResponse">
<sequence/>
</complexType>

Nov 23 '05 #1
0 1397

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Dom | last post by:
Hi to all, I have to develop a PHP client calling a web service hosted by Tomcat-Axis platform... The signature exposed by the web service is (java-description): public boolean insert(Account...
0
by: | last post by:
I'm working with a Java (Axis) based Web Service that accepts and returns fairly complex object structures. Are there any Python libraries that supports clients for this type of a web service? ...
0
by: mjcsfo | last post by:
I can't seem to find a reference nor any helpful threads on this topic. I've gotten the following error in two circumstances: 1. A complex type has nested within it another complex type, in the...
0
by: Dan A | last post by:
I have a SOAP written in Java, and being served by Apache Axis - using the wrapped mode. I then used VS 2003 to generate C# client stubs. I have many complex types that are returned - and these...
1
by: leslie_tighe | last post by:
Hello, I have webservice created with Axis 1.2.1 and that I am trying to consuming in .NET (VB) using the Microsoft provided tools. While I am able to consume methods on the service that return...
2
by: maleone41 | last post by:
I have a C# web service running on a machine that I would like to connect to with a Java client. To verify the web service is working properly, i quickly made a C# client, added a web reference,...
3
by: andreas.baus | last post by:
Hello. I'm trying to exchange data between a webservice based on Apache Axis and a client written in C#, and so far it has been working with few problems (none that I couldn't solve myself with...
2
by: Philip Reimer | last post by:
Hello. We have here a Java web service that has been created using Apache Axis 1.4, using the document/literal wrapped style, and returns complex types in its methods. When consuming the web...
0
by: Siyodia | last post by:
This is a java program which i need to run facing compilation error Its consuming a third party web service method I have the supported files(folder) which contain necessary class files...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.