简体   繁体   中英

How to create a service based in a WSDL of another service

I am really new in services and are having some problems with one issue. The fact is, i have a WSDL of a SAP system and i need to create a Web API in Visual Studio based on it.

I passed some time searching for tutorial's of how to do that but don't have lucky. Someone would help me, explaining the concept or sending some tutorial where i could understand how to do that? I am completely lost and i need it for my job.

If anyone could help me i would stay quite grateful. Thank you everyone for the support.

If you have WSDL of the service you might be able to use ServiceModel Metadata Utility Tool (Svcutil.exe) to generate your WCF client proxy with all the required contracts for it. Here is another link on generation and answer with an example, plus another example .

Just host the WSDL in ur IIS ie Create an application in IIS pointing to the directly that contains the WSDL.

And add service reference to the WSDL by pointing to the IIS Url of the application.

Then in config, change it to point to actual implementation of the service.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM