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



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

"Naeem Sarfraz" wrote:

> 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"
>
> "Valentin" wrote:
>
> > 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
> >
> >
> >
> > "Naeem Sarfraz" wrote:
> >
> > > 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?
.



Relevant Pages

  • RE: Problem with this web service
    ... All I wish to do is to use the web service. ... The problem is that it's asking for callback and asyncState ... >> This is my test code ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: Simple(?) web service
    ... so treat it as ds, retrieving rows, fields and whatever you do with a ds, ... serialize webservice (writing XML) and then load my local ds ... > The web service is an sp, and ws returns a data set. ... > On the client project, I have added a reference to this web service. ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Re: Web Service returning types - BIG PROBLEMS
    ... Any object that needs to be used on both the web service and client ... What your client project needs to do is to add a Web Reference. ...
    (microsoft.public.dotnet.framework.webservices)
  • Web Service Parameter
    ... Atymaint is the name of my class. ... this class defined in a project that is separate from my web service project ... and my client project. ... Public AMDESC as string ...
    (microsoft.public.dotnet.framework.aspnet)
  • Web Service Question
    ... then I'd like to send the fields back through a web service for updating. ... Atymaint is the name of my class. ... and my client project. ... Public AMDESC as string ...
    (microsoft.public.dotnet.framework.aspnet)