soap trace - response p3p - is information encodedHi, <br/> <br/> recently we received adcenter credentials (after over an year of struggle :)<br/> <br/> we use .net 2/c# for our application. webservices are a main part of it. <br/> currently we connect to a number of channels, some of which are adwords and ysm.<br/> <br/> I invested a lot of effort in the past, making generic solutions, regarding soap tracing for webservices. this is a very important issue for us, since each channel support team, require nothing less but the soap trace log (in case of problems). <br/> <br/> after i got adcenter credentials, i started working on it, thinking that it'll take me a couple of hours and we'll have at least the adcenter reports in our system. now, here i am after a couple of days, instaling .net 3+, learning about WCF, finding out and implementing a soap trace mechanism from scratch, etc.<br/> <br/> here are a part of the questions I wanted to ask:<br/> <br/> 1. I tried the good old soapextension (http://msdn.microsoft.com/en-us/library/system.web.services.protocols.soapextension.aspx). it didn't work for the proxy generated by svcutil. (it works though for proxies generated by wsdl.exe - all over there inherits from System.Web.Services.Protocols.SoapHttpClientProtocol, while this is not the case using svcutil) am i missing something, since i have a great interest in using the soapextension, rather than the new system.serviceModel.diagnostics.messageLogging?<br/> <br/> 2. below is a soap log, generated using wcf system.serviceModel.diagnostics.messageLogging. What I want to know is:<br/> <br/> a) the SubmitGenerateReportResponse object (of adcenter reporting module) has an attribute named ReportRequestId. I don't directly see it in the soap response. Nevertheless, I DO see the TrackingId attribute. I am not familiar with the p3p protocol, but could it be encoded in this part &lt;P3P&gt; CP= &quot; BUS CUR CONo FIN IVDo ONL OUR PHY SAMo TELo &quot; &lt;/P3P&gt;? Or does the p3p do even a more complicated maneuver in order to get the value for ReportRequestId?<br/> <br/> b) can I somehow bypass all that? I really miss the wsdl.exe, the soapextension and i really don't need all that &quot;hi tech&quot; policy stuff (p3p).<br/> <br/> c) in the config file, generated by svcutil, i tried using the BasicHttpBinding_IReportingService<span style="text-decoration:underline"><strong>1</strong> </span> binding (rather than BasicHttpBinding_IReportingService). It's supposed to use a non-secure mode (i hoped this will save me at least the p3p protocol). It just doesn't work. I get a reject from the server at  http://adcenterapi.microsoft.com/Api/Advertiser/V6/Reporting/ReportingService.svc. <br/> <br/> 3. I hope i won't offend anyone by this post, but i feel really frustrated and back in first grade. I thought I've passed first grade a long time ago. <br/> <br/> &lt;MessageLogTraceRecord Time=&quot;2009-06-23T13:37:19.4521250+03:00&quot; Source=&quot;TransportSend&quot; Type=&quot;System.ServiceModel.Dispatcher.OperationFormatter+OperationFormatterMessage&quot; xmlns=&quot;http://schemas.microsoft.com/2004/06/ServiceModel/Management/MessageTrace&quot;&gt; <br/>         &lt;Addressing&gt; <br/>           &lt;Action&gt; <br/>             SubmitGenerateReport <br/>           &lt;/Action&gt; <br/>           &lt;To&gt; <br/>             https://adcenterapi.microsoft.com/Api/Advertiser/V6/Reporting/ReportingService.svc <br/>           &lt;/To&gt; <br/>         &lt;/Addressing&gt; <br/>         &lt;s:Envelope xmlns:s=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot;&gt; <br/>           &lt;s:Header&gt; <br/>             &lt;h:ApplicationToken xmlns:h=&quot;https://adcenter.microsoft.com/v6&quot;&gt; <br/>               xxx <br/>             &lt;/h:ApplicationToken&gt; <br/>             &lt;h:CustomerAccountId i:nil=&quot;true&quot; xmlns:h=&quot;https://adcenter.microsoft.com/v6&quot; xmlns:i=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;&gt;&lt;/h:CustomerAccountId&gt; <br/>             &lt;h:CustomerId i:nil=&quot;true&quot; xmlns:h=&quot;https://adcenter.microsoft.com/v6&quot; xmlns:i=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;&gt;&lt;/h:CustomerId&gt; <br/>             &lt;h:DeveloperToken xmlns:h=&quot;https://adcenter.microsoft.com/v6&quot;&gt; <br/>               xxx <br/>             &lt;/h:DeveloperToken&gt; <br/>             &lt;h:Password xmlns:h=&quot;https://adcenter.microsoft.com/v6&quot;&gt; <br/>               xxx <br/>             &lt;/h:Password&gt; <br/>             &lt;h:UserName xmlns:h=&quot;https://adcenter.microsoft.com/v6&quot;&gt; <br/>               xxx <br/>             &lt;/h:UserName&gt; <br/>           &lt;/s:Header&gt; <br/>         &lt;/s:Envelope&gt; <br/>       &lt;/MessageLogTraceRecord&gt; <br/>       &lt;MessageLogTraceRecord Time=&quot;2009-06-23T13:37:21.6865000+03:00&quot; Source=&quot;TransportReceive&quot; Type=&quot;System.ServiceModel.Channels.BufferedMessage&quot; xmlns=&quot;http://schemas.microsoft.com/2004/06/ServiceModel/Management/MessageTrace&quot;&gt; <br/>         &lt;HttpResponse&gt; <br/>           &lt;StatusCode&gt; <br/>             OK <br/>           &lt;/StatusCode&gt; <br/>           &lt;StatusDescription&gt; <br/>             OK <br/>           &lt;/StatusDescription&gt; <br/>           &lt;WebHeaders&gt; <br/>             &lt;Content-Length&gt; <br/>               372 <br/>             &lt;/Content-Length&gt; <br/>             &lt;Cache-Control&gt; <br/>               private <br/>             &lt;/Cache-Control&gt; <br/>             &lt;Content-Type&gt; <br/>               text/xml; charset=utf-8 <br/>             &lt;/Content-Type&gt; <br/>             &lt;Date&gt; <br/>               Tue, 23 Jun 2009 10:37:26 GMT <br/>             &lt;/Date&gt; <br/>             &lt;P3P&gt; <br/>               CP= <br/> &quot; <br/>               BUS CUR CONo FIN IVDo ONL OUR PHY SAMo TELo <br/> &quot; <br/>             &lt;/P3P&gt; <br/>             &lt;Server&gt;Microsoft-IIS/6.0<br/> &lt;/Server&gt; <br/>             &lt;X-AspNet-Version&gt; <br/>               2.0.50727 <br/>             &lt;/X-AspNet-Version&gt; <br/>             &lt;X-Powered-By&gt; <br/>               ASP.NET <br/>             &lt;/X-Powered-By&gt; <br/>           &lt;/WebHeaders&gt; <br/>         &lt;/HttpResponse&gt; <br/>         &lt;s:Envelope xmlns:s=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot;&gt; <br/>           &lt;s:Header&gt; <br/>             &lt;h:TrackingId xmlns:h=&quot;https://adcenter.microsoft.com/v6&quot;&gt; <br/>               24e690a8-f69a-484d-9abd-3a4501717929 <br/>             &lt;/h:TrackingId&gt; <br/>           &lt;/s:Header&gt; <br/>         &lt;/s:Envelope&gt; <br/>       &lt;/MessageLogTraceRecord&gt;<br/>© 2009 Microsoft Corporation. All rights reserved.Tue, 23 Jun 2009 23:14:54 Z17869c82-313d-4f93-88bc-f1ca5c441fdbhttp://social.msdn.microsoft.com/Forums/en-US/adcenterdev/thread/17869c82-313d-4f93-88bc-f1ca5c441fdb#17869c82-313d-4f93-88bc-f1ca5c441fdbhttp://social.msdn.microsoft.com/Forums/en-US/adcenterdev/thread/17869c82-313d-4f93-88bc-f1ca5c441fdb#17869c82-313d-4f93-88bc-f1ca5c441fdbalbertbenatovhttp://social.msdn.microsoft.com/Profile/en-US/?user=albertbenatovsoap trace - response p3p - is information encodedHi, <br/> <br/> recently we received adcenter credentials (after over an year of struggle :)<br/> <br/> we use .net 2/c# for our application. webservices are a main part of it. <br/> currently we connect to a number of channels, some of which are adwords and ysm.<br/> <br/> I invested a lot of effort in the past, making generic solutions, regarding soap tracing for webservices. this is a very important issue for us, since each channel support team, require nothing less but the soap trace log (in case of problems). <br/> <br/> after i got adcenter credentials, i started working on it, thinking that it'll take me a couple of hours and we'll have at least the adcenter reports in our system. now, here i am after a couple of days, instaling .net 3+, learning about WCF, finding out and implementing a soap trace mechanism from scratch, etc.<br/> <br/> here are a part of the questions I wanted to ask:<br/> <br/> 1. I tried the good old soapextension (http://msdn.microsoft.com/en-us/library/system.web.services.protocols.soapextension.aspx). it didn't work for the proxy generated by svcutil. (it works though for proxies generated by wsdl.exe - all over there inherits from System.Web.Services.Protocols.SoapHttpClientProtocol, while this is not the case using svcutil) am i missing something, since i have a great interest in using the soapextension, rather than the new system.serviceModel.diagnostics.messageLogging?<br/> <br/> 2. below is a soap log, generated using wcf system.serviceModel.diagnostics.messageLogging. What I want to know is:<br/> <br/> a) the SubmitGenerateReportResponse object (of adcenter reporting module) has an attribute named ReportRequestId. I don't directly see it in the soap response. Nevertheless, I DO see the TrackingId attribute. I am not familiar with the p3p protocol, but could it be encoded in this part &lt;P3P&gt; CP= &quot; BUS CUR CONo FIN IVDo ONL OUR PHY SAMo TELo &quot; &lt;/P3P&gt;? Or does the p3p do even a more complicated maneuver in order to get the value for ReportRequestId?<br/> <br/> b) can I somehow bypass all that? I really miss the wsdl.exe, the soapextension and i really don't need all that &quot;hi tech&quot; policy stuff (p3p).<br/> <br/> c) in the config file, generated by svcutil, i tried using the BasicHttpBinding_IReportingService<span style="text-decoration:underline"><strong>1</strong> </span> binding (rather than BasicHttpBinding_IReportingService). It's supposed to use a non-secure mode (i hoped this will save me at least the p3p protocol). It just doesn't work. I get a reject from the server at  http://adcenterapi.microsoft.com/Api/Advertiser/V6/Reporting/ReportingService.svc. <br/> <br/> 3. I hope i won't offend anyone by this post, but i feel really frustrated and back in first grade. I thought I've passed first grade a long time ago. <br/> <br/> &lt;MessageLogTraceRecord Time=&quot;2009-06-23T13:37:19.4521250+03:00&quot; Source=&quot;TransportSend&quot; Type=&quot;System.ServiceModel.Dispatcher.OperationFormatter+OperationFormatterMessage&quot; xmlns=&quot;http://schemas.microsoft.com/2004/06/ServiceModel/Management/MessageTrace&quot;&gt; <br/>         &lt;Addressing&gt; <br/>           &lt;Action&gt; <br/>             SubmitGenerateReport <br/>           &lt;/Action&gt; <br/>           &lt;To&gt; <br/>             https://adcenterapi.microsoft.com/Api/Advertiser/V6/Reporting/ReportingService.svc <br/>           &lt;/To&gt; <br/>         &lt;/Addressing&gt; <br/>         &lt;s:Envelope xmlns:s=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot;&gt; <br/>           &lt;s:Header&gt; <br/>             &lt;h:ApplicationToken xmlns:h=&quot;https://adcenter.microsoft.com/v6&quot;&gt; <br/>               xxx <br/>             &lt;/h:ApplicationToken&gt; <br/>             &lt;h:CustomerAccountId i:nil=&quot;true&quot; xmlns:h=&quot;https://adcenter.microsoft.com/v6&quot; xmlns:i=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;&gt;&lt;/h:CustomerAccountId&gt; <br/>             &lt;h:CustomerId i:nil=&quot;true&quot; xmlns:h=&quot;https://adcenter.microsoft.com/v6&quot; xmlns:i=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;&gt;&lt;/h:CustomerId&gt; <br/>             &lt;h:DeveloperToken xmlns:h=&quot;https://adcenter.microsoft.com/v6&quot;&gt; <br/>               xxx <br/>             &lt;/h:DeveloperToken&gt; <br/>             &lt;h:Password xmlns:h=&quot;https://adcenter.microsoft.com/v6&quot;&gt; <br/>               xxx <br/>             &lt;/h:Password&gt; <br/>             &lt;h:UserName xmlns:h=&quot;https://adcenter.microsoft.com/v6&quot;&gt; <br/>               xxx <br/>             &lt;/h:UserName&gt; <br/>           &lt;/s:Header&gt; <br/>         &lt;/s:Envelope&gt; <br/>       &lt;/MessageLogTraceRecord&gt; <br/>       &lt;MessageLogTraceRecord Time=&quot;2009-06-23T13:37:21.6865000+03:00&quot; Source=&quot;TransportReceive&quot; Type=&quot;System.ServiceModel.Channels.BufferedMessage&quot; xmlns=&quot;http://schemas.microsoft.com/2004/06/ServiceModel/Management/MessageTrace&quot;&gt; <br/>         &lt;HttpResponse&gt; <br/>           &lt;StatusCode&gt; <br/>             OK <br/>           &lt;/StatusCode&gt; <br/>           &lt;StatusDescription&gt; <br/>             OK <br/>           &lt;/StatusDescription&gt; <br/>           &lt;WebHeaders&gt; <br/>             &lt;Content-Length&gt; <br/>               372 <br/>             &lt;/Content-Length&gt; <br/>             &lt;Cache-Control&gt; <br/>               private <br/>             &lt;/Cache-Control&gt; <br/>             &lt;Content-Type&gt; <br/>               text/xml; charset=utf-8 <br/>             &lt;/Content-Type&gt; <br/>             &lt;Date&gt; <br/>               Tue, 23 Jun 2009 10:37:26 GMT <br/>             &lt;/Date&gt; <br/>             &lt;P3P&gt; <br/>               CP= <br/> &quot; <br/>               BUS CUR CONo FIN IVDo ONL OUR PHY SAMo TELo <br/> &quot; <br/>             &lt;/P3P&gt; <br/>             &lt;Server&gt;Microsoft-IIS/6.0<br/> &lt;/Server&gt; <br/>             &lt;X-AspNet-Version&gt; <br/>               2.0.50727 <br/>             &lt;/X-AspNet-Version&gt; <br/>             &lt;X-Powered-By&gt; <br/>               ASP.NET <br/>             &lt;/X-Powered-By&gt; <br/>           &lt;/WebHeaders&gt; <br/>         &lt;/HttpResponse&gt; <br/>         &lt;s:Envelope xmlns:s=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot;&gt; <br/>           &lt;s:Header&gt; <br/>             &lt;h:TrackingId xmlns:h=&quot;https://adcenter.microsoft.com/v6&quot;&gt; <br/>               24e690a8-f69a-484d-9abd-3a4501717929 <br/>             &lt;/h:TrackingId&gt; <br/>           &lt;/s:Header&gt; <br/>         &lt;/s:Envelope&gt; <br/>       &lt;/MessageLogTraceRecord&gt;<br/>Tue, 23 Jun 2009 12:26:22 Z2009-06-23T12:26:22Zhttp://social.msdn.microsoft.com/Forums/en-US/adcenterdev/thread/17869c82-313d-4f93-88bc-f1ca5c441fdb#a8b0b8d5-baf1-4db2-bb31-8a34b31b88d3http://social.msdn.microsoft.com/Forums/en-US/adcenterdev/thread/17869c82-313d-4f93-88bc-f1ca5c441fdb#a8b0b8d5-baf1-4db2-bb31-8a34b31b88d3Jeff Dillon - MSFThttp://social.msdn.microsoft.com/Profile/en-US/?user=Jeff%20Dillon%20-%20MSFTsoap trace - response p3p - is information encodedWe have instructions here on capturing SOAP:<br/><br/><a href="http://community.microsoftadvertising.com/blogs/api/archive/2009/01/08/soap-capture-training-video.aspx">http://community.microsoftadvertising.com/blogs/api/archive/2009/01/08/soap-capture-training-video.aspx</a><br/><br/><a href="http://social.msdn.microsoft.com/Forums/en-US/adcenterdev/thread/0061ea66-f58e-484b-a668-0aadd3d8dcd6/">http://social.msdn.microsoft.com/Forums/en-US/adcenterdev/thread/0061ea66-f58e-484b-a668-0aadd3d8dcd6/</a>  <br/><br/>Hope this helps. And our SOAP response is not encoded.<br/><br/>Jeff Dillon, API Support<br/><br/><br/>Tue, 23 Jun 2009 23:14:54 Z2009-06-23T23:14:54Z