getting Started with the webapi

Posted By polychromenz Thu 29 May 2014
Add to Favorites0
Author Message
polychromenz
 Posted Thu 29 May 2014
Supreme Being

Supreme Being - (6,488 reputation)Supreme Being - (6,488 reputation)Supreme Being - (6,488 reputation)Supreme Being - (6,488 reputation)Supreme Being - (6,488 reputation)Supreme Being - (6,488 reputation)Supreme Being - (6,488 reputation)Supreme Being - (6,488 reputation)Supreme Being - (6,488 reputation)

Group: Forum Members
Last Active: Thu 21 Sep 2017
Posts: 13, Visits: 179
I'm new to Kartris and pretty new to using webapis.

I think I have the basics clear in my head now but I need some help.

I made a reference to the service and created an instance. I can see how to call the execute method and use it to BLL methods etc. that all makes sense.

How do I login and how do I pass my APIKey?

My code is something like this but where do I set the API key?

If I run this the strResult will return "Sorry. Cant authenticate request!"

Private Function CallWebMethod(MethodName As String, ParametersXML As String)

'Use the web service

Dim myKart As New svcKartris.KartrisWebAPIClient

'Login

Dim strLogin As String = "<Parameter Name=""UserName"" Type=""String""><Value>Admin</Value></Parameter>"

strLogin += "<Parameter Name=""Password"" Type=""String""><Value>TestPassword</Value></Parameter>"

Dim strResult As String = ""

strResult = myKart.Execute("LoginsBLL.Validate", strLogin)

strResult = myKart.Execute(MethodName, ParametersXML)

Debug.Print(strResult)

End Function
Thu 29 May 2014 by polychromenz


Similar Topics

Expand / Collapse

Reading This Topic

Expand / Collapse

Back To Top