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.




How to get IssuePriority items from Web Services

web-app

Hi,

First, I am using Gemini v2.03

I am trying to get a list of the IssuePriorityEN items from the web services in an ASP.NET application.  I tried to use the Gemini.asmx using the GetIssuePriorities call supplying the accesscode value and I get the following error:

Server was unable to process request. --> There was an error generating the XML document. --> The type CounterSoft.GeminiLib.IssuePriorityEN was not expected. Use the XmlInclude or SoapInclude attribute to specify types that are not known statically.

Here was the call I tried:

Dim gemini As GeminiService.GeminiWS = New GeminiService.GeminiWS()

Dim priorities() As GeminiService.IssuePriorityEN = gemini.GetIssuePriorities("ABC123")

I then tried to use the GeminiLookupsWS web service but I am unclear how to use WSE to authenticate and make this call using a web application.

Any help would be appreciated.

Thanks

 

kpereyra
· 1
kpereyra
Replies (5)
helpful
0
not helpful

The attached sample shows how to use WSE. You will need WSE2.0 SP3 installed (for Gemini 2.0.x).


Saar Cohen
· 5000
Saar Cohen
helpful
0
not helpful

Thank you.  I had that before and was having trouble understanding it.  Do you have a straight ASP.NET solution using a web reference?

 

Thanks


kpereyra
· 1
kpereyra
helpful
0
not helpful

You can not use a straight web reference as this is a WSE web service.


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

Thank you for your response.  I implemented the sample proxyhelper and xxxWS.cs classes in my web application and I was able to use the SetAuthenticationTokenOnAllServices method to authenticate and subsequently retrieve the values I was looking for.  Last question I have is if there is a way to pass the credentials from the user logged into my web application to the web service using DefaultCredentials instead of having to hard-code the username and password.  My web app is set up to use Integrated Authentication and impersonation and the System.Security.Principal.WindowsIdentity values are populate properly.

Also, on a side note, how would I retrieve custom field values from a custom lookup table once I know the customfieldID?

Thanks again.


kpereyra
· 1
kpereyra
helpful
0
not helpful

If you want to use windows authentication, you will have to create a KerbosToken instead of UsernameToken in the proxy helper.

GetCustomFieldDefsForProject(projID) is the web method to use for getting the data for lookups.


Saar Cohen
· 5000
Saar Cohen