Gemini Community Support Site

This Gemini community support site can be used to find solutions to product issues. You can log in using Open Id, Google Profile and even Facebook. Feel free to ask a question or browse FAQs and documentation. Product tour videos are also available along with how-to videos demonstrating key Gemini capabilities.




Calling Web Service Function --> CreateSourceControlFile

api

Normal 0 false false false MicrosoftInternetExplorer4

Hi, Jim here.

I would like to use the web service stated inside
C:\Program Files\CounterSoft\Gemini Project Issue Tracking\Gemini Web Application\webservices
to create a record of a source control file
http://localhost/Gemini/webservices/IssuesWS.asmx/CreateSourceControlFile

After i called the web service as follow, but it do not work!
Possible is i do not called the token for user name and password? or any other possiblility?
Is support team can do help to guild me to the right path i should follow?
Thanks a lot.
Kindly Appreciate Your Helps.


Imports CounterSoft.Gemini.Services

Imports CounterSoft.Gemini.Commons

 

Partial Public Class _Default

    Inherits System.Web.UI.Page

 

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

        'Dim o As New syleetemp.IssuesWS

        'Dim oSource As New SourceControlEN

        'o.Credentials = System.Net.CredentialCache.DefaultCredentials

 

        'oSource.FileID = 123

        'oSource.FileName = "test1"

        'oSource.FilePath = "C:\"

        'oSource.IssueID = 32

 

        'Dim i As Integer

        'i = o.CreateSourceControlFile(oSource)

 

        Dim o As New CounterSoft.Gemini.Services.ServiceManager("http://localhost/Gemini/webservices")

        Dim oSource As New SourceControlEN

 

        o.IssueServices.Credentials = System.Net.CredentialCache.DefaultCredentials

 

        oSource.FileID = 123

        oSource.FileName = "test1"

        oSource.FilePath = "C:\"

        oSource.IssueID = 30

        oSource.SourceControlRepository = ""

 

        Dim i As Integer

        i = o.IssueServices.CreateSourceControlFile(oSource)

 

    End Sub

 

End Class


It showed the error as following:


Normal 0 false false false MicrosoftInternetExplorer4 /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;}  

An exception of type 'System.Web.Services.Protocols.SoapHeaderException' occurred in System.Web.Services.dll but was not handled in user code

 

Additional information: Microsoft.Web.Services3.Security.SecurityFault: The security token could not be authenticated or authorized

   at CounterSoft.Gemini.Business.WebServices.xfd2f8c865f601195.x689a82102d437aca()

   at Gemini.IssuesWS.CreateSourceControlFile(SourceControlEN data)

keansuai
· 1
keansuai
Replies (3)
helpful
0
not helpful

You need to set the username and password (authentication) before calling the web method.


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

Hi, MarkWing.
Jim here.

I am still new to Gemini Web Service,
can i know what is the user name and password i should put?
If i do code for the username and password, can i know where can i referring to?

i was found one article about the user token to be set in my coding. However, i was lost and do not know how to continue my coding. Thanks a lot and appreciate if anyone can help ups.
thank you MarkWing.

Regards, Jim.


keansuai
· 1
keansuai
helpful
0
not helpful

The username and password are Gemini username and password.

 


Mark Wing
· 9108
Mark Wing