@echo off

echo *** Generating C# client proxy class for a DATEX II SOAP service ***

call "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Auxiliary\Build\vcvars32.bat" x64 
"C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.8 Tools\wsdl.exe" /out:datex2.cs /nologo /n:pl.qumak.xsd.datex2 ^
	resources\xsd\datex_ii_v3_4\DATEXII_3_MessageContainer.xsd ^
	resources\xsd\datex_ii_v3_4\DATEXII_3_Common.xsd ^
	resources\xsd\datex_ii_v3_4\DATEXII_3_D2Payload.xsd ^
	resources\xsd\datex_ii_v3_4\DATEXII_3_ExchangeInformation.xsd ^
	resources\xsd\datex_ii_v3_4\DATEXII_3_LocationReferencing.xsd ^
	resources\xsd\datex_ii_v3_4\DATEXII_3_RoadTrafficData.xsd ^
	resources\xsd\datex_ii_v3_4\DATEXII_3_Situation.xsd ^
	resources\wsdl\DATEX_II_Pull.wsdl 

echo Client proxy class generation finished.

pause
