473,394 Members | 1,726 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

2 dimentional array as a parameter for SoapHttpClientProtocol->Inv

I'm getting an InvalidOperationException calling Invoke with a method
parameter object array that contains a two dimentional string array. More
stack trace output below:

// Create two dimentional array.
System::String* tda[,] = new System::String*[2,2];
tda[0,0] = "lastName";
tda[0,1] = "Power";
tda[1,0] = "firstName";
tda[1,1] = "Max";

// Create web method parameters including two dimentional array.
System::Object* setParams = {"TestApp", "abc123", tda};

// The next line causes a System.InvalidOperationException generating the
XML document. The specified cast was not valid. at
Microsoft.Xml.Serialization.GeneratedAssembly.XmlS erializationWriter1.Write5_set(Object[]p)

SoapHttpClientProtocol->Invoke(S"set", setParams);

I'm using the two dimentional array because I'm trying to generate a SOAP
request body that includes an array:

<SOAP-ENV:Body>
<m:set xmlns:m="urn:SpecialStation"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<timeValue xsi:type="xsd:string">1919192929</timeValue>
<spaceNumber
xsi:type="xsd:string">{87AB126q-B19E-4F3B-9784-3F5D6k3D4F9E}</spaceNumber>
<ns2:submittedProperties
xmlns:ns2="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns2:Array"
ns2:arrayType="xsd:ur-type[6]">
<item xmlns:ns3="urn:xml-soap-demo" xsi:type="ns3:property">
<attribute xsi:type="xsd:string">First.Value</attribute>
<value xsi:type="xsd:string">Value123</value>
</item>
<item xmlns:ns3="urn:xml-soap-demo" xsi:type="ns3:property">
<attribute xsi:type="xsd:string">Second.Value</attribute>
<value xsi:type="xsd:string">Value456</value>
</item>
<item xmlns:ns3="urn:xml-soap-demo" xsi:type="ns3:property">
<attribute xsi:type="xsd:string">Third.Value</attribute>
<value xsi:type="xsd:string">Value789</value>
</item>
<item xmlns:ns3="urn:xml-soap-demo" xsi:type="ns3:property">
<attribute xsi:type="xsd:string">Forth.Value</attribute>
<value xsi:type="xsd:string">Value012</value>
</item>
<item xmlns:ns3="urn:xml-soap-demo" xsi:type="ns3:property">
<attribute xsi:type="xsd:string">Fifth.Value</attribute>
<value xsi:type="xsd:string">Value345</value>
</item>
<item xmlns:ns3="urn:xml-soap-demo" xsi:type="ns3:property">
<attribute xsi:type="xsd:string">Sixth.Value</attribute>
<value xsi:type="xsd:string">Value678</value>
</item>
</ns2:submittedProperties>
</m:set>
</SOAP-ENV:Body>

Nov 23 '05 #1
0 2445

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

Similar topics

7
by: Clint Herron | last post by:
Howdy! I posted this question on CSharpCorner.com, but then realized I should probably post it on a more active newsgroup. This will be my only cross-post. I'm creating a game engine, and...
0
by: Warren | last post by:
I can invoke my web service via the test page (xxxx.asmx) that visual studio builds for you... I am able to open IE and surf to the page and invoke the service.. If I create a windows application...
45
by: Skybuck Flying | last post by:
Hello, How to convert this Delphi code for Win32 to C or C++ Win32 code ? var vArray : array of array of array of integer; x,y,z : integer; begin
5
by: Stephen3776 | last post by:
I am doing an inventory control progam and trying to output a multiple array, I am getting an illegal conversion error java.lang.double !d. Can somebody tell me what I am doing wrong or if there is...
5
by: vml | last post by:
I have a python com object which contains a method to inverse an array in vb 6 the definition of the class is : class Fop: _public_methods_ = def SqVal(self,*val): #vol=(val,val)...
23
by: ngweixiong | last post by:
Hi, I have a query to check for condition. but when i execute, a message box apprear. "Enter Parameter Value" below is my code. Stat: IIf(<7,,IIf(<10,))
9
by: xxplod | last post by:
I am suppose to modify the Inventory Program so the application can handle multiple items. Use an array to store the items. The output should display the information one product at a time, including...
7
by: ITAutobot25 | last post by:
My delete button is not working in my GUI and my due date is today before midnight. Can anyone show me how to correct this error? My assignment statement is below as well as 5 classes. InventoryGUI...
3
by: ITAutobot25 | last post by:
Now this is really the last problem (for real now) with this assignment. My sorter is not working. I managed to sort by product name in my previous assignment; however, I can't get it to work on this...
3
by: alan | last post by:
Hello world, I currently have implemented a sparse array needed by a class as a map<int, boost::shared_ptr<my_type. However, one of the derived classes needs to periodically "tighten" the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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
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...

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.