Remoting w/ Soap Error

R

Rob

I am getting this exception on the emulator:

The identifier "ref-4" does not appear in the document.
XmlException

The pocket pc is using remoting with soap with a c# desktop app. The
objects that I am passing are actually proxy created objects that the
desktop gets from another webservice. I mark them as serializable and
use them to pass back and forth to the pocket pc. I don't always get
this error. It happens periodically.

Rob

The soap message is below
===================================

HTTP/1.1 200 OK

Content-Type: text/xml; charset="utf-8"

Server: MS .NET Remoting, MS .NET CLR 1.1.4322.573

Content-Length: 631



<SOAP-ENV:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:clr="http://schemas.microsoft.com/soap/encoding/clr/1.0"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">

<SOAP-ENV:Body>

<i2:CheckForUpdateResponse id="ref-1"
xmlns:i2="http://schemas.microsoft.com/clr/nsassem/cook.Components.CookService/cook">

<return id="ref-3">10/20/2003 2:04:15 PM</return>

</i2:CheckForUpdateResponse>

</SOAP-ENV:Body>

</SOAP-ENV:Envelope>

HTTP/1.1 100 Continue



HTTP/1.1 200 OK

Content-Type: text/xml; charset="utf-8"

Server: MS .NET Remoting, MS .NET CLR 1.1.4322.573

Content-Length: 4774



<SOAP-ENV:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:clr="http://schemas.microsoft.com/soap/encoding/clr/1.0"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">

<SOAP-ENV:Body>

<i2:GetServersResponse id="ref-1"
xmlns:i2="http://schemas.microsoft.com/clr/nsassem/cook.Components.CookService/cook">

<return href="#ref-4"/>

</i2:GetServersResponse>

<SOAP-ENC:Array id="ref-4" SOAP-ENC:arrayType="a1:ServerValue[13]"
xmlns:a1="http://schemas.microsoft.com/clr/ns...7.18013, Culture=neutral, PublicKeyToken=null">

<item href="#ref-5"/>

<item href="#ref-6"/>

<item href="#ref-7"/>

<item href="#ref-8"/>

<item href="#ref-9"/>

<item href="#ref-10"/>

<item href="#ref-11"/>

<item href="#ref-12"/>

<item href="#ref-13"/>

<item href="#ref-14"/>

<item href="#ref-15"/>

<item href="#ref-16"/>

<item href="#ref-17"/>

</SOAP-ENC:Array>

<a1:ServerValue id="ref-5"
xmlns:a1="http://schemas.microsoft.com/clr/ns...7.18013, Culture=neutral, PublicKeyToken=null">

<isActive>true</isActive>

<name id="ref-18">Dwayne</name>

<serverId>30</serverId>

</a1:ServerValue>

<a1:ServerValue id="ref-6"
xmlns:a1="http://schemas.microsoft.com/clr/ns...7.18013, Culture=neutral, PublicKeyToken=null">

<isActive>true</isActive>

<name id="ref-19">Kim</name>

<serverId>31</serverId>

</a1:ServerValue>

<a1:ServerValue id="ref-7"
xmlns:a1="http://schemas.microsoft.com/clr/ns...7.18013, Culture=neutral, PublicKeyToken=null">

<isActive>true</isActive>

<name id="ref-20">Angie</name>

<serverId>40</serverId>

</a1:ServerValue>

<a1:ServerValue id="ref-8"
xmlns:a1="http://schemas.microsoft.com/clr/ns...7.18013, Culture=neutral, PublicKeyToken=null">

<isActive>true</isActive>

<name id="ref-21">Nikki</name>

<serverId>51</serverId>

</a1:ServerValue>

<a1:ServerValue id="ref-9"
xmlns:a1="http://schemas.microsoft.com/clr/ns...7.18013, Culture=neutral, PublicKeyToken=null">

<isActive>true</isActive>

<name id="ref-22">Johnny</name>

<serverId>52</serverId>

</a1:ServerValue>

<a1:ServerValue id="ref-10"
xmlns:a1="http://schemas.microsoft.com/clr/ns...7.18013, Culture=neutral, PublicKeyToken=null">

<isActive>true</isActive>

<name id="ref-23">Shannon</name>

<serverId>61</serverId>

</a1:ServerValue>

<a1:ServerValue id="ref-11"
xmlns:a1="http://schemas.microsoft.com/clr/ns...7.18013, Culture=neutral, PublicKeyToken=null">

<isActive>true</isActive>

<name id="ref-24">Val</name>

<serverId>70</serverId>

</a1:ServerValue>

<a1:ServerValue id="ref-12"
xmlns:a1="http://schemas.microsoft.com/clr/ns...7.18013, Culture=neutral, PublicKeyToken=null">

<isActive>true</isActive>

<name id="ref-25">Christi</name>

<serverId>71</serverId>

</a1:ServerValue>

<a1:ServerValue id="ref-13"
xmlns:a1="http://schemas.microsoft.com/clr/ns...7.18013, Culture=neutral, PublicKeyToken=null">

<isActive>true</isActive>

<name id="ref-26">Tina</name>

<serverId>72</serverId>

</a1:ServerValue>

<a1:ServerValue id="ref-14"
xmlns:a1="http://schemas.microsoft.com/clr/ns...7.18013, Culture=neutral, PublicKeyToken=null">

<isActive>true</isActive>

<name id="ref-27">David</name>

<serverId>80</serverId>

</a1:ServerValue>

<a1:ServerValue id="ref-15"
xmlns:a1="http://schemas.microsoft.com/clr/ns...7.18013, Culture=neutral, PublicKeyToken=null">

<isActive>true</isActive>

<name id="ref-28">Brenda</name>

<serverId>81</serverId>

</a1:ServerValue>

<a1:ServerValue id="ref-16"
xmlns:a1="http://schemas.microsoft.com/clr/ns...7.18013, Culture=neutral, PublicKeyToken=null">

<isActive>true</isActive>

<name id="ref-29">Test</name>

<serverId>90</serverId>

</a1:ServerValue>

<a1:ServerValue id="ref-17"
xmlns:a1="http://schemas.microsoft.com/clr/ns...7.18013, Culture=neutral, PublicKeyToken=null">

<isActive>true</isActive>

<name id="ref-30">Gift Shop (TO GO)</name>

<serverId>100</serverId>

</a1:ServerValue>

</SOAP-ENV:Body>

</SOAP-ENV:Envelope>
 
R

Rob

Can anyone help me with this?


I am getting this exception on the emulator:

The identifier "ref-4" does not appear in the document.
XmlException

The pocket pc is using remoting with soap with a c# desktop app. The
objects that I am passing are actually proxy created objects that the
desktop gets from another webservice. I mark them as serializable and
use them to pass back and forth to the pocket pc. I don't always get
this error. It happens periodically.

Rob

The soap message is below
===================================

HTTP/1.1 200 OK

Content-Type: text/xml; charset="utf-8"

Server: MS .NET Remoting, MS .NET CLR 1.1.4322.573

Content-Length: 631



<SOAP-ENV:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:clr="http://schemas.microsoft.com/soap/encoding/clr/1.0"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">

<SOAP-ENV:Body>

<i2:CheckForUpdateResponse id="ref-1"
xmlns:i2="http://schemas.microsoft.com/clr/nsassem/cook.Components.CookService/cook">

<return id="ref-3">10/20/2003 2:04:15 PM</return>

</i2:CheckForUpdateResponse>

</SOAP-ENV:Body>

</SOAP-ENV:Envelope>

