Web service string arrays in C# Java

Web service string arrays in C# Java

Post by YWlhaG1lZ » Sat, 10 Mar 2007 05:33:22


I am trying to call a Webservice written in Java from .NET C# client.
I am getting the following error :

Exception Details: System.Web.Services.Protocols.SoapException:
Server was unable to process request. --> There is an error in XML document
(1, 1128). --> The specified type was not recognized: name='string',
namespace=' http://www.yqcomputer.com/ ', at <loopQualStatus
xmlns=">

In the References.cs class I have an entry in one of the classes as

public string[] loopQualStatus;

I believe the problem is related to "string arrays" during Java C# interop.

Could you please help me resolve this issue.
 
 
 

1. Array of objects & web service - Flash converting array to a string

2. Converting a cell array of strings to a char array for use with Java Strings

Hi, I am trying to call a Java function that takes a java.lang.String
using a Matlab cell array which has been converted to a char array
but it doesn't work.

a_cell = { 'This is the first line. ' char(10) ' the second line...'
};
a_char = char(a_cell);

jString2 = java.lang.String(a_char)

% >>> Error message: ??? No constructor java.lang.String
with matching signature found.

Whereas this works fine:
descr = ['This is a test ' 10 ' the second line..'];
jString = java.lang.String(descr)

What is wrong with that previous char array?

Michael

3. Skills: Java, web development, web services, Java

4. Noobilicious question: Exposing two interfaces on the same web service (C# web service)

5. Passing arrays of structs from C# web service to raw C++?

6. Noobilicious question: Exposing two interfaces on the same web service (C# web service)

7. using a C#- web service in a java application

8. Passing arrays of structs from C# web service to raw C++?

9. Maximum String Length - C# Web Service

10. Java Web Service and VB.NET Web Service Reference

11. How .NET web services client handles exceptions from Java web services?

12. Passing string array to web service

13. copy string array elements to strings in C#

14. Can be string array passed to and from an XML Web service?

15. Passing repeating data (array of strings) to web service