I call a method of a web service taking as parameter an class that contains an array of objects.
Inquiry obj = new Inquiry
{
Items = new Test.Items[]
{
new Test.Items{ Id="1"},
new Test.Items{ Id="2"},
new Test.Items{ Id="3"},
}
};
client.TestMethod(ref obj);
Everything works fine if I pass only one item in the Items array. When I pass two or more items I get a System.ServiceModel.FaultException with Message: The Imp. Line already exists. Identification fields and values: Import Process Code='',UID='',Line No.='0' I think it's something wrong with xml or soap serialization of complex types.
<basicHttpBinding>
<binding name="WEBInquiry_Binding">
<security mode="Transport">
<transport clientCredentialType="Ntlm" proxyCredentialType="None" realm=""/>
<message clientCredentialType="UserName" algorithmSuite="Default"/>
</security>
</binding>
Is it something I must change in code or in configuration? Thank You
EDIT FaultException has a Code Property with Name and Namespace members
Name=Microsoft.Dynamics.Nav.Types.Exceptions.NavCSideException
Namespace=urn:microsoft-dynamics-schemas/error