HTTP/1.1 100 Continue



HTTP/1.1 200 OK

Content-Type: text/xml; charset="utf-8"

Server: MS .NET Remoting, MS .NET CLR 1.1.4322.573

Content-Length: 4774



<SOAP-ENV:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:clr="http://schemas.microsoft.com/soap/encoding/clr/1.0"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">

<SOAP-ENV:Body>

<i2:GetServersResponse id="ref-1"
xmlns:i2="http://schemas.microsoft.com/clr/nsassem/cook.Components.CookService/cook">

<return href="#ref-4"/>

</i2:GetServersResponse>

<SOAP-ENC:Array id="ref-4" SOAP-ENC:arrayType="a1:ServerValue[13]"
xmlns:a1="http://schemas.microsoft.com/clr/ns...7.18013, Culture=neutral, PublicKeyToken=null">

<item href="#ref-5"/>

<item href="#ref-6"/>

<item href="#ref-7"/>

<item href="#ref-8"/>

<item href="#ref-9"/>

<item href="#ref-10"/>

<item href="#ref-11"/>

<item href="#ref-12"/>

<item href="#ref-13"/>

<item href="#ref-14"/>

<item href="#ref-15"/>

<item href="#ref-16"/>

<item href="#ref-17"/>

</SOAP-ENC:Array>

<a1:ServerValue id="ref-5"
xmlns:a1="http://schemas.microsoft.com/clr/ns...7.18013, Culture=neutral, PublicKeyToken=null">

<isActive>true</isActive>

<name id="ref-18">Dwayne</name>

<serverId>30</serverId>

</a1:ServerValue>

<a1:ServerValue id="ref-6"
xmlns:a1="http://schemas.microsoft.com/clr/ns...7.18013, Culture=neutral, PublicKeyToken=null">

<isActive>true</isActive>

<name id="ref-19">Kim</name>

<serverId>31</serverId>

</a1:ServerValue>

<a1:ServerValue id="ref-7"
xmlns:a1="http://schemas.microsoft.com/clr/ns...7.18013, Culture=neutral, PublicKeyToken=null">

<isActive>true</isActive>

<name id="ref-20">Angie</name>

<serverId>40</serverId>

</a1:ServerValue>

<a1:ServerValue id="ref-8"
xmlns:a1="http://schemas.microsoft.com/clr/ns...7.18013, Culture=neutral, PublicKeyToken=null">

<isActive>true</isActive>

<name id="ref-21">Nikki</name>

<serverId>51</serverId>

</a1:ServerValue>

<a1:ServerValue id="ref-9"
xmlns:a1="http://schemas.microsoft.com/clr/ns...7.18013, Culture=neutral, PublicKeyToken=null">

<isActive>true</isActive>

<name id="ref-22">Johnny</name>

<serverId>52</serverId>

</a1:ServerValue>

<a1:ServerValue id="ref-10"
xmlns:a1="http://schemas.microsoft.com/clr/ns...7.18013, Culture=neutral, PublicKeyToken=null">

<isActive>true</isActive>

<name id="ref-23">Shannon</name>

<serverId>61</serverId>

</a1:ServerValue>

<a1:ServerValue id="ref-11"
xmlns:a1="http://schemas.microsoft.com/clr/ns...7.18013, Culture=neutral, PublicKeyToken=null">

<isActive>true</isActive>

<name id="ref-24">Val</name>

<serverId>70</serverId>

</a1:ServerValue>

<a1:ServerValue id="ref-12"
xmlns:a1="http://schemas.microsoft.com/clr/ns...7.18013, Culture=neutral, PublicKeyToken=null">

<isActive>true</isActive>

<name id="ref-25">Christi</name>

<serverId>71</serverId>

</a1:ServerValue>

<a1:ServerValue id="ref-13"
xmlns:a1="http://schemas.microsoft.com/clr/ns...7.18013, Culture=neutral, PublicKeyToken=null">

<isActive>true</isActive>

<name id="ref-26">Tina</name>

<serverId>72</serverId>

</a1:ServerValue>

<a1:ServerValue id="ref-14"
xmlns:a1="http://schemas.microsoft.com/clr/ns...7.18013, Culture=neutral, PublicKeyToken=null">

<isActive>true</isActive>

<name id="ref-27">David</name>

<serverId>80</serverId>

</a1:ServerValue>

<a1:ServerValue id="ref-15"
xmlns:a1="http://schemas.microsoft.com/clr/ns...7.18013, Culture=neutral, PublicKeyToken=null">

<isActive>true</isActive>

<name id="ref-28">Brenda</name>

<serverId>81</serverId>

</a1:ServerValue>

<a1:ServerValue id="ref-16"
xmlns:a1="http://schemas.microsoft.com/clr/ns...7.18013, Culture=neutral, PublicKeyToken=null">

<isActive>true</isActive>

<name id="ref-29">Test</name>

<serverId>90</serverId>

</a1:ServerValue>

<a1:ServerValue id="ref-17"
xmlns:a1="http://schemas.microsoft.com/clr/ns...7.18013, Culture=neutral, PublicKeyToken=null">

<isActive>true</isActive>

<name id="ref-30">Gift Shop (TO GO)</name>

<serverId>100</serverId>

</a1:ServerValue>

</SOAP-ENV:Body>

</SOAP-ENV:Envelope>
 
R

Ronnie Yates [MS]

Can you send repro code and the proxy objects your creating? Also, the
Compact Framework does not support remoting. The only serialization we
support is through Web Service calls.
This posting is provided "AS IS" with no warranties, and confers no rights.
 
R

Rob

Can you send repro code and the proxy objects your creating? Also, the
Compact Framework does not support remoting. The only serialization we
support is through Web Service calls.
This posting is provided "AS IS" with no warranties, and confers no rights.

I have posted all of the code below. Let me describe a little more in
detail what is happening. A windows application is calling a axis
webservice. A cf application is calling a webservice from the windows
app. I am reusing the objects created by the proxy in webservice
calls from the cf app. I do this by modifying the generated code and
adding [Serializable] to each object. This exception is thrown and it
doesn't happen all of the time:

An unhandled exception of type 'System.Xml.XmlException' occurred in
System.Web.Services.dll

Additional information: The identifier "ref-4" does not appear in the
document.

I can create another windows client and call the webservice hosted in
the windows form without error. I also was able to get it to run on
the compact framework without error. I can't put a finger on what
causes it. Below is all of the code to reproduce. The webservice is
also public so you should be able to run it.

Thank you very much for helping me out.

Rob

===================== CODE FOR WINDOWS APP
============================
------------------------
Form1.cs
------------------------
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;

using WindowsApplication1.remotemenu;

namespace WindowsApplication1
{
/// <summary>
/// Summary description for Form1.
/// </summary>
public class Form1 : System.Windows.Forms.Form
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.Container components = null;

public MenuValue MyMenu;
public ServerValue[] Servers;
public TableValue[] Tables;
private System.Windows.Forms.Label label1;

public static Form1 Form;

public Form1()
{
//
// Required for Windows Form Designer support
//
InitializeComponent();

//
// TODO: Add any constructor code after InitializeComponent call
//


// get the menu
RmsServicesService service = new RmsServicesService();
MyMenu = service.getMenu(20);
Servers = service.getServers(20);
Tables = service.getTables(20);

label1.Text = "Menu = " + MyMenu.name + "\n" +
"Server count = " + Servers.Length + "\n" +
"Table count = " + Tables.Length;

Form = this;

// start the server
RemotingServer server = new RemotingServer();
}

/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if(components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}

static void Main()
{
Application.Run(new Form1());
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.label1 = new System.Windows.Forms.Label();
this.SuspendLayout();
//
// label1
//
this.label1.Location = new System.Drawing.Point(40, 32);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(192, 152);
this.label1.TabIndex = 0;
this.label1.Text = "label1";
//
// Form1
//
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.ClientSize = new System.Drawing.Size(292, 266);
this.Controls.Add(this.label1);
this.Name = "Form1";
this.Text = "Form1";
this.ResumeLayout(false);

}
#endregion
}
}


