I've been attempting to following the instructions in the SmartClient Reference WSDL Binding using the SmartClientOperations.WSDL to create the proper SOAP Envelope in .net.
In the section Creating New WSDL Services, it says to use the wsdl.exe to create the c# stubs the you will add business logic to. I generated the class and wsdl.exe returns the following:
I just want to make sure that this is an expected output and does not indicate an error.
Next, how do I use the resultant class? The class I end up with is a partial class which inherits from SoapHttpClientProtocol. There are methods for fetch, add, remove and update but I don't quite understand how to implement them. There is no further documentation on this, so I was wondering if anyone out there has a sample of how they put this together?
Thanks
Paul
In the section Creating New WSDL Services, it says to use the wsdl.exe to create the c# stubs the you will add business logic to. I generated the class and wsdl.exe returns the following:
Code:
Microsoft (R) Web Services Description Language Utility [Microsoft (R) .NET Framework, Version 2.0.50727.1432] Copyright (C) Microsoft Corporation. All rights reserved. Schema validation error: Schema item 'complexType' named 'DSRequest' from namesp ace 'urn:operations.smartclient.com' is invalid. Wildcard '##any' allows element 'startRow', and causes the content model to become ambiguous. A content model m ust be formed such that during validation of an element information item sequenc e, the particle contained directly, indirectly or implicitly therein with which to attempt to validate each item in the sequence in turn can be uniquely determi ned without examining the content or attributes of that item, and without any in formation about the items in the remainder of the sequence. Schema validation error: Schema item 'complexType' named 'DSResponse' from names pace 'urn:operations.smartclient.com' is invalid. Wildcard '##any' allows elemen t 'totalRows', and causes the content model to become ambiguous. A content model must be formed such that during validation of an element information item seque nce, the particle contained directly, indirectly or implicitly therein with whic h to attempt to validate each item in the sequence in turn can be uniquely deter mined without examining the content or attributes of that item, and without any information about the items in the remainder of the sequence. Warning: Schema could not be validated. Class generation may fail or may produce incorrect results. Writing file 'c:\sc2.cs'.
Next, how do I use the resultant class? The class I end up with is a partial class which inherits from SoapHttpClientProtocol. There are methods for fetch, add, remove and update but I don't quite understand how to implement them. There is no further documentation on this, so I was wondering if anyone out there has a sample of how they put this together?
Thanks
Paul
Comment