I have wsdl file. Then I create service implementation from this wsdl file:
cd C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin
svcutil -//-.wsdl
It is file SendResultsFromService.cs with class SendResultsFromServicePortTypeClient. Here there is a function CalcZoneViewForArea.
Now I want, that my application was the server. So someone call CalcZoneViewForArea in another application.
In my application in class SendResultsFromServicePortTypeClient there is a function CalcZoneViewForArea.
public int CalcZoneViewForArea(TAnswInfoFromService args0)
{
CalcZoneViewForAreaRequest inValue = new CalcZoneViewForAreaRequest();
inValue.args0 = args0;
CalcZoneViewForAreaResponse retVal = ((SendResultsFromFHServicePortType)(this)).CalcZoneViewForArea(inValue);
return retVal.@return;
}
This function was generated from wsdl. I need to create .doc file from the received data TAnswInfoFromService . Can I modify this function here?
My misunderstanding of this question is based on the following:
I already have ServiceHost serviceHost.
serviceHost = new ServiceHost(typeof(*.*.*.*.*.MapViewPortTypeClient), new Uri(uri));
serviceHost.Open();
MapViewPortTypeClient is not the same as SendResultsFromServicePortTypeClient. And this services have different uri.