473,473 Members | 1,513 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

System.InvalidCastException in .Net client consuming Axis java web service

Hi,
I am developing a .Net client for Axis 1.1 web service written in java.
The wsdl is generated using, java2WSDL with these switches:: -y WRAPPED -u LITERAL

The login service which returns a session Id, is null, after deserializing, but when the XML passing over wire is seen, I can see the session Id being returned.
But if in the client proxy code, if I changed the "Use" property from Literal to Encoded, .Net client is able to deserialize the response, and I get the session Id.

One more thing, is when I call another webservice called, findUsers which returns array of user names in the response....
..Net is unable to deserialize this response, and throws exception::

System.InvalidCastException: Cannot assign object of type System.Xml.XmlNode[] to an object of type AxisClient.WebReference1.userInfo[]
where userInfo is a complexType....

Let me know, if anyone's got any hints on what could be wrong.
Thanks,
Parag.

Nov 23 '05 #1
1 2798
Hello Parag,
From another post.. hope this [0] helps

[0] - http://marc.theaimsgroup.com/?l=axis...4879902571&w=2

HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com
Hi,
I am developing a .Net client for Axis 1.1 web service written in
java.
The wsdl is generated using, java2WSDL with these switches:: -y
WRAPPED
-u LITERAL
The login service which returns a session Id, is null, after
deserializing, but when the XML passing over wire is seen, I can see
the
session Id being returned.
But if in the client proxy code, if I changed the "Use" property from
Literal to Encoded, .Net client is able to deserialize the response,
and
I get the session Id.
One more thing, is when I call another webservice called, findUsers
which returns array of user names in the response....
..Net is unable to deserialize this response, and throws exception::
System.InvalidCastException: Cannot assign object of type
System.Xml.XmlNode[] to an object of type
AxisClient.WebReference1.userInfo[] where userInfo is a
complexType....

Let me know, if anyone's got any hints on what could be wrong.
Thanks,
Parag.

Nov 23 '05 #2

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

Similar topics

1
by: Lakshmi | last post by:
Hi All, I am having performance issues with the .NET client calling the Java Webservice running on axis. Have detailed the problem below. Please help. I wrote a webservice in Java. Lets name...
3
by: Dhananjayan | last post by:
Hi, I have a java webservice running on Axis, Iam able to create a java client to invoke the webservice and obtain the result. But iam not able to invoke the service from .Net client.. Here are...
1
by: Samudrala | last post by:
Hi, I have developed a web service developed in C#. the WSDL I gave is working fine with .net client. But when java client consumes it always raising exception. I have basic knowledge of java too...
0
by: Jamie Phillips | last post by:
I'm sure this topic has been "around the block" a few times, but I have not been able to find ANY solutin that fits this particular problem. I have written a Java Axis web service that has a method...
7
by: Jamie Phillips | last post by:
I'm sure this topic has been "around the block" a few times, but I have not been able to find ANY solutin that fits this particular problem. I have written a Java Axis web service that has a method...
1
by: WebServiceSecurity | last post by:
The issue involves the following technologies: - 1. .NET 2.0 Framework 2. WSE2.0 (WS-Security) 3. X.509 certificates 4. BEA Weblogic 8.1.5
0
by: cjharrelson | last post by:
I am trying to consume a .NET web service using UsernameToken plain text password authentication. Here is my .wsdd configuration file: <!-- Using the WSDoAllSender security handler in request...
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...
1
by: bugnthecode | last post by:
Hi, I am trying to put together a small app that uses one of my company's web service. Originally I interfaced with this web service using java, and have the example code. I believe the web...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.