proxy-classes

How do I serialize all properties of an NHibernate-mapped object?

I have some web methods that return my objects back as serialized XML. It is only serializing the NHibernate-mapped properties of the object... anyone have some insight? It seems to be that the web methods are actually serializing the NHibernate proxies instead of my classes. I've tried using [XMLInclude] and [XMLElement], but the pro...

Dynamically generate classes at runtime in php?

Here's what I want to do: $clsName = substr(md5(rand()),0,10); //generate a random name $cls = new $clsName(); //create a new instance function __autoload($class_name) { //define that instance dynamically } Obviously this isn't what I'm actually doing, but basically I have unknown names for a class and based on the name, I want to ...

What would cause a WCF service to return an object of type "object"

Per my other post about WCF service return values, I'm consuming a web service from another company, and when I add the service reference inside Visual Studio, the return value of the method is an object of type object. The author of the web service showed me the code, and it actually returns a typed object. Am I missing something, or ...

Using dashed webservice methods names in .net

Im trying to use a cgi web service. The Web Service method names contains dashes and wsdl.exe removes them in generated proxy class. Trying to use the proxy class web service im getting an error : "Method 'q1:methodname' not implemented: method name or namespace not recognized" Then I've tried to change MedhodName parameters (with ori...

proxy server in java

i have the follwoing code of proxy server. IS if the right approach? Will this be able to handel load/trafffic if deployed comerially?? package proxyserver; import com.sun.corba.se.spi.activation.Server; import java.net.* ; import java.io.* ; import java.lang.* ; import java.util.* ; /** * * @author user */ public class Main { ...

Unmarshalling Error [com.ctc.wstx.exc.WstxLazyException]

Hi there, I am communicating with a partner's webservice using proxy classes they've provided. I have this line of code which is throwing an exception: Dim response As requestWebRemittanceResponse = Me.webRemittanceService.requestWebRemittance(webRemittanceRequest) webRemittanceService is and instance of one of these proxy classes a...

Compiled Proxy Class (in bin) vs. Web Reference

I have a handful of ASP.NET websites which communicate with different instances of SQL Server 2005 via a web reference to the report server's web service. However, today I toyed with the notion of using the WSDL tool to create a proxy class from one of the SQL Server instances and, in turn, using the proxy to create a dll (before doing s...

Can I generate proxy objects for WCF service library using scriptmanager?

I have used the AJAX Enabled WCF Service template from within a web application. By adding a Service reference to the scriptmanager, some client objects are generated allowing me to easily consume the service. My question is can I do anything like that when I use a WCF Service Library? I added the project to my solution and in my web app...

Manually change the ClientBase collection type from Array[] to List<>

I'm using my own WCF proxy with ClientBase, I want to do somthing like the ct attribute in the svc util, and tell the proxy to return the List<> collection type. i cant use List<> because the entities managed by nhibernate so i have to use IList the proxy was not generated with svcutil.... i wrote it my self. How can I do this? ...

How to use BlankSlate and Proxy patterns to create a symlink between records?

I want to be able to add a record which acts like a symlink. In other words I want to be able to store a record/object which will defer most attributes to another record/object. The same as on a file system where a symlink points to another file (it own data), yet defers everything else to another file. class Document < ActiveRecord::...

How to Write Proxy Methods ?

Hi Everyone, First I don't know the term of "Proxy Methods" are true way to describe what I need is but let me tell what I really want to know actually : Suppose I have a class, named Proxy Class containing proxy methods class ProxyMethods { public void CallHelloWorld(); } actually this is a mirror, actual codes are storing in a ...

XmlArrayItem deserialization error with nested items

I am totally new to serialization and would greatly appreciate any help. I am having problems deserializing the response message I receive from the proxy class I created through WSDL.exe. I believe the problem lies in the fact that I am using XmlArrayItem, which has nested items within. Instead of getting: <results xmlns="urn:partner...

How Do I Intercept Outbound and Inbound Soap Messages from C# Client Side Web Proxy

I'm writing UI to test an asmx web service. Server and client are .NET. Client proxy has been generated using wsdl.exe. I would like to intercept and store a string representation of outgoing and incoming SOAP messages generated as a result of calling methods on the web proxy, so I can add a feature to the UI which will show the message...

Printing arguments sent to forwardInvocation: subclass of NSProxy

I want to intercept messages sent to a proxy object by just printing the selector and arguments. Even if the proxy does not implement them and does not have a target object. Please help. I have looked at several options and Apple docs but they assume that you already know the target object. I want to do this cleanly without memory issues...

How to consume different proxyclass versions (production or test) of ASMX webservice

I've got an ASMX webservice as a separate project in Visual Studio 2005. In pursuit of "assembly separation" per a CODE Magazine tutorial, my proxy class is in a separate class library project containing no code of mine - just a web reference named ASMXproxy with the associated reference.cs, app.config, .disco and .wsdl files. Thus, when...

NHibernate Get objects without proxy

I am using NHibernate(2.0.1.4) with NHibernate.Linq(1.0.0.4) to get Objects of the type Node from the Database. When I get these objects, the last object of the collection I got is of the type Proxy (because I used "NHibernate.ByteCode.LinFu"" ) I used the following linq query: var mynodes = from node in session.Linq<Node>() where ...

How can I ensure that NHibernate creates a IList proxy?

I have a property on my domain object which is exposed as this: public virtual IEnumerable<WorkPost> WorkPosts { get { return sheetPosts; } private set { Guard.AssertAssignableFrom(value, typeof (IList<WorkPost>)); sheetPosts = value as IList<WorkPost>; } } The intern...

Why Can I Change the Registry only the First Time?

I am a hobbyist programmer, and I am attempting to write an application that automatically changes the proxy server based upon what network connection is active. In this application, the user can also manually click a server in the notifyIcon context menu and call the function to switch the server. My problem is the following: The applic...

Change WebService Proxy URL in Visual Studio .NET 2008

I've created a WebService Proxy from a given URL, but at runtime a need to change this URL depending of some conditions. How to do it? I've searched on the web and founded that I should change the "Url" property. But, some how, this property isn't exposed in my proxy class. I am using Visual Studio .NET 2008 ...

building a 'simple' php url proxy

Hi I need to implement a simple PHP proxy in a web application I am building (Its flash based and the destination service provider doesn't allow edits to their crossdomain.xml file) Can any php gurus offer advice on the following 2 options? Also, I think, but am not sure, that I need to include some header info as well. Thanks for any ...