Quantcast
Channel: WCF, ASMX and other Web Services
Viewing all articles
Browse latest Browse all 555

Monitor a service call from a proxy class

$
0
0

Hi web service gurus,

I'm trying to see the SOAP communication between my service and client.

The client calls the service, get's the WSDL and creates proxy classes. This I am able to redirect to a monitor port and see.

However, inside the WSDL is the address to the service, so when I do :

Service := Activator.CreateInstance(ServiceType);
Authenticate(Service);
MyMethod.invoke(Service, Parameters);

This communication, I don't see in my monitor anymore.

I've tried the following:

I've tried to call the createInstance with arguments like Activator.CreateInstance(ServiceType, Args) as the proxy classes I see if I feed the wsdl to visual studio seemed to have constructor with address, but that resulted in cannot find constructor.

I've tried when creating the proxy classes give an alternate address, like

ServiceDescription := ServiceDescription.Read(RequestStream);
ServiceDescriptionImporter := ServiceDescriptionImporter.ServiceDescriptionImporter();
ServiceDescriptionImporter.AddServiceDescription(ServiceDescription,'url','');

Where url is a app settings key, I've added the following to the client config file:

<appSettings><add key="url" value=http://myserver:8082/path/myMonitor /></appSettings>

But then I get a strange error:

A call to System.CodeDom.Compiler.CompilerResults.CompiledAssembly failed with this message: Could not load file or assembly 'file:///C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Temp\vaj0dfsn.dll' or one of its dependencies. The system cannot find the file specified.

where the dll name is random. Probably something went wrong and the proxy classes weren't built.

For monitoring I've used pocketsoap's tcptrace and membrane's http monitor that act as a middleman. More known software like soapUI (fails to authenticate) and fiddler and MS Message Analyzer (were not able to see the sessions no matter how hard I tried) did not work at all. I'm on windows 8.1.

Appreciate your help and comments/ideas.


Viewing all articles
Browse latest Browse all 555

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>