Sameer,
      Try to follow the sample code to create a Collection converter.

      Everything works correctly upto the response message been sent back
to the client. The client generates following error message:

      "There is an error in XML Document(114,4)."

      Following are the wsdl file and some code files.

      (See attached file: WebServiceController.wsdl)(See attached file:
WebServiceUtil.java)(See attached file: WebServiceController.java)(See
attached file: CollectionEntryVO.java)

      My C# code looks like the following:

            private void mnuList_Click(object sender, System.EventArgs e)
            {
                  if(Cookies==null)
                  {
                        Cookies = new CookieContainer();
                  }
                  svc2.CookieContainer = Cookies;

                  try
                  {
                        CollectionEntryVO[] obj = svc2.ListUsers(u, 1);

                        txtMessage.Text = obj.GetLength(0).ToString();
                  }
                  catch (Exception e1)
                  {
                        MessageBox.Show(e1.Message);
                  }
            }

      Can you point out where do I go wrong. Thanks.




Harry Wen


                                                                                       
                                                
                      "Sameer                                                          
                                                
                      Bombatkar"               To:       [EMAIL PROTECTED]             
                                          
                      <[EMAIL PROTECTED]        cc:                                    
                                                 
                      il.com>                  Subject:  Re: InterOP between .NET and 
Axis                                             
                                                                                       
                                                
                      08/22/2003 05:57                                                 
                                                
                      AM                                                               
                                                
                      Please respond to                                                
                                                
                      axis-user                                                        
                                                
                                                                                       
                                                
                                                                                       
                                                




Harry,
This link would help you dealing with conversion of maps..
http://nagoya.apache.org/wiki/apachewiki.cgi?AxisProjectPages/DotNetInteropMapInfo





Sameer.
.....................................................







>From: [EMAIL PROTECTED]
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: Re: InterOP between .NET and Axis
>Date: Fri, 22 Aug 2003 05:22:28 -0700
>MIME-Version: 1.0
>Received: from apache.org ([208.185.179.12]) by mc5-f42.law1.hotmail.com
>with Microsoft SMTPSVC(5.0.2195.5600); Fri, 22 Aug 2003 05:25:41 -0700
>Received: (qmail 19299 invoked by uid 500); 22 Aug 2003 12:25:25 -0000
>Received: (qmail 19285 invoked from network); 22 Aug 2003 12:25:24 -0000
>X-Message-Info: JGTYoYF78jHIc0M3aqAmLuxstrjOT4XS
>Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
>Precedence: bulk
>list-help: <mailto:[EMAIL PROTECTED]>
>list-unsubscribe: <mailto:[EMAIL PROTECTED]>
>list-post: <mailto:[EMAIL PROTECTED]>
>Delivered-To: mailing list [EMAIL PROTECTED]
>X-Priority: 0
>X-Mailer: Lotus Notes Release 5.0.8  June 18, 2001
>Message-ID: <[EMAIL PROTECTED]>
>X-MIMETrack: Serialize by Router on NYLHUB1/NYLIC(Release 5.0.10 |March
22,
>2002) at 08/22/2003 08:22:32 AM
>X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N
>Return-Path: [EMAIL PROTECTED]
>X-OriginalArrivalTime: 22 Aug 2003 12:25:41.0896 (UTC)
>FILETIME=[80AA8880:01C368A8]
>
>
>James,
>       Would you mind sharing your sample code as well as wsdd file?
>Thanks.
>
>Harry Wen
>
>
>
>
>                       James Black
>                       <[EMAIL PROTECTED]>        To:
>[EMAIL PROTECTED]
>                                                cc:
>                       08/22/2003 04:57         Subject:  Re: InterOP
>between .NET and Axis
>                       AM
>                       Please respond to
>                       axis-user
>
>
>
>
>
>
>Sameer Bombatkar wrote:
>
> > I also encountered the same problem dealing with Collection classes.
> > How are you defining your de/serialiaers for Collection in ur wsdd
file?
>
>   Rather than passing back any collections, convert them into an array
>of javabeans, and pass that around.
>
>   I do that for my C# clients and Java webservice, and it works.
>
>   I have learned that I need collections on the server side, but seldom
>on the client side. Generally the array will work well, but it is easy
>to create a client-side collection from an array.
>
>--
>"We do not lose our identity in our relations with others; in part, at
>least, we achieve our identity by those relations." Tony Blair, 1993
>
>
>
>
>
>
>

_________________________________________________________________
Get MSN 8 and enjoy automatic e-mail virus protection.
http://join.msn.com/?page=features/virus




Attachment: WebServiceController.wsdl
Description: Binary data

Attachment: WebServiceUtil.java
Description: Binary data

Attachment: WebServiceController.java
Description: Binary data

Attachment: CollectionEntryVO.java
Description: Binary data

Reply via email to