Note that there are some explanatory texts on larger screens.

plurals
  1. POSLSvcUtil generates RequestObject
    primarykey
    data
    text
    <p>i´ve recently created a WCF-Service and would like to consume it with a Silverlight App. To do so, i used SlSvcUtil (Silverlight 4) to create the necessary client-Side Classes. But for every Method, this tool generates a Request-Object wich has properties for all Parameters the Method usually takes</p> <pre><code>public System.IAsyncResult BeginDepartmentGetAll(DepartmentGetAllRequest request, System.AsyncCallback callback, object asyncState) { object[] _args = new object[1]; _args[0] = request; System.IAsyncResult _result = base.BeginInvoke("DepartmentGetAll", _args, callback, asyncState); return _result; } public System.IAsyncResult BeginDummy(DummyRequest request, System.AsyncCallback callback, object asyncState) { object[] _args = new object[1]; _args[0] = request; System.IAsyncResult _result = base.BeginInvoke("Dummy", _args, callback, asyncState); return _result; } </code></pre> <p>The corresponding Request Classes look like this:</p> <pre><code>[System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] [System.ServiceModel.MessageContractAttribute(WrapperName = "Dummy", WrapperNamespace ="http://example.com/Namespace", IsWrapped = true)] public partial class DummyRequest </code></pre> <p>{</p> <pre><code>[System.ServiceModel.MessageBodyMemberAttribute(Namespace = "http://example.com/Namespace", Order = 0)] public string s; public DummyRequest() { } public DummyRequest(string s) { this.s = s; } </code></pre> <p>}</p> <pre><code>[System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] [System.ServiceModel.MessageContractAttribute(WrapperName = "DepartmentGetAll", WrapperNamespace = "http://example.com/Namespace", IsWrapped = true)] public partial class DepartmentGetAllRequest { public DepartmentGetAllRequest() { } } </code></pre> <p>In a similar WCF-Project these methods take the plain Parameters of the Web-Service Method, without using a Request-Object. How can I generate the Service-Methods without these Request Objects?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload