Last post May 10, 2016 03:30 AM by Chris Zhao
May 09, 2016 10:15 AM|vishnuk|LINK
Lets suppose i have two schema A and B.
In A i have just types in B i have operations defined. A is the main wsdl file where i start parsing ,how can
i get Operations information using c#.(i have imported B from A)
Thanks in advance.
May 09, 2016 12:03 PM|PatriceSc|LINK
Not sure to get your exact scenario. My understanding is that you have a valid WSDL document (that imports another file). As for any other WSDL I would try to use
https://msdn.microsoft.com/en-us/library/office/bb408520(v=exchg.140).aspx or WSDL.exe which should create proxy C# classes for you.
I would expect the import to be followed and processed by this tool as well.
May 10, 2016 03:30 AM|Chris Zhao|LINK
how can i get Operations information using c#.
You could loop through the porttypes in the service description. Take a look at this
ServiceDescription serviceDescription = ...;
foreach (PortType portType in serviceDescription.PortTypes)
foreach (Operation operation in portType.Operations)
WSDL(Web Service Definition Language) Parser