.NET C# 5 Express and SSL

R

RTJudson

Hi All,

Ok, after a little more poking around and downloading fiddler to do some
SOAP tracing for me, it appears my code isn't talking SSL or not getting past
the SSL because I never see any soap traffic.

Here's my code:

using System;
using System.Collections.Generic;
using System.Text;
using USPSD; //My Web reference, generated using WSDL and added by hand
/* I've also tried doing an Add Web Reference, neither seems to work
* using either WSDL.exe or Add Web Reference I point it to a server that
is running
* IIS6 with a valid SSL cert. so in my reference it shows as
https://<server>/ws.asmx
* yet fiddler only shows the SSL traffic.
*/


namespace USPSDProd
{
class Program
{
static void Main(string[] args)
{
string myUser=args[0];
string myPwd=args[1];
USPSD.USD_WebService myService = new USPSD.USD_WebService();
try
{
int results = myService.Login(myUser, myPwd);
} //Try
catch (System.Net.WebException ex)
{
Console.WriteLine(ex.Message);
} //Catch
catch
{
Console.WriteLine("Some other exception occured!");
} //Catch
} //Main
} //Class Program
} //USPSDProd


Any help? What am I doing wrong?

--Richard
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,143
Latest member
DewittMill
Top