--------------------
RemotingServer.cs
--------------------
using System;
using System.Runtime.Remoting;
using System.Runtime.Remoting.Channels;
using System.Runtime.Remoting.Channels.Http;

namespace WindowsApplication1
{
/// <summary>
/// Summary description for RemotingServer.
/// </summary>
public class RemotingServer
{
public RemotingServer()
{
ChannelServices.RegisterChannel(new HttpChannel(9001));
RemotingConfiguration.ApplicationName = "WSCookRemotingService";
RemotingConfiguration.RegisterWellKnownServiceType(typeof(CookService),
"RemServiceUri.soap",
WellKnownObjectMode.SingleCall );

}
}
}


-------------------
CookService.cs
-------------------
using System;

using System.IO;
using System.Xml;
using System.Xml.Serialization;

using WindowsApplication1.remotemenu;

namespace WindowsApplication1
{
/// <summary>
/// Summary description for OrderProcessingService.
/// </summary>
public class CookService : MarshalByRefObject
{
public CookService()
{
//
// TODO: Add constructor logic here
//

}

public MenuValue GetMenu()
{
return Form1.Form.MyMenu;
}
public ServerValue[] GetServers()
{
return Form1.Form.Servers;
}
public TableValue[] GetTables()
{
return Form1.Form.Tables;
}

}
}


------------------
Reference.cs
------------------
//------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a tool.
// Runtime Version: 1.1.4322.573
//
// Changes to this file may cause incorrect behavior and will be
lost if
// the code is regenerated.
// </autogenerated>
//------------------------------------------------------------------------------

