Since you omtited the WSDL I will assume that is the problem.
Here is how one declares arrays in WSDL (courtesy http://www.soapware.org/bdg)
 Arrays 

A value can also be an array, which is specified by an XML element with a SOAP-ENC:arrayType attribute whose value begins with ur-type[, followed by the number of array elements, followed by ].

Here's an example of a four-element array:

<param SOAP-ENC:arrayType="xsd:ur-type[4]" xsi:type="SOAP-ENC:Array">
   <item xsi:type="xsd:int">12</item>
   <item xsi:type="xsd:string">Egypt</item>
   <item xsi:type="xsd:boolean">0</item>
   <item xsi:type="xsd:int">-31</item>
   </param>

The order of array elements is significant, the names of the elements are not.

You can mix types as the example above illustrates.

If the array elements are of a single type, the value of the array element's SOAP-ENC:arrayType specifies the type of the array's sub-elements, for example, SOAP-ENC:arrayType="xsd:int[4]" means an array of four xsd:int elements.

For mixed-type arrays, the SOAP-ENC:arrayType attribute always specifies xsd:ur-type.

For single-type arrays, the xsi:type attribute is optional for array item sub-elements, but its inclusion is recommended.

Does this help?

-Martin

 

>From: Scott Nichol <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED], [EMAIL PROTECTED]
>CC: Sudhakar S <[EMAIL PROTECTED]>, Anantha Padmanabhan Vedachalam <[EMAIL PROTECTED]>
>Subject: Re: Regd VB Client calling a methid that return a String[]
>Date: Thu, 19 Sep 2002 10:07:37 -0400
>MIME-Version: 1.0
>Received: from mc2-f10.law16.hotmail.com ([65.54.237.17]) by hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Thu, 19 Sep 2002 10:34:36 -0700
>Received: from apache.org ([63.251.56.142]) by mc2-f10.law16.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Thu, 19 Sep 2002 07:06:45 -0700
>Received: (qmail 91350 invoked by uid 500); 19 Sep 2002 14:06:30 -0000
>Received: (qmail 91341 invoked from network); 19 Sep 2002 14:06:29 -0000
>Received: from smtp.comcast.net (24.153.64.2) by daedalus.apache.org with SMTP; 19 Sep 2002 14:06:29 -0000
>Received: from fastdata (pcp01349834pcs.lowmrn01.pa.comcast.net [68.80.227.176]) by mtaout05.icomcast.net (iPlanet Messaging Server 5.1 HotFix 0.8 (built May 13 2002)) with SMTP id <[EMAIL PROTECTED]> for [EMAIL PROTECTED]; Thu, 19 Sep 2002 10:06:25 -0400 (EDT)
>Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
>Precedence: bulk
>list-help:
>list-unsubscribe:
>list-post:
>Delivered-To: mailing list [EMAIL PROTECTED]
>Message-id: <011f01c25fe5$e8ce5120$c900a8c0@fastdata>
>X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
>X-Mailer: Microsoft Outlook Express 5.50.4133.2400
>X-Priority: 3
>X-MSMail-priority: Normal
>References: <002201c25fbd$f0056be0$3814a8c0@shankars>
>X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N
>Return-Path: [EMAIL PROTECTED]
>X-OriginalArrivalTime: 19 Sep 2002 14:06:45.0834 (UTC) FILETIME=[C9D84AA0:01C25FE5]
>
>Is it correct that you are using Apache SOAP 2.2? If so, you may want to
>use 2.3.1, which has a year of improvements over 2.2. It may work with the
>WSDL you attached.
>
>For your current installation, you may have success if you edit the WSDL to
>change http://www.w3.org/2001/XMLSchema to http://www.w3.org/1999/XMLSchema.
>Your SOAP service is sending the latter, while Axis generated WSDL with the
>former. I believe SOAP 2.3.1 would send the former, matching the WSDL.
>
>I am *not* 100% certain that the change described will solve your problem,
>but it is the first thing that comes to mind.
>
>Scott Nichol
>
>----- Original Message -----
>From: "Shankar S" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Cc: "Sudhakar S" <[EMAIL PROTECTED]>; "Anantha Padmanabhan Vedachalam"
><[EMAIL PROTECTED]>
>Sent: Thursday, September 19, 2002 5:21 AM
>Subject: Regd VB Client calling a methid that return a String[]
>
>
> > Hi,
> >
> > I have my web service running in java. I have two methods that returns a
> > String[] and a int[].
> > I have other methods that retruns a String or an int. These two methods
>are
> > working fine.
> > I am getting an error for the other two methods (String[] and int[]).
> >
> > This is the error....... :-(
> >
> > FaultCode:Client
> > FaultString:SoapMapper:The schema definition with a targetnamespace of
> > http://www.w3.org/1999/XMLSchema for SoapMapper int could not be found
> >
> > SoapMapper:The schema definition with a targetnamespace of
> > http://www.w3.org/1999/XMLSchema for SoapMapper int could not be found
> > HRESULT=0x80004005: Unspecified error
> > - SoapMapper:Can't create mapper for array element of type int in
>namespace
> > http://www.w3.org/1999/XMLSchema. HRESULT=0x80004005: Unspecified error
> > - SoapMapper:Restoring data into SoapMapper ArrayOf_xsd_int failed
> > HRESULT=0x80004005: Unspecified error
> > - Client:Unspecified client error. HRESULT=0x80004005: Unspecified error
> >
> > Please find the java web service class, WSDL (generated using AXIS) and
>the
> > VB client code.
> >
> > VB Client Code:
> >
> > Private Sub Command1_Click()
> >
> > Dim client As New SoapClient30
> > Dim str()
> > Dim error_str As String
> >
> > client.MSSoapInit
>"http://sol2.immchen.com:8001/NASApp/soap/vbtest.wsdl"
> >
> > On Error GoTo err_block
> >
> > 'MsgBox client.getStringString("Array")
> > client.getIntArray
> > Exit Sub
> >
> > err_block:
> > MsgBox "ERROR:" & Err.Description
> >
> > If client.FaultCode <> "" Then
> >
> > MsgBox client.FaultCode
> > MsgBox client.FaultString
> > End If
> >
> > End Sub
> >
> >
> >
> > Thanks in Advance,
> > Shankar Shanmugam
> >
> >
> >
> >
>
>
>----------------------------------------------------------------------------
>----
>
>
> > --
> > To unsubscribe, e-mail:
> > For additional commands, e-mail:
>
>
>--
>To unsubscribe, e-mail:
>For additional commands, e-mail:


Join the world�s largest e-mail service with MSN Hotmail. Click Here
-- To unsubscribe, e-mail: For additional commands, e-mail:

Reply via email to