none
WWSAPI error - incorrect scheme RRS feed

  • Question

  • I need to connect to a web service (written in Java) using a https link.
    I am able to get a response using SOAP UI. I have a certificate which I use in the SOAP UI. The cert is for the DataPower authentication on the server.

    I need to get the same response using WWSAPI. I have created a sample MFC VC++ exe(unmanaged) to connect to the service. The header and .c files have been generated using wsutil.

    When I call the generated GetXXXInfoSOAP_CreateServiceProxy function, I get E_INVALIDARG. The inner error message is "The URL 'https://qaxxxx.com/service/GetXXXInfo' has an incorrect scheme for this channel. The scheme 'http' was expected".
    I did try setting the channel to WS_HTTP_CHANNEL_BINDING but to no avail.

    Am I missing something like adding the cert to header?? I do not know how to do that. Could someone please share me some code samples?

    Please help me. I am stuck at this point for quite sometime now.

    Thanks....

    Tuesday, January 17, 2017 5:58 AM