Before I start, I dont want to use WCF because of this outstanding issue Im experiencing - I want to explore other options:
Issue connecting to Server from WCF Client - HTTPS endpoint - Works on Local Dev but not Server
Now I have manually created some proxy classes based off a third parties WSDL, using:
- disco.exe (.discomap)
- wsdl to create the proxy classes
Now I couldnt use Add Web Reference because of this error, so I created them manually as instructed. Now wdsl has created the XtkSession.cs - I have tried using its Logon method and I get a SoapHeaderException exception. When I list the exeption to the screen it is empty - Am i doing something wrong? This is a Console App which I want to call an external thirdparty webservice using SOAP.
try
{
XtkSession WebLogon = new XtkSession();
WebLogon.Url = "https://logon.net/soaprouter.jsp";
var response = adobeWebLogon.Logon(null, "userName", "passWord", element,
out sessionInfo, out securityToken);
Screen.WriteLineToScreen("Web Response : " + response);
Screen.WriteLineToScreen("Web Security Token : " + securityToken);
}
catch (SoapHeaderException ex)
{
Screen.WriteLineToScreen("SoapHeaderException : " + " Actor: " + ex.Actor
+ " Code : " + ex.Code
+ " Detail: " + ex.Detail
+ " Inner : " + ex.InnerException);
}