コード例 #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            // the object that accesses the web service for us is in
            //the namespace we specified, then <ServiceName>SoapClient
            var svc = new MusicServiceProxy.MusicServiceSoapClient();

            // you can then access the [WebMethod] tagged methods in you web service like this:
            gvList.DataSource = svc.SelectAll();
            gvList.DataBind();

            // note: the types exposed through the WebService (via return types or arguments)
            // are also translated and live within the MusicServiceProxy
            // -> this means you have access to the Music model object here in the app
        }
コード例 #2
0
ファイル: Edit.aspx.cs プロジェクト: Moses-Hamon/MusicApp
 protected void Page_Load(object sender, EventArgs e)
 {
     var svc = new MusicServiceProxy.MusicServiceSoapClient();
 }