dev.andersonribeiro.SOAPDatasetHell 1.0.0

Convert WCF Webservices Diffgram XML result into  Datasets.

In the recent past, software engineers used to send datasets and datatables throught SOAP Webservices. Althought this is considered a bad practice nowadays, we need to deal with legacy WCF Webservices wich retrieves Datasets and Datatables in XML Format. In .Net Core, there isn't an easy way to transform a XML Dataset  back to a DataSet object.

This package is the most easy way and intend to eliminate headaches while working with a legacy WCF Webservices that returns DataSets in XML format.

Install-Package dev.andersonribeiro.SOAPDatasetHell -Version 1.0.0
dotnet add package dev.andersonribeiro.SOAPDatasetHell --version 1.0.0
<PackageReference Include="dev.andersonribeiro.SOAPDatasetHell" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add dev.andersonribeiro.SOAPDatasetHell --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Create an instance of SoapToDatasetClient and set properties:

  • Credentials, if aplicable:
  • SOAP Endpoint URL
  • SOAP Namespaces ( Mandatory )
  • SOAP Body ( Mandatory )

After, call SoapToDatasetClient.GetDataSet() to retrieve Dataset from WCF Webservice.

Something like this:

SoapToDatasetClient soapClient = new SoapToDatasetClient("http://wssupplier/wsPortal/ws_listPriority.asmx");
soapClient.Credentials = new NetworkCredential("username", "password");
soapClient.NameSpaces.Add(@"xmlns:ran=""http://www.ranger.com/""");
soapClient.SoapBody = $@"
						<ran:WS_Priority_Call>
						 <ran:in_Param>
							<ran:IntegrationSystem>2</ran:IntegrationSystem>
						 </ran:in_Param>
					  </ran:WS_WS_Priority_Call>"
DataSet dataSet = await soapClient.GetDataSet();

Create an instance of SoapToDatasetClient and set properties:

  • Credentials, if aplicable:
  • SOAP Endpoint URL
  • SOAP Namespaces ( Mandatory )
  • SOAP Body ( Mandatory )

After, call SoapToDatasetClient.GetDataSet() to retrieve Dataset from WCF Webservice.

Something like this:

SoapToDatasetClient soapClient = new SoapToDatasetClient("http://wssupplier/wsPortal/ws_listPriority.asmx");
soapClient.Credentials = new NetworkCredential("username", "password");
soapClient.NameSpaces.Add(@"xmlns:ran=""http://www.ranger.com/""");
soapClient.SoapBody = $@"
						<ran:WS_Priority_Call>
						 <ran:in_Param>
							<ran:IntegrationSystem>2</ran:IntegrationSystem>
						 </ran:in_Param>
					  </ran:WS_WS_Priority_Call>"
DataSet dataSet = await soapClient.GetDataSet();

Release Notes

Pre Version

  • .NETStandard 2.0

    • No dependencies.

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.0 135 1/10/2020