This similar discussion on Stack Overflow discusses a few different tools that can be used to try and merge multiple WSDL files into a single one, although I cannot vouch for any of them personally.
The tool that Mostafa mentions is probably going to be the best / most recent option (at least from a .NET standpoint), however there are a few other tools like WSDLFlattener that
could work as well (but may not have options to be used programatically like WSDL Merge.
Thank you for answer. But I have Tried this code. There are only two option source file and destination file. Means I can give only tow file path one for save file content and second on for content. I am unable to get proper result.
Thank you for answer. But I have Tried this code. There are only two option source file and destination file. Means I can give only tow file path one for save file content and second on for content. I am unable to get proper result.
If that's the case, then you would probably have to continually merge the WSDL files into a single one (e.g. take the result from two files and then merge the next file into the next product), if that makes any sense. If the API only supports two simultaneous
files, this seems like it would be the only way to handle it.
I am using this https://github.com/lenardg/WSDLMerge link code for merge wsdl files in single file. Can you help me for do this I am new in web services and related work to it.
you would probably have to continually merge the WSDL files into a single one (e.g. take the result from two files and then merge the next file into the next product),
Try below code.
public static string MergeFiles(string[] fileNames)
{
if (fileNames.Length < 2)
{
return fileNames[0];
}
for (int i = 1; i < fileNames.Length; i++)
{
WSDLMerger.Merge(fileNames[i - 1], fileNames[i]);
}
return fileNames[fileNames.Length - 1];
}
I have done some research on WSDLMerger, It cann't merge two wsdl files in one file. It only could merge one wsdl with some <import> elements. And I have some if there any other tools on web, but can't found any. I suggest you do it by yourself use some
XML processing technology. For example
Linq to XML.
None
0 Points
13 Posts
Merge Two WSDL files in single wsdl file
Aug 02, 2015 02:28 PM|Lokesh Hammad|LINK
Hi all of you,
Please help me. I want to merge two wsdl files in single wsdl file using c# or asp .net.
Thank you in advance.
Contributor
4407 Points
1264 Posts
Re: Merge Two WSDL files in single wsdl file
Aug 02, 2015 07:28 PM|mostafasydney|LINK
Please have a look at: https://github.com/lenardg/WSDLMerge
Hope this will help.
Mostafa
If this post helps you to resolve your problem, don't forget to "Mark as Answer"
All-Star
114593 Points
18503 Posts
MVP
Re: Merge Two WSDL files in single wsdl file
Aug 02, 2015 08:19 PM|Rion Williams|LINK
This similar discussion on Stack Overflow discusses a few different tools that can be used to try and merge multiple WSDL files into a single one, although I cannot vouch for any of them personally.
The tool that Mostafa mentions is probably going to be the best / most recent option (at least from a .NET standpoint), however there are a few other tools like WSDLFlattener that could work as well (but may not have options to be used programatically like WSDL Merge.
None
0 Points
13 Posts
Re: Merge Two WSDL files in single wsdl file
Aug 03, 2015 04:04 AM|Lokesh Hammad|LINK
Hi Mostafa Asaduzzaman,
Thank you for answer. But I have Tried this code. There are only two option source file and destination file. Means I can give only tow file path one for save file content and second on for content. I am unable to get proper result.
Thank you.
Contributor
4407 Points
1264 Posts
Re: Merge Two WSDL files in single wsdl file
Aug 03, 2015 04:08 AM|mostafasydney|LINK
Hi Lokesh,
How do you want to merge the two files? Using command line tool or something?
Mostafa
If this post helps you to resolve your problem, don't forget to "Mark as Answer"
None
0 Points
13 Posts
Re: Merge Two WSDL files in single wsdl file
Aug 03, 2015 12:59 PM|Lokesh Hammad|LINK
I want marge two wsdl files using c# code. Like you suggest code by you in previous answer. No using command line or something else.
Thank you.
All-Star
114593 Points
18503 Posts
MVP
Re: Merge Two WSDL files in single wsdl file
Aug 03, 2015 01:03 PM|Rion Williams|LINK
If that's the case, then you would probably have to continually merge the WSDL files into a single one (e.g. take the result from two files and then merge the next file into the next product), if that makes any sense. If the API only supports two simultaneous files, this seems like it would be the only way to handle it.
None
0 Points
13 Posts
Re: Merge Two WSDL files in single wsdl file
Aug 03, 2015 02:36 PM|Lokesh Hammad|LINK
Thank you sir for answering.
I am using this https://github.com/lenardg/WSDLMerge link code for merge wsdl files in single file. Can you help me for do this I am new in web services and related work to it.
Its will be obligation. Please help me.
Star
9859 Points
974 Posts
Re: Merge Two WSDL files in single wsdl file
Aug 05, 2015 02:52 AM|Li Wang|LINK
Hi Lokesh Hammad,
Please take care of the suggestion of Rion.
Try below code.
Best Regards,
Wang Li
None
0 Points
13 Posts
Re: Merge Two WSDL files in single wsdl file
Aug 05, 2015 01:08 PM|Lokesh Hammad|LINK
Thank you for reply.
But I did not get any result.
I have two URL first one is http://www.webservicex.net/sendsmsworld.asmx?WSDL and second one is http://www.webservicex.com/globalweather.asmx?WSDL and now I want to merge wsdl of both URL into single file. Using C# code.
Thank you.
Star
9859 Points
974 Posts
Re: Merge Two WSDL files in single wsdl file
Aug 05, 2015 11:19 PM|Li Wang|LINK
Hi Lokesh,
I have done some research on WSDLMerger, It cann't merge two wsdl files in one file. It only could merge one wsdl with some <import> elements. And I have some if there any other tools on web, but can't found any. I suggest you do it by yourself use some XML processing technology. For example Linq to XML.
Best Regards,
Wang Li
None
0 Points
13 Posts
Re: Merge Two WSDL files in single wsdl file
Aug 06, 2015 04:38 AM|Lokesh Hammad|LINK
Thank you for reply.
I will find another way for merge two WSDL files. If you found some thing related with it please suggest to me.
Thank you.