//
// This source code was auto-generated by Microsoft.VSDesigner,
Version 1.1.4322.573.
//
namespace WindowsApplication1.remotemenu {
using System.Diagnostics;
using System.Xml.Serialization;
using System;
using System.Web.Services.Protocols;
using System.ComponentModel;
using System.Web.Services;


/// <remarks/>
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Web.Services.WebServiceBindingAttribute(Name="RmsServiceSoapBinding",
Namespace="http://www.remotemenu.com/services/RmsService")]
[System.Xml.Serialization.SoapIncludeAttribute(typeof(TimeSheetEntryValue))]
[System.Xml.Serialization.SoapIncludeAttribute(typeof(ServerTimesheetValue))]
[System.Xml.Serialization.SoapIncludeAttribute(typeof(LineSaleValue))]
[System.Xml.Serialization.SoapIncludeAttribute(typeof(LineItemValue))]
[System.Xml.Serialization.SoapIncludeAttribute(typeof(SaleValue))]
[System.Xml.Serialization.SoapIncludeAttribute(typeof(ImageValue))]
[System.Xml.Serialization.SoapIncludeAttribute(typeof(ItemTypeValue))]
[System.Xml.Serialization.SoapIncludeAttribute(typeof(GratuityValue))]
[System.Xml.Serialization.SoapIncludeAttribute(typeof(DiscountValue))]
[System.Xml.Serialization.SoapIncludeAttribute(typeof(DecisionLibraryValue))]
[System.Xml.Serialization.SoapIncludeAttribute(typeof(CategoryValue))]
[System.Xml.Serialization.SoapIncludeAttribute(typeof(OptionValue))]
[System.Xml.Serialization.SoapIncludeAttribute(typeof(DecisionValue))]
[System.Xml.Serialization.SoapIncludeAttribute(typeof(ItemValue))]
[System.Xml.Serialization.SoapIncludeAttribute(typeof(TableValue))]
[System.Xml.Serialization.SoapIncludeAttribute(typeof(ServerValue))]
[System.Xml.Serialization.SoapIncludeAttribute(typeof(ProviderValue))]
public class RmsServicesService :
System.Web.Services.Protocols.SoapHttpClientProtocol {

/// <remarks/>
public RmsServicesService() {
this.Url =
"http://www.remotemenu.com/services/RmsService";
}

/// <remarks/>
[System.Web.Services.Protocols.SoapRpcMethodAttribute("",
RequestNamespace="http://webservices.common.rms.bsc.com",
ResponseNamespace="http://www.remotemenu.com/services/RmsService")]
[return: System.Xml.Serialization.SoapElementAttribute("getProvidersReturn")]
public ProviderValue[] getProviders(string city, string state)
{
object[] results = this.Invoke("getProviders", new
object[] {
city,
state});
return ((ProviderValue[])(results[0]));
}

/// <remarks/>
public System.IAsyncResult BegingetProviders(string city,
string state, System.AsyncCallback callback, object asyncState) {
return this.BeginInvoke("getProviders", new object[] {
city,
state}, callback, asyncState);
}

/// <remarks/>
public ProviderValue[] EndgetProviders(System.IAsyncResult
asyncResult) {
object[] results = this.EndInvoke(asyncResult);
return ((ProviderValue[])(results[0]));
}

/// <remarks/>
[System.Web.Services.Protocols.SoapRpcMethodAttribute("",
RequestNamespace="http://webservices.common.rms.bsc.com",
ResponseNamespace="http://www.remotemenu.com/services/RmsService")]
[return: System.Xml.Serialization.SoapElementAttribute("getServersReturn")]
public ServerValue[] getServers(int providerId) {
object[] results = this.Invoke("getServers", new object[]
{
providerId});
return ((ServerValue[])(results[0]));
}

/// <remarks/>
public System.IAsyncResult BegingetServers(int providerId,
System.AsyncCallback callback, object asyncState) {
return this.BeginInvoke("getServers", new object[] {
providerId}, callback, asyncState);
}

/// <remarks/>
public ServerValue[] EndgetServers(System.IAsyncResult
asyncResult) {
object[] results = this.EndInvoke(asyncResult);
return ((ServerValue[])(results[0]));
}

/// <remarks/>
[System.Web.Services.Protocols.SoapRpcMethodAttribute("",
RequestNamespace="http://webservices.common.rms.bsc.com",
ResponseNamespace="http://www.remotemenu.com/services/RmsService")]
[return: System.Xml.Serialization.SoapElementAttribute("getTablesReturn")]
public TableValue[] getTables(int providerId) {
object[] results = this.Invoke("getTables", new object[] {
providerId});
return ((TableValue[])(results[0]));
}

/// <remarks/>
public System.IAsyncResult BegingetTables(int providerId,
System.AsyncCallback callback, object asyncState) {
return this.BeginInvoke("getTables", new object[] {
providerId}, callback, asyncState);
}

/// <remarks/>
public TableValue[] EndgetTables(System.IAsyncResult
asyncResult) {
object[] results = this.EndInvoke(asyncResult);
return ((TableValue[])(results[0]));
}

/// <remarks/>
[System.Web.Services.Protocols.SoapRpcMethodAttribute("",
RequestNamespace="http://webservices.common.rms.bsc.com",
ResponseNamespace="http://www.remotemenu.com/services/RmsService")]
public void addOrder(int providerId, CarryoutOrderValue
orderValue) {
this.Invoke("addOrder", new object[] {
providerId,
orderValue});
}

/// <remarks/>
public System.IAsyncResult BeginaddOrder(int providerId,
CarryoutOrderValue orderValue, System.AsyncCallback callback, object
asyncState) {
return this.BeginInvoke("addOrder", new object[] {
providerId,
orderValue}, callback, asyncState);
}

/// <remarks/>
public void EndaddOrder(System.IAsyncResult asyncResult) {
this.EndInvoke(asyncResult);
}

/// <remarks/>
[System.Web.Services.Protocols.SoapRpcMethodAttribute("",
RequestNamespace="http://webservices.common.rms.bsc.com",
ResponseNamespace="http://www.remotemenu.com/services/RmsService")]
[return: System.Xml.Serialization.SoapElementAttribute("getProviderIdReturn")]
public int getProviderId(string username, string password) {
object[] results = this.Invoke("getProviderId", new
object[] {
username,
password});
return ((int)(results[0]));
}

/// <remarks/>
public System.IAsyncResult BegingetProviderId(string username,
string password, System.AsyncCallback callback, object asyncState) {
return this.BeginInvoke("getProviderId", new object[] {
username,
password}, callback, asyncState);
}

/// <remarks/>
public int EndgetProviderId(System.IAsyncResult asyncResult) {
object[] results = this.EndInvoke(asyncResult);
return ((int)(results[0]));
}

/// <remarks/>
[System.Web.Services.Protocols.SoapRpcMethodAttribute("",
RequestNamespace="http://webservices.common.rms.bsc.com",
ResponseNamespace="http://www.remotemenu.com/services/RmsService")]
[return: System.Xml.Serialization.SoapElementAttribute("getTaxRateReturn")]
public System.Double getTaxRate(int providerId) {
object[] results = this.Invoke("getTaxRate", new object[]
{
providerId});
return ((System.Double)(results[0]));
}

/// <remarks/>
public System.IAsyncResult BegingetTaxRate(int providerId,
System.AsyncCallback callback, object asyncState) {
return this.BeginInvoke("getTaxRate", new object[] {
providerId}, callback, asyncState);
}

/// <remarks/>
public System.Double EndgetTaxRate(System.IAsyncResult
asyncResult) {
object[] results = this.EndInvoke(asyncResult);
return ((System.Double)(results[0]));
}

/// <remarks/>
[System.Web.Services.Protocols.SoapRpcMethodAttribute("",
RequestNamespace="http://webservices.common.rms.bsc.com",
ResponseNamespace="http://www.remotemenu.com/services/RmsService")]
[return: System.Xml.Serialization.SoapElementAttribute("getIpEndPointReturn")]
public string getIpEndPoint(int providerId) {
object[] results = this.Invoke("getIpEndPoint", new
object[] {
providerId});
return ((string)(results[0]));
}

/// <remarks/>
public System.IAsyncResult BegingetIpEndPoint(int providerId,
System.AsyncCallback callback, object asyncState) {
return this.BeginInvoke("getIpEndPoint", new object[] {
providerId}, callback, asyncState);
}

/// <remarks/>
public string EndgetIpEndPoint(System.IAsyncResult
asyncResult) {
object[] results = this.EndInvoke(asyncResult);
return ((string)(results[0]));
}

/// <remarks/>
[System.Web.Services.Protocols.SoapRpcMethodAttribute("",
RequestNamespace="http://webservices.common.rms.bsc.com",
ResponseNamespace="http://www.remotemenu.com/services/RmsService")]
[return: System.Xml.Serialization.SoapElementAttribute("getMenuReturn")]
public MenuValue getMenu(int providerId) {
object[] results = this.Invoke("getMenu", new object[] {
providerId});
return ((MenuValue)(results[0]));
}

/// <remarks/>
public System.IAsyncResult BegingetMenu(int providerId,
System.AsyncCallback callback, object asyncState) {
return this.BeginInvoke("getMenu", new object[] {
providerId}, callback, asyncState);
}

/// <remarks/>
public MenuValue EndgetMenu(System.IAsyncResult asyncResult) {
object[] results = this.EndInvoke(asyncResult);
return ((MenuValue)(results[0]));
}

/// <remarks/>
[System.Web.Services.Protocols.SoapRpcMethodAttribute("",
RequestNamespace="http://webservices.common.rms.bsc.com",
ResponseNamespace="http://www.remotemenu.com/services/RmsService")]
[return: System.Xml.Serialization.SoapElementAttribute("getItemTypesReturn")]
public ItemTypeValue[] getItemTypes(int providerId) {
object[] results = this.Invoke("getItemTypes", new
object[] {
providerId});
return ((ItemTypeValue[])(results[0]));
}

/// <remarks/>
public System.IAsyncResult BegingetItemTypes(int providerId,
System.AsyncCallback callback, object asyncState) {
return this.BeginInvoke("getItemTypes", new object[] {
providerId}, callback, asyncState);
}

/// <remarks/>
public ItemTypeValue[] EndgetItemTypes(System.IAsyncResult
asyncResult) {
object[] results = this.EndInvoke(asyncResult);
return ((ItemTypeValue[])(results[0]));
}

/// <remarks/>
[System.Web.Services.Protocols.SoapRpcMethodAttribute("",
RequestNamespace="http://webservices.common.rms.bsc.com",
ResponseNamespace="http://www.remotemenu.com/services/RmsService")]
[return: System.Xml.Serialization.SoapElementAttribute("createProviderReturn")]
public string createProvider(string name) {
object[] results = this.Invoke("createProvider", new
object[] {
name});
return ((string)(results[0]));
}

/// <remarks/>
public System.IAsyncResult BegincreateProvider(string name,
System.AsyncCallback callback, object asyncState) {
return this.BeginInvoke("createProvider", new object[] {
name}, callback, asyncState);
}

/// <remarks/>
public string EndcreateProvider(System.IAsyncResult
asyncResult) {
object[] results = this.EndInvoke(asyncResult);
return ((string)(results[0]));
}

/// <remarks/>
[System.Web.Services.Protocols.SoapRpcMethodAttribute("",
RequestNamespace="http://webservices.common.rms.bsc.com",
ResponseNamespace="http://www.remotemenu.com/services/RmsService")]
[return: System.Xml.Serialization.SoapElementAttribute("getImagesReturn")]
public ImageValue[] getImages() {
object[] results = this.Invoke("getImages", new
object[0]);
return ((ImageValue[])(results[0]));
}

/// <remarks/>
public System.IAsyncResult BegingetImages(System.AsyncCallback
callback, object asyncState) {
return this.BeginInvoke("getImages", new object[0],
callback, asyncState);
}

/// <remarks/>
public ImageValue[] EndgetImages(System.IAsyncResult
asyncResult) {
object[] results = this.EndInvoke(asyncResult);
return ((ImageValue[])(results[0]));
}

/// <remarks/>
[System.Web.Services.Protocols.SoapRpcMethodAttribute("",
RequestNamespace="http://webservices.common.rms.bsc.com",
ResponseNamespace="http://www.remotemenu.com/services/RmsService")]
[return: System.Xml.Serialization.SoapElementAttribute("updateProviderSalesReturn")]
public bool updateProviderSales(SaleValue[] sales, int
providerId) {
object[] results = this.Invoke("updateProviderSales", new
object[] {
sales,
providerId});
return ((bool)(results[0]));
}

/// <remarks/>
public System.IAsyncResult
BeginupdateProviderSales(SaleValue[] sales, int providerId,
System.AsyncCallback callback, object asyncState) {
return this.BeginInvoke("updateProviderSales", new
object[] {
sales,
providerId}, callback, asyncState);
}

/// <remarks/>
public bool EndupdateProviderSales(System.IAsyncResult
asyncResult) {
object[] results = this.EndInvoke(asyncResult);
return ((bool)(results[0]));
}

/// <remarks/>
[System.Web.Services.Protocols.SoapRpcMethodAttribute("",
RequestNamespace="http://webservices.common.rms.bsc.com",
ResponseNamespace="http://www.remotemenu.com/services/RmsService")]
[return: System.Xml.Serialization.SoapElementAttribute("getSalesByDatesReturn")]
public SalesSummaryValue getSalesByDates(int providerId,
System.DateTime startDate, System.DateTime finishDate) {
object[] results = this.Invoke("getSalesByDates", new
object[] {
providerId,
startDate,
finishDate});
return ((SalesSummaryValue)(results[0]));
}

/// <remarks/>
public System.IAsyncResult BegingetSalesByDates(int
providerId, System.DateTime startDate, System.DateTime finishDate,
System.AsyncCallback callback, object asyncState) {
return this.BeginInvoke("getSalesByDates", new object[] {
providerId,
startDate,
finishDate}, callback, asyncState);
}

/// <remarks/>
public SalesSummaryValue
EndgetSalesByDates(System.IAsyncResult asyncResult) {
object[] results = this.EndInvoke(asyncResult);
return ((SalesSummaryValue)(results[0]));
}

/// <remarks/>
[System.Web.Services.Protocols.SoapRpcMethodAttribute("",
RequestNamespace="http://webservices.common.rms.bsc.com",
ResponseNamespace="http://www.remotemenu.com/services/RmsService")]
[return: System.Xml.Serialization.SoapElementAttribute("getServerTimesheetsByDatesReturn")]
public ServerTimesheetValue[] getServerTimesheetsByDates(int
providerId, System.DateTime startDate, System.DateTime finishDate) {
object[] results =
this.Invoke("getServerTimesheetsByDates", new object[] {
providerId,
startDate,
finishDate});
return ((ServerTimesheetValue[])(results[0]));
}

/// <remarks/>
public System.IAsyncResult BegingetServerTimesheetsByDates(int
providerId, System.DateTime startDate, System.DateTime finishDate,
System.AsyncCallback callback, object asyncState) {
return this.BeginInvoke("getServerTimesheetsByDates", new
object[] {
providerId,
startDate,
finishDate}, callback, asyncState);
}

/// <remarks/>
public ServerTimesheetValue[]
EndgetServerTimesheetsByDates(System.IAsyncResult asyncResult) {
object[] results = this.EndInvoke(asyncResult);
return ((ServerTimesheetValue[])(results[0]));
}

/// <remarks/>
[System.Web.Services.Protocols.SoapRpcMethodAttribute("",
RequestNamespace="http://webservices.common.rms.bsc.com",
ResponseNamespace="http://www.remotemenu.com/services/RmsService")]
[return: System.Xml.Serialization.SoapElementAttribute("getAllSalesSummaryReturn")]
public SalesSummaryValue getAllSalesSummary(int providerId) {
object[] results = this.Invoke("getAllSalesSummary", new
object[] {
providerId});
return ((SalesSummaryValue)(results[0]));
}

/// <remarks/>
public System.IAsyncResult BegingetAllSalesSummary(int
providerId, System.AsyncCallback callback, object asyncState) {
return this.BeginInvoke("getAllSalesSummary", new object[]
{
providerId}, callback, asyncState);
}

/// <remarks/>
public SalesSummaryValue
EndgetAllSalesSummary(System.IAsyncResult asyncResult) {
object[] results = this.EndInvoke(asyncResult);
return ((SalesSummaryValue)(results[0]));
}

/// <remarks/>
[System.Web.Services.Protocols.SoapRpcMethodAttribute("",
RequestNamespace="http://webservices.common.rms.bsc.com",
ResponseNamespace="http://www.remotemenu.com/services/RmsService")]
[return: System.Xml.Serialization.SoapElementAttribute("updateIpEndPointReturn")]
public bool updateIpEndPoint(string ipEndPoint, int
providerId) {
object[] results = this.Invoke("updateIpEndPoint", new
object[] {
ipEndPoint,
providerId});
return ((bool)(results[0]));
}

/// <remarks/>
public System.IAsyncResult BeginupdateIpEndPoint(string
ipEndPoint, int providerId, System.AsyncCallback callback, object
asyncState) {
return this.BeginInvoke("updateIpEndPoint", new object[] {
ipEndPoint,
providerId}, callback, asyncState);
}

/// <remarks/>
public bool EndupdateIpEndPoint(System.IAsyncResult
asyncResult) {
object[] results = this.EndInvoke(asyncResult);
return ((bool)(results[0]));
}

/// <remarks/>
[System.Web.Services.Protocols.SoapRpcMethodAttribute("",
RequestNamespace="http://webservices.common.rms.bsc.com",
ResponseNamespace="http://www.remotemenu.com/services/RmsService")]
[return: System.Xml.Serialization.SoapElementAttribute("addTimeSheetEntryReturn")]
public bool addTimeSheetEntry(System.DateTime date,
System.Double hoursWorked, int serverId) {
object[] results = this.Invoke("addTimeSheetEntry", new
object[] {
date,
hoursWorked,
serverId});
return ((bool)(results[0]));
}

/// <remarks/>
public System.IAsyncResult
BeginaddTimeSheetEntry(System.DateTime date, System.Double
hoursWorked, int serverId, System.AsyncCallback callback, object
asyncState) {
return this.BeginInvoke("addTimeSheetEntry", new object[]
{
date,
hoursWorked,
serverId}, callback, asyncState);
}

/// <remarks/>
public bool EndaddTimeSheetEntry(System.IAsyncResult
asyncResult) {
object[] results = this.EndInvoke(asyncResult);
return ((bool)(results[0]));
}

/// <remarks/>
[System.Web.Services.Protocols.SoapRpcMethodAttribute("",
RequestNamespace="http://webservices.common.rms.bsc.com",
ResponseNamespace="http://www.remotemenu.com/services/RmsService")]
[return: System.Xml.Serialization.SoapElementAttribute("getOrdersReturn")]
public CarryoutOrderValue[] getOrders(int providerId) {
object[] results = this.Invoke("getOrders", new object[] {
providerId});
return ((CarryoutOrderValue[])(results[0]));
}

/// <remarks/>
public System.IAsyncResult BegingetOrders(int providerId,
System.AsyncCallback callback, object asyncState) {
return this.BeginInvoke("getOrders", new object[] {
providerId}, callback, asyncState);
}

/// <remarks/>
public CarryoutOrderValue[] EndgetOrders(System.IAsyncResult
asyncResult) {
object[] results = this.EndInvoke(asyncResult);
return ((CarryoutOrderValue[])(results[0]));
}
}

