|
Hi All,
I have web service that is developped using mainframe's natural language and wsdl created using some java's web server. I got the wsdl and using SOAP UI I have created a proxy .net class to add it in my application.
The proxy is connecting and getting the data, but after calling it for 2 or 3 times application is becoming too slow. It was not happening when I was not using the mainframe webservice proxy.
I am not understanding what is the reason and what's the cause for the slow. Do I have to close the connection and dispose the proxy object, I am not understanding. Please help me by giving some ideas or code snippets.
I am putting my code below
Proxy class constructor:
Public Sub New()
MyBase.New
'Me.Url = "http://localhost:7800/************V1WSDLSOAP_HTTP_Service"
Me.Url = "http://************EAI20:7810/EmployerAddress"
End Sub
And I am calling the proxy in the following way
listDOAccountStandards=AccountStandardObjectAdapter.GetAccountStandard(empl_accnt_no)
And I am not closing or disposing the proxy class any where (assuming that if once the scope of the execution finishes .net runtimes automatically frees the memory. As the proxy is managed code component)
Please help me by giving any kind of help.
Thanks & Regards,
Abdul Aleem Mohammad
St Louis MO - USA
|
|
|
|
|
In c++, when you make a constructor, you have to make a deconstructor.
I would imagine it's the same in vb, and that the garbage collector is not capable of cleaning that up, managed code is not completely automatic, you may have to dispose and finalize.
Just off the top of my head, I don't see the need for a contstructor, just make a class and use it.
You should look up deconstructors for vb.
http://msdn.microsoft.com/en-us/library/2z08e49e%28v=vs.80%29.aspx[^]
|
|
|
|