Good day. There was a task to poll the web server from the client on which it is planned to write the WCF client part. There is very little information about the server (I don’t know the host platform) I only know the format of SOAP messages.
The quotation from those tasks looks like this:
For the regulatory timetable, the WEB server interface GetScheduleNormative4Place request:
<?xml version="1.0" encoding=" utf-8" ?> <root> <Authentication User='ddd' Password='samba'/> <Place ESR='34567'/> </root > answer:
<?xml version="1.0" encoding=" utf-8" ?> <root> <Place ESR='34567' Data='2015.09.21'/> <Train TrainNumber='6022' Name='Москва-Ожерелье' ESRDeparture='34567' ESRArrival='34560' TimeDeparture='2015.09.21 11:11:00' TimeArrival='' DaysTrainType='ОН' DaysTrain= '2015.09.15;2015.09.17;2015.09.22' > </Train> </root > That is, in the request to the end point, I specify the authorization data and some Id number, and if they are correct, the server throws out the answer.
I need to create a client on WCF under the .NET 4.5 platform. Once I did a distributed application and there I classically created a contract that applied to both the client and the server. Here the server has already been made and I understand that one of the endpoints should be mex (metadata). And in VS it is possible even through code generation to create a WCF client project which, using the metadata received from the server, is generated by the client? sort of saw such examples. What are the ways to create a client manually? And if mex is disabled?
Thank you in advance!