473,508 Members | 2,326 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problem with Apache Axis sever and .NET Framework client

Hello,
I am realizing an application client in VisualStudio .NET 2002 with
Framework 1.1 in VisualBasic, and must communicate with a server
realized in java with Apache Axis version 1.2RC2.
I have used a console application and then I have added a webreference
and in the URL I have inserted the wsdl.
The code is simple:

Dim myStringa() As String
Dim i As Integer
Dim prova As New WebReference1.MySoapService
myStringa = prova.getStringArray("ok")
For i = 0 To myStringa.Length - 1
Console.WriteLine(myStringa(i))
Next
Console.In.Read()

When I execute the getStringaArray, It comes back the error "An
unhandled exception of type ' System.InvalidOperationException'
occurred in system.xml.dll".
Instead if I execute a getString it works correctly.
I have read of problems about deserialization of empty array but it is
not my case because the Array that would return is composed of 3
strings.
Which it could be the problem?
There are other parameters that I am ignoring?
From the server side, the user that has realized it says that it is a
my problem because the method getStringArray if called by a java
client works ccorrectly.

Thank you
Marco

Nov 23 '05 #1
2 1731
Hello Marco,
Make sure the soap response is document/literal encoded

HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com
Hello,
I am realizing an application client in VisualStudio .NET 2002 with
Framework 1.1 in VisualBasic, and must communicate with a server
realized in java with Apache Axis version 1.2RC2.
I have used a console application and then I have added a webreference
and in the URL I have inserted the wsdl.
The code is simple:
Dim myStringa() As String
Dim i As Integer
Dim prova As New WebReference1.MySoapService
myStringa = prova.getStringArray("ok")
For i = 0 To myStringa.Length - 1
Console.WriteLine(myStringa(i))
Next
Console.In.Read()

When I execute the getStringaArray, It comes back the error "An
unhandled exception of type ' System.InvalidOperationException'
occurred in system.xml.dll".
Instead if I execute a getString it works correctly.
I have read of problems about deserialization of empty array but it is
not my case because the Array that would return is composed of 3
strings.
Which it could be the problem?
There are other parameters that I am ignoring?
From the server side, the user that has realized it says that it is a
my problem because the method getStringArray if called by a java
client works ccorrectly.
Thank you
Marco

Nov 23 '05 #2
Hello
Thank you for your answer.
Why the soap response must be in format document/literal encoded?
Where I can find documentation about it?
Fixing this parameter from the server side the message error is not
transmitted but the Array returns me nothing.

Marco

On Fri, 28 Jan 2005 06:56:24 -0800, Dilip Krishnan
<dk*******@NOSPAM.geniant.com> wrote:
Hello Marco,
Make sure the soap response is document/literal encoded

HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com
Hello,
I am realizing an application client in VisualStudio .NET 2002 with
Framework 1.1 in VisualBasic, and must communicate with a server
realized in java with Apache Axis version 1.2RC2.
I have used a console application and then I have added a webreference
and in the URL I have inserted the wsdl.
The code is simple:
Dim myStringa() As String
Dim i As Integer
Dim prova As New WebReference1.MySoapService
myStringa = prova.getStringArray("ok")
For i = 0 To myStringa.Length - 1
Console.WriteLine(myStringa(i))
Next
Console.In.Read()

When I execute the getStringaArray, It comes back the error "An
unhandled exception of type ' System.InvalidOperationException'
occurred in system.xml.dll".
Instead if I execute a getString it works correctly.
I have read of problems about deserialization of empty array but it is
not my case because the Array that would return is composed of 3
strings.
Which it could be the problem?
There are other parameters that I am ignoring?
From the server side, the user that has realized it says that it is a
my problem because the method getStringArray if called by a java
client works ccorrectly.
Thank you
Marco


Nov 23 '05 #3

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

Similar topics

7
23857
by: mj | last post by:
Hello, thanks for the help. I am running a WinXP Pro w/ SP2 (my home computer, with ZoneAlarm firewall) Apache 2.0.52 MySQL 4.1.7 PHP 5.1.0-dev I have developed a PHP/MySQL web app that...
1
2677
by: jean.rossier | last post by:
Hello All, I am facing a problem while importing pylab library(in a .py program file) via web browser however the same program works when I execute it from the command prompt. my...
3
2688
by: Jacky Zhu | last post by:
Hi all, I am having a problem trying to consume a webservice that is developed on ..Net. I can access it without any problem using a .net client, but when I use a java client (based on Axis...
1
2134
by: Thomas | last post by:
Hi, I have written a Web Service using Axis C++ Server and a .Net Windows client. I considered every interoperability issue between Axis and .Net( Doc/Literal ...) The .Net Windows client can...
1
3406
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...
4
12294
by: Lucvdv | last post by:
I have to connect to a server set up by the government, where they used Apache Axis to create a webservice. The code I use to interface to the webservice is generated by wsdl.exe, based on a...
4
13968
by: nawrin22 | last post by:
hi.. I am a niwebie in 'AXIS' . but i had correctly installed it without any problem with the help of 'apache.axis.install.pdf' and also tested the examples under 'samples\userguide' directoy...
1
2676
by: David R | last post by:
I am calling an Axis web service from a Net 2.0 client. To be helpful, the developers on the Axis side sent a test client that they created, with snippets below. What I am trying to do is add a...
2
2766
raveendrabikkina
by: raveendrabikkina | last post by:
03/17 15:45:40 error Error creating form bean of class epost.form.BpUploadForm java.lang.InstantiationException: epost.form.BpUploadForm at java.lang.Class.newInstance0(Class.java:291) ...
0
7118
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
7038
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5625
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5049
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
4706
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
3180
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1550
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
763
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
415
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.