Autogenerate Replica Webservice... :)

Bcm

Senior Member
Joined
Aug 2, 2005
Messages
687
Reaction score
0
Location
Cape Town
Shot in the dark, I know.... :rolleyes:

I'm required to make some complex webservice calls (generated by Oracle) for a project I'm working on. I want to be able to replicate the services locally so that I can just change the endpoint in the client application and have the same behavior.

Is there an easy way you to do this? or should I just replicate the thing from scratch?

Thanks
Bm
 
Can you maybe give an example of the calls that Oracle generates? Can't you just use the DISCO file to add the proxies to your project without physically having to "connect to" the web services?
 
You misunderstand me...

Lets say desktop app A calls collection of webservices B. I want to change the endpoint in static project A to rather use collection of webservices C.

I need to code webservices C from scratch without changing the code in A. All I've got to do that with is the WSDL from B as well as the autogenerated classes created in visual studio...

Any ideas?
 
That's why I like WCF so much...

Yeah... I didn't design this system, I'm just picking up the pieces and adding duct tape. Under duress

What I'm really looking to do is a man in the middle...

currently:

A[app] <=> B[W/S]

I need:

A[app> <=> C[W/S] <=> B[W/S]

Where C does some data scaling and some other stuff.

I can't change A or B, so I'm forced to do C. I can do it with some elbow grease and a bit of coffee, but I was hoping there was an easy way to mimic the behaviour of a live server. If I could do that, I could save myself a day or two...
 
Last edited:
Oh, now I know what you mean... Sorry for the misunderstanding. :p AFAIK theres no easy way to "mimic" the web service through inheritance or any other method. I think you'll just have to create methods with the same signatures as the ones being called from the client application. You should still be able to use the same serialized objects from the original web service in the "middle layer" you're trying to build though...
 
Top
Sign up to the MyBroadband newsletter
X