Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7732473
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T06:44:20+00:00 2026-06-01T06:44:20+00:00

I am trying to submit an array in MonoTouch to a vb.net web service.

  • 0

I am trying to submit an array in MonoTouch to a vb.net web service. Here is the web service:

Public Function Add_Array(ByVal arr()() As String, ByRef sMessage As String) As Boolean 
Dim a, b, c As String a = arr(1)(0) b = arr(1)(1) c = arr(1)(2) sMessage = a + ", " + b + ", " + c + ". Submittion was recieved, and Second items are showen." 
Return True 
End Function

I added the web service by going to Add Web Reference, adding in the Web Service URL, and selecting .NET 2.0 Web Services as the Framework and then wsFish as the reference.

Here is my MonoTouch code:

wsFISH.Service1 wsArray;
string[][] abc = new string[6][];
string[] xyz = new string[3];
string t="";

xyz[0] = “a”;
xyz[1] = “b”;
xyz[2] = “c”;
abc[0] = xyz;  ...

wsArray.Add_Array(abc, ref t);

This is the error I am getting: “The best overloaded method match for ‘Add_Array(string, ref string)’ has some invalid arguments Argument ‘#1’ cannot convert ‘string[][]’ expression to type ‘string’”

I have written C# code outside of monotouch that will access the web service using the exact code I have in monotouch. Any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T06:44:21+00:00Added an answer on June 1, 2026 at 6:44 am

    Here is the answer I found. There are two parts to it.

    First, I needed to add the correct references:

    using System;
    using System.Drawing;
    using System.Data;
    using System.Collections;
    using MonoTouch.Foundation;
    using MonoTouch.UIKit;
    using System.Web.Services;
    

    Second, I was using a Jagged array which did add some issues. Doing what @DaveFerguson suggested (changing the generated code) was the solution to this.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i'm trying to submit my Ajax form using jQuery. However calling the submit() function
I am trying to submit a form using jQuery's .ajax() function. It seems like
Here is the form that is inside index.php -- I'm trying to programmatically submit
I'm trying to submit a simple form that has an array of fields: <form>
I'm trying to pass an array from a jQuery function to my controller. The
I'm trying to submit a form with jQuery's $.ajax() function and it works, aside
using the jquery below I'm trying to submit the array paramlist to the appropriate
I'm trying to submit a 'defacto' option array (although it looks like a search
I am trying to submit checkbox's values array to controller: @RequestMapping(value = /save, method
I am trying to submit this multi select as an array but when I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.