Dec 10, 2008

How to call NLP utilities using Web Service

One said,

I love the work of developing simple, reusable, and hopefully long lasting software components. By simple I mean easy to use, not necessarily easy to design or implement. As software engineers we should, in my opinion, work hard to make complicated things look simple, not the other way around. On the other hand, I like distributed computing, which is pretty complicated by nature. I get very excited if my programs can jump from machine to machine, go through firewalls, and eventually retrieve or update data on a legacy system (which usually means mainframe to me :-).

I hope our NLP utilities follow such principle.

 

Here is the main steps you use our NLP utilities. More functions will be added.

  1. Create a windows forms application using visual studio 2005/2008.
    image
  2. Add Web service
    • open “add service reference” in solution panel
      image
    • You will see
      image
    • Click “advanced…”
      image
    • Click “add web reference…”
      image
    • Type “http://nuscu.ddns.comp.nus.edu.sg/WikiService3/Service1.asmx” and click “go”
    • image
    • Change name space as you will (such as NUSNLP) and then click “add reference”
    • tips:
      • If you use visual studio 2005. You can add “web service” directly;
      • Do not use “service reference”. It is mainly designed for WCF. It is wir
  3. You will find a new web reference
    image
  4. Call the web service
    image
    Here, TermValuePair has the structure of
    image
    So you do not need to specify the output structure. You can use it directly.

No comments: