Hi, I want to consume a SOAP service developed in JAVA. I don't have any control on Service side. I have to just consume the SOAP service using my client Application which is in DotNet Console Application using C#. Here is the detail about the service:
1. The service has SSL configured.
2. End point looks like: https://xyz.com:443
3. I am able to connect the service using SOAP UI Tool by configuring the Tool with the certs given by Java developer.
4. Basically there are two certs used, one for "client authentication" purpose and the second cert is for "WS security" purpose.
5. When i add the WSDL to my client app as a service Reference, the generated App.config file looks as shown below:
system.serviceModel>
<basicHttpBinding>
bindingConfiguration="Hello_HTTPBinding"
contract="Proxy_Hello" name="Hello_HTTPPort" />
6. Basically I need to pass two certs, one cert used for "client authentication" purpose and the second cert is used for "WS security purpose".
7. I have changed the above client configuration as below marked in RED color text:
system.serviceModel>
https://xyz.com:443" binding="basicHttpBinding"
bindingConfiguration="Hello_HTTPBinding"
contract="Proxy_Hello" name="Hello_HTTPPort" behaviorConfiguration="NewBehavior" />
8. The am assuming the cert used for WS security purpose will be passed with in element, but not fully sure....
9. By creating proxy object of the service when I am trying to call the required method I am getting this Error: "Could not establish secure channel for SSL/TLS with authority "******xyz.com."
10. Its working perfect in SOAP UI Tool, generating the Raw XML as shown below in ORANGE color Text:
aaaaaaaaaaaaaaaaabbbbbbbbbbbbbbbbbccccccccccccccccccccc********dddddddddddd*****eeeeeeeeee
abcabcabcabc******gggggg
gggggg888******8sdsdsdss
11. Using Dotnet Tracing I am able to see the Request XML generated from the console Application as shown below in BLUE color text: But getting the SSL error as: Could not establish secure channel for SSL/TLS with authority "******xyz.com.
2015-02-04T04:19:29.825Z
2015-02-04T04:24:29.825Z
aaaaaa****dddddd=
ssssddddd888fffff****=
12. I want to Generate the Request XML from my Dotnet console Application simialar to the SOAP UI generated XML.. Also want to get rid of SSL error....Appreciate your Suggestion..