Why do I receive an error when calling certain methods of my Web Service?
1 view (last 30 days)
Show older comments
When I call certain methods of my Web Service, I sometimes receive an error similar to the following:
??? Subscripted assignment between dissimilar structures.
Error in ==> parseSoapResponse>convert at 77
s.(name)(end+1,1) = value;
Error in ==> parseSoapResponse at 48
result{end+1} = convert(resultChild);
Error in ==> service1.getdata at 26
results = parseSoapResponse(response);
Accepted Answer
MathWorks Support Team
on 27 Jun 2009
This bug has been fixed in Release 14 Service Pack 2 (R14SP2). For previous releases, please read below for any possible workarounds:
This has been verified as a bug in the Web Services interface in MATLAB 7.0 (R14). A workaround exists if you can change the results returned by the Web Service.
This particular error is caused by a parent tag in the XML returned by the method that does not have the same number of children in all instances. For example:
<parent>
<child1/>
<child2/>
</parent>
<parent>
<child1/>
</parent>
If each parent had two children (with the same names), the error would not occur.
0 Comments
More Answers (0)
See Also
Categories
Find more on Web Services in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!