https webreference problem

I am having problems working with web references. I am using references to secure sites like https://www.arcwebservices.com/services/v2006/Authentication.wsdl

The web reference is added successfully with all the correct methods and, I can get the web reference to work correctly when the protocol is http, but I get an E_FAIL result when my derived class hits the following line.

Authentication::CAuthenticationT<> *proxy = new Authentication::CAuthenticationT<>;
proxy->getVersion(&Result);


__atlsoap_hr = SendRequest(_T("SOAPAction: \"getVersion\"\r\n")); //error message is created here.

Again I have tested this with non-secure web references from the same provider and it works fine.


If anyone could shed some light on .net web references that would be great.

kurt


Answer this question

https webreference problem

  • John Bocachica

    Thus you can add succesfull a https reference If you click on the proxy you see a https URI

    if not it's better to manual make you wsdl file with the wsdl tool

  • Sianspheric

    This line is located in the wsdl.

    <soap:address location="https://www.arcwebservices.com/services/v2006/Authentication"/>

    It is in my project as this, and it is also found exactly the same at the reference url below.

    https://www.arcwebservices.com/services/v2006/Authentication.wsdl


    Not sure if I should be looking for something else or not.


  • cesarmello

  • Falsedawn

    Thank you for your response fafnir but that post is not related to my problem.

    I am creating a web reference in mfc c++ in visual studio .net 2003.  The problem has something to do with c++.  I know this because I can create a c# test project with the same connection information and it works perfectly fine https or http. 

    I have tried on visual studio 2005 and on multiple computers with and without proxy servers.

    My problem is specifically related to using web references in mfc visual c++ that are https web services.  If anyone can get a test vc++ project accessing https://www.arcwebservices.com/services/v2006/Authentication.wsdl  getversion() method or any other then you will have addressed this issue.

    Thank You



  • https webreference problem