/// <remarks/>
[System.Xml.Serialization.SoapTypeAttribute("ProviderValue",
"urn:RmsService")]
[Serializable]
public class ProviderValue {

/// <remarks/>
public string city;

/// <remarks/>
public string ipEndPoint;

/// <remarks/>
public string name;

/// <remarks/>
public string phoneNumber;

/// <remarks/>
public int providerId;

/// <remarks/>
public string state;

/// <remarks/>
public System.Double taxRate;

/// <remarks/>
public string userId;
}

/// <remarks/>
[System.Xml.Serialization.SoapTypeAttribute("TimeSheetEntryValue",
"urn:RmsService")]
[Serializable]
public class TimeSheetEntryValue
{

/// <remarks/>
public System.DateTime date;

/// <remarks/>
public System.Double hoursWorked;

/// <remarks/>
public int timeSheetEntryId;
}

/// <remarks/>
[System.Xml.Serialization.SoapTypeAttribute("ServerTimesheetValue",
"urn:RmsService")]
[Serializable]
public class ServerTimesheetValue
{

/// <remarks/>
public bool isActive;

/// <remarks/>
public string name;

/// <remarks/>
public int serverId;

/// <remarks/>
public TimeSheetEntryValue[] timeSheetEntryViews;
}

/// <remarks/>
[System.Xml.Serialization.SoapTypeAttribute("LineSaleValue",
"urn:RmsService")]
[Serializable]
public class LineSaleValue
{

/// <remarks/>
public System.Double amount;

/// <remarks/>
public System.DateTime date;

/// <remarks/>
public string server;

/// <remarks/>
public System.Double voidAmount;
}

