Developer Forum [ All Topics | New Topic ]

Thread: Getting error when use webservice

Hello sir,

i am getting below error when i run my test application on local host.
i am using asp.net with C#.

Server was unable to process request. ---> Credentials can only be passed over secure connections (HTTPS)



My code is

RapNetInventoryLink webServiceManager = new RapNetInventoryLink();
        webServiceManager.Login("Username", "Password");
        webServiceManager.Url = "http" + webServiceManager.Url.Substring(5);
        RapNetInventoryLinkParameters setPatams = webServiceManager.Init();
        Shapes[] MyShapes = new Shapes[1];
        MyShapes[0] = Shapes.ROUND;
        setPatams.ShapeCollection = MyShapes;
        setPatams.MinSize = 2;
        setPatams.MaxSize = 3;
        setPatams.Markup = 120;
        DataSet ds = webServiceManager.GetDiamonds(setPatams);
        return ds;

please reply asap.


Thanks


>> add a comment
Volga Infotech
12/10/2011 02:27


3 Replies:

change the URL from HTTP to HTTPS


>> add a comment
ahaliav fox
12/10/2011 12:40:00 PM
Hello ahaliav,


Thanks for reply, but i am getting this error when we call
webServiceManager.Login("Username", "Password");

Thanks


>> add a comment
Volga
12/11/2011 1:49:00 AM

yes, like I wrote before you need to
change the http to https, right click on the web service in your project and
click on configure web service you will see the web service URL at the top, just
add ‘s’ after the http





>> add a comment
ahaliav fox
12/11/2011 1:58:00 AM