Hi all ,

I have a console WCF client application . When it compiled creates an EXE file which sends information to the Web service . my question is that how can i use this console application in my web application ?

Thanks,

Recommended Answers

Why don't you make it a class library then reference it from your web app?
If your code is arranged in classes and methods, this would be easy to do.

You could actually call the .EXE from your web app, but that's unnecessary.

Jump to Post

All 2 Replies

Why don't you make it a class library then reference it from your web app?
If your code is arranged in classes and methods, this would be easy to do.

You could actually call the .EXE from your web app, but that's unnecessary.

Is your web app a WCF service? If so, you can just configure your client to connect to the base HTTP endpoint address and it should all hook up so long as the service implements the same operation contract as the client is after.

If it's not a WCF service, I think you would be better off converting your client to a standard web client. In theory I suppose it could still connect to your URL in its configuration but it would probably take longer to try to work out than to port your code.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.