cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Consuming a .NET webservice using MII Web Service Action Block

Former Member
0 Likes
211

I have created a .NET webservice that takes an array of objects that contains primitive types. I am able to call the web service with one array element but not two. In the link editor how do I setup more than one items?

The syntax I am using for the first on is as follows:

Web_Service_0.AssignLanes{/ns1:AssignLanes/ns1:wsProcessOrderItems/ns1:WSProcessOrderItem[1]/ns1:MaterialNumber}

but when I try to add the second one using this syntax:

Web_Service_0.AssignLanes{/ns1:AssignLanes/ns1:wsProcessOrderItems/ns1:WSProcessOrderItem[2]/ns1:MaterialNumber}

I get an error from MII:

[ERROR] [Web_Service_0] Link ('Web_Service_0.AssignLanes{/ns1:AssignLanes/ns1:wsProcessOrderItems/ns1:WSProcessOrderItem[2]/ns1:MaterialNumber}' [Assign] from "20000275") execution threw an exception. Exception: [No nodes found in variable 'Web_Service_0.AssignLanes' and xpath: "/ns1:AssignLanes/ns1:wsProcessOrderItems/ns1:WSProcessOrderItem[2]/ns1:MaterialNumber" XML was:<?xml version="1.0" encoding="UTF-8"?><AssignLanes xmlns="http://tempuri.org/"><plantId>72930</plantId><costCenterId>80824</costCenterId><wsProcessOrderItems><WSProcessOrderItem><MaterialNumber>20000017</MaterialNumber><MaterialTypeID>73452</MaterialTypeID><Quantity>900</Quantity><LaneID>0</LaneID></WSProcessOrderItem></wsProcessOrderItems></AssignLanes>]

Any ideas?

Michael Penrow

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Likes

You can look at this blog: [/people/padmavathi.rao2/blog/2009/03/14/mii-odyssey-how-to-pass-table-structure-to-bapi-using-jco-interface-of-erp-system-interface-in-mii-12|/people/padmavathi.rao2/blog/2009/03/14/mii-odyssey-how-to-pass-table-structure-to-bapi-using-jco-interface-of-erp-system-interface-in-mii-12]

Its jco related but the technique used for building up multiple child xml nodes is the same.