Passing web service references

Jan 24 2005 8:06 PM
Hey all, i have a webservice and when i create an instance of it i want to pass the reference of this webservice to another webservice.does anyone know how to do this? Example (assuming all web references have been created) : WebService1 w1 = new WebService1() ; WebService2 w2 = new WebService2() ; w2.AcceptReferenceToOtherWebService(something here) ; Normally you would pass the object but web services pass via reference and anyways a webservice won't serialize. I'm not looking for a reference to the .asmx file. I'm looking for a reference to the actual webservice object that exists in memory in the remote machine. Any ideas would be appreciated. I was thinking along the lines of marshalling but i have no idea where to start. Thanks, Clive

Answers (1)