Wednesday, August 04, 2004

The 2nd .NET User Group Meeting in Colombo

The 2nd .NET User Group Meeting is scheduled for today (Wednesday, 4th August)
at the Gateway Auditorium in Colombo.

After the successful 1st meeting, where about 50 attended, we hope there will be more enthusiasts joining at todays meeting.

Wela and Buddhike, will be presenting talks on:

"Visual Studio" and "Passing Data between layers"


Including Web Services as a DLL in your project

Its always not required to register (web reference) your Web Service in the consuming project.
You can create a DLL (proxy class) out of the Web Service you have written and simply add it as a reference (component) to your project.
You can easily do it in the command prompt itself, as follows:

1. Create the Web Service in Visual Studio
and browse it to test the webservice..
path eg:-
http://localhost/webserviceproj1/wsinfo.asmx?WSDL


2. Generate a Proxy for the Web Service (Output = C#/CS)

wsdl /l:CS /protocol:SOAP
http://localhost/webserviceproj1/wsinfo.asmx?WSDL

then it will write the wsinfo.cs file in the same path.


3. Compile the Proxy as a DLL library

csc /t:library /r:System.Web.Services.dll /r:System.Xml.dll
wsinfo.cs

3. Include it in the project that calls the webservice (as a DLL reference)
Copy the DLL into the folder and then include it in the project that calls the webservice
(as a DLL reference)

More info available at:
http://archive.devx.com/dotnet/articles/cp0901/cp0901-2/cpwso.asp
http://my.execpc.com/~gopalan/dotnet/webservices/webservice_csharp_client.html


Tuesday, August 03, 2004

Why not me?

Alas I decided to Blog. And I feel so great to be into this.

Thanks for all the bloggers who lead me in.
(Merill/Meeya/Jinath/Buddhike whos blogs made me also take up one)

So keep a close eye on my Blog!

Cheers for Long Journey!