/// <remarks/>
[System.Xml.Serialization.SoapTypeAttribute("LineItemValue",
"urn:RmsService")]
[Serializable]
public class LineItemValue
{

/// <remarks/>
public System.Double amount;

/// <remarks/>
public string category;

/// <remarks/>
public System.DateTime date;

/// <remarks/>
public string item;

/// <remarks/>
public string server;
}

/// <remarks/>
[System.Xml.Serialization.SoapTypeAttribute("SalesSummaryValue",
"urn:RmsService")]
[Serializable]
public class SalesSummaryValue
{

/// <remarks/>
public LineItemValue[] lineItemValues;

/// <remarks/>
public LineSaleValue[] lineSaleValues;
}

/// <remarks/>
[System.Xml.Serialization.SoapTypeAttribute("SaleValue",
"urn:RmsService")]
[Serializable]
public class SaleValue
{

/// <remarks/>
public System.Double amount;

/// <remarks/>
public System.DateTime date;

/// <remarks/>
public int[] itemIds;

/// <remarks/>
public int saleId;

/// <remarks/>
public int serverId;

/// <remarks/>
public System.Double voidAmount;
}

/// <remarks/>
[System.Xml.Serialization.SoapTypeAttribute("ImageValue",
"urn:RmsService")]
[Serializable]
public class ImageValue
{

/// <remarks/>
[System.Xml.Serialization.SoapElementAttribute(DataType="base64Binary")]
public System.Byte[] image;

/// <remarks/>
public int imageId;

/// <remarks/>
public string name;
}

/// <remarks/>
[System.Xml.Serialization.SoapTypeAttribute("ItemTypeValue",
"urn:RmsService")]
[Serializable]
public class ItemTypeValue
{

/// <remarks/>
public int itemTypeId;

/// <remarks/>
public string name;
}

/// <remarks/>
[System.Xml.Serialization.SoapTypeAttribute("GratuityValue",
"urn:RmsService")]
[Serializable]
public class GratuityValue
{

/// <remarks/>
public int gratuityId;

/// <remarks/>
public System.Double gratuityRate;

/// <remarks/>
public string name;
}

/// <remarks/>
[System.Xml.Serialization.SoapTypeAttribute("DiscountValue",
"urn:RmsService")]
[Serializable]
public class DiscountValue
{

/// <remarks/>
public int discountId;

/// <remarks/>
public System.Double discountRate;

/// <remarks/>
public string name;
}

/// <remarks/>
[System.Xml.Serialization.SoapTypeAttribute("DecisionLibraryValue",
"urn:RmsService")]
[Serializable]
public class DecisionLibraryValue
{

/// <remarks/>
public int decisionLibraryId;

/// <remarks/>
public DecisionValue[] decisionViews;

/// <remarks/>
public string name;
}

/// <remarks/>
[System.Xml.Serialization.SoapTypeAttribute("DecisionValue",
"urn:RmsService")]
[Serializable]
public class DecisionValue
{

/// <remarks/>
public int decisionId;

/// <remarks/>
public bool isMultipleChoice;

/// <remarks/>
public string name;

/// <remarks/>
public OptionValue[] optionViews;

/// <remarks/>
public int position;

/// <remarks/>
public int refId;
}

/// <remarks/>
[System.Xml.Serialization.SoapTypeAttribute("OptionValue",
"urn:RmsService")]
[Serializable]
public class OptionValue
{

/// <remarks/>
public string description;

/// <remarks/>
public string name;

/// <remarks/>
public int optionId;

/// <remarks/>
public int position;

/// <remarks/>
public System.Double price;
}

/// <remarks/>
[System.Xml.Serialization.SoapTypeAttribute("CategoryValue",
"urn:RmsService")]
[Serializable]
public class CategoryValue
{

/// <remarks/>
public int categoryId;

/// <remarks/>
public int imageId;

/// <remarks/>
public bool isQuickCategory;

/// <remarks/>
public ItemValue[] itemViews;

/// <remarks/>
public string name;

/// <remarks/>
public int position;
}

/// <remarks/>
[System.Xml.Serialization.SoapTypeAttribute("ItemValue",
"urn:RmsService")]
[Serializable]
public class ItemValue
{

/// <remarks/>
public DecisionValue[] decisionViews;

/// <remarks/>
public string description;

/// <remarks/>
public string guid;

/// <remarks/>
public bool hasBeenSent;

/// <remarks/>
public int imageId;

/// <remarks/>
public bool isActive;

/// <remarks/>
public bool isAppetizer;

/// <remarks/>
public bool isCompleted;

/// <remarks/>
public bool isDontSend;

/// <remarks/>
public bool isVoid;

/// <remarks/>
public int itemId;

/// <remarks/>
public string itemType;

/// <remarks/>
public string name;

/// <remarks/>
public int position;

/// <remarks/>
public System.Double price;

/// <remarks/>
public int seatNumber;
}

/// <remarks/>
[System.Xml.Serialization.SoapTypeAttribute("MenuValue",
"urn:RmsService")]
[Serializable]
public class MenuValue
{

/// <remarks/>
public CategoryValue[] categoryViews;

/// <remarks/>
public DecisionLibraryValue[] decisionLibraryViews;

/// <remarks/>
public DiscountValue[] discountViews;

/// <remarks/>
public GratuityValue[] gratuityViews;

/// <remarks/>
public ItemTypeValue[] itemTypeViews;

/// <remarks/>
public int menuId;

/// <remarks/>
public string name;
}

/// <remarks/>
[System.Xml.Serialization.SoapTypeAttribute("CarryoutOrderValue",
"urn:RmsService")]
[Serializable]
public class CarryoutOrderValue
{

/// <remarks/>
public int carryoutOrderId;

/// <remarks/>
public ItemValue[] itemViews;

/// <remarks/>
public string name;

/// <remarks/>
public int orderNumber;
}

/// <remarks/>
[System.Xml.Serialization.SoapTypeAttribute("TableValue",
"urn:RmsService")]
[Serializable]
public class TableValue
{

/// <remarks/>
public string name;

/// <remarks/>
public int tableId;
}

/// <remarks/>
[System.Xml.Serialization.SoapTypeAttribute("ServerValue",
"urn:RmsService")]
[Serializable]
public class ServerValue
{

/// <remarks/>
public bool isActive;

/// <remarks/>
public string name;

/// <remarks/>
public int serverId;
}
}

