Hi
Using VC 2.3 for VS Community 2015, we need to send a digitally-signed SOAP XML to an Irish Goverment website and process the response we get back, which should be more XML in another SOAP envelope.
The application is a Windows Forms app. We use System.Xml, System.Security.Cryptography.X509Certificates, System.Security.Cryptography.Xml, etc to create the SOAP message.
What I have tried so far is the below:
method-id SEND-SOAP.
01 Client type HttpClient.
 
 01 Request type HttpRequestMessage.
 
 01 Response type HttpResponseMessage.
 
 *01 Uri String.
 01 Uri type Uri.
procedure division.
 
 set Uri to new Uri("https://???.ie/...").  *>> actual URI replaced here
 
 set Client to new HttpClient().
set Request to new HttpRequestMessage(type HttpMethod::Post, Uri).
 
 set Request::Content to new StringContent(theMsg, type Encoding::UTF8, "application/soap xml").  *>> theMsg is the SOAP envelope string
 
 * set Response to Client::SendAsync(Request) as type HttpResponseMessage.
 set Response to Client::SendAsync(Request)::Result.
* set Response to Client::PostAsync(Uri,Request::Content)::Result.
exit method.
 
 end method.
This is returning Http status code 500 "Internal Server Error", which is not very helpful.
Using System.Net.Http is probably not the best way to go about it. I have looked at some WCF examples but I do not understand them.
We have been provided with the .wsdl's, endpoints, and sample code written in Java.
Any help would be appreciated.
Many thanks
Brendan.