I have tried multiple examples online to generate my soap client request to look like this
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:isw="http://tech.solhavensystems.com/customerenquiry/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<isw:CustomerEnquiry>
<isw:CustomerEnquiryRequest>
<isw:CustomerID>012345678</isw:CustomerID>
</isw:CustomerEnquiryRequest>
</isw:CustomerEnquiry>
</soap:Body>
</soap:Envelope>
I followed these examples:
and other options provided by SoapCore, yet I've been unable to get the right result.
I need help with a working process to generate the specific request on client side.
I have discovered that this is ether and ambiguous question or an impossible task. However, I was able find a solution to the issue after reading a lot on soap and how Microsoft technology handles it. Programs like Soap UI would never present a Soap request in your exact desired format in the area of having your preferred prefix on your namespace etc. I discovered in .Net framework that you can (for presentation sake) create your Soap messages in desired format by creating a .asmx file and then manually loading the wsdl template into your project. Following the explanations on https://www.c-sharpcorner.com/UploadFile/00a8b7/web-service/ I was able to copy the wsdl template of my Visual Studio version into my project folder, loaded it into my application from web.config
<configuration>
<system.web>
<webServices>
<wsdlHelpGenerator href="MyWsdlHelpGenerator.aspx"/>
</webServices>
</system.web>
</configuration>
and did all sorts of unimaginable updates to the file, and viola, I got what I wanted. Please note that the result you get on the test page is likely going to be different to what apps like Soup UI would present to you, but your messages are well ok and deliver perfectly.