C
CyberLotus
Hi,
I've created a windows service (basically a polling service involving MSMQ)
and created a web service too in C#. Now in the windows service, I want to
give a reference to the web service.
I tried in usual manner, as described below:
1. In the solution explorer of windows service, I added a reference to the
web service.
2. Then, in the using section of windows service, I added, "using
<namespace>.<web ref name>". (though the web ref name was not showing after
putting the dot).
3. I created an object of the web service's class in windows service and
tried to access the web methods.
But this didn't work. It gave me the following build error: "The type or
namespace name 'GetFilesWS' does not exist in the class or namespace
'Knot.WeddingWarehouse.Interface.MSMQWindowsService' (are you missing an
assembly reference?)".
where 'GetFilesWS' is the <web ref name> and
'Knot.WeddingWarehouse.Interface.MSMQWindowsService' is the <namespace>.
Can anybody give me any clue on this.
TIA.
- CyberLotus
I've created a windows service (basically a polling service involving MSMQ)
and created a web service too in C#. Now in the windows service, I want to
give a reference to the web service.
I tried in usual manner, as described below:
1. In the solution explorer of windows service, I added a reference to the
web service.
2. Then, in the using section of windows service, I added, "using
<namespace>.<web ref name>". (though the web ref name was not showing after
putting the dot).
3. I created an object of the web service's class in windows service and
tried to access the web methods.
But this didn't work. It gave me the following build error: "The type or
namespace name 'GetFilesWS' does not exist in the class or namespace
'Knot.WeddingWarehouse.Interface.MSMQWindowsService' (are you missing an
assembly reference?)".
where 'GetFilesWS' is the <web ref name> and
'Knot.WeddingWarehouse.Interface.MSMQWindowsService' is the <namespace>.
Can anybody give me any clue on this.
TIA.
- CyberLotus