Hi,

We are using channel Factory for calling WCF service in ironpython. But when
we give call to a method in that service, the method is not called and it
shows CPU usage almost 100%.
This method takes the request object and returns response.


I am giving the code snippet here.


This is in config file

 

<client>
<endpoint address="net.tcp://127.0.0.1:9083/MessagingService/"
binding="netTcpBinding" bindingConfiguration="BusinessNetTCPBinding"
contract="OnlineAVL.Services.Messaging.Interface.IOnlineAVLMessagingService"
name="MessagingServiceEP" />
</client>


in program.py

import clr



clr.AddReference('System.ServiceModel')
clr.AddReference('System')



import System
import System.ServiceModel



from System.ServiceModel import *



clr.AddReferenceByPartialName('OnlineAVL.Services.Messaging.Interface.dll')

from OnlineAVL.Services.Messaging.Interface import *



_factory = ChannelFactory[IOnlineAVLMessagingService]("MessagingServiceEP")
service = _factory.CreateChannel();


# request object is populated here
req = Request();
req.ID=System.Guid.Empty
req.Version=0

print "calling"
#call to method
res=service.GetPeriodMessagesByOwner(req)

print res


When we execute this, on console it prints "calling" and after that CPU
usage goes up to 100%, and the machine becomes extremely slow and then gives
OutOfMemory Exception. It does not call the service method also.
Any solution to this problem?
Thanks in advance.




-Sheetal

 


DISCLAIMER
==========
This e-mail may contain privileged and confidential information which is the 
property of Persistent Systems Ltd. It is intended only for the use of the 
individual or entity to which it is addressed. If you are not the intended 
recipient, you are not authorized to read, retain, copy, print, distribute or 
use this message. If you have received this communication in error, please 
notify the sender and delete all copies of this message. Persistent Systems 
Ltd. does not accept any liability for virus infected mails.
_______________________________________________
Users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to