I have large Java application, which is controlled through web-services. Some functions are available for anonymous users, it works ok. Some functions are only for authenticated users. The service expects login credentials in the http request. The following .net code
using System;<br />
using System.Net;<br />
class Program<br />
staticvoid Main(string args)<br />
WebServiceX.SomeAPI api = new WebServiceX.SomeAPI.SomeAPI();<br />
api.Credentials = new NetworkCredential("MyUserName", "MyPassword");<br />
api.PreAuthenticate = true;<br />
api.Url = "http://mysite/myapp/api";<br />
api.SoapVersion = System.Web.Services.Protocols.SoapProtocolVersion.Soap11;<br />
throws an exception:
System.Web.Services.Protocols.SoapException: java.rmi.RemoteException:<br />
---omitted---: CLQAHDEBUG: Permission Denied<br />
: User anonymous does not have permission ---internal method name---<br />
in System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClien<br />
tMessage message, WebResponse response, Stream responseStream, Boolean asyncCall<br />
in System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodNa<br />
me, Object parameters)<br />
in WebServicesConsumer2.LMSRoster.LMSRosterAPI.unrosterUsers(String in0) in<br />
.\WebServicesConsumer2\Web References\LMSRoster\Reference.cs:line 1<br />
in WebServicesConsumer2.Program.Main(String args) in .\WebService<br />
Captured communication packets do not contain any credential data. Why? How to make it work?
can anyone tell me how I can simulate a clicking on a button (that is instead the user clicking with the mouse, I want to click for him).
more specifically, on the send mail in outlook's new mail window.
BUT it needs to be a "behind the stage" action, so I wont compete with the user on the mouse...(he will win and I'll miss the clicking...).
Thans man, but do you know how can I specifically click a button in an applicatio that is not mine? like the outlook's new mail window? how do I know the name of the button (like if I want to click the send button?
In my current project, I am dealing with table with many many columns. I need to make a table with first several columns fixed. It is like the table in Excel with locked columns. Only the columns after the fixed columns can be scrolled horizontally. It seems very difficult to implement. I could not figure it out.
I am thinking to put two tables together and put them in a div. But it seems difficult to edit everything in a whole row. Because they are actually 2 rows from two tables.
Is there any link or sample code for this kind of table?
Thank you for your reply.
I am thinking put the fixed columns in a seperate datagrid and put two datagrids (or tables) together. But it seems it is quite complex to do it, especially the editing part. Is there any easier way to do this?