Adding Connected Service WSDL does not deserialize properly

Options

I'm trying to work with this example https://apiforums.easylink.com/system/files/CS_JobSubmit_FAX_2.5_0.txt
with Visual Studio 2017 I'm adding the endpoint http://ws.easylink.com/JobSubmit/2011/01?WSDL
as a Connected Service using Microsoft WCF Web Reference Provider. It deserializes the endpoint, but the JobSubmitService class does not deserialize. JobSubmitRequest, JobSubmitResponse, JobSubmitResult, etc do deserialize in the stubbed CS file. Web References appear to be deprecated. How can I get your WSDL to work with modern tooling? Please advise.

Best Answer

  • Prabhakr_2018
    Options

    Hi

    I have created Windows Form(.Net Framework ) project with name EMsgAPI_Demo.Then Right Click on EMsgAPI_Demo Project->Click Add->ServiceReference->Advanced->Add Web Reference. Enter the URL "http://ws.easylink.com/JobSubmit/2011/01?WSDL". It will list the Web Service found at the URL. Save the reference with name EMsgAPI_JobSubmit201101. Now it will deserialize the end point and JobSubmitService class also will be deserialized.

    Then copy the code from https://apiforums.easylink.com/system/files/CS_JobSubmit_FAX_2.5_0.txt.

    Actually there is a compatibility issue with .NET Framework version which can be resolved by adding a webreference as above.

    Prabhakaran R
    OpenText

Answers