Calling Web Service Function --> CreateSourceControlFile
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 |
|
Tuesday, April 7, 2009, 5:02:59 AM |