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.




Webservice Error

web-app

I have been able to retrieve projects and issue types etc, but when trying to retrieve a list of users using the AuthWS.GetAllUsers(AccessCode) method I get:
"Server was unable to process request. ---> The message must contain a wsa:To header"

"   at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
   at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
   at AuthWS.GetAllUsers(String accessCode) in C:\Documents and Settings\UseName\My Documents\Visual Studio 2005\Projects\GMBP (2)\GeminiWSWrapper\AuthWS.cs:line 149
   at AdminReporterSettings.PageLoad(Object sender, EventArgs e) in C:\projects\GMBP\GMBP\Admin\ReporterSettings.ascx.vb:line 19
   at System.Web.UI.Control.OnLoad(EventArgs e)

Simon@MailboxPro
· 1
Simon@MailboxPro
Replies (11)
helpful
0
not helpful

Any thoughts what might be causing this?


Simon@MailboxPro
· 1
Simon@MailboxPro
helpful
0
not helpful

Hi,

Is WSE 3.0 installed?


Harvey Kandola
· 212
Harvey Kandola
helpful
0
not helpful

No, only WSE2.0 SP3, but I wasn't using WSE3.0, does the AuthWS have to use WSE?

Dim Auth As New AuthWS(GMBPCore.App.Settings.WebServiceURL)
Dim Users As CounterSoft.GeminiLib.WSUserEN() = _
        Auth.GetAllUsers(GMBPCore.App.Settings.WebserviceCode)


Simon@MailboxPro
· 1
Simon@MailboxPro
helpful
0
not helpful

Just installed WSE3.0 and same error :-(


Simon@MailboxPro
· 1
Simon@MailboxPro
helpful
0
not helpful

Might need a reboot -- we have seen occassions where it helps.


Harvey Kandola
· 212
Harvey Kandola
helpful
0
not helpful

The machine has been rebooted, but no success they keep erroring on that line.

Dim Auth As New AuthWS(GMBPCore.App.Settings.WebServiceURL)
Dim Users As CounterSoft.GeminiLib.WSUserEN() = Auth.GetAllUsers(GMBPCore.App.Settings.WebserviceCode)

casuses the error. Now i guess I need to actually make the WSE header, do you have any docs on this? The rest works without WSE though, so can I get this to work without it for now?





Simon@MailboxPro
· 1
Simon@MailboxPro
helpful
0
not helpful

Hi,

Why don't you reference CounterSoft.Gemini.Services, create an instance of the Service Manager, and invoke web services via the Service Manager?

If you are a commercial License holder, you can download the Gemini Scheduler source code from the portal to see WSE calls in action.

Hopefully I haven't missed the point!


Harvey Kandola
· 212
Harvey Kandola
helpful
0
not helpful

Where is that DLL, does it have to use WSE? I know some people dont/are not able to use it. I was planning on adding WSE support later.

Is there a way I can get the list of users from Gemini without using WSE?


Simon@MailboxPro
· 1
Simon@MailboxPro
helpful
0
not helpful

You can download the services DLL from http://www.countersoft.com/Default.aspx?PageID=58

Unfortunately, there is no way to do this using the non WSE web service.


Saar Cohen
· 5000
Saar Cohen
helpful
0
not helpful

Ok thanks, I have changed the code to use this DLL, seems to work a treat...

Can i ask what the SM.TestConnectivity is suppose to do? Since it takes a username and password, should it check they are actually accurate? currently it returns true even if there username and password are wrong. Why take a username/password if it doesn't use them? Please can you help clarify what it is suppose to do. Thanks


Simon@MailboxPro
· 1
Simon@MailboxPro
helpful
0
not helpful

Just provides a means to invoke a web service method to ensure you can actually get through to the machine where Gemini Web Services are running.  We have seen instances where this method call actually fails which tells us there is a problem connecting to the server. 


Harvey Kandola
· 212
Harvey Kandola