=============================END WINDOWS APP
CODE============================

=============================BEGIN CF APP
CODE===============================

------------------
Form1.cs
------------------
using System;
using System.Drawing;
using System.Collections;
using System.Windows.Forms;
using System.Data;

using SmartDeviceApplication2.CookService;

namespace SmartDeviceApplication2
{
/// <summary>
/// Summary description for Form1.
/// </summary>
public class Form1 : System.Windows.Forms.Form
{
private System.Windows.Forms.Label label1;
private System.Windows.Forms.MainMenu mainMenu1;

public Form1()
{
//
// Required for Windows Form Designer support
//
InitializeComponent();

//
// TODO: Add any constructor code after InitializeComponent call
//

CookServiceService service = new CookServiceService();

MenuValue menu = service.GetMenu();
ServerValue[] servers = service.GetServers();
TableValue[] tables = service.GetTables();

label1.Text = "Menu = " + menu.name + "\n" +
"Server count = " + servers.Length + "\n" +
"Table count = " + tables.Length;

}
/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose( bool disposing )
{
base.Dispose( disposing );
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.mainMenu1 = new System.Windows.Forms.MainMenu();
this.label1 = new System.Windows.Forms.Label();
//
// label1
//
this.label1.Location = new System.Drawing.Point(32, 40);
this.label1.Size = new System.Drawing.Size(152, 104);
this.label1.Text = "label1";
//
// Form1
//
this.Controls.Add(this.label1);
this.Menu = this.mainMenu1;
this.Text = "Form1";
this.Load += new System.EventHandler(this.Form1_Load);

}
#endregion

/// <summary>
/// The main entry point for the application.
/// </summary>

static void Main()
{
Application.Run(new Form1());
}

private void Form1_Load(object sender, System.EventArgs e)
{
this.Close();
}
}
}


-------------------
Reference.cs
-------------------
//------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a tool.
// Runtime Version: 1.1.4322.573
//
// Changes to this file may cause incorrect behavior and will be
lost if
// the code is regenerated.
// </autogenerated>
//------------------------------------------------------------------------------

//
// This source code was auto-generated by Microsoft.VSDesigner,
Version 1.1.4322.573.
//
namespace SmartDeviceApplication2.CookService {
using System.Diagnostics;
using System.Xml.Serialization;
using System;
using System.Web.Services.Protocols;
using System.ComponentModel;
using System.Web.Services;


/// <remarks/>
// CODEGEN: The optional WSDL extension element 'method' from
namespace 'http://www.w3.org/2000/wsdl/suds' was not handled.
// CODEGEN: The optional WSDL extension element 'method' from
namespace 'http://www.w3.org/2000/wsdl/suds' was not handled.
// CODEGEN: The optional WSDL extension element 'method' from
namespace 'http://www.w3.org/2000/wsdl/suds' was not handled.
// CODEGEN: The optional WSDL extension element 'class' from
namespace 'http://www.w3.org/2000/wsdl/suds' was not handled.
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Web.Services.WebServiceBindingAttribute(Name="CookServiceBinding",
Namespace="http://schemas.microsoft.com/clr/nsassem/WindowsApplication1/WindowsApplication1%"
+
"2C%20Version%3D1.0.1433.16552%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Dnull")]
[System.Xml.Serialization.SoapIncludeAttribute(typeof(TableValue))]
[System.Xml.Serialization.SoapIncludeAttribute(typeof(ServerValue))]
[System.Xml.Serialization.SoapIncludeAttribute(typeof(ItemTypeValue))]
[System.Xml.Serialization.SoapIncludeAttribute(typeof(GratuityValue))]
[System.Xml.Serialization.SoapIncludeAttribute(typeof(DiscountValue))]
[System.Xml.Serialization.SoapIncludeAttribute(typeof(DecisionLibraryValue))]
[System.Xml.Serialization.SoapIncludeAttribute(typeof(OptionValue))]
[System.Xml.Serialization.SoapIncludeAttribute(typeof(DecisionValue))]
[System.Xml.Serialization.SoapIncludeAttribute(typeof(ItemValue))]
[System.Xml.Serialization.SoapIncludeAttribute(typeof(CategoryValue))]
public class CookServiceService :
System.Web.Services.Protocols.SoapHttpClientProtocol {

/// <remarks/>
public CookServiceService() {
this.Url =
"http://169.254.25.129:9001/RemServiceUri.soap";
}

/// <remarks/>
[System.Web.Services.Protocols.SoapRpcMethodAttribute("http://schemas.microsoft.com/clr/nsassem/WindowsApplication1.CookService/WindowsA"
+
"pplication1#GetMenu",
RequestNamespace="http://schemas.microsoft.com/clr/nsassem/WindowsApplication1.CookService/WindowsA"
+
"pplication1", ResponseNamespace="http://schemas.microsoft.com/clr/nsassem/WindowsApplication1.CookService/WindowsA"
+
"pplication1")]
[return: System.Xml.Serialization.SoapElementAttribute("return")]
public MenuValue GetMenu() {
object[] results = this.Invoke("GetMenu", new object[0]);
return ((MenuValue)(results[0]));
}

/// <remarks/>
public System.IAsyncResult BeginGetMenu(System.AsyncCallback
callback, object asyncState) {
return this.BeginInvoke("GetMenu", new object[0],
callback, asyncState);
}

/// <remarks/>
public MenuValue EndGetMenu(System.IAsyncResult asyncResult) {
object[] results = this.EndInvoke(asyncResult);
return ((MenuValue)(results[0]));
}

/// <remarks/>
[System.Web.Services.Protocols.SoapRpcMethodAttribute("http://schemas.microsoft.com/clr/nsassem/WindowsApplication1.CookService/WindowsA"
+
"pplication1#GetServers",
RequestNamespace="http://schemas.microsoft.com/clr/nsassem/WindowsApplication1.CookService/WindowsA"
+
"pplication1", ResponseNamespace="http://schemas.microsoft.com/clr/nsassem/WindowsApplication1.CookService/WindowsA"
+
"pplication1")]
[return: System.Xml.Serialization.SoapElementAttribute("return")]
public ServerValue[] GetServers() {
object[] results = this.Invoke("GetServers", new
object[0]);
return ((ServerValue[])(results[0]));
}

/// <remarks/>
public System.IAsyncResult
BeginGetServers(System.AsyncCallback callback, object asyncState) {
return this.BeginInvoke("GetServers", new object[0],
callback, asyncState);
}

/// <remarks/>
public ServerValue[] EndGetServers(System.IAsyncResult
asyncResult) {
object[] results = this.EndInvoke(asyncResult);
return ((ServerValue[])(results[0]));
}

/// <remarks/>
[System.Web.Services.Protocols.SoapRpcMethodAttribute("http://schemas.microsoft.com/clr/nsassem/WindowsApplication1.CookService/WindowsA"
+
"pplication1#GetTables",
RequestNamespace="http://schemas.microsoft.com/clr/nsassem/WindowsApplication1.CookService/WindowsA"
+
"pplication1", ResponseNamespace="http://schemas.microsoft.com/clr/nsassem/WindowsApplication1.CookService/WindowsA"
+
"pplication1")]
[return: System.Xml.Serialization.SoapElementAttribute("return")]
public TableValue[] GetTables() {
object[] results = this.Invoke("GetTables", new
object[0]);
return ((TableValue[])(results[0]));
}

/// <remarks/>
public System.IAsyncResult BeginGetTables(System.AsyncCallback
callback, object asyncState) {
return this.BeginInvoke("GetTables", new object[0],
callback, asyncState);
}

/// <remarks/>
public TableValue[] EndGetTables(System.IAsyncResult
asyncResult) {
object[] results = this.EndInvoke(asyncResult);
return ((TableValue[])(results[0]));
}
}

