Problem With Web service
-
Hi all I am accessing a web service method, while accessing this i gt Error message like Server was unable to process request. --> Length cannot be less than zero. Parameter name: length:mad::mad::mad::mad::mad::mad: Please help me out what is the problem Web service methos is below obj.Exe(string Command,object[] FieldName,object[] Fieldvalue) soap:Body <Ex xmlns="http://tempuri.org/"> <Name>string</Name> <FieldNames> <anyType /> <anyType /> </FieldNames> <FieldValues> <anyType /> <anyType /> </FieldValues> </SBP_Execute> </soap:Body> </soap:Envelope> Please let me know the problem why the error come :( :( :( :( :( :( :( Thanks & regard Prabhakar dwivedi
prabhakar dwivedi
-
Hi all I am accessing a web service method, while accessing this i gt Error message like Server was unable to process request. --> Length cannot be less than zero. Parameter name: length:mad::mad::mad::mad::mad::mad: Please help me out what is the problem Web service methos is below obj.Exe(string Command,object[] FieldName,object[] Fieldvalue) soap:Body <Ex xmlns="http://tempuri.org/"> <Name>string</Name> <FieldNames> <anyType /> <anyType /> </FieldNames> <FieldValues> <anyType /> <anyType /> </FieldValues> </SBP_Execute> </soap:Body> </soap:Envelope> Please let me know the problem why the error come :( :( :( :( :( :( :( Thanks & regard Prabhakar dwivedi
prabhakar dwivedi
Hi, shouldn't the tags be named and ? The server is throwing an error because you didn't set the arrays correctly. Regards Sebastian
It's not a bug, it's a feature! Check out my CodeProject article Permission-by-aspect. Me in Softwareland.
-
Hi, shouldn't the tags be named and ? The server is throwing an error because you didn't set the arrays correctly. Regards Sebastian
It's not a bug, it's a feature! Check out my CodeProject article Permission-by-aspect. Me in Softwareland.
Hi Sebastian, i have set all the array Correctly like object[] _fieldNames = new object[11]; object[] _fieldValues = new object[11]; _fieldNames[0] = "Set"; _fieldValues[0] = 1; Output = call.Ex("A", _fieldNames, _fieldValues); Can u tell me where i am wrong thanks
prabhakar dwivedi
-
Hi Sebastian, i have set all the array Correctly like object[] _fieldNames = new object[11]; object[] _fieldValues = new object[11]; _fieldNames[0] = "Set"; _fieldValues[0] = 1; Output = call.Ex("A", _fieldNames, _fieldValues); Can u tell me where i am wrong thanks
prabhakar dwivedi
Well it seems that the client "call" you are using doesn't generate the correct soap-request. Look at the wsdl of the webservice and compare if the soap-request matches the wsdl. If not, the problem is the "call" object. How did you created it?
It's not a bug, it's a feature! Check out my CodeProject article Permission-by-aspect. Me in Softwareland.