Architecture :: Invoke Client From Web Service?
May 31, 2010I've a web services wich can invoke a pc on the internet when a new event has come.
How do I write the code?
I've a web services wich can invoke a pc on the internet when a new event has come.
How do I write the code?
as part of a log feature that my client asked for, I'm tring to monitor whenever the browser is closed by the user.
I have created a new web service, registered it the ScriptManager (like in this exmple [URL]
The web method is this:
[Code]....
When I put a break point it is reached, but the executenonquery won't fired.
I am using c# and ASP.NET 2.0.
How to invoke exe, which is available in the client machine?
I would like to call the click event of the the AsyncFileUpload control programmatically, is it possible? I tried to call the click event, but it is not working. actually I don't like the appearance of the upload, so I am trying to hide the AsyncFileUpload control, assign the file name and click it programmatically.
View 2 RepliesI'm trying to invoke an Oracle BPEL web service from asp.net (vb) and having trouble getting it to work. This is the portion of my code in the Page_Prerender event:
[Code]....
The web service doesn't launch though.
I'm not a web service expert, so seeing if anyone else may know how to get this going. I don't need to track the web service - just need to launch it.
In IIS 7.5 i configured my asp.net website for "http,net.pipe" in "Enable protocols".
Note:
net.pipe configuration is done to call another module within the website (SOA). Every thing worked fine with simple asp.net & net.pipe service invocation calling other module. But When i try to call RIA service from silverlight 4 i get the following error
The provided URI scheme 'net.pipe' is invalid; expected 'http'.
Parameter name: context.ListenUriBaseAddress
How can i configure my website to work in http & net.pipe configuration ?
i want to create a centralised business or Service authendication architecture in .net. for example, we have a clients like c1, c2, c3, c4, ... etc. everybody logins seperatly as well as grouply. ie, if client "C1" logins [with login authentication] he can access c2 , c3, c4 also without login authendication. So its like a google. if we enters gmail account, we can access orkut, picasa like that.. i need the cetralised architecture.
And, client "c1" seperately asks seperately how will be the authendication architecture.
so give me the single solution for both these two scenarios. how will be the architecture for these two and how is the Data Base (Login) Structure.
I am going to create the SAAS (Software as a service) Application. Can you please provide all the attributes that we have to consider in SAAS application (for example usability, pluggable architecture etc .. )
How architecture should be build for this project, provide sample architecture for SAAS application. This architecture should be easy to upload and upgrade or degrade the features. Error handling should be easy.
I am try to create architecture design for WCF service.
We have WCF service that we have to expose to third party so then can request with xml and get back xml response.
The wcf service should do the following:
- Accept the request call with xml
- Check xml against the schema
- Parse the xml
- Authenticate the incoming xml by username and password that will be in xml
- Send back the response
If anybody can let me know what kind of design I can use or is there any pattern available that I can take it and then extend it as per my requirement.
I am not sure which approach I should use. I have a web application that needs to get/receive data from a third party application that is in a secure remote network. The data needs to be secure during transport. The data layers cannot be exposed and the databases will not talk to each other. The data will be received from remote application on demand, or will get at scheduled intervals.
I have looked at WCF, but not sure if this will work. Can a WCF service be used to receive data as needed from a remote sender or service? Is this a secure way of doing it? I have also looked at SFTP using some XML/XSLT, but I don't think this is the right way to go. In addition, some data may be transported from my web application to the remote application (mostly reports at first). What protocols are used to transfer data between HIPAA compliant applications?
I'm currently trying to work out the best way to build this web application, which will then be intergrated on other systems, such as WinForms, Intranets etc.
We hope to include the usual layers i.e. DAL, BLL, BOL and UI but I have been experimenting with Entity Framework 4 and WCF Data Services and managed to get something in place where I was using WCF as a gateway to EF4.
i.e. Adding a Service Reference to my project and then using the EF4 context and writing LINQ queries against the DB
e.g.[Code]....
Now with the current setup I would still need to write a DAL Class Library, that interacts with the Data Service, because as I said WCF Data Services only seems to be a gateway, I can't see where to put the code (above) in the Data Service and then how I could these methods.
My questions are: 1. How do I develop a WCF Data Service in such a way to allow this behaviour - I know how I could do it using ASMX web service, something like [Code]....
2. If I am to use WCF Data Services, how is serialization handled (if at all) - again I know how to do something in ASMX web services
3. Again, If I am to use WCF, how do I add Security and only allow my applications to access the web service - for obvious reasons
4. Would it be possible / logical to also include the Business Logic Layer into the web service?
in a form i have a buttoin, when click both OnclientClick and postback should happen. on clicking the "Email" button a client side "mailto" tag should do the work and pull a new message window on the client's machine.
whereas, the email addresses should be invoked by the post back. so , when clicking the button the server side post should happen and on return the client side script should be invokded with the values read during post back, and populate all the email addresses.
i need know how to first do a server hit take the values and then execute the client script with those values without using AJAX
I have to invoke SSIS packages from web service in the most secure way. I think that windows authentication will be secure but i am not sure. I do not have much knowledge about how to achieve this and the information on the internet is very distributed.
View 1 RepliesI'm going to create my own project, and i have some difficulties with technology selection. I will have client application(windows forms) and web service. Data exchange between clients will be only by using this web service. Data will be like image stream,so I don't know which technology to use. I started to look at WCF, but i don't know a lot about it.
View 3 RepliesI've created a simple WCF service hosted by ASP.NET web site:
[Code]....
I can add references to this service as to WCF service, as to WebService.WcfTestClient application successfully recognized service and its methods.
But "Web Service Studio" [URL] can't get a list of operations... Why? How to diagnose/resolve that?
P.S. I work under VS 2008 using .NET 3.5
I am looking for a way to integrate a web application with a client application that will sit on the users desktop. Our scenario looks like this user will click a link in the client server application that will launch an .ASPX and pass various parameters via a querystring. User will make form inputs on ASPX page and on that input, I need to be able to execute a .EXE on the client machine that will refresh the window in the client server application.
I have looked at some tutorials for using ActiveX for this, but they all seem out of date and the ones that I have been able run prompt the user with the Activex warning dialog, which I would like to avoid.
I am using an update panel in my application. Inside the update panel i am trying to trigger a html button, which in turn should invoke a server side function after which i need to invoke a client side function.But the client side function is getting invoked first where as the server side function is not getting invoked at all.
Here is my code
<asp:UpdatePanel ID="embedcodepanel" runat="server" UpdateMode="Conditional">
<Triggers>
<asp:AsyncPostBackTrigger ControlID="btnembedurl" EventName="onclick"/>
</Triggers>
<ContentTemplate>
<label id="lbl_embedcode" class="hide">Site Embed Code:</label>
<textarea id="embedCode" class="embedCode hide"> CreateEmbedURL('<%=_redirectUrl%>')
We need the a solution for our ASP.NET website. in which a user needs to activate his machine and next time if he visits the site then we need to check the machine is activated or not. if the machine is activated then we want to redirect the user on different page.
Is there any way by which we can get the client machine MAC address and store it our database?
I have found some solution in which this can be done but it works on on IE and some ActiveX setting needs to be done.We want this should work on atleast IE and FireFox.
Can some one inform me whether I need to replicate the same set of entities in the client which are similar to that of the ones in the server? I have planned to start a proj with service functions as wcf services and in turn they are getting referred in silverlight client application.
Incase if i need to consider casting to or back from the return value lists of service methods in the server, should i be creating entity class in the client application as well? Or is there a work around? Something like exposing the entities from the server just as the services functions?
I have a WPF Windows application with sqlite database which we distribute to our clients. The application consists of some database table which changes every month. eg. the application users a exchange rate table which is valid for one month.
What is the best approach to update the data in these table. note that the whole application is not changing but only the data in it changing, no change to structur of the database or table.
I am fresh new to asp.net. I try to convert my windows form into asp.net application. On my Windows form I use threads to monitor for changes in data sources to udpate my controls.However, I got no clue how to accomplish this in asp.net form. It seems I cannot create a thread in the page to update my controls in the page.
View 1 RepliesI am planning to convert desktop application which has to deal with lots of client resources like printer, Id scanner(driver license,passport & business card etc.), webcam etc.Now accessing client resources like files, scanners and webcam everything has to be done through client side scripting which is really pain. Due to nature of this product, I have to create image on client PC and extract information from it. (This is also pain in Vista and Windows 7 due to security permissions and all that stuff).
My ideal design would be making managed dll which takes care of dealing with images, printers, webcam (I have to apply pan, tilt and zoom), id-scanners. This is kind of component. And GUI would be web based Asp.net which simply calls the functions of managed dll. If the end-user is opening application on new computer, then it will ask just like flash or silverlight that you have to install component locally for the first time.Points which I worry: 1. If it logically correct or sounds stupid? 2. How to install managed dll at end-user's PC (C:/program files) and use it from asp.net code behind page.
My application is intranet application.so avoid stupid assumptions about privacy and ohhooo you want to access files from my PC and all those stuff. (end-user would never mind in giving credit card to restaurnt waiter who could do anything with it behind counter but allowing web application to access file which is created by application is privacy issue)
I wanna embed the windows service in the web application. I have seen few posts in the web. where they generate separate exe for the windows service and use it as an installable.
The same process i tried doing it but it threw an OS error in my server which is windows 2000 and didnt supported the executable.
However the website of mine runs fine in the same server. Thus i was thinking if i cd embed the same code in the web application.
Also, in my case the website of mine takes job for simulation. These jobs are taken for simulation execution and nearly takes 12hrs for completion and if they are not completed within twelve hours then they are supplied extra twelve hours to complete the simulation jobs.
The simulation executables are a series of executable and bat files.
The results of the simulation gets updated in the tables of MySql and hence are displayed to the user.
I've never tried this myself, but am attempting to build a proto-type of a discovery service (much like WS-DISCO Services) for a research project I'm currently working on.
Was wondering if anyone had tried it before with WCF/ASP.NET and have any articles/blog posts to share?
The Dumps data are in the Excel file. Now I want o upload the data to sql server 2005(which are in web server) from client pc (from browser). What will be the best way to do so?
I can know how to upload data from excel to sql server 2005 if both are in the same computer.