/// <remarks/>
[System.Xml.Serialization.SoapTypeAttribute("MenuValue",
"http://schemas.microsoft.com/clr/nsassem/WindowsApplication1.remotemenu/WindowsAp"
+
"plication1%2C%20Version%3D1.0.1433.16552%2C%20Culture%3Dneutral%2C%20PublicKeyTo"
+
"ken%3Dnull")]
public class MenuValue {

/// <remarks/>
public CategoryValue[] categoryViews;

/// <remarks/>
public DecisionLibraryValue[] decisionLibraryViews;

/// <remarks/>
public DiscountValue[] discountViews;

/// <remarks/>
public GratuityValue[] gratuityViews;

/// <remarks/>
public ItemTypeValue[] itemTypeViews;

/// <remarks/>
public int menuId;

/// <remarks/>
public string name;
}

/// <remarks/>
[System.Xml.Serialization.SoapTypeAttribute("CategoryValue",
"http://schemas.microsoft.com/clr/nsassem/WindowsApplication1.remotemenu/WindowsAp"
+
"plication1%2C%20Version%3D1.0.1433.16552%2C%20Culture%3Dneutral%2C%20PublicKeyTo"
+
"ken%3Dnull")]
public class CategoryValue {

/// <remarks/>
public int categoryId;

/// <remarks/>
public int imageId;

/// <remarks/>
public bool isQuickCategory;

/// <remarks/>
public ItemValue[] itemViews;

/// <remarks/>
public string name;

/// <remarks/>
public int position;
}

/// <remarks/>
[System.Xml.Serialization.SoapTypeAttribute("ItemValue",
"http://schemas.microsoft.com/clr/nsassem/WindowsApplication1.remotemenu/WindowsAp"
+
"plication1%2C%20Version%3D1.0.1433.16552%2C%20Culture%3Dneutral%2C%20PublicKeyTo"
+
"ken%3Dnull")]
public class ItemValue {

/// <remarks/>
public DecisionValue[] decisionViews;

/// <remarks/>
public string description;

/// <remarks/>
public string guid;

/// <remarks/>
public bool hasBeenSent;

/// <remarks/>
public int imageId;

/// <remarks/>
public bool isActive;

/// <remarks/>
public bool isAppetizer;

/// <remarks/>
public bool isCompleted;

/// <remarks/>
public bool isDontSend;

/// <remarks/>
public bool isVoid;

/// <remarks/>
public int itemId;

/// <remarks/>
public string itemType;

/// <remarks/>
public string name;

/// <remarks/>
public int position;

/// <remarks/>
public System.Double price;

/// <remarks/>
public int seatNumber;
}

/// <remarks/>
[System.Xml.Serialization.SoapTypeAttribute("DecisionValue",
"http://schemas.microsoft.com/clr/nsassem/WindowsApplication1.remotemenu/WindowsAp"
+
"plication1%2C%20Version%3D1.0.1433.16552%2C%20Culture%3Dneutral%2C%20PublicKeyTo"
+
"ken%3Dnull")]
public class DecisionValue {

/// <remarks/>
public int decisionId;

/// <remarks/>
public bool isMultipleChoice;

/// <remarks/>
public string name;

/// <remarks/>
public OptionValue[] optionViews;

/// <remarks/>
public int position;

/// <remarks/>
public int refId;
}

/// <remarks/>
[System.Xml.Serialization.SoapTypeAttribute("OptionValue",
"http://schemas.microsoft.com/clr/nsassem/WindowsApplication1.remotemenu/WindowsAp"
+
"plication1%2C%20Version%3D1.0.1433.16552%2C%20Culture%3Dneutral%2C%20PublicKeyTo"
+
"ken%3Dnull")]
public class OptionValue {

/// <remarks/>
public string description;

/// <remarks/>
public string name;

/// <remarks/>
public int optionId;

/// <remarks/>
public int position;

/// <remarks/>
public System.Double price;
}

/// <remarks/>
[System.Xml.Serialization.SoapTypeAttribute("TableValue",
"http://schemas.microsoft.com/clr/nsassem/WindowsApplication1.remotemenu/WindowsAp"
+
"plication1%2C%20Version%3D1.0.1433.16552%2C%20Culture%3Dneutral%2C%20PublicKeyTo"
+
"ken%3Dnull")]
public class TableValue {

/// <remarks/>
public string name;

/// <remarks/>
public int tableId;
}

/// <remarks/>
[System.Xml.Serialization.SoapTypeAttribute("ServerValue",
"http://schemas.microsoft.com/clr/nsassem/WindowsApplication1.remotemenu/WindowsAp"
+
"plication1%2C%20Version%3D1.0.1433.16552%2C%20Culture%3Dneutral%2C%20PublicKeyTo"
+
"ken%3Dnull")]
public class ServerValue {

/// <remarks/>
public bool isActive;

/// <remarks/>
public string name;

/// <remarks/>
public int serverId;
}

/// <remarks/>
[System.Xml.Serialization.SoapTypeAttribute("ItemTypeValue",
"http://schemas.microsoft.com/clr/nsassem/WindowsApplication1.remotemenu/WindowsAp"
+
"plication1%2C%20Version%3D1.0.1433.16552%2C%20Culture%3Dneutral%2C%20PublicKeyTo"
+
"ken%3Dnull")]
public class ItemTypeValue {

/// <remarks/>
public int itemTypeId;

/// <remarks/>
public string name;
}

/// <remarks/>
[System.Xml.Serialization.SoapTypeAttribute("GratuityValue",
"http://schemas.microsoft.com/clr/nsassem/WindowsApplication1.remotemenu/WindowsAp"
+
"plication1%2C%20Version%3D1.0.1433.16552%2C%20Culture%3Dneutral%2C%20PublicKeyTo"
+
"ken%3Dnull")]
public class GratuityValue {

/// <remarks/>
public int gratuityId;

/// <remarks/>
public System.Double gratuityRate;

/// <remarks/>
public string name;
}

/// <remarks/>
[System.Xml.Serialization.SoapTypeAttribute("DiscountValue",
"http://schemas.microsoft.com/clr/nsassem/WindowsApplication1.remotemenu/WindowsAp"
+
"plication1%2C%20Version%3D1.0.1433.16552%2C%20Culture%3Dneutral%2C%20PublicKeyTo"
+
"ken%3Dnull")]
public class DiscountValue {

/// <remarks/>
public int discountId;

/// <remarks/>
public System.Double discountRate;

/// <remarks/>
public string name;
}

/// <remarks/>
[System.Xml.Serialization.SoapTypeAttribute("DecisionLibraryValue",
"http://schemas.microsoft.com/clr/nsassem/WindowsApplication1.remotemenu/WindowsAp"
+
"plication1%2C%20Version%3D1.0.1433.16552%2C%20Culture%3Dneutral%2C%20PublicKeyTo"
+
"ken%3Dnull")]
public class DecisionLibraryValue {

/// <remarks/>
public int decisionLibraryId;

/// <remarks/>
public DecisionValue[] decisionViews;

/// <remarks/>
public string name;
}
}

============================END CF
CODE========================================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top