Consume WCF Service from RPG - wcf

Can anyone give me some information on consuming a WCF service from ILERPG? I have the service written and running, but the only info I can find dates back to 2008. Thanks.

Scott Klement has a presentation and examples: http://www.scottklement.com/presentations/#HTTPAPI

Related

Enable Tracing of Hosted WCF Service on Server

I have hosted a WCF application on server.
I need to trace the info,warnings and errors generated at server.
Please let me know the necessary changes need to be done.Please also let me know how to use the trace generated.
Regards,
Sachin K
Maybe the official doc would help: Configuring Tracing
There is also a very interesting recent post from a WCF guy explaining the whole picture in detail here: WCF Extensibility – System.Diagnostic Tracing

Consuming WCF Services from SSIS

I am planning to consume a WCF Service from an SSIS Package, get the data and dump it to a table. Am planning to write the WCF Consumption part in the Script component part of the Data Control Flow Task, is that the best way to do things?
Any advice would be greatly appreciated as i am totally new to SSIS
Regards,
Dinesh
Here is a link that shows How to Configure an SSIS Package to Access a Web Service using WCF. Hope that gives you an idea.

WCF Communication with Host

I am writing an application that has one Windows Service that needs to communicate with another Windows Service. The "target" service will accept a request from the "source" service and will perform a task. The "source" service will not wait for a response, so the request should return as soon as possible.
The plan was to have the "target" service host a WCF service which the "source" will communicate with. Once the request is received I need to communicate with the host Windows Service to tell it to do the work. I was thinking that the "target" WCF service would put a message on a MSMQ which the "target" Windows service will monitor. Once this is done the WCF service can return back to the caller.
Does this sound like a sensible approach for allowing a WCF service to tell a hosting Windows Service to perform a task?
Kind Regards
Michael
Allow me to disagree. Based simply on what you've described, using MSMQ to communicate between the "target" WCF service and the hosting Windows service seems extremely heavyweight to me. MSMQ allows different processes to communicate in a failsafe manner. In your case, the WCF service is hosted in the same process as the Windows service. Thus, while MSMQ as a commmunication mechanism between the two would work, it's not necessary.
Additionally, using the MSMQ binding between the "target" WCF service and the "source" WCF service makes sense if the two WCF services are not always running at the same time. For example, if the "target" WCF service is not always running, the MSMQ binding would allow the "source" WCF service to still send tasks. These tasks would be stored in the MSMQ to be retrieved when the "target" WCF service begins running. However, it sounds like both services will be running, so I can't see the need for the MSMQ binding.
For selecting WCF bindings, refer to this SO post.
C# - WCF - inter-process communication
Let me address one other thing. When your "target" WCF service receives a task request from the "source," simply communicating the task back to the Windows service is not going to do anything in and of itself. The Windows service is running, yes, but it does not have a thread of execution that you can leverage. The point is that in order to make task processing asynchronous, you'll need to start a thread to manage the task(s). I would suggest leveraging the ThreadPool to do this.
Hope this helps.
Yeah, that is a good approach. MSMQ is perfect for this task - the source service can send a request to the target by putting a message on the queue via WCF. MSMQ is good anytime you want to send a request to a service for asynchronous processing, especially if you don't need to get a response back. If you do need a response, you can setup the source as a WCF service as well, and the target can send a message back if needed. There are several different ways to accomplish this with the MSMQ binding.
#Matt
Thanks for your help.
After thinking about it a bit more and see how your approach would make things easier to setup and use. I need to have the "target" service send the outcome of the work back to the "source", so I will probably use nettcp and use a callback. The plan then is to setup a new thread, do the work and once its finished send a response back to the "source".
#Andy
Thanks for you help.
I took a look at msmq, but seeing as I would probably have to setup a new thread once I receive the message I might as well let the web service do the work.

WCF and MSMQ hosting in IIS issues

I have a WCF service that talks to MSMQ. When I run the service in VS2010’s service test client interface it can place the messages in the proper queues and everything is fine. When I host the WCF service in IIS7 and call the service from my web application all the messages go into the Transactional dead-letter queue.
I setup the application pool and site (the site hosting the WCF service) with identities that I know have specific access to the queues.
Is there something else I can check or that I am doing wrong?
Update:
Well, I think there is something else going on. I created a SUPER simple service that can read and write from the queues without fail. I jsut need to dig deeper and find out. Thanks to everyone who has looks, but I will keep this open so I can report back or if someone may have other ideas. I know it is hard to determine without viewing any code, but it is difficult to post becuase i have a lot to break apart.
Turns out the guys who coded the queue did not setup the queues correctly.
set the ExactlyOnce = false either in code or in your client app.config file.
like this
NetMsmqBinding binding = new NetMsmqBinding(NetMsmqSecurityMode.None);
binding.ExactlyOnce = false;
Hope this will solve the problem.
Cheers
Naushad

netmsmqbinding with silverlight connections limit

I have develop a silverlight chat application. my question is (a) can netmsmqbinding support unlimited connections of wcf service. because first im use pollingduplex binding but it support only 10 connection on iis6 also on server edition.im allready set service throttling options but not effect on server iis. so that now i want to go for netmsmqbinding. please explain me msmqbinding limitations.can its better for chat application or not?
help me for take decision.
Thanks
As far as I know (but I don't know Silverlight all that well), it supports only the basicHttpBinding.
And even if Silverlight did support MSMQ - this is definitely not a good protocol to use when you're creating a chat application. The queue can buffer messages and deliver them later. That works well in many scenarios, but when I chat with someone, I want my message to show up right away - not "some time later".....
So if you really need to use MSMQ in some way, I think you'd have to have a BasicHttp-based front-end service that goes from your Silverlight client to the server, and then on the server actually route your message forward to a MSMQ queue.
Marc