RE: "Updated Web Reference" but can't find the '****Wse' class!
- From: "Valentin" <Valentin@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 20 Dec 2005 04:13:02 -0800
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?
.
- Prev by Date: RE: Referenced security token could not be retrieved
- Next by Date: WSE 3.0 Kerberos Auth and issue with Windows XP ASPNET Account
- Previous by thread: Re: "Updated Web Reference" but can't find the '****Wse' class!
- Next by thread: RE: An error in XML document - identity constraint is not declared
- Index(es):
Relevant Pages
|
|