Quantcast
Channel: VBForums - WPF, WCF, WF
Viewing all articles
Browse latest Browse all 256

[RESOLVED] Passing array of items to service contract implementation WCF 4.5.x

$
0
0
I've got an issue, We are interfacing a legacy system with a new service via IBM MQ, so far this works until i get to the service.

Code:

public papesOrderResponse PlaceOrder(Order order, params OrderItem[] oia)
is the signature, we are sending 2 items to the orderitem array, but its only picking up the first one. The wsdl says its a maxoccurs of 1, and i cant find a good way to change this via code.

I was using a list<orderitem> and it worked from my test program, however the legacy system does not have dynamic arrays, so its not like we can just have the 2 we have to have all 350, which the list<orderitem> pukes on because the remainder are either null or empty, i cant figure out which.

How the heck do i get this thing to take both values being passed, ignore the other 348 empty items and just place the darned order.

i aint gots enough hair for this.

Viewing all articles
Browse latest Browse all 256

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>