I have developed a custom asmx webservice and deployed successfully on my url and on browser ive checked and working perfect. Now I want to consume in my Visual WebParts code behind ..to do this Ive added Service Reference..defined web reference also and include that web reference in using section. when I go to instantiate the webservice i cannot like when i type mProxy the intellisense does not show up..it looks like object declaration has some problems. why is that
here is the code
using System;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Data;
using Microsoft.SharePoint;
using System.Collections.Generic;
using Microsoft.SharePoint.WebControls;
using S_Portal_WebParts.SPWebService;
namespace S_Portal_WebParts.NewPurchaseRequisition
{
public partial class NewPurchaseRequisitionUserControl : UserControl
{
SPWebService.OraSPDataXchange myProxy = new SPWebService.OraSPDataXchange();
