.net - Extract SOAP messages form svclog -


extract soap messages form svclog

hi guys!

i enabled trace listening in app trace soap messages.
take @ this: http://msdn.microsoft.com/en-us/library/ms732023.aspx

my app client web .net service.
can collect infos in svclog, well!

but how can extract soap messages this? in log soap messages written in form:
...
system.net verbose: 0 : [5344] data connectstream#53182860::write
system.net verbose: 0 : [5344] 00000000 : 3c 3f 78 6d 6c 20 76 65-72 73 69 6f 6e 3d 22 31 : system.net verbose: 0 : [5344] 00000010 : 2e 30 22 20 65 6e 63 6f-64 69 6e 67 3d 22 75 74 : .0" encoding="ut
system.net verbose: 0 : [5344] 00000020 : 66 2d 38 22 3f 3e 3c 73-6f 61 70 3a 45 6e 76 65 : f-8"?> system.net verbose: 0 : [5344] 00000030 : 6c 6f 70 65 20 78 6d 6c-6e 73 3a 73 6f 61 70 3d : lope xmlns:soap=
system.net verbose: 0 : [5344] 00000040 : 22 68 74 74 70 3a 2f 2f-73 63 68 65 6d 61 73 2e : "http://schemas.
system.net verbose: 0 : [5344] 00000050 : 78 6d 6c 73 6f 61 70 2e-6f 72 67 2f 73 6f 61 70 : xmlsoap.org/soap
system.net verbose: 0 : [5344] 00000060 : 2f 65 6e 76 65 6c 6f 70-65 2f 22 20 78 6d 6c 6e : /envelope/" xmln
system.net verbose: 0 : [5344] 00000070 : 73 3a 73 6f 61 70 65 6e-63 3d 22 68 74 74 70 3a : s:soapenc="http:
system.net verbose: 0 : [5344] 00000080 : 2f 2f 73 63 68 65 6d 61-73 2e 78 6d 6c 73 6f 61 : //schemas.xmlsoa
system.net verbose: 0 : [5344] 00000090 : 70 2e 6f 72 67 2f 73 6f-61 70 2f 65 6e 63 6f 64 : p.org/soap/encod
system.net verbose: 0 : [5344] 000000a0 : 69 6e 67 2f 22 20 78 6d-6c 6e 73 3a 74 6e 73 3d : ing/" xmlns:tns=

...

there's way extract them svclog file?
cannot modify code, configuration way trace stuff preferred solution.

thank you!
nando

<?xmlversion="1.0" encoding="utf-8" ?>   <configuration>     <system.web>       <webservices>         <soapextensiontypes>           <add                 type="mysoapextensionlib.myextension, mysoapextensionlib"                priority="1"                group="high" />         </soapextensiontypes>       </webservices>     </system.web>   </configuration>here 

for needs:

  1. don't want touch existing code
  2. cannot use wcf (using .net 2.0)

the best way log soapmessages create spare soapexceptionlib class library project custom soapexception. if write own soapexception (in example have myextension declared in mysoapextensionlib library project), can enable on project (so web services calls do) using configuration. if want web service calls use extension, should use attributes.

see project in codeproject have working example:
http://www.codeproject.com/kb/webservices/soap_extension_progress.aspx
hope helps.
bye,
nando


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -