Hi,
I have the following set up on my system:
Windows 2k
JBoss 3.2.1 incl. JBoss.NET plugin(Axis)
MSDN.NET 1.1
I am trying to invoke JBoss based web service that is being exposed by the stateless session bean through the WSDL file from the C# front end.
I am able to generate .WSR files and also WSDL file and am able to see my service listed when I run the JBoss server and type this in the URL:
http://localhost:8080/jboss-net/services/ObjyTopologyService?wsdl
Then, from the cmd prompt, I invoked the WSDL utility:
C:\jboss-3.2.1\server\all\deploy>wsdl http://localhost:8080/jboss-net/services/ObjyTopolog
yService?wsdl
This creates a ObjyTopologySessionService.cs file in the same directory.
Then I opened this .cs file and changed the URL to 8080.
Then I created a C# file named TestClient.cs with the following code in the same dir.:
using System;
class TestClient {
public static void Main(string[] args) {
ObjyTopologySessionService stub = new ObjyTopologySessionService ();
stub.Credentials = new new System.Net.NetworkCredential("admin","admin");
Console.WriteLine("Calling: "+stub.hello("MyName"));
}
}
Next when i try to run this command to build my class to genrate and link and executable, I get the following errors:
C:\jboss-3.2.1\server\all\deploy>csc /r:System.Web.Services.dll /r:System.Xml.dll /r:Syste
m.dll \TestClient.cs ObjyTopologySessionService.cs
Microsoft (R) Visual C# .NET Compiler version 7.00.9466
for Microsoft (R) .NET Framework version 1.0.3705
Copyright (C) Microsoft Corporation 2001. All rights reserved.
error CS2001: Source file '\TestClient.cs' could not be found
error CS5001: Program 'ObjyTopologySessionService.exe' does not have an entry point
defined
What am I missing out here?
Thanks in advance
Manish