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
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