Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / December 2005

Tip: Looking for answers? Try searching our database.

"Updated Web Reference" but can't find the '****Wse' class!

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Naeem Sarfraz - 24 Nov 2005 12:39 GMT
So Ihave enbaled by ASp.NET Web Service project to be WSE Enabled and the
same for my client project. Compiled the Web Service and then updated the
references in the client project.

I am now supposed to find a class which has 'Wse' appended to it, I can't
find it, it's not in the namespace. Am I missing a step?
Craig Boland - 27 Nov 2005 02:35 GMT
It's in the Reference.cs file under the 'localhost' web reference. Open the
file and you'll find both the StockService and the StockServiceWse classes.

> So Ihave enbaled by ASp.NET Web Service project to be WSE Enabled and the
> same for my client project. Compiled the Web Service and then updated the
> references in the client project.
>
> I am now supposed to find a class which has 'Wse' appended to it, I can't
> find it, it's not in the namespace. Am I missing a step?
Valentin - 05 Dec 2005 00:49 GMT
No, you will not find an appended class in client code.
To consume the Web Service you have to do:
Create an object for the class of your Web Service in this manner:
WebReference.WebServiceClass  myService = new WebReference.WebServiceClass
(…// constructor arguments);
Call the needed methods as follows:
myService.Method01 (….// the method arguments);  

Regards,
Valentin
www.wwv-it.de
My Web Services: http://www.wwv-it.com/DateTimeSpan/ComputeDateTimeSpan.asmx
http://www.wwv-it.com/Mathematics/JHConwayPrimeNumbers.asmx

> So Ihave enbaled by ASp.NET Web Service project to be WSE Enabled and the
> same for my client project. Compiled the Web Service and then updated the
> references in the client project.
>
> I am now supposed to find a class which has 'Wse' appended to it, I can't
> find it, it's not in the namespace. Am I missing a step?
xtcsonik@gmail.com - 05 Dec 2005 16:33 GMT
Make that in your service project you have also checked the "Enable
Microsoft Web Services Enhancement Soap Protocol Factory" checkbox.
Then continue with the steps you already did.
Valentin - 05 Dec 2005 20:15 GMT
Which developing kit are you using?
I am working with Visual C# .net. I do not find this check box. Maybe is
this a default setting, when I select a Web Service project to create.

Regards, Valentin

> Make that in your service project you have also checked the "Enable
> Microsoft Web Services Enhancement Soap Protocol Factory" checkbox.
> Then continue with the steps you already did.
Naeem Sarfraz - 20 Dec 2005 10:00 GMT
Where can I find this property?

> Make that in your service project you have also checked the "Enable
> Microsoft Web Services Enhancement Soap Protocol Factory" checkbox.
> Then continue with the steps you already did.
Naeem Sarfraz - 20 Dec 2005 10:12 GMT
I think you may be mistaken, there should be "...Wse" class if you have WSE
enabled. I know the "...Wse" proxy class inherits from a different class than
the normal "SoapHttpClientProtocol"

> No, you will not find an appended class in client code.
> To consume the Web Service you have to do:
[quoted text clipped - 16 lines]
> > I am now supposed to find a class which has 'Wse' appended to it, I can't
> > find it, it's not in the namespace. Am I missing a step?
Valentin - 20 Dec 2005 12:13 GMT
Hi Naeem,

I suppose, we are writing about different things.
So, here is a test code for Web Services:

using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;

namespace TestWebService
{
    /// <summary>
    /// Zusammenfassung für WebForm1.
    /// </summary>
    public class WebForm1 : System.Web.UI.Page
    {
        protected System.Web.UI.WebControls.TextBox txtBox01;
        protected System.Web.UI.WebControls.TextBox txtBox02;
        MyService01.ComputeDateTimeSpan myServ01 = new
MyService01.ComputeDateTimeSpan ();
        protected System.Web.UI.WebControls.TextBox txtBox3;
        MyService02.WebServicesClass myServ02 = new MyService02.WebServicesClass ();
       private void Page_Load(object sender, System.EventArgs e)
        {
            txtBox01.Text = myServ01.ActualDate ("……");
            txtBox02.Text = myServ02.Enter_A_Text ("Hello World");
            txtBox3.Text = myServ02.CurrentDate ("…..");
            // Hier Benutzercode zur Seiteninitialisierung einfügen
        }

        #region Vom Web Form-Designer generierter Code
        override protected void OnInit(EventArgs e)
        {
            //
            // CODEGEN: Dieser Aufruf ist für den ASP.NET Web Form-Designer
erforderlich.
            //
            InitializeComponent();
            base.OnInit(e);
        }
       
        /// <summary>
        /// Erforderliche Methode für die Designerunterstützung.
        /// Der Inhalt der Methode darf nicht mit dem Code-Editor geändert werden.
        /// </summary>
        private void InitializeComponent()
        {    
            this.Load += new System.EventHandler(this.Page_Load);

        }
        #endregion
    }
}

The Web References are called:
MyService01
MyService02

Regards
Valentin

> I think you may be mistaken, there should be "...Wse" class if you have WSE
> enabled. I know the "...Wse" proxy class inherits from a different class than
[quoted text clipped - 20 lines]
> > > I am now supposed to find a class which has 'Wse' appended to it, I can't
> > > find it, it's not in the namespace. Am I missing a step?
Valentin - 21 Dec 2005 13:02 GMT
Hi Naeem,

I wish to add to my previous answer that the Visual Studio C# .Net 2003
generates proxy namespaces for each reference, which contain the service
methodss. Therefore using Visual Studio you do not to take care to create Wse
classes.

Regards

Valentin

> I think you may be mistaken, there should be "...Wse" class if you have WSE
> enabled. I know the "...Wse" proxy class inherits from a different class than
[quoted text clipped - 20 lines]
> > > I am now supposed to find a class which has 'Wse' appended to it, I can't
> > > find it, it's not in the namespace. Am I missing a step?
darkadvent - 29 Dec 2005 23:02 GMT
I had the same problem with the wse class not showing up when importing the
webservice into an asp.net application.  It wasn't until I installed the
redistributal that comes with the SDK did it finally show up.  Kinda wierd.

> Hi Naeem,
>
[quoted text clipped - 31 lines]
> > > > I am now supposed to find a class which has 'Wse' appended to it, I can't
> > > > find it, it's not in the namespace. Am I missing a step?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.