Instructions for generating the webservice code using the following command (lookup local path to svcutil.exe): We generate the codebase for BOTH the spoedverwijzingSpoedeisendeZorg.wsdl as the ping.wsdl (for the AORTA ping request) like so: "c:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.7.2 Tools\SvcUtil.exe" /mc ./Schema/wsdl/SpoedVerwijzingSpoedEisendeHulp.wsdl ./Schema/wsdl/Ping.wsdl ./Schema/coreschemas/*.xsd ./Schema/schemas_codeGen/*.xsd /out:./generated/SpoedVerwijzingSpoedEisendeHulp.cs /config:./generated/output.config /namespace:*,AZNConnect.connector.SOAP.triage /syncOnly NOTE: XConnect has made a change to the /Schema/coreSchemas/datatypes.xsd to make svcUtil.exe generate the correct (due to an error when using the webservice stating it cannot implicitly convert CR to CR[] which is caused by a multidimensional array being generated for one of the type structures): - so at line 404 we removed the 'maxOccurs=unbounded' of the CD group element definition (as why should there be multiple groups???) The generated code is not perfect and will result in the following error messages (see below how to fix): 1. svcutil generates sync and async variats which cause: Cannot have two operations in the same contract with the same name FIX: Add a 'Name' attribute to both the sync and the async operations 2. the wsdl will not show any operations FIX: Remove the 'ReplyAction="*"' from the sync operation (you can leave it for the async one) You will end up with 2 operation looking like: [System.ServiceModel.OperationContractAttribute(Name = "spoedVerwijzingSpoedEisendeHulp_SpoedVerwijzing", Action = "urn:hl7-org:v3/spoedVerwijzingSpoedEisendeHulp_SpoedVerwijzing")] [System.ServiceModel.OperationContractAttribute(Name = "spoedVerwijzingSpoedEisendeHulp_SpoedVerwijzingAsync", Action = "urn:hl7-org:v3/spoedVerwijzingSpoedEisendeHulp_SpoedVerwijzingAsync", ReplyAction = "*")] Next: - Merge the contents of the generated output.config with the webservice web.config - Add a svc class and implement the generated porttype 'spoedVerwijzingSpoedEisendeHulp_PortType'