473,507 Members | 2,460 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Specified array type is not recognized in web service response

we have problems in WebService -> .NET response

Response look OK in XMLSpy and tcpTrace

<m:AGW014N1Response xmlns:m="urn:com-softwareag-entirex-rpc:AGW014N1"><ArrayOfMAA SOAP-ENC:arrayType="MAA[100]" xsi:type="SOAP-ENC:Array"><MAA><MAATUNNUS xsi:type="xsd:string">AT</MAATUNNUS><MAANIMI xsi:type="xsd:string">IT#VALTA</MAANIMI></MAA><MAA><MAATUNNUS xsi:type="xsd:string">BE</MAATUNNUS><MAANIMI xsi:type="xsd:string">BELGIA</MAANIMI></MAA><MAA><MAATUNNUS xsi:type="xsd:string">DE</MAATUNNUS><MAANIMI xsi:type="xsd:string">SAKSA</MAANIMI></MAA></ArrayOfMAA

When trying in .NET it shows error
"There is an error in XML document (1, 435)."
"The specified type was not recognized: name='MAA', namespace='', at <ArrayOfMAA xmlns=''>.
which is this tag <ArrayOfMAA SOAP-ENC:arrayType="MAA[100]" xsi:type="SOAP-ENC:Array"

It seems that .NET doesn't like SOAP-ENC:arrayType="MAA[100]" -part

In JAVA environment this seems to work correctly. Is there any way to get this working in .NET ?
Nov 12 '05 #1
1 7036
Here is the content of WSDL -file we used when calling Web service

<?xml version='1.0' encoding='utf-8'?><!-- Generated 21.4.2004 12:19:49 by Software AG SOAP Toolkit Wizard, Version 7.1.1.30 --><definitions name='AGW014N1' targetNamespace='http://namespace.softwareag.com/entirex/xml/mapping
xmlns='http://schemas.xmlsoap.org/wsdl/' xmlns:xsd='http://www.w3.org/2001/XMLSchema
xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/
xmlns:wsdl='http://schemas.xmlsoap.org/wsdl/' xmlns:SOAP-ENC='http://schemas.xmlsoap.org/soap/encoding/
xmlns:tns='http://namespace.softwareag.com/entirex/xml/mapping
<types><schema targetNamespace='http://namespace.softwareag.com/entirex/xml/mapping' xmlns='http://www.w3.org/2001/XMLSchema'><xsd:complexType name='ArrayOfstring'><complexContent><restriction base='SOAP-ENC:Array'><attribute ref='SOAP-ENC:arrayType' wsdl:arrayType='xsd:string[100]'/></restriction></complexContent></xsd:complexType><xsd:complexType name='ArrayOfMAA'><complexContent><restriction base='SOAP-ENC:Array'><attribute ref='SOAP-ENC:arrayType' wsdl:arrayType='tns:ArrayOfMAA2[100]'/></restriction></complexContent></xsd:complexType><xsd:complexType name='ArrayOfMAA2'><xsd:sequence><xsd:element name='MAA' type='tns:MAA'/></xsd:sequence></xsd:complexType><xsd:complexType name='MAA'><xsd:sequence><xsd:element name='MAATUNNUS' type='xsd:string'/><xsd:element name='MAANIMI' type='xsd:string'/><xsd:element name='VALUUTTA_TUNNUS' type='xsd:string'/></xsd:sequence></xsd:complexType></schema></types><message name='AGW014N1'><part name='P-KIELIKOODI' type='xsd:string'/><part name='P-MAATUNNUS' type='tns:ArrayOfstring'/></message><message name='AGW014N1Response'><part name='ArrayOfMAA' type='tns:ArrayOfMAA'/><part name='P-PALUUKOODI' type='xsd:string'/></message><portType name='AGW014N1Port'><operation name='AGW014N1'><input message='tns:AGW014N1'/><output message='tns:AGW014N1Response'/></operation></portType><binding name='AGW014N1SoapBinding' type='tns:AGW014N1Port'><soap:binding style='rpc' transport='http://schemas.xmlsoap.org/soap/http'/><operation name='AGW014N1'><soap:operation soapAction='AGW014N1'/><input><soap:body use='encoded' encodingStyle='http://schemas.xmlsoap.org/soap/encoding/

namespace='urn:com-softwareag-entirex-rpc:AGW014N1
/></input><output><soap:body use='encoded' encodingStyle='http://schemas.xmlsoap.org/soap/encoding/
namespace='urn:com-softwareag-entirex-rpc:AGW014N1
/></output></operation></binding><service name='agw014n1'><port name='AGW014N1Port' binding='tns:AGW014N1SoapBinding'><soap:address location='http://192.130.109.127:8080/entirex/xmlrt'/></port></service></definitions>
Nov 12 '05 #2

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

Similar topics

1
3999
by: Jon Maz | last post by:
Hi, I am trying to pass an array from an asp page (JScript) to a dotnet web service using the SOAP Toolkit 3.0. This is still at the Hello World stage, as you can see: WEB SERVICE METHOD ...
1
3716
by: parrot toes | last post by:
I tried to post this question before, but there was an error when posting. I case it did get posted and in order to avoid duplication, I'll just repost a summary. I have written a dotnet client...
0
6769
by: Moshe Kravchik | last post by:
Hi! I have a following problem. I have a web service (written in ATL Server). It has 2 function, lets name them getData and setData. The getData returns a byte array, setData receives a byte...
5
19560
by: Stacey Levine | last post by:
I have a webservice that I wanted to return an ArrayList..Well the service compiles and runs when I have the output defined as ArrayList, but the WSDL defines the output as an Object so I was...
0
1925
by: helldiversafe-news | last post by:
Hi all, I will use a apache soap service with an .net c# client and have a problem with an complex array: <?xml version='1.0' encoding='UTF-8'?> <SOAP-ENV:Envelope...
2
1281
by: Trey Bean | last post by:
I'm new to ASP.NET, but have been asked to create an ASP.NET app that retrieves data from a third-party web service. I've managed to connect and retrieve the data from the web service, but am...
2
10987
by: =?Utf-8?B?c2FtMDFt?= | last post by:
I have a remoting application that was developed on a Windows XP SP2 machine with VS2005 SP1. I finally got everything deployed using Wix 3.0, and it works great. Problem is, when I install the msi...
3
12415
by: =?Utf-8?B?UGF1bCBQcmV3ZXR0?= | last post by:
I'm attempting to use LINQ to insert a record into a child table and I'm receiving a "Specified cast is not valid" error that has something to do w/ the keys involved. The stack trace is: ...
0
3372
by: leon70 | last post by:
Hi Group, I built a gSoap 2.7.11 Web services client in C++ on AIX and have got it talking to the remote service. The service is sending back an array of objects to my client but the client is...
0
7223
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
7314
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
7372
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...
1
7030
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
7482
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
5041
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
4702
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
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
758
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.