Click here to Skip to main content
15,890,932 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I would ask you for your help!

XElement response = myClient.CreateCreditCardCustomerCode(Required parameter1,Required parameter2,Required parameter3,Required parameter4,Required parameter5)

I get the following error message is returned:

The IXmlSerializable type 'System.Xml.Linq.XElement' cannot be deserialized in
partial trust because it does not have a public parameterless constructor.


Please help!

What I have tried:

XElement response = myClient.CreateCreditCardCustomerCode(Required parameter1,Required parameter2,Required parameter3,Required parameter4,Required parameter5)
Posted
Comments
F-ES Sitecore 8-Feb-17 4:22am    
Rather than have your CreateCreditCardCustomerCode function return XElement, have it create a custom class (that you will need to write) with the properties it needs, populate the properties from the XElement and return the custom class instead. And please don't ask how to do that or ask for the code as it should be obvious that you have no provided anywhere near enough detail for anyone to give you specific advice.
.net developer123456789 8-Feb-17 5:31am    
please provide sample code.
Karthik_Mahalingam 8-Feb-17 23:20pm    
Always use  Reply  button, to post Comments/query to the user, so that the user gets notified and responds to your text.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900