{"id":1837,"date":"2022-08-30T15:19:51","date_gmt":"2022-08-30T15:19:51","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2013\/12\/02\/how-to-connect-to-a-web-service-ssl-enabled-and-proxy-interface-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:19:51","modified_gmt":"2022-08-30T15:19:51","slug":"how-to-connect-to-a-web-service-ssl-enabled-and-proxy-interface-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/how-to-connect-to-a-web-service-ssl-enabled-and-proxy-interface-collection-of-common-programming-errors\/","title":{"rendered":"How to Connect to a web service (SSL enabled and proxy interface)-Collection of common programming errors"},"content":{"rendered":"<p>There is a web service running on tomcat on a server. It is built on Java Servlet. It is listening others to call itself on a SSL enabled http port. so its web service adreess looks like: https:\/\/172.29.12.12\/axis\/services\/XYZClient?wsdl<\/p>\n<p>On the other hand I want to connect the web service above from a windows application which is built on .NET frame work.<\/p>\n<p>Finally, when I want to connect the web service from my computer; I get some specific erros;<\/p>\n<p>Firstly I get; Proxy authentication error; then I added some new line to my code;<\/p>\n<pre><code>   Dim cr As System.Net.NetworkCredential = New System.Net.NetworkCredential(\"xname\", \"xsurname\", \"xdomainname\")\n        Dim myProxy As New WebProxy(\"http:\/\/mar.xxxyyy.com\", True)\n        myProxy.Credentials = cr\n<\/code><\/pre>\n<p>Secondly, after this modifications It says that bad request. I did not get over this error.<\/p>\n<p>Moreover I did try to connect the web server on the same computer. I copied my executable program to the computer where the web service runs. The error was like;<\/p>\n<blockquote>\n<p>The underlying connection was closed: Could not establish trust relationship for SSL\/TLS secure channel<\/p>\n<\/blockquote>\n<p>PS: When I try to connect to web service by using Internet Explorer; I see firstly some warnings about accepting an unknown certificate and I click take me to web service an I get there clearly.<\/p>\n<p>I want to know what are the basic elements to connect a web service, could you please tell me the requirements that I have to use on my windows project.<\/p>\n<p>regards bk<\/p>\n<ol>\n<li>\n<p>This page offers a simple step-by-step guide on building a web service client with C#.NET.<\/p>\n<p>Step 5 on this page shows how to add a certificate to your trusted store and Step 6 is another way to build a very simple web service client in C#.NET.<\/p>\n<\/li>\n<\/ol>\n<p id=\"rop\"><small>Originally posted 2013-12-02 20:57:07. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>There is a web service running on tomcat on a server. It is built on Java Servlet. It is listening others to call itself on a SSL enabled http port. so its web service adreess looks like: https:\/\/172.29.12.12\/axis\/services\/XYZClient?wsdl On the other hand I want to connect the web service above from a windows application which [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1837","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/1837","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=1837"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/1837\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=1837"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=1837"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=1837"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}