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

  • Home
  • SEARCH
  • 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 8792289
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T22:57:32+00:00 2026-06-13T22:57:32+00:00

I am using XML_RPC v2.5.0 for .Net to make few calls to web service

  • 0

I am using XML_RPC v2.5.0 for .Net to make few calls to web service to send product data. All calls are working OK except one scenario. I am sending product data to the web service that is expected to be in the below format(Format is defined in PhP language) –

$order['products'][] = ['sku', 'quantity']

I am using the below code to pass this data –

XmlRpcStruct dic = new XmlRpcStruct();
DataTable dt1 = GetData();
XmlRpcStruct[] prod = new XmlRpcStruct[dt1.Rows.Count];
for (int i = 0; i < dt1.Rows.Count; i++)
{
   prod[i] = new XmlRpcStruct();
   prod[i].Add("sku", dt1.Rows[i][0].ToString());
   prod[i].Add("quantity", dt1.Rows[i][1].ToString());
}
dic.Add("products", prod);
object orderID = proxy.SubmitOrder(dic, custID, accessKey);

The above code works when there is only 1 row in the data table dt1 and I get the orderID successfully. However, if there are more than 1 records in the data table, I am getting an exception as –

A parameter is of, or contains an instance of, type CookComputing.XmlRpc.XmlRpcStruct which cannot be mapped to an XML-RPC type

I think I am missing something silly here. Please help and let me know what mistake I am doing here.
Thanks in advance!

  • 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-13T22:57:33+00:00Added an answer on June 13, 2026 at 10:57 pm

    The code written above works OK. The issue with me was passing a null value to one of the other parameters when passing an array and hence the issue.

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

Sidebar

Related Questions

I'm using Charles Cook's xml-rpc.net in an attempt to make an xml-rpc service call.
I am using Python's xmlrpclib to make requests to an xml-rpc service. Is there
I'm using XML Serialization heavily in a web service (the contracts pass complex types
I am using SoapClient to send some data from a PHP site to a
Am trying to invoke a public web-service using a java client but am getting
Been using XML for ages now for data storage & transfer, but have never
I would like to implement an API for my web based service. I've been
Is there a way to view the actual underlying xml data that the cookcomputing.xmlrpc.net
I'm using Zend XML-RPC Client library to send XML requests to another non-PHP XML
I'm using XML-RPC.NET (from http://www.xml-rpc.net/ ) and the HttpListener method of listening for XML-RPC

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.