Is there a way to configure a proxy for external communications from ASP.NET application ?For example when reading XML file from some other website etc ? If so how would I go about it ?
I have to different dll, one dll(data.dll) hold the data in the list and another dll(order.dll) is to get information from outside world. Now when ever the information come out side world the order.dll put it in the data.dll. After that i want it to push it to the client side how is it possible? Is it possible to store the data in the data.dll which is get from the order.dll, so that i can retrive back when it required using webservice?.
Coming from PHP it's common to have a simple class that makes talking to a database very easy. Do people use the same approach in .net, or do you have a class for say products, which handles all database communications for the products table?
I would like to make a webpage that enables users to create a new account ina ctive directory from a webpage. I then need the OCS 2007 activation wizard to run, so the user can use Communicator without any human input.
I have created my proxy class from a wsdl file using
wsdl /out:myproxy.cs c:arcodework.wsdl
I have imported it into my windows service application written in c# .net and I want to call a function from the proxy.
It returns an error when I try to call any function from the proxy. How can I make my application to communicate with the proxy file which is myproxy.cs? Here is how the proxy file starts:
using System; using System.ComponentModel; using System.Diagnostics; using System.Web.Services; using System.Web.Services.Protocols; using System.Xml.Serialization; // // This source code was auto-generated by wsdl, Version=2.0.50727.1432. // [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.1432")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] [System.Web.Services.WebServiceBindingAttribute(Name="LifecycleSoapBinding", Namespace="http://service.myservice.workflow.services.barcodework.com")] [System.Xml.Serialization.XmlIncludeAttribute(typeof(UserEdo))] public partial class BarcodecycleServiceService : System.Web.Services.Protocols.SoapHttpClientProtocol { ...
i'm in a project with a service layer (WCF), a proxy layer that are between this service layer and the "controllers". Every controller should call this proxy layer to get data, and instead return a model to be rendered, returns a bigger entity that i've to convert using Linq to a more little model. Then pass it to the view.
Do you think is a good idea that this conversion be done by the controller? In my opinion the controller is not the responsable to shape the incoming object from the proxy layer. This object should be returned by the proxy layer and the controller should pass it to the view directly.
We have nearly completed an ASP.NET MVC web application running with SSL in IIS and now find that we must integrate with a third-party product that is supplied as a PHP web app running under lightppd on an alternate port, but still on the same server.
We want to make the integration appear as seamless as possible, so our initial strategy is to do all of the authentication through our application, implement a reverse proxy to expose selected features from the third-party product, and then set-up the third-party product to only be accessible from localhost and (if we can manage it) only from the user our app pool runs as. As a second layer on top of this, we plan on running the third party active content in an IFRAME, so we can surround it with our menus and headers. With the right fonts and colors, hopefully, it won't look grossly out of place.
First question: Is this strategy totally naive? Given the hand we've been dealt, is there a better one?
Second question: What is the best way to implement the reverse proxy? I was thinking of using a routing rule with an Http Handler that invokes our usual authorization just as a controller would and makes the requests to the other site, streaming out the results it receives. Is there something that already does this generically, that I can just hook up and invoke? Maybe some way to specify a controller to handle everything I need to proxy and then use a ViewResult that represents a call to an external URL I construct from the URL I received?
If I can get a few pointers on what to look for, I can trot off to the docs for the details.
In EF4, is it possible to convert a POCO object (created using new MyObject()) to a Dynamic Proxy (like you would get with ObjectContext.CreateObject())?
I am using asp.net 3.5 with C#.I want to integrate gmail into my site, just like any widget so that, people can login there and can access their gmail account. Actually gmail is blocked in my organisation & I want to access it via proxy that I can integrate in my website.
I have started having problems with our asp.net webform applications running behind a proxy since the user base have upgraded to IE7. Some postbacks seem to drop out and at times it is difficult to make controls on a page raise an event. It appears to be intermittant and I have been told there are issues around using IE7 behind a proxy with post requests. Is this the case and what are the options? Rewite in MVC? Does the issue of post requests behind a proxy remain in IE8?
I have an asmx file that was created using notepad. Then I created the proxy class using wsdl.exe. Now I have a dll that I want to put it in GAC. GAC needs the DLL to have a strong name. How can I create a strong name for the web service?
I am looking for the solution of how do I get the html of a web page through proxy. I have an input of proxy server name, port number, url of web page and accelerated_pac_base.pac file which contains FindProxyForURL(url, host) method. [URL] has more information about PAC file. How do I do this in c#.
I want to build a proxy site that renders any URL. Given an url, I need to replace all html links, css links and js urls from href="/original.htm" to [URL] sort of. How can I do? is there a ready-to-use framework? I use ASP.NET and C#.
When you create and use a Web Service proxy class in the ASP.Net framework, the class ultimately inherits from Component, which implements IDisposable. I have never seen one example online where people dispose of a web proxy class, but was wondering if it really needs to be done. When I call only one method, I normally wrap it in a using statement, but if I have a need to call it several times throughout the page, I might end up using the same instance, and just wondered what the ramifications are of not disposing it.
When I do server side soap service programming, I create proxy classes first using some xsd schemas.
Xsd schemas are already defined by another company.my problem is these schemas have master xsds and child xsds which means on master xsds there are references to child xsds.
In this case I have 2 different questions.
1) Is it possible to use xsd schemas directly to build soap service without generating proxy classes.
2) If it is not possible, I am using vs command prompt by typing xsd /c /l:vb nameofmasterfile.xsd
but while there references to child xsds, I am getting an error msg. thats why I had to flatten these xsds in the past. Is it possible to generate all classes in one shot. any external program also ok.
Is it possible to send an e-mail in my Asp.Net application through a Proxy server?
I tried using system.net configuration on my web.config but it seems that it accepts only URL proxies. Here's what I'm using:
[Code]....
I tried to disable the defaultProxy setting but I still couldn't send e-mails. I was able to get a remote web page content through my code using System.Net's WebProxy, WebResponse, WebRequest and NetworkCredential.
Unfortunately, SmtpClient does not provide a Proxy property. Is there any technology available to send e-mails through a proxy server? Currently I'm using .Net Framework 2.0 but if it's possible using 3.0, 3.5, Ajax Extensions or anything like that I'll start using it. But so far I couldn't find anything related to it anywhere.
If it's not possible then I'm gonna have to place a system requirement for a direct connection to the internet... I don't like it very much, but if its not possible....