<?xml version="1.0" ?><rss version="2.0" xmlns:ec="http://www.eggheadcafe.com"><channel><title>eggheadcafe.com WCF/WF Unanswered Messageboard Posts</title><link>http://www.eggheadcafe.com</link><pubDate>Thu, 06 Jun 2013 07:44:40 GMT</pubDate><description>EggHeadCafe - The .NET developer's portal of choice</description><language>en-us</language><item><title><![CDATA[How We can Connect Plane HTML to WCF ?]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10474042/how-we-can-connect-plane-html-to-wcf-.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10474042/how-we-can-connect-plane-html-to-wcf-.aspx]]></link><description><![CDATA[&nbsp;I Created &nbsp;one HTML page on Desktop &nbsp; &nbsp;I want To Connect &nbsp;HTML page &nbsp;To WCF Application . &nbsp;How Can Connect and Fetch Data&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/wcf/18/10474042/how-we-can-connect-plane-html-to-wcf-.aspx" target="_self">read more</a>]]></description><pubDate>Thu, 30 May 2013 06:41:53 GMT</pubDate></item><item><title><![CDATA[What is Skelta Workflow]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10473611/what-is-skelta-workflow.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10473611/what-is-skelta-workflow.aspx]]></link><description><![CDATA[Hi all,<br />
<br />
&nbsp; I want to know about the <br />
&nbsp;&nbsp; "<span style="color: #1f497d; font-family: &quot;calibri&quot;,&quot;sans-serif&quot;; font-size: 11pt; mso-fareast-font-family: calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: en-us; mso-fareast-language: en-us; mso-bidi-language: ar-sa;">Visual Studio Addins",<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "Skelta Workflow"&nbsp; what is the correct defination for these terms and when and where it will be used in real time senario,what is the difference between Normal workflow and Skelts workflow please send me the proper solution as wellas Links also<br />
<br />
<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Thanks,<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;NAG.<br />
<br />
</span>&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/wcf/18/10473611/what-is-skelta-workflow.aspx" target="_self">read more</a>]]></description><pubDate>Wed, 01 May 2013 03:08:23 GMT</pubDate></item><item><title><![CDATA[Could not find default endpoint,,Wcf]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10473564/could-not-find-default-endpointwcf.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10473564/could-not-find-default-endpointwcf.aspx]]></link><description><![CDATA[<p style="margin-bottom: 18px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent; color: #222222; font-family: 'segoe ui', tahoma, arial, helvetica, sans-serif; line-height: 18.203125px;">the error image is here</p>
<p style="margin-bottom: 18px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent; color: #222222; font-family: 'segoe ui', tahoma, arial, helvetica, sans-serif; line-height: 18.203125px;">http://postimg.org/image/dvkccsibb/</p>
<p style="margin-bottom: 18px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent; color: #222222; font-family: 'segoe ui', tahoma, arial, helvetica, sans-serif; line-height: 18.203125px;">web confif is here...
<div class="reCodeBlock" style="border: 0px solid #7f9db9; overflow-y: auto;">
<div style="background-color: #ffffff;"><span style="margin-left: 0px !important;"><code style="color: #000000;">&lt;</code><code style="color: #006699; font-weight: bold;">system.serviceModel</code><code style="color: #000000;">&gt;</code></span></div>
<div style="background-color: #fff;"><span><code>&nbsp;&nbsp;</code><span style="margin-left: 12px !important;"><code style="color: #000000;">&lt;</code><code style="color: #006699; font-weight: bold;">serviceHostingEnvironment</code> <code style="color: #808080;">aspNetCompatibilityEnabled</code><code style="color: #000000;">=</code><code style="color: blue;">"true"</code> <code style="color: #808080;">multipleSiteBindingsEnabled</code><code style="color: #000000;">=</code><code style="color: blue;">"true"</code> <code style="color: #000000;">/&gt;</code></span></span></div>
<div style="background-color: #ffffff;"><span><code>&nbsp;&nbsp;</code><span style="margin-left: 12px !important;"><code style="color: #000000;">&lt;</code><code style="color: #006699; font-weight: bold;">bindings</code><code style="color: #000000;">&gt;</code></span></span></div>
<div style="background-color: #fff;"><span><code>&nbsp;&nbsp;&nbsp;&nbsp;</code><span style="margin-left: 18px !important;"><code style="color: #000000;">&lt;</code><code style="color: #006699; font-weight: bold;">basicHttpBinding</code><code style="color: #000000;">&gt;</code></span></span></div>
<div style="background-color: #ffffff;"><span><code>&nbsp;&nbsp;&nbsp;&nbsp;</code><span style="margin-left: 4px !important;"><code style="color: #000000;">&lt;</code><code style="color: #006699; font-weight: bold;">binding</code> <code style="color: #808080;">name</code><code style="color: #000000;">=</code><code style="color: blue;">"SFDashboardSoap"</code> <code style="color: #808080;">closeTimeout</code><code style="color: #000000;">=</code><code style="color: blue;">"00:20:00"</code> <code style="color: #808080;">openTimeout</code><code style="color: #000000;">=</code><code style="color: blue;">"00:50:00"</code> <code style="color: #808080;">receiveTimeout</code><code style="color: #000000;">=</code><code style="color: blue;">"00:50:00"</code> <code style="color: #808080;">sendTimeout</code><code style="color: #000000;">=</code><code style="color: blue;">"00:50:00"</code> <code style="color: #808080;">allowCookies</code><code style="color: #000000;">=</code><code style="color: blue;">"false"</code> <code style="color: #808080;">bypassProxyOnLocal</code><code style="color: #000000;">=</code><code style="color: blue;">"false"</code> <code style="color: #808080;">hostNameComparisonMode</code><code style="color: #000000;">=</code><code style="color: blue;">"StrongWildcard"</code> <code style="color: #808080;">maxBufferSize</code><code style="color: #000000;">=</code><code style="color: blue;">"200000000"</code> <code style="color: #808080;">maxBufferPoolSize</code><code style="color: #000000;">=</code><code style="color: blue;">"200000000"</code> <code style="color: #808080;">maxReceivedMessageSize</code><code style="color: #000000;">=</code><code style="color: blue;">"200000000"</code> <code style="color: #808080;">messageEncoding</code><code style="color: #000000;">=</code><code style="color: blue;">"Text"</code> <code style="color: #808080;">textEncoding</code><code style="color: #000000;">=</code><code style="color: blue;">"utf-8"</code> <code style="color: #808080;">transferMode</code><code style="color: #000000;">=</code><code style="color: blue;">"Buffered"</code> <code style="color: #808080;">useDefaultWebProxy</code><code style="color: #000000;">=</code><code style="color: blue;">"true"</code><code style="color: #000000;">&gt;</code></span></span></div>
<div style="background-color: #fff;"><span><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span style="margin-left: 30px !important;"><code style="color: #000000;">&lt;</code><code style="color: #006699; font-weight: bold;">readerQuotas</code> <code style="color: #808080;">maxDepth</code><code style="color: #000000;">=</code><code style="color: blue;">"32"</code> <code style="color: #808080;">maxStringContentLength</code><code style="color: #000000;">=</code><code style="color: blue;">"200000000"</code> <code style="color: #808080;">maxArrayLength</code><code style="color: #000000;">=</code><code style="color: blue;">"200000000"</code> <code style="color: #808080;">maxBytesPerRead</code><code style="color: #000000;">=</code><code style="color: blue;">"4096"</code> <code style="color: #808080;">maxNameTableCharCount</code><code style="color: #000000;">=</code><code style="color: blue;">"16384"</code> <code style="color: #000000;">/&gt;</code></span></span></div>
<div style="background-color: #ffffff;"><span><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span style="margin-left: 30px !important;"><code style="color: #000000;">&lt;</code><code style="color: #006699; font-weight: bold;">security</code> <code style="color: #808080;">mode</code><code style="color: #000000;">=</code><code style="color: blue;">"None"</code><code style="color: #000000;">&gt;</code></span></span></div>
<div style="background-color: #fff;"><span><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span style="margin-left: 36px !important;"><code style="color: #000000;">&lt;</code><code style="color: #006699; font-weight: bold;">transport</code> <code style="color: #808080;">clientCredentialType</code><code style="color: #000000;">=</code><code style="color: blue;">"None"</code> <code style="color: #808080;">proxyCredentialType</code><code style="color: #000000;">=</code><code style="color: blue;">"None"</code> <code style="color: #808080;">realm</code><code style="color: #000000;">=</code><code style="color: blue;">""</code> <code style="color: #000000;">/&gt;</code></span></span></div>
<div style="background-color: #ffffff;"><span><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span style="margin-left: 36px !important;"><code style="color: #000000;">&lt;</code><code style="color: #006699; font-weight: bold;">message</code> <code style="color: #808080;">clientCredentialType</code><code style="color: #000000;">=</code><code style="color: blue;">"UserName"</code> <code style="color: #808080;">algorithmSuite</code><code style="color: #000000;">=</code><code style="color: blue;">"Default"</code> <code style="color: #000000;">/&gt;</code></span></span></div>
<div style="background-color: #fff;"><span><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span style="margin-left: 30px !important;"><code style="color: #000000;">&lt;/</code><code style="color: #006699; font-weight: bold;">security</code><code style="color: #000000;">&gt;</code></span></span></div>
<div style="background-color: #ffffff;"><span><code>&nbsp;&nbsp;&nbsp;&nbsp;</code><span style="margin-left: 4px !important;"><code style="color: #000000;">&lt;/</code><code style="color: #006699; font-weight: bold;">binding</code><code style="color: #000000;">&gt;</code></span></span></div>
<div style="background-color: #fff;"><span><code>&nbsp;&nbsp;&nbsp;&nbsp;</code><span style="margin-left: 18px !important;"><code style="color: #000000;">&lt;/</code><code style="color: #006699; font-weight: bold;">basicHttpBinding</code><code style="color: #000000;">&gt;</code></span></span></div>
<div style="background-color: #ffffff;"><span><code>&nbsp;&nbsp;</code><span style="margin-left: 12px !important;"><code style="color: #000000;">&lt;/</code><code style="color: #006699; font-weight: bold;">bindings</code><code style="color: #000000;">&gt;</code></span></span></div>
<div style="background-color: #fff;"><span><code>&nbsp;&nbsp;</code><span style="margin-left: 12px !important;"><code style="color: #000000;">&lt;</code><code style="color: #006699; font-weight: bold;">client</code><code style="color: #000000;">&gt;</code></span></span></div>
<div style="background-color: #ffffff;"><span><code>&nbsp;&nbsp;&nbsp;</code><span style="margin-left: 15px !important;">&nbsp;</span></span></div>
<div style="background-color: #fff;"><span><code>&nbsp;&nbsp;&nbsp;&nbsp;</code><span style="margin-left: 18px !important;"><code style="color: #000000;">&lt;</code><code style="color: #006699; font-weight: bold;">endpoint</code> <code style="color: #808080;">address</code><code style="color: #000000;">=</code><code style="color: blue;">"http://localhost:3377/SFDashboard.asmx"</code> <code style="color: #808080;">binding</code><code style="color: #000000;">=</code><code style="color: blue;">"basicHttpBinding"</code> <code style="color: #808080;">bindingConfiguration</code><code style="color: #000000;">=</code><code style="color: blue;">"SFDashboardSoap"</code> <code style="color: #808080;">contract</code><code style="color: #000000;">=</code><code style="color: blue;">"SFDashboardService.SFDashboardSoap"</code> <code style="color: #808080;">name</code><code style="color: #000000;">=</code><code style="color: blue;">"SFDashboardSoap"</code> <code style="color: #000000;">/&gt;</code></span></span></div>
<div style="background-color: #ffffff;"><span><code>&nbsp;&nbsp;</code><span style="margin-left: 12px !important;"><code style="color: #000000;">&lt;/</code><code style="color: #006699; font-weight: bold;">client</code><code style="color: #000000;">&gt;</code></span></span></div>
<div style="background-color: #fff;"><span><code>&nbsp;&nbsp;</code><span style="margin-left: 6px !important;"><code style="color: #000000;">&lt;/</code><code style="color: #006699; font-weight: bold;">system.serviceModel</code><code style="color: #000000;">&gt;
</p>
<p style="margin-bottom: 18px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent; color: #222222; font-family: 'segoe ui', tahoma, arial, helvetica, sans-serif; line-height: 18.203125px;">Code behind:</p>
<p style="margin-bottom: 18px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent; color: #222222; font-family: 'segoe ui', tahoma, arial, helvetica, sans-serif; line-height: 18.203125px;">it is giving error in this line.</p>
<p style="margin-bottom: 18px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent; color: #222222; font-family: 'segoe ui', tahoma, arial, helvetica, sans-serif; line-height: 18.203125px;">ServiceReference1.PEServicesClient wsObject = new ServiceReference1.PEServicesClient();</p>
<p style="margin-bottom: 18px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent; color: #222222; font-family: 'segoe ui', tahoma, arial, helvetica, sans-serif; line-height: 18.203125px;">The image is here..</p>
<p style="margin-bottom: 18px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent; color: #222222; font-family: 'segoe ui', tahoma, arial, helvetica, sans-serif; line-height: 18.203125px;">http://postimg.org/image/70fbke79d/</p>
<p>
</p>
<p style="margin-bottom: 18px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent; color: #222222; font-family: 'segoe ui', tahoma, arial, helvetica, sans-serif; line-height: 18.203125px;">Code behind:</p>
<p style="margin-bottom: 18px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent; color: #222222; font-family: 'segoe ui', tahoma, arial, helvetica, sans-serif; line-height: 18.203125px;">it is giving error in this line.</p>
<p style="margin-bottom: 18px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent; color: #222222; font-family: 'segoe ui', tahoma, arial, helvetica, sans-serif; line-height: 18.203125px;">ServiceReference1.PEServicesClient wsObject = new ServiceReference1.PEServicesClient();</p>
<p style="margin-bottom: 18px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent; color: #222222; font-family: 'segoe ui', tahoma, arial, helvetica, sans-serif; line-height: 18.203125px;">The image is here..</p>
<p style="margin-bottom: 18px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent; color: #222222; font-family: 'segoe ui', tahoma, arial, helvetica, sans-serif; line-height: 18.203125px;">http://postimg.org/image/70fbke79d/</p>
<p>
</code></span></span></div>
</div>
</p>&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/wcf/18/10473564/could-not-find-default-endpointwcf.aspx" target="_self">read more</a>]]></description><pubDate>Sun, 28 Apr 2013 06:39:00 GMT</pubDate></item><item><title><![CDATA[SOAP11WSADDRESSING10 Custom Binding Not working]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10473329/soap11wsaddressing10-custom-binding-not-working.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10473329/soap11wsaddressing10-custom-binding-not-working.aspx]]></link><description><![CDATA[Hi,<br />
<br />
If i use SOAP11WSADDRESSINGAugust2004 in my&nbsp; client code and service config code. Everything works fine. But instead if i use SOAP11WSADDRESSING10. I am not able to consume the service and if fails. Please help.<br />
<br />
Please find client and service config sections below:-<br />
<br />
client config:-<br />
<span style="font-family: consolas; color: #0000ff; font-size: 13px;">
<p>&nbsp;</p>
</span>
<p>&nbsp;</p>
<p>&nbsp;&lt;binding name="MutualCertificateSigningNoAuthenticationBinding" <br />
closeTimeout="00:16:00" openTimeout="00:16:00" receiveTimeout="00:16:00" <br />
sendTimeout="00:16:00"&gt; <br />
&lt;textMessageEncoding maxReadPoolSize="64" maxWritePoolSize="16" <br />
messageVersion="Soap11WSAddressing10"&gt; <br />
&lt;readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" <br />
maxBytesPerRead="8192" maxNameTableCharCount="16384" /&gt; <br />
&lt;/textMessageEncoding&gt; <br />
&lt;security allowSerializedSigningTokenOnReply="true" authenticationMode="MutualCertificate" messageSecurityVersion="WSSecurity11WSTrustFebruary2005WSSecureConversationFebruary2005WSSecurityPolicy11BasicSecurityProfile10"&gt; <br />
&lt;/security&gt; <br />
&lt;httpTransport maxReceivedMessageSize="2147483647" /&gt; <br />
&lt;/binding&gt;</p>
<br />
service config:-<br />
<br />
<span style="font-family: consolas; color: #0000ff; font-size: 13px;">
<p>&nbsp;</p>
</span>
<p>&lt;customBinding&gt; <br />
&lt;binding name="MutualCertificateSigningNoAuthenticationBinding" closeTimeout="00:16:00" openTimeout="00:16:00" receiveTimeout="00:16:00" sendTimeout="00:16:00"&gt; <br />
&lt;textMessageEncoding messageVersion="Soap11WSAddressing10" maxReadPoolSize="64" maxWritePoolSize="16"&gt; <br />
&lt;readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" maxBytesPerRead="8192" maxNameTableCharCount="16384" /&gt; <br />
&lt;/textMessageEncoding&gt; <br />
&lt;security allowSerializedSigningTokenOnReply="true" authenticationMode="MutualCertificate" messageSecurityVersion="WSSecurity11WSTrustFebruary2005WSSecureConversationFebruary2005WSSecurityPolicy11BasicSecurityProfile10"&gt; <br />
&lt;/security&gt; <br />
&lt;httpsTransport maxReceivedMessageSize="2147483647" /&gt; <br />
&lt;/binding&gt; <br />
&lt;/customBinding&gt;</p>
<br />
<br />
Regards,<br />
Santhosh&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/wcf/18/10473329/soap11wsaddressing10-custom-binding-not-working.aspx" target="_self">read more</a>]]></description><pubDate>Tue, 16 Apr 2013 08:22:37 GMT</pubDate></item><item><title><![CDATA[Create xml signature using BinarySecret string token received from Secure Token Service]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10472439/create-xml-signature-using-binarysecret-string-token-received-from-secure-token-service.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10472439/create-xml-signature-using-binarysecret-string-token-received-from-secure-token-service.aspx]]></link><description><![CDATA[I am using a Secure Token service to retrieve encrypted assertion and security token. I am able to successfully retrieve xml response. The general format is as below :<br />
<br />
<div style="border: 0px solid #7f9db9; overflow-y: auto;" class="reCodeBlock">
<div style="background-color: #ffffff;"><span style="margin-left: 0px ! important;"><code style="color: #000000;">
<div class="reCodeBlock" style="border: 0px solid #7f9db9; overflow-y: auto;">
<div style="background-color: #ffffff;"><span style="margin-left: 0px ! important;"><code style="color: #000000;">&lt;?</code><code style="color: #006699; font-weight: bold;">xml</code> <code style="color: #808080;">version</code><code style="color: #000000;">=</code><code style="color: blue;">"1.0"</code> <code style="color: #808080;">encoding</code><code style="color: #000000;">=</code><code style="color: blue;">"utf-8"</code> <code style="color: #000000;">?&gt;</code><code style="color: #000000;"></code></span></div>
<div style="background-color: #ffffff;"><span style="margin-left: 0px ! important;"><code style="color: #000000;">&lt;</code><code style="color: #006699; font-weight: bold;">s:Envelope</code> <code style="color: #808080;">xmlns:s</code><code style="color: #000000;">=</code><code style="color: blue;">"http://www.w3.org/2003/05/soap-envelope"</code> <code style="color: #808080;">xmlns:a</code><code style="color: #000000;">=</code><code style="color: blue;">"http://www.w3.org/2005/08/addressing"</code> <code style="color: #808080;">xmlns:u</code><code style="color: #000000;">=</code><code style="color: blue;">"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"</code><code style="color: #000000;">&gt;</code><code style="color: #000000;"></code></span></div>
<div style="background-color: #ffffff;"><span><code>&nbsp;&nbsp;</code><span style="margin-left: 6px ! important;"><code style="color: #000000;">&lt;</code><code style="color: #006699; font-weight: bold;">s:Header</code><code style="color: #000000;">&gt;</code><code style="color: #000000;"></code></span></span></div>
<div style="background-color: #ffffff;"><span><code>&nbsp;&nbsp;</code><span style="margin-left: 12px ! important;"><code style="color: #000000;">&lt;</code><code style="color: #006699; font-weight: bold;">a:Action</code> <code style="color: #808080;">s:mustUnderstand</code><code style="color: #000000;">=</code><code style="color: blue;">"1"</code><code style="color: #000000;">&gt;http://docs.oasis-open.org/ws-sx/ws-trust/200512/RSTRC/IssueFinal&lt;;/</code><code style="color: #006699; font-weight: bold;">a:Action</code><code style="color: #000000;">&gt;</code><code style="color: #000000;"></code></span></span></div>
<div style="background-color: #ffffff;"><span><code>&nbsp;&nbsp;</code><span style="margin-left: 12px ! important;"><code style="color: #000000;">&lt;</code><code style="color: #006699; font-weight: bold;">a:RelatesTo</code><code style="color: #000000;">&gt;</code><code style="color: #000000;"></code></span></span></div>
<div style="background-color: #ffffff;"><span><code>&nbsp;&nbsp;</code><span style="margin-left: 12px ! important;"><code style="color: #008200;">&lt;!-- string --&gt;</code><code style="color: #000000;"></code></span></span></div>
<div style="background-color: #ffffff;"><span><code>&nbsp;&nbsp;</code><span style="margin-left: 12px ! important;"><code style="color: #000000;">&lt;/</code><code style="color: #006699; font-weight: bold;">a:RelatesTo</code><code style="color: #000000;">&gt;</code><code style="color: #000000;"></code></span></span></div>
<div style="background-color: #ffffff;"><span><code>&nbsp;&nbsp;</code><span style="margin-left: 12px ! important;"><code style="color: #000000;">&lt;</code><code style="color: #006699; font-weight: bold;">o:Security</code> <code style="color: #808080;">s:mustUnderstand</code><code style="color: #000000;">=</code><code style="color: blue;">"1"</code> <code style="color: #808080;">xmlns:o</code><code style="color: #000000;">=</code><code style="color: blue;">"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"</code><code style="color: #000000;">&gt;</code><code style="color: #000000;"></code></span></span></div>
<div style="background-color: #ffffff;"><span><code>&nbsp;&nbsp;</code><span style="margin-left: 12px ! important;"><code style="color: #000000;">&lt;</code><code style="color: #006699; font-weight: bold;">u:Timestamp</code> <code style="color: #808080;">u:Id</code><code style="color: #000000;">=</code><code style="color: blue;">"_0"</code><code style="color: #000000;">&gt;</code><code style="color: #000000;"></code></span></span></div>
<div style="background-color: #ffffff;"><span><code>&nbsp;&nbsp;</code><span style="margin-left: 18px ! important;"><code style="color: #000000;">&lt;</code><code style="color: #006699; font-weight: bold;">u:Created</code><code style="color: #000000;">&gt;</code><code style="color: #000000;"></code></span></span></div>
<div style="background-color: #ffffff;"><span><code>&nbsp;&nbsp;</code><span style="margin-left: 18px ! important;"><code style="color: #008200;">&lt;!--created time--&gt;</code><code style="color: #000000;"></code></span></span></div>
<div style="background-color: #ffffff;"><span><code>&nbsp;&nbsp;</code><span style="margin-left: 18px ! important;"><code style="color: #000000;">&lt;/</code><code style="color: #006699; font-weight: bold;">u:Created</code><code style="color: #000000;">&gt;&lt;</code><code style="color: #006699; font-weight: bold;">br</code><code style="color: #000000;">&gt;</code></span></span></div>
<div style="background-color: #ffffff;"><span><code>&nbsp;&nbsp;</code><span style="margin-left: 18px ! important;"><code style="color: #000000;">&lt;</code><code style="color: #006699; font-weight: bold;">u:Expires</code><code style="color: #000000;">&gt;&lt;</code><code style="color: #006699; font-weight: bold;">br</code><code style="color: #000000;">&gt;</code></span></span></div>
<div style="background-color: #ffffff;"><span><code>&nbsp;&nbsp;</code><span style="margin-left: 18px ! important;"><code style="color: #008200;">&lt;!--expire time--&gt;</code><code style="color: #000000;"></code></span></span></div>
<div style="background-color: #ffffff;"><span><code>&nbsp;&nbsp;</code><span style="margin-left: 18px ! important;"><code style="color: #000000;">&lt;/</code><code style="color: #006699; font-weight: bold;">u:Expires</code><code style="color: #000000;">&gt;</code><code style="color: #000000;"></code></span></span></div>
<div style="background-color: #ffffff;"><span><code>&nbsp;&nbsp;</code><span style="margin-left: 12px ! important;"><code style="color: #000000;">&lt;/</code><code style="color: #006699; font-weight: bold;">u:Timestamp</code><code style="color: #000000;">&gt;</code><code style="color: #000000;"></code></span></span></div>
<div style="background-color: #ffffff;"><span><code>&nbsp;&nbsp;</code><span style="margin-left: 12px ! important;"><code style="color: #000000;">&lt;/</code><code style="color: #006699; font-weight: bold;">o:Security</code><code style="color: #000000;">&gt;</code><code style="color: #000000;"></code></span></span></div>
<div style="background-color: #ffffff;"><span><code>&nbsp;&nbsp;</code><span style="margin-left: 6px ! important;"><code style="color: #000000;">&lt;/</code><code style="color: #006699; font-weight: bold;">s:Header</code><code style="color: #000000;">&gt;</code><code style="color: #000000;"></code></span></span></div>
<div style="background-color: #ffffff;"><span><code>&nbsp;&nbsp;</code><span style="margin-left: 6px ! important;"><code style="color: #000000;">&lt;</code><code style="color: #006699; font-weight: bold;">s:Body</code><code style="color: #000000;">&gt;</code><code style="color: #000000;"></code></span></span></div>
<div style="background-color: #ffffff;"><span><code>&nbsp;&nbsp;</code><span style="margin-left: 12px ! important;"><code style="color: #000000;">&lt;</code><code style="color: #006699; font-weight: bold;">trust:RequestSecurityTokenResponseCollection</code> <code style="color: #808080;">xmlns:trust</code><code style="color: #000000;">=</code><code style="color: blue;">"http://docs.oasis-open.org/ws-sx/ws-trust/200512"</code><code style="color: #000000;">&gt;</code><code style="color: #000000;"></code></span></span></div>
<div style="background-color: #ffffff;"><span><code>&nbsp;&nbsp;</code><span style="margin-left: 12px ! important;"><code style="color: #000000;">&lt;</code><code style="color: #006699; font-weight: bold;">trust:RequestSecurityTokenResponse</code><code style="color: #000000;">&gt;</code><code style="color: #000000;"></code></span></span></div>
<div style="background-color: #ffffff;"><span><code>&nbsp;&nbsp;</code><span style="margin-left: 18px ! important;"><code style="color: #000000;">&lt;</code><code style="color: #006699; font-weight: bold;">trust:KeySize</code><code style="color: #000000;">&gt;512&lt;/</code><code style="color: #006699; font-weight: bold;">trust:KeySize</code><code style="color: #000000;">&gt;</code><code style="color: #000000;"></code></span></span></div>
<div style="background-color: #ffffff;"><span><code>&nbsp;&nbsp;</code><span style="margin-left: 18px ! important;"><code style="color: #000000;">&lt;</code><code style="color: #006699; font-weight: bold;">trust:Lifetime</code><code style="color: #000000;">&gt;</code><code style="color: #000000;"></code></span></span></div>
<div style="background-color: #ffffff;"><span><code>&nbsp;&nbsp;</code><span style="margin-left: 18px ! important;"><code style="color: #000000;">&lt;</code><code style="color: #006699; font-weight: bold;">wsu:Created</code> <code style="color: #808080;">xmlns:wsu</code><code style="color: #000000;">=</code><code style="color: blue;">"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"</code><code style="color: #000000;">&gt;</code><code style="color: #000000;"></code></span></span></div>
<div style="background-color: #ffffff;"><span><code>&nbsp;&nbsp;&nbsp;&nbsp; </code><span style="margin-left: 4px ! important;"><code style="color: #008200;">&lt;!--created--&gt;</code><code style="color: #000000;"></code></span></span></div>
<div style="background-color: #ffffff;"><span><code>&nbsp;&nbsp;</code><span style="margin-left: 18px ! important;"><code style="color: #000000;">&lt;/</code><code style="color: #006699; font-weight: bold;">wsu:Created</code><code style="color: #000000;">&gt;</code><code style="color: #000000;"></code></span></span></div>
<div style="background-color: #ffffff;"><span><code>&nbsp;&nbsp;</code><span style="margin-left: 18px ! important;"><code style="color: #000000;">&lt;</code><code style="color: #006699; font-weight: bold;">wsu:Expires</code> <code style="color: #808080;">xmlns:wsu</code><code style="color: #000000;">=</code><code style="color: blue;">"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"</code><code style="color: #000000;">&gt;</code><code style="color: #000000;"></code></span></span></div>
<div style="background-color: #ffffff;"><span><code>&nbsp;&nbsp;&nbsp;&nbsp; </code><span style="margin-left: 4px ! important;"><code style="color: #008200;">&lt;!--Expires--&gt;</code><code style="color: #000000;"></code></span></span></div>
<div style="background-color: #ffffff;"><span><code>&nbsp;&nbsp;</code><span style="margin-left: 18px ! important;"><code style="color: #000000;">&lt;/</code><code style="color: #006699; font-weight: bold;">wsu:Expires</code><code style="color: #000000;">&gt;</code><code style="color: #000000;"></code></span></span></div>
<div style="background-color: #ffffff;"><span><code>&nbsp;&nbsp;</code><span style="margin-left: 18px ! important;"><code style="color: #000000;">&lt;/</code><code style="color: #006699; font-weight: bold;">trust:Lifetime</code><code style="color: #000000;">&gt;</code><code style="color: #000000;"></code></span></span></div>
<div style="background-color: #ffffff;"><span><code>&nbsp;&nbsp;</code><span style="margin-left: 18px ! important;"><code style="color: #000000;">&lt;</code><code style="color: #006699; font-weight: bold;">wsp:AppliesTo</code> <code style="color: #808080;">xmlns:wsp</code><code style="color: #000000;">=</code><code style="color: blue;">"http://schemas.xmlsoap.org/ws/2004/09/policy"</code><code style="color: #000000;">&gt;</code><code style="color: #000000;"></code></span></span></div>
<div style="background-color: #ffffff;"><span><code>&nbsp;&nbsp;</code><span style="margin-left: 18px ! important;"><code style="color: #000000;">&lt;</code><code style="color: #006699; font-weight: bold;">a:EndpointReference</code><code style="color: #000000;">&gt;</code><code style="color: #000000;"></code></span></span></div>
<div style="background-color: #ffffff;"><span><code>&nbsp;&nbsp;</code><span style="margin-left: 4px ! important;"><code style="color: #000000;">&lt;</code><code style="color: #006699; font-weight: bold;">a:Address</code><code style="color: #000000;">&gt;</code><code style="color: #000000;"></code></span></span></div>
<div style="background-color: #ffffff;"><span><code>&nbsp;&nbsp;&nbsp;&nbsp; </code><span style="margin-left: 4px ! important;"><code style="color: #008200;">&lt;!--Address--&gt;</code><code style="color: #000000;"></code></span></span></div>
<div style="background-color: #ffffff;"><span><code>&nbsp;&nbsp;</code><span style="margin-left: 4px ! important;"><code style="color: #000000;">&lt;/</code><code style="color: #006699; font-weight: bold;">a:Address</code><code style="color: #000000;">&gt;</code><code style="color: #000000;"></code></span></span></div>
<div style="background-color: #ffffff;"><span><code>&nbsp;&nbsp;</code><span style="margin-left: 18px ! important;"><code style="color: #000000;">&lt;/</code><code style="color: #006699; font-weight: bold;">a:EndpointReference</code><code style="color: #000000;">&gt;</code><code style="color: #000000;"></code></span></span></div>
<div style="background-color: #ffffff;"><span><code>&nbsp;&nbsp;</code><span style="margin-left: 18px ! important;"><code style="color: #000000;">&lt;/</code><code style="color: #006699; font-weight: bold;">wsp:AppliesTo</code><code style="color: #000000;">&gt;</code><code style="color: #000000;"></code></span></span></div>
<div style="background-color: #ffffff;"><span><code>&nbsp;&nbsp;</code><span style="margin-left: 18px ! important;"><code style="color: #000000;">&lt;</code><code style="color: #006699; font-weight: bold;">trust:RequestedSecurityToken</code><code style="color: #000000;">&gt;</code><code style="color: #000000;"></code></span></span></div>
<div style="background-color: #ffffff;"><span><code>&nbsp;&nbsp;</code><span style="margin-left: 18px ! important;"><code style="color: #000000;">&lt;</code><code style="color: #006699; font-weight: bold;">EncryptedAssertion</code> <code style="color: #808080;">xmlns</code><code style="color: #000000;">=</code><code style="color: blue;">"urn:oasis:names:tc:SAML:2.0:assertion"</code><code style="color: #000000;">&gt;</code><code style="color: #000000;"></code></span></span></div>
<div style="background-color: #ffffff;"><span><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </code><span style="margin-left: 4px ! important;"><code style="color: #008200;">&lt;!--assertion data--&gt;</code><code style="color: #000000;"></code></span></span></div>
<div style="background-color: #ffffff;"><span><code>&nbsp;&nbsp;</code><span style="margin-left: 18px ! important;"><code style="color: #000000;">&lt;/</code><code style="color: #006699; font-weight: bold;">EncryptedAssertion</code><code style="color: #000000;">&gt;</code><code style="color: #000000;"></code></span></span></div>
<div style="background-color: #ffffff;"><span><code>&nbsp;&nbsp;</code><span style="margin-left: 18px ! important;"><code style="color: #000000;">&lt;/</code><code style="color: #006699; font-weight: bold;">trust:RequestedSecurityToken</code><code style="color: #000000;">&gt;</code><code style="color: #000000;"></code></span></span></div>
<div style="background-color: #ffffff;"><span><code>&nbsp;&nbsp;</code><span style="margin-left: 18px ! important;"><code style="color: #000000;">&lt;</code><code style="color: #006699; font-weight: bold;">trust:RequestedProofToken</code><code style="color: #000000;">&gt;</code><code style="color: #000000;"></code></span></span></div>
<div style="background-color: #ffffff;"><span><code>&nbsp;&nbsp;</code><span style="margin-left: 18px ! important;"><code style="color: #000000;">&lt;</code><code style="color: #006699; font-weight: bold;">trust:BinarySecret</code><code style="color: #000000;">&gt;</code><code style="color: #000000;"></code></span></span></div>
<div style="background-color: #ffffff;"><span><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </code><span style="margin-left: 4px ! important;"><code style="color: #008200;">&lt;!-- string key--&gt;</code><code style="color: #000000;"></code></span></span></div>
<div style="background-color: #ffffff;"><span><code>&nbsp;&nbsp;</code><span style="margin-left: 18px ! important;"><code style="color: #000000;">&lt;/</code><code style="color: #006699; font-weight: bold;">trust:BinarySecret</code><code style="color: #000000;">&gt;</code><code style="color: #000000;"></code></span></span></div>
<div style="background-color: #ffffff;"><span><code>&nbsp;&nbsp;</code><span style="margin-left: 18px ! important;"><code style="color: #000000;">&lt;/</code><code style="color: #006699; font-weight: bold;">trust:RequestedProofToken</code><code style="color: #000000;">&gt;</code><code style="color: #000000;"></code></span></span></div>
<div style="background-color: #ffffff;"><span><code>&nbsp;&nbsp;</code><span style="margin-left: 18px ! important;"><code style="color: #000000;">&lt;</code><code style="color: #006699; font-weight: bold;">trust:TokenType</code><code style="color: #000000;">&gt;http://docs.oasis-open.org/wss/oasis-wss-saml-token-profile-1.1#SAMLV2.0&lt;/</code><code style="color: #006699; font-weight: bold;">trust:TokenType</code><code style="color: #000000;">&gt;</code><code style="color: #000000;"></code></span></span></div>
<div style="background-color: #ffffff;"><span><code>&nbsp;&nbsp;</code><span style="margin-left: 18px ! important;"><code style="color: #000000;">&lt;</code><code style="color: #006699; font-weight: bold;">trust:RequestType</code><code style="color: #000000;">&gt;http://docs.oasis-open.org/ws-sx/ws-trust/200512/Issue&lt;;/</code><code style="color: #006699; font-weight: bold;">trust:RequestType</code><code style="color: #000000;">&gt;</code><code style="color: #000000;"></code></span></span></div>
<div style="background-color: #ffffff;"><span><code>&nbsp;&nbsp;</code><span style="margin-left: 18px ! important;"><code style="color: #000000;">&lt;</code><code style="color: #006699; font-weight: bold;">trust:KeyType</code><code style="color: #000000;">&gt;http://docs.oasis-open.org/ws-sx/ws-trust/200512/SymmetricKey&lt;;/</code><code style="color: #006699; font-weight: bold;">trust:KeyType</code><code style="color: #000000;">&gt;</code><code style="color: #000000;"></code></span></span></div>
<div style="background-color: #ffffff;"><span><code>&nbsp;&nbsp;</code><span style="margin-left: 12px ! important;"><code style="color: #000000;">&lt;/</code><code style="color: #006699; font-weight: bold;">trust:RequestSecurityTokenResponse</code><code style="color: #000000;">&gt;</code><code style="color: #000000;"></code></span></span></div>
<div style="background-color: #ffffff;"><span><code>&nbsp;&nbsp;</code><span style="margin-left: 12px ! important;"><code style="color: #000000;">&lt;/</code><code style="color: #006699; font-weight: bold;">trust:RequestSecurityTokenResponseCollection</code><code style="color: #000000;">&gt;</code><code style="color: #000000;"></code></span></span></div>
<div style="background-color: #ffffff;"><span><code>&nbsp;&nbsp;</code><span style="margin-left: 6px ! important;"><code style="color: #000000;">&lt;/</code><code style="color: #006699; font-weight: bold;">s:Body</code><code style="color: #000000;">&gt;</code><code style="color: #000000;"></code></span></span></div>
<div style="background-color: #ffffff;"><span style="margin-left: 0px ! important;"><code style="color: #000000;">&lt;/</code><code style="color: #006699; font-weight: bold;">s:Envelope</code><code style="color: #000000;">&gt;</code></span></div>
</div>
<br />
<br />
<br />
</code><code style="color: #000000;"></code></span></div>
</div>
Now my requirement is that I want the create signature of EncryptedAssertion element using BinarySecret SAML token string contained in BinarySecret element. I know to create xml signature using RSA key but how to sign xml element using binary secret key which is a string.
I am using .Net 4.0 and WCF to receive token reply.&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/wcf/18/10472439/create-xml-signature-using-binarysecret-string-token-received-from-secure-token-service.aspx" target="_self">read more</a>]]></description><pubDate>Mon, 25 Feb 2013 05:16:14 GMT</pubDate></item><item><title><![CDATA[Delay Activity (Persistence) for 15 days]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10472394/delay-activity-persistence-for-15-days.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10472394/delay-activity-persistence-for-15-days.aspx]]></link><description><![CDATA[Hi all,<br />
<br />
&nbsp;&nbsp;&nbsp; i have a one problem in my solution i.e I have a one workflow, while running the workflow i want to Hold the service for 15 days,now i am hold the service for 10 mins after 10 mins getting a time out exception like<br />
<br />
<br />
"<span style="font-size: 11pt; font-family: times new roman,serif;">This request operation sent to net. Pipe://localhost/NewPolicyHolderSurvey did not receive a reply within the configured timeout (00:01:00).&nbsp; The time allotted to this operation may have been a portion of a longer timeout.&nbsp; This may be because the service is still processing the operation or because the service was unable to send a reply message.&nbsp; Please consider increasing the operation timeout (by casting the channel/proxy to IContextChannel and setting the OperationTimeout property) and ensure that the service is able to connect to the client.</span><br />
<br />
"How to acheive this problem if i&nbsp; configuration in a app.config only up to 99 hours only but my requirement is 15 days delay for that workflow&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/wcf/18/10472394/delay-activity-persistence-for-15-days.aspx" target="_self">read more</a>]]></description><pubDate>Thu, 21 Feb 2013 08:15:34 GMT</pubDate></item><item><title><![CDATA[How to Idel Windows Workflow?]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10472315/how-to-idel-windows-workflow.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10472315/how-to-idel-windows-workflow.aspx]]></link><description><![CDATA[<br />
How to Hold the Workflow service.<br />
<br />
<br />
<p style="color: #2a2a2a; padding-bottom: 15px; line-height: 18px; font-family: 'segoe ui', 'lucida grande', verdana, arial, helvetica, sans-serif; font-size: 12px;">
http://keyvan.io/sqlworkflowpersistenceservice-in-windows-workflow-foundation<br />
<br />
</p>
<p style="color: #000000; font-family: 'courier new'; line-height: 22.453125px;"><span style="margin: 0px; padding: 0px; color: teal;">WorkflowRuntime</span>&nbsp;workflowRuntime =&nbsp;<span style="margin: 0px; padding: 0px; color: blue;">new</span>&nbsp;<span style="margin: 0px; padding: 0px; color: teal;">WorkflowRuntime</span>();</p>
<p style="color: #000000; font-family: 'courier new'; line-height: 22.453125px;">&nbsp;</p>
<p style="color: #000000; font-family: 'courier new'; line-height: 22.453125px;">&nbsp;&nbsp;<span style="margin: 0px; padding: 0px; color: teal;">SqlWorkflowPersistenceService</span>&nbsp;sqlPersistenceService =</p>
<p style="color: #000000; font-family: 'courier new'; line-height: 22.453125px;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;<span style="margin: 0px; padding: 0px; color: blue;">new</span>&nbsp;<span style="margin: 0px; padding: 0px; color: teal;">SqlWorkflowPersistenceService</span>(<span style="margin: 0px; padding: 0px; color: blue;">this</span>.connectionString);</p>
<p style="color: #000000; font-family: 'courier new'; line-height: 22.453125px;">&nbsp;</p>
<p style="color: #000000; font-family: 'courier new'; line-height: 22.453125px;">&nbsp;&nbsp;&nbsp; workflowRuntime.AddService(sqlPersistenceService);</p>
<p style="color: #000000; font-family: 'courier new'; line-height: 22.453125px;">&nbsp;&nbsp;&nbsp; workflowRuntime.StartRuntime();</p>
<p style="color: #000000; font-family: 'courier new'; line-height: 22.453125px;">&nbsp;</p>
<p style="color: #000000; font-family: 'courier new'; line-height: 22.453125px;">&nbsp;&nbsp;<span style="margin: 0px; padding: 0px; color: teal;">WorkflowInstance</span>&nbsp;instance =</p>
<p style="color: #000000; font-family: 'courier new'; line-height: 22.453125px;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; workflowRuntime.GetWorkflow(<span style="margin: 0px; padding: 0px; color: blue;">this</span>.id);<br />
<br />
<span style="text-decoration: underline;">// gupta here you have to idle the workflow service. &nbsp;call me&nbsp;<br />
</span></p>
<p style="color: #000000; font-family: 'courier new'; line-height: 22.453125px;">&nbsp;&nbsp;<span style="margin: 0px; padding: 0px; color: teal;">MessageBox</span>.Show(instance.InstanceId.ToString(),&nbsp;<span style="margin: 0px; padding: 0px; color: maroon;">"Instance GUID"</span>);</p>
<p style="color: #000000; font-family: 'courier new'; line-height: 22.453125px;">&nbsp;</p>
<p style="color: #000000; font-family: 'courier new'; line-height: 22.453125px;">&nbsp;&nbsp;&nbsp; instance.Unload();</p>
<p style="color: #000000; font-family: 'courier new'; line-height: 22.453125px;">&nbsp;</p>
<p style="color: #000000; font-family: 'courier new'; line-height: 22.453125px;">&nbsp;&nbsp;&nbsp; workflowRuntime.StopRuntime();<br />
<br />
<br />
&nbsp;</p>
<span style="white-space: normal;"><strong>&nbsp;http://odetocode.com/articles/457.aspx &nbsp; [ VERY HELPFUL]</strong><br />
<br />
<br />
&nbsp; (<span style="font-size: 11px; line-height: 20px; white-space: normal; font-family: monospace; color: blue;">using</span><span style="font-size: 11px; line-height: 20px; white-space: normal; font-family: monospace; color: black;">(</span><span style="font-size: 11px; line-height: 20px; white-space: normal; font-family: monospace; color: teal;">AutoResetEvent</span><span style="font-size: 11px; line-height: 20px; white-space: normal; font-family: monospace; color: black;">&nbsp;reset =&nbsp;</span><span style="font-size: 11px; line-height: 20px; white-space: normal; font-family: monospace; color: blue;">new</span><span style="font-size: 11px; line-height: 20px; white-space: normal; font-family: monospace; color: black;">&nbsp;</span><span style="font-size: 11px; line-height: 20px; white-space: normal; font-family: monospace; color: teal;">AutoResetEvent</span><span style="font-size: 11px; line-height: 20px; white-space: normal; font-family: monospace; color: black;">(</span><span style="font-size: 11px; line-height: 20px; white-space: normal; font-family: monospace; color: blue;">false</span><span style="font-size: 11px; line-height: 20px; white-space: normal; font-family: monospace; color: black;">))<br />
{<br />
&nbsp;&nbsp;runtime.WorkflowCompleted +=&nbsp;</span><span style="font-size: 11px; line-height: 20px; white-space: normal; font-family: monospace; color: blue;">delegate</span><span style="font-size: 11px; line-height: 20px; white-space: normal; font-family: monospace; color: black;">&nbsp;{ reset.Set(); };<br />
&nbsp;&nbsp;runtime.WorkflowTerminated +=&nbsp;</span><span style="font-size: 11px; line-height: 20px; white-space: normal; font-family: monospace; color: blue;">delegate</span><span style="font-size: 11px; line-height: 20px; white-space: normal; font-family: monospace; color: black;">&nbsp;{ reset.Set(); };<br />
&nbsp;&nbsp;runtime.StartRuntime();<br />
<br />
&nbsp;&nbsp;</span><span style="font-size: 11px; line-height: 20px; white-space: normal; font-family: monospace; color: teal;">WorkflowInstance</span><span style="font-size: 11px; line-height: 20px; white-space: normal; font-family: monospace; color: black;">&nbsp;instance;<br />
&nbsp;&nbsp;instance = runtime.CreateWorkflow(</span><span style="font-size: 11px; line-height: 20px; white-space: normal; font-family: monospace; color: blue;">typeof</span><span style="font-size: 11px; line-height: 20px; white-space: normal; font-family: monospace; color: black;">(</span><span style="font-size: 11px; line-height: 20px; white-space: normal; font-family: monospace; color: teal;">SimpleWorkflow</span><span style="font-size: 11px; line-height: 20px; white-space: normal; font-family: monospace; color: black;">));<br />
&nbsp;&nbsp;instance.Start();<br />
&nbsp;&nbsp;reset.WaitOne();<br />
}</span><br />
</span><br />
one more resource:<br />
<br />
http://www.devproconnections.com/article/net-framework2/introducing-net-4-0-workflow-services-122120<br />
&nbsp;&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/wcf/18/10472315/how-to-idel-windows-workflow.aspx" target="_self">read more</a>]]></description><pubDate>Tue, 19 Feb 2013 01:20:17 GMT</pubDate></item><item><title><![CDATA[upload data using ORM and WCF Service]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10472258/upload-data-using-orm-and-wcf-service.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10472258/upload-data-using-orm-and-wcf-service.aspx]]></link><description><![CDATA[<br />
&nbsp;My Requirement is &nbsp;Upload data from Client db to Server db. using ORM and WCF Service.<br />
<br />
i created File--new--ConsoleApp(better is classlibrary) but testing purpose i taken ConsoleApp. then Added--ADO.net Entity Model--<br />
<br />
<div style="color: #222222; font-family: arial, sans-serif;">I prepared service as a generic:</div>
<div style="color: #222222; font-family: arial, sans-serif;"><br />
</div>
<div style="color: #222222; font-family: arial, sans-serif;">
<p class="MsoNormal">&nbsp;</p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="font-size: 9.5pt; font-family: consolas;">&nbsp;&nbsp;&nbsp;<span style="color: blue;">public</span>&nbsp;<span style="color: blue;">class</span>&nbsp;<span style="color: #2b91af;">Service1</span>:<span style="color: #2b91af;">IServ<wbr></wbr>ice1</span></span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="font-size: 9.5pt; font-family: consolas;">&nbsp;&nbsp;&nbsp; {</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="font-size: 9.5pt; font-family: consolas;">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="font-size: 9.5pt; font-family: consolas;">&nbsp;&nbsp;<span style="color: blue;">public</span>&nbsp;<span style="color: blue;">void</span>&nbsp;Add(<strong style="background-color: #ffff00;"><span style="color: #2b91af;">TEntit<wbr></wbr>y</span>&nbsp;</strong>entity)</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="font-size: 9.5pt; font-family: consolas;">&nbsp;&nbsp;&nbsp; {</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="font-size: 9.5pt; font-family: consolas;">&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: #2b91af;">VHOP_<wbr></wbr>OdhisaEntities</span>&nbsp;context =&nbsp;<span style="color: blue;">new</span>&nbsp;<span style="color: #2b91af;">VHOP_OdhisaEntities</span>(); &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //<strong>&nbsp;<span style="background-color: #ffff66;">Server ORM</span></strong></span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="font-size: 9.5pt; font-family: consolas;">&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: #2b91af;">ObjectSet</span>&lt;<span style="color: #2b91af;">TEntity</span>&gt; _Objectset = context.CreateObjectSet&lt;<span style="color: #2b91af;">TEntit<wbr></wbr>y</span>&gt;();</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="font-size: 9.5pt; font-family: consolas;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; _Objectset.AddObject(entity);</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="font-size: 9.5pt; font-family: consolas;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="font-size: 9.5pt; font-family: consolas;">&nbsp;&nbsp;&nbsp; }</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="font-size: 9.5pt; font-family: consolas;">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="font-size: 9.5pt; font-family: consolas;">&nbsp; &nbsp; &nbsp;}</span></p>
</div>
<div style="color: #222222; font-family: arial, sans-serif;">at client i succefully add the service reference:</div>
<div style="color: #222222; font-family: arial, sans-serif;"><br />
</div>
<div style="color: #222222; font-family: arial, sans-serif;">&nbsp;at client :</div>
<div style="color: #222222; font-family: arial, sans-serif;"><br />
</div>
<div style="color: #222222; font-family: arial, sans-serif;">
<p class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="font-size: 9.5pt; font-family: consolas;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span style="color: #2b91af;">vhopodhisaEntities</span>&nbsp;<wbr></wbr>ClientEntities =&nbsp;<span style="color: blue;">new</span>&nbsp;<span style="color: #2b91af;">vhopodhisaEntities</span>(); &nbsp;//&nbsp;<strong><span style="background-color: #ffff00; color: #ff0000;">Client ORM</span></strong></span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="font-size: 9.5pt; font-family: consolas;">&nbsp;</span><span style="font-size: 9.5pt; font-family: consolas;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="font-size: 9.5pt; font-family: consolas;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: #2b91af;">Service1Client</span>&nbsp;<wbr></wbr>proxy =&nbsp;<span style="color: blue;">new</span>&nbsp;<span style="color: #2b91af;">Service1Client</span>(); &nbsp; &nbsp;
</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="font-size: 9.5pt; font-family: consolas; color: #222222;">
//  Now I am trying to add single entity/table/<span style="text-decoration: underline;">Advices</span> data to server db.</span><span style="font-size: 12pt; font-family: 'times new roman', serif; color: #222222;"><o:p></o:p></span></p>
<p>&nbsp;&nbsp;</p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="font-size: 9.5pt; font-family: consolas;">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="font-size: 9.5pt; font-family: consolas;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: #2b91af;">List</span>&lt;<span style="color: #2b91af;">TEntity</span>&gt; dt = ClientEntities.<strong style="background-color: #ffff66;">Advices</strong>.ToList&lt;<span style="color: #2b91af;"><wbr></wbr>TEntity</span>&gt;(); &nbsp;// Advices table/Entity&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="font-size: 9.5pt; font-family: consolas;">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="font-size: 9.5pt; font-family: consolas;">&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: #2b91af;">IEnumerator</span>&lt;<span style="color: #2b91af;">TEntit<wbr></wbr>y</span>&gt; data =dt.GetEnumerator();</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="font-size: 9.5pt; font-family: consolas;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: blue;">while</span>&nbsp;(data.<wbr></wbr>MoveNext())</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="font-size: 9.5pt; font-family: consolas;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="font-family: consolas;"><span style="font-size: 9.5pt;">&nbsp;&nbsp;            &nbsp;</span><span style="font-size: 9.5pt; color: #2b91af;">TEntity</span><span style="font-size: 9.5pt;">&nbsp;</span><span style="font-size: 18px;">entite<wbr></wbr>s&nbsp;&nbsp;</span><span style="font-size: 9.5pt;">=data.Current; &nbsp;
// here entities is</span><strong>&nbsp;<span style="font-size: 18px;">ConsoleApplication1.TEntity</span></strong></span><span style="font-size: 9.5pt; font-family: consolas;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="font-size: 9.5pt; font-family: consolas;">&nbsp;&nbsp;&nbsp;&nbsp;       proxy.Add(</span><span style="font-family: consolas; font-size: 18px;"><strong>Serv<wbr></wbr>iceReference1.TEntity</strong></span><span style="font-size: 9.5pt; font-family: consolas;">);</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="font-size: 9.5pt; font-family: consolas;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</span></p>
</div>
<div style="color: #222222; font-family: arial, sans-serif;"><br />
</div>
<div><span style="color: #222222; font-family: arial, sans-serif;">proxy.Add(ServiceReference1.<span style="background-color: #ffff66;">TE<wbr></wbr>ntity</span>)-----how to solve this issue.<br />
<br />
<strong>ERROR</strong> : Cannot convert ServiceReference1.TEntity to </span><span style="font-family: arial, sans-serif; color: #ff0000;">VhopodhisaEntities</span><span style="color: #222222; font-family: arial, sans-serif;">.TEntity. // </span><span style="font-family: arial, sans-serif; color: #ff0000;">Client ORM</span><br />
</div>
<div style="color: #222222; font-family: arial, sans-serif;"><br />
</div>
<div style="color: #222222; font-family: arial, sans-serif;"><br />
</div>
<div style="color: #222222; font-family: arial, sans-serif;">Here I am sending one table ==&gt; which Advices table&nbsp;<br />
<br />
but my requirement is send all the tables. &nbsp;<span style="font-size: 10pt;">how to send all the tables data. to server.
please tell me a soluation ...urgently require soluation</span></div>
<div style="color: #222222; font-family: arial, sans-serif;"><br />
</div>
<div style="color: #222222; font-family: arial, sans-serif;"><br />
</div>&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/wcf/18/10472258/upload-data-using-orm-and-wcf-service.aspx" target="_self">read more</a>]]></description><pubDate>Fri, 15 Feb 2013 01:19:07 GMT</pubDate></item><item><title><![CDATA[How to handle media type exception in wcf]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10472244/how-to-handle-media-type-exception-in-wcf.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10472244/how-to-handle-media-type-exception-in-wcf.aspx]]></link><description><![CDATA[Hi all,<br />
<br />
&nbsp; I have a one issue in my solution i want to handle Unsupported mediatype exception in WCF &nbsp;in which place we have to handle these type of &nbsp;exception like in web.config file or endpoint senario,while enduser enter a media type in string url&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/wcf/18/10472244/how-to-handle-media-type-exception-in-wcf.aspx" target="_self">read more</a>]]></description><pubDate>Wed, 13 Feb 2013 02:06:49 GMT</pubDate></item><item><title><![CDATA[sdf]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10470736/sdf.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10470736/sdf.aspx]]></link><description><![CDATA[&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/wcf/18/10470736/sdf.aspx" target="_self">read more</a>]]></description><pubDate>Thu, 28 Mar 2013 23:01:13 GMT</pubDate></item><item><title><![CDATA[Issue regarding running WCF server and client]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10469992/issue-regarding-running-wcf-server-and-client.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10469992/issue-regarding-running-wcf-server-and-client.aspx]]></link><description><![CDATA[<br />
<br />
i am very new in WCF and still learning the sugar of WCF. i never develop any WCF apps for production environment. for a long time i was searching a good article with source code for Screen sharing apps and at last i found it with sample code.<br />
<br />
Mr bob cravens develop a small application for screen sharing between two pc which is fully WCF saved apps. i go through their code and understand few things and still few things i mean few flow is not clear to me. i need to run this apps at my end just to clear the whole thing like how server &amp; client communicate and send screen shot in each other.<br />
<br />
when i tried to run this wcf server from the sample code then i found it is running but the problem lies at wcf client end. when i try to run wcf client end then i am getting error.<br />
<br />
the error is : - HTTP could not register URL [http://mypcip:myport/Rlc/Viewer/][1]. Your process does not have access rights to this namespace (see).<br />
<br />
this error occur when this line execute at wcf client side and lines are<br />
<br />
&nbsp;Uri baseAddress = new Uri("http://mypcip:myport/Rlc/Viewer");<br />
&nbsp;_viewerService = new ServiceHost(typeof(ViewerService), baseAddress);<br />
&nbsp;_viewerService.Open();<br />
<br />
when service host try to open and this line execute then error occur.<br />
<br />
_viewerService.Open();<br />
<br />
i try to change the port also from 1003 to 8080 but got same error. i post the problem in that site from where i got this code but got no answer and also found lot other people also post the same kind of problem and got no answer.<br />
<br />
so here is the source code link bobcravens.com/files/RemoteDesktop.zip<br />
<br />
from where any one can download the source code and try to run this apps at their end and can tell me what is wrong in this code which causes error when i try to run this sample code wcf client in my pc. i tried lot to understand why client is giving error but could not understand.<br />
<br />
so it my request that please anyone download the source code and just run the server first and then run the client editing ip address in code and definitely encounter error. tell me what i need to change in this code as a result i can run this apps perfectly in my pc. to go through the source code with debug mode is very important job for me but i am not being able to run this apps at all. so please help me becoz i am in problem. thanks<br />&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/wcf/18/10469992/issue-regarding-running-wcf-server-and-client.aspx" target="_self">read more</a>]]></description><pubDate>Thu, 28 Mar 2013 23:01:17 GMT</pubDate></item><item><title><![CDATA[Elementary process authorization requires a calling application process present in securit]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10468788/elementary-process-authorization-requires-a-calling-application-process-present-in-securit.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10468788/elementary-process-authorization-requires-a-calling-application-process-present-in-securit.aspx]]></link><description><![CDATA[Message = "Elementary process authorization requires a calling application process present in security context"<br />
<br />
can anyone help me on this error?&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/wcf/18/10468788/elementary-process-authorization-requires-a-calling-application-process-present-in-securit.aspx" target="_self">read more</a>]]></description><pubDate>Thu, 28 Mar 2013 23:01:18 GMT</pubDate></item><item><title><![CDATA[when i consume wcf service it give this error pls give solution for it]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10468509/when-i-consume-wcf-service-it-give-this-error-pls-give-solution-for-it.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10468509/when-i-consume-wcf-service-it-give-this-error-pls-give-solution-for-it.aspx]]></link><description><![CDATA[&nbsp;hi i am use silverlight app,in that i use radupload,in radupload fileupload event i call the wcf service and pass parameter to wcf service,in begininsertdata it work but in endinsertdata it give error here i paste that error pls reply for this error thanx in advance<br />
<br />
<img alt="" src="/FileUpload/-60261119/slerror.PNG" style="width: 800px; height: 585px;" />&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/wcf/18/10468509/when-i-consume-wcf-service-it-give-this-error-pls-give-solution-for-it.aspx" target="_self">read more</a>]]></description><pubDate>Thu, 28 Mar 2013 23:01:20 GMT</pubDate></item><item><title><![CDATA[Need few basic info regarding wcf program]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10467954/need-few-basic-info-regarding-wcf-program.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10467954/need-few-basic-info-regarding-wcf-program.aspx]]></link><description><![CDATA[i am newbie in wcf. i have few question regarding wcf and those are.... 1) can we write line in web.config for multiple binding for any wcf program. we know that we define endpoint in web.config like<br />
<br />
&lt;endpoint address="TestWcfService" binding="wsHttpBinding"&nbsp; contract="TestWcfService.IService"/&gt;<br />
<br />
so i just need to know can we define multiple endpoint for single wcf service. one with HttpBinding one with tcp binding etc. if possible then can anyone give me sample web.config code for that.<br />
<br />
2) wcf duplex pattern is possible for asp.net because callback method call invoke at client side.so if asp.net consume then any method can be invoke for call back.<br />
<br />
3) with duplex pattern can we fire any event at client side instead of firing any callback method.<br />
<br />
4) why this below endpoint is require. what does it means and what is the importance of the below endpoint....plzz clarify. if i do not specify this mex endpoint then what could be the problem.<br />
<br />
&lt;endpointcontract="IMetadataExchange"<br />
<br />
binding="mexHttpBinding" address="mex" /&gt;<br />
<br />
thanks<br />&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/wcf/18/10467954/need-few-basic-info-regarding-wcf-program.aspx" target="_self">read more</a>]]></description><pubDate>Thu, 28 Mar 2013 23:01:24 GMT</pubDate></item><item><title><![CDATA[Schema (XSD) to WSDL; how is it done?]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10467428/schema-xsd-to-wsdl-how-is-it-done.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10467428/schema-xsd-to-wsdl-how-is-it-done.aspx]]></link><description><![CDATA[All,<br />
<br />
I have seen one person creating wsdl (server side as well as client proxies)&nbsp;from schema. how is it done? is there any book which can help me on this very subject.. <br />
<br />
Also, I dont know how to create schema; Is there any great book on schema?<br />
<br />
Please let me know if I am missing something..<br />
<br />
Thank you<br />&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/wcf/18/10467428/schema-xsd-to-wsdl-how-is-it-done.aspx" target="_self">read more</a>]]></description><pubDate>Thu, 28 Mar 2013 23:01:53 GMT</pubDate></item><item><title><![CDATA[wcf and azure certification]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10467360/wcf-and-azure-certification.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10467360/wcf-and-azure-certification.aspx]]></link><description><![CDATA[Is it mandatory to have .net certification to write wcf and windows azure certifications? or no need ?&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/wcf/18/10467360/wcf-and-azure-certification.aspx" target="_self">read more</a>]]></description><pubDate>Thu, 28 Mar 2013 23:01:53 GMT</pubDate></item><item><title><![CDATA[Technologies related to wcf]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10466679/technologies-related-to-wcf.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10466679/technologies-related-to-wcf.aspx]]></link><description><![CDATA[I am learning WCF and i want to know what all other concepts that i need to learn when i have to work with WCF. xml is a concept which is needed while working with wcf . similarly what other things have to be learnt?&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/wcf/18/10466679/technologies-related-to-wcf.aspx" target="_self">read more</a>]]></description><pubDate>Thu, 28 Mar 2013 23:01:56 GMT</pubDate></item><item><title><![CDATA[WCF - How to improve "%Time in GC" performance counter?]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10466447/wcf--how-to-improve-time-in-gc-performance-counter.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10466447/wcf--how-to-improve-time-in-gc-performance-counter.aspx]]></link><description><![CDATA[&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/wcf/18/10466447/wcf--how-to-improve-time-in-gc-performance-counter.aspx" target="_self">read more</a>]]></description><pubDate>Thu, 28 Mar 2013 23:01:57 GMT</pubDate></item><item><title><![CDATA[why xsd files created while creating service reference]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10466441/why-xsd-files-created-while-creating-service-reference.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10466441/why-xsd-files-created-while-creating-service-reference.aspx]]></link><description><![CDATA[<p style="margin-bottom: 1em; border: 0px; font-size: 14px; vertical-align: baseline; clear: both; word-wrap: break-word; color: #000000; font-family: arial, 'liberation sans', 'dejavu sans', sans-serif; line-height: 18px;">When I add a WCF service reference in Visual Studio 2010, a directory named Service Reference\ServiceReferenceNamespace is created.</p>
<p style="margin-bottom: 1em; border: 0px; font-size: 14px; vertical-align: baseline; clear: both; word-wrap: break-word; color: #000000; font-family: arial, 'liberation sans', 'dejavu sans', sans-serif; line-height: 18px;">In this directory, there's files named Service.xsd, Service1.xsd, Service2.xsd, Service3.xsd and Service4.xsd. The files are not duplicates - the different files defines different types and elements. When I first created the service refernece, there was just one file but more Service*-files have been added when I've added more DataContract and OperationContracts.</p>
<p style="margin-bottom: 1em; border: 0px; font-size: 14px; vertical-align: baseline; clear: both; word-wrap: break-word; color: #000000; font-family: arial, 'liberation sans', 'dejavu sans', sans-serif; line-height: 18px;">It looks a bit strange that 5 different files are generated and not just one. If I delete the service reference (and hence the directory) and then add it again, the same files are added again.</p>
<p style="margin-bottom: 1em; border: 0px; font-size: 14px; vertical-align: baseline; clear: both; word-wrap: break-word; color: #000000; font-family: arial, 'liberation sans', 'dejavu sans', sans-serif; line-height: 18px;">Can anyone explain why several files are created and not just one?</p>&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/wcf/18/10466441/why-xsd-files-created-while-creating-service-reference.aspx" target="_self">read more</a>]]></description><pubDate>Thu, 28 Mar 2013 23:01:57 GMT</pubDate></item><item><title><![CDATA[Json Response Model]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10464973/json-response-model.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10464973/json-response-model.aspx]]></link><description><![CDATA[I'm a little new to a few of the concepts here so bear with me on this one...<br />
<br />
We send a json call to a WCF service that gets a collection of items....Parties (name or org.) one of the parties properties is an address collection of address items.<br />
<br />
When we send this object back to the client from the server I would like the response to fill a jquery object with the same collection design as it was at the server side. &nbsp;I understand that you can serialize many types. &nbsp;I guess my question is can my response directly fill a custom object or does it stay generic until you sort it out on the client into its own object once the data is returned?<br />
<br />
Also can this object be sent back to the server if the data was modified without decoupling it.<br />
<br />
So....<br />
<br />
Client side send this jquery object as a whole:<br />
jquery object (parties collection with many items, each of those items has property collections for addresses and phone numbers.<br />
<br />
Server side accept the object and do updates or deletes....and then respond back without any decoupling or generic types.<br />
<br />
sorry this is&nbsp;obviously&nbsp;hard for me to explain.<br />
<br />
Thanks<br />
<br />
<br />
<br />&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/wcf/18/10464973/json-response-model.aspx" target="_self">read more</a>]]></description><pubDate>Thu, 28 Mar 2013 23:02:36 GMT</pubDate></item><item><title><![CDATA[No DNS entries exist for host locolhost : in case of NetTcpBinding]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10464325/no-dns-entries-exist-for-host-locolhost--in-case-of-nettcpbinding.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10464325/no-dns-entries-exist-for-host-locolhost--in-case-of-nettcpbinding.aspx]]></link><description><![CDATA[<span style="text-align: -webkit-auto; white-space: normal;">&lt;endpoint address="net.tcp://locolhost:71/service" binding="netTcpBinding"</span><br style="text-align: -webkit-auto;" />
<span style="text-align: -webkit-auto; white-space: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; bindingConfiguration="NetTcpBinding_ourservice" contract="ServiceReference1.ourservice"</span><br style="text-align: -webkit-auto;" />
<span style="text-align: -webkit-auto; white-space: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; name="NetTcpBinding_ourservice"&gt;</span><br style="text-align: -webkit-auto;" />
<span style="text-align: -webkit-auto; white-space: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;identity&gt;</span><br style="text-align: -webkit-auto;" />
<span style="text-align: -webkit-auto; white-space: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;userPrincipalName value="kasibabu_p@zolt.dc" /&gt;</span><br style="text-align: -webkit-auto;" />
<span style="text-align: -webkit-auto; white-space: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</span><strong style="text-align: -webkit-auto;">&nbsp;&lt;dns value="127.0.0.1"/&gt;</strong><br style="text-align: -webkit-auto;" />
<span style="text-align: -webkit-auto; white-space: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/identity&gt;</span><br style="text-align: -webkit-auto;" />
<span style="text-align: -webkit-auto; white-space: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/endpoint&gt;</span><br style="text-align: -webkit-auto;" />
<br style="text-align: -webkit-auto;" />
<span style="text-align: -webkit-auto; white-space: normal;">even also same error for net.tcp binding and why dns always 127.0..01 only[ this is not my system ip address]</span><br style="text-align: -webkit-auto;" />
<span style="text-align: -webkit-auto; white-space: normal;">my ip is :192.168.55.131</span><br style="text-align: -webkit-auto;" />
<span style="text-align: -webkit-auto; white-space: normal;">i specified&nbsp;</span><br style="text-align: -webkit-auto;" />
<span style="white-space: normal; text-align: -webkit-auto;">&nbsp; &nbsp;</span><strong style="text-align: -webkit-auto;">&nbsp;&lt;dns value="<span style="white-space: normal;">192.168.55.131</span>&nbsp;"/&gt;</strong><span style="text-align: -webkit-auto; white-space: normal;">&nbsp;</span><br style="text-align: -webkit-auto;" />
<span style="text-align: -webkit-auto; white-space: normal;">even also error is same</span>&nbsp;: No DSN entries exist for host locolhost&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/wcf/18/10464325/no-dns-entries-exist-for-host-locolhost--in-case-of-nettcpbinding.aspx" target="_self">read more</a>]]></description><pubDate>Thu, 28 Mar 2013 23:02:40 GMT</pubDate></item><item><title><![CDATA[how to Upload Image to WCF Rest Service in application?]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10464134/how-to-upload-image-to-wcf-rest-service-in-application.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10464134/how-to-upload-image-to-wcf-rest-service-in-application.aspx]]></link><description><![CDATA[<pre class="prettyprint" style="color: #000000; font-family: 'segoe ui', tahoma, arial, helvetica, sans-serif; font-size: 12.800000190734863px; margin: 8px; text-align: -webkit-auto;"><span class="typ">Hi</span><span class="pln"> to all,<br />im new to wcf service and i have studied about wcf service little things.<br />&nbsp; I need to create WCF </span><span class="typ">Rest</span><span class="pln"> service to upload images</span><span class="pun">.so please friends give sample site or sample code with explanation to learn this.</span></pre>
<pre class="prettyprint" style="color: #000000; font-family: 'segoe ui', tahoma, arial, helvetica, sans-serif; font-size: 12.800000190734863px; margin: 8px; text-align: -webkit-auto;"><span class="pun"><br /></span></pre>
<pre class="prettyprint" style="color: #000000; font-family: 'segoe ui', tahoma, arial, helvetica, sans-serif; font-size: 12.800000190734863px; margin: 8px; text-align: -webkit-auto;"><span class="pun">pls provide ur valuable coding or tell some site name for having this example ...please guide me friends</span></pre>&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/wcf/18/10464134/how-to-upload-image-to-wcf-rest-service-in-application.aspx" target="_self">read more</a>]]></description><pubDate>Thu, 28 Mar 2013 23:02:41 GMT</pubDate></item><item><title><![CDATA[How can i desable a column of grid view in wpf]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10464128/how-can-i-desable-a-column-of-grid-view-in-wpf.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10464128/how-can-i-desable-a-column-of-grid-view-in-wpf.aspx]]></link><description><![CDATA[<br />
&nbsp; Hi all,<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I am just collecting all the record from emp table into grid view and i want to desable two column of grid view, Is any way to achieve this goal.&nbsp; guide me please....<br />&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/wcf/18/10464128/how-can-i-desable-a-column-of-grid-view-in-wpf.aspx" target="_self">read more</a>]]></description><pubDate>Thu, 28 Mar 2013 23:02:41 GMT</pubDate></item><item><title><![CDATA[Upload image to WCF Rest Service]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10464090/upload-image-to-wcf-rest-service.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10464090/upload-image-to-wcf-rest-service.aspx]]></link><description><![CDATA[Hi to all<br />
<br />
&nbsp;&nbsp; I have created the WCF Rest service to upload images.Now it is working but when i open the uploaded image after converting from stream to image it is showing error can anyone guide what error i am doing.<br />
<br />
Operation Contract :<br />
&nbsp;<br />
&nbsp;[OperationContract]<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [WebInvoke(BodyStyle = WebMessageBodyStyle.Bare, UriTemplate = "/PostImage", Method = "POST")]<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PublicMessage PostImage(Stream obj);<br />
<br />
<br />
Service Definition :<br />
<br />
&nbsp;
<pre class="default prettyprint"><code><span class="kwd">public</span><span class="pln"> </span><span class="typ">PublicMessage</span><span class="pln"> </span><span class="typ">PostImage</span><span class="pun">(</span><span class="typ">Upload</span><span class="pln"> obj</span><span class="pun">)</span><span class="pln"><br />&nbsp; &nbsp; </span><span class="pun">{</span><span class="pln"><br />&nbsp; &nbsp; &nbsp; &nbsp; </span><span class="kwd">byte</span><span class="pun">[]</span><span class="pln"> buffer </span><span class="pun">=</span><span class="pln"> </span><span class="typ">StreamToByte</span><span class="pun">(</span><span class="pln">obj</span><span class="pun">.</span><span class="typ">File</span><span class="pun">);</span><span class="pln"> &nbsp; </span><span class="com">//Function to convert the stream to byte array</span><span class="pln"><br />&nbsp; &nbsp; &nbsp;</span><span class="typ">FileStream</span><span class="pln"> fs </span><span class="pun">=</span><span class="pln"> </span><span class="kwd">new</span><span class="pln"> </span><span class="typ">FileStream</span><span class="pun">(@</span><span class="str">"D:\ShopMonkeyApp\Desert.jpg"</span><span class="pun">,</span><span class="pln"> </span><span class="typ">FileMode</span><span class="pun">.</span><span class="typ">Create</span><span class="pun">,</span><span class="pln"> </span><span class="typ">FileAccess</span><span class="pun">.</span><span class="typ">ReadWrite</span><span class="pun">);</span><span class="pln"><br />&nbsp; &nbsp; &nbsp; &nbsp; </span><span class="typ">BinaryWriter</span><span class="pln"> bw </span><span class="pun">=</span><span class="pln"> </span><span class="kwd">new</span><span class="pln"> </span><span class="typ">BinaryWriter</span><span class="pun">(</span><span class="pln">fs</span><span class="pun">);</span><span class="pln"><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; bw</span><span class="pun">.</span><span class="typ">Write</span><span class="pun">(</span><span class="pln">buffer</span><span class="pun">);</span><span class="pln"><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; bw</span><span class="pun">.</span><span class="typ">Close</span><span class="pun">();</span><span class="pln"><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; </span><span class="kwd">return</span><span class="pln"> </span><span class="kwd">new</span><span class="pln"> </span><span class="typ">PublicMessage</span><span class="pln"> </span><span class="pun">{</span><span class="pln"> </span><span class="typ">Message</span><span class="pln"> </span><span class="pun">=</span><span class="pln"> </span><span class="str">"Recieved the image on server"</span><span class="pln"> </span><span class="pun">};</span><span class="pln"><br />&nbsp; &nbsp; </span><span class="pun">}<br /><br /><br />&nbsp;public static byte[] StreamToByte(Stream stream)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; byte[] buffer = new byte[16 * 1024];<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; using (MemoryStream ms = new MemoryStream())<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int read;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; while ((read = stream.Read(buffer, 0, buffer.Length)) &gt; 0)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ms.Write(buffer, 0, read);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return ms.ToArray();<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br /><br /><br />Client Application :<br /><br />&nbsp;string obj = @"D:\Images\Desert.jpg";<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var c = new System.Net.WebClient();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; c.OpenWrite(string.Concat("http://localhost:50268/shopmonkey.svc", "/PostImage"), "POST");<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; c.Headers[HttpRequestHeader.ContentType] = "application/octet-stream";<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; c.UploadFile("http://localhost:50268/shopmonkey.svc/PostImage"), obj);<br /><br /><br /><br />Thanks &amp; Regards,<br />Vijay<br /><br /></span><span class="pln"></span></code></pre>&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/wcf/18/10464090/upload-image-to-wcf-rest-service.aspx" target="_self">read more</a>]]></description><pubDate>Thu, 28 Mar 2013 23:02:41 GMT</pubDate></item><item><title><![CDATA[how to fetch files on sharepoint with wcf of jquery for metro style apps]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10463951/how-to-fetch-files-on-sharepoint-with-wcf-of-jquery-for-metro-style-apps.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10463951/how-to-fetch-files-on-sharepoint-with-wcf-of-jquery-for-metro-style-apps.aspx]]></link><description><![CDATA[Please suggest me or help me.<br />
<br />
Thanks in advance.<br />&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/wcf/18/10463951/how-to-fetch-files-on-sharepoint-with-wcf-of-jquery-for-metro-style-apps.aspx" target="_self">read more</a>]]></description><pubDate>Thu, 28 Mar 2013 23:02:43 GMT</pubDate></item><item><title><![CDATA[want to make application with wcf]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10463442/want-to-make-application-with-wcf.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10463442/want-to-make-application-with-wcf.aspx]]></link><description><![CDATA[hi....<br />
<br />
actually i want to&nbsp; insert in grid &amp; display by grid by&nbsp; wcf.i done some steps but i did'y use catch proper way..<br />
my steps are:-<br />
<br />
1.create new wcf service.then automatcally generated <br />
a.IService1.cs<br />
<br />
<br />
c.Service1.svc.cs<br />
<br />
<br />
My IService1.cs class<br />
<br />
<br />
using System;<br />
using System.Collections.Generic;<br />
using System.Linq;<br />
using System.Runtime.Serialization;<br />
using System.ServiceModel;<br />
using System.Text;<br />
<br />
namespace WcfService4<br />
{<br />
&nbsp;&nbsp;&nbsp; [ServiceContract]<br />
&nbsp;&nbsp;&nbsp; public interface IService1<br />
&nbsp;&nbsp;&nbsp; {<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [OperationContract]<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; List&lt;UserDetails&gt; GetUserDetails(string Username);<br />
<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [OperationContract]<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; string InsertUserDetails(UserDetails userInfo);<br />
&nbsp;&nbsp;&nbsp; }<br />
<br />
&nbsp;&nbsp;&nbsp; [DataContract]<br />
&nbsp;&nbsp;&nbsp; public class UserDetails<br />
&nbsp;&nbsp;&nbsp; {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; string username = string.Empty;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; string firstname = string.Empty;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [DataMember]<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public string UserName<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; get { return username; }<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; set { username = value; }<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [DataMember]<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public string FirstName<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; get { return firstname; }<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; set { firstname = value; }<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br />
&nbsp;&nbsp;&nbsp;&nbsp; <br />
&nbsp;&nbsp;&nbsp; }<br />
}<br />
<br />
<br />
My:-Service1.svc<br />
<br />
using System.ServiceModel;<br />
using System.Text;<br />
using System.Configuration;<br />
using System.Data;<br />
using System.Data.SqlClient;<br />
<br />
namespace WcfService4<br />
{<br />
&nbsp;&nbsp; <br />
&nbsp;&nbsp;&nbsp; public class Service1 : IService1<br />
&nbsp;&nbsp;&nbsp; {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SqlConnection con = new SqlConnection("Query String");<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public List&lt;UserDetails&gt; GetUserDetails(string Username)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; List&lt;UserDetails&gt; userdetails = new List&lt;UserDetails&gt;();<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; con.Open();<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SqlCommand cmd = new SqlCommand("select * from UserInfo where UserName Like '%'+@Name+'%'", con);<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cmd.Parameters.AddWithValue("@Name", Username);<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SqlDataAdapter da = new SqlDataAdapter(cmd);<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DataTable dt = new DataTable();<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; da.Fill(dt);<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (dt.Rows.Count &gt; 0)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for (int i = 0; i &lt; dt.Rows.Count; i++)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; UserDetails userInfo = new UserDetails();<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; userInfo.UserName = dt.Rows[i]["UserName"].ToString();<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; userInfo.FirstName = dt.Rows[i]["FirstName"].ToString();<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; userdetails.Add(userInfo);<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; con.Close();<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return userdetails;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public string InsertUserDetails(UserDetails userInfo)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; string strMessage = string.Empty;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; con.Open();<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SqlCommand cmd = new SqlCommand("insert into UserInfo(UserName,FirstName) values(@Name,@FName,@LName,@Location)", con);<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cmd.Parameters.AddWithValue("@Name", userInfo.UserName);<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cmd.Parameters.AddWithValue("@FName", userInfo.FirstName);<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int result = cmd.ExecuteNonQuery();<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (result == 1)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; strMessage = userInfo.UserName + " Details inserted successfully";<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; else<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; strMessage = userInfo.UserName + " Details not inserted successfully";<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; con.Close();<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return strMessage;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br />
&nbsp;&nbsp;&nbsp; }<br />
}<br />
<br />
now i<br />
<div style="color: black; line-height: normal; margin-bottom: 0.0001pt;" class="MsoNormal">
<span style="color: #4e4e4e;">Run our service in  browser then i  get one url link then i done copy that URL &amp; right click on wcf application on solution explorer<br />
<o:p></o:p></span></div>
<div style="color: black; line-height: normal; margin-bottom: 0.0001pt;" class="MsoNormal">
<span style="color: #4e4e4e;">&amp; then click the add service reference then one ServiceRefrence1 automatically add..<br />
<br />
then further what should i do.... for running &amp; displaying the grid...<br />
<br />
please help me actually i am new in WCF...<br />
<br />
i am waiting.....<br />
Thanks &amp; Regards<br />
vivek<br />
</span></div>
<br />
<br />
<br />
<br />&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/wcf/18/10463442/want-to-make-application-with-wcf.aspx" target="_self">read more</a>]]></description><pubDate>Thu, 28 Mar 2013 23:02:45 GMT</pubDate></item><item><title><![CDATA[In SilverLight 5 i cannot call WCF Service Randomly using Asynchronous Pattern]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10463274/in-silverlight-5-i-cannot-call-wcf-service-randomly-using-asynchronous-pattern.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10463274/in-silverlight-5-i-cannot-call-wcf-service-randomly-using-asynchronous-pattern.aspx]]></link><description><![CDATA[Hi Friends,<br />
<br />
Below is the Actual Exception when we call WCF Service using SilverLight 5 Application in Asynchronous Pattern.<br />
<br />
Exception Message : <br />
<br />
&nbsp;Stack Trace :&nbsp;&nbsp;&nbsp; at System.ServiceModel.Channels.Remoting.RealProxy.Invoke(Object[] args)<br />
&nbsp;&nbsp; at proxy_2.EndExecuteMethod(SecurityToken&amp; , FaultContract&amp; , IAsyncResult )<br />
&nbsp;&nbsp; at Samyak.Interfaces.ServiceAccessLayer.&lt;&gt;c__DisplayClass5.&lt;OnCallback&gt;b__3()<br />
<br />
and inner exception is as per below.<br />
<br />
{System.Exception: Error HRESULT E_FAIL has been returned from a call to a COM component.<br />
&nbsp;&nbsp; at System.Net.Browser.BrowserHttpWebRequest.InternalEndGetResponse(IAsyncResult asyncResult)<br />
&nbsp;&nbsp; at System.Net.Browser.BrowserHttpWebRequest.&lt;&gt;c__DisplayClassa.&lt;EndGetResponse&gt;b__9(Object sendState)<br />
&nbsp;&nbsp; at System.Net.Browser.AsyncHelper.&lt;&gt;c__DisplayClass4.&lt;BeginOnUI&gt;b__0(Object sendState)}<br />
<br />
<br />
If any one have any idea regarding this issue then Please let me know.<br />
<br />
<br />
Thanks &amp; Regards,<br />
Kishor Dhaduk<br />&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/wcf/18/10463274/in-silverlight-5-i-cannot-call-wcf-service-randomly-using-asynchronous-pattern.aspx" target="_self">read more</a>]]></description><pubDate>Thu, 28 Mar 2013 23:02:46 GMT</pubDate></item><item><title><![CDATA[Hi All, How to create xml document which contains product setup details using wcf ?]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10456856/hi-all-how-to-create-xml-document-which-contains-product-setup-details-using-wcf-.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10456856/hi-all-how-to-create-xml-document-which-contains-product-setup-details-using-wcf-.aspx]]></link><description><![CDATA[&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/wcf/18/10456856/hi-all-how-to-create-xml-document-which-contains-product-setup-details-using-wcf-.aspx" target="_self">read more</a>]]></description><pubDate>Thu, 28 Mar 2013 23:05:06 GMT</pubDate></item><item><title><![CDATA[datatype for size and path variables  in wcf using datamembers]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10456853/datatype-for-size-and-path-variables--in-wcf-using-datamembers.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10456853/datatype-for-size-and-path-variables--in-wcf-using-datamembers.aspx]]></link><description><![CDATA[&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/wcf/18/10456853/datatype-for-size-and-path-variables--in-wcf-using-datamembers.aspx" target="_self">read more</a>]]></description><pubDate>Thu, 28 Mar 2013 23:05:06 GMT</pubDate></item><item><title><![CDATA[how to call treeview methoh using jquery getjson]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10441785/how-to-call-treeview-methoh-using-jquery-getjson.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10441785/how-to-call-treeview-methoh-using-jquery-getjson.aspx]]></link><description><![CDATA[thnks for reply somesh yadav sir bt i have proble that i should take tree view from database&nbsp; and i should call it first in ado.net entity model and next should call it in wcf data service to get url i got the url after that i hve to call it in jquery getjson method i just need to knoe how to call in getjson method to (.js)file if ever help me plz help and thnks alote for reply&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/wcf/18/10441785/how-to-call-treeview-methoh-using-jquery-getjson.aspx" target="_self">read more</a>]]></description><pubDate>Thu, 28 Mar 2013 23:05:08 GMT</pubDate></item><item><title><![CDATA[Using mydump in wcf service]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10351295/using-mydump-in-wcf-service.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10351295/using-mydump-in-wcf-service.aspx]]></link><description><![CDATA[Hi....<br />
&nbsp;<br />
<br />
&nbsp;&nbsp; I am not getting dump database while running this
code in wcf service..Please help me to solve the problem....&nbsp;&nbsp; my code
is......<br />
&nbsp;<br />
&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; Process myProcess = new Process();<br />
&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; myProcess.StartInfo.FileName = "cmd.exe";<br />
&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; myProcess.StartInfo.UseShellExecute = false;<br />
&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; myProcess.StartInfo.WorkingDirectory = "c:\\";<br />
&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; myProcess.StartInfo.RedirectStandardInput = true;<br />
&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; myProcess.StartInfo.RedirectStandardOutput = true;<br />
&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; myProcess.Start();<br />
&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; StreamWriter myStreamWriter = myProcess.StandardInput;<br />
&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; StreamReader mystreamreader = myProcess.StandardOutput;<br />
&nbsp;&nbsp;
&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;
myStreamWriter.WriteLine(Process.Start("C:\\Program Files\\MySQL&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;
\\MySQL Server 5.5\\bin\\mysqldump.exe", " --host=localhost --user=root
--password=sachin mysql -r \"C:\\backup1.sql\" "));<br />
&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; string str = mystreamreader.ReadToEnd();<br />
&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; myStreamWriter.Close();<br />
&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; myProcess.WaitForExit();<br />
&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; myProcess.Close();&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/wcf/18/10351295/using-mydump-in-wcf-service.aspx" target="_self">read more</a>]]></description><pubDate>Thu, 28 Mar 2013 23:05:09 GMT</pubDate></item><item><title><![CDATA[Response.Redirect in a VS2010 WCF Rest application (IIS6)]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10299190/responseredirect-in-a-vs2010-wcf-rest-application-iis6.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10299190/responseredirect-in-a-vs2010-wcf-rest-application-iis6.aspx]]></link><description><![CDATA[Hi All,<br />
<br />
I am having an issue redirecting within a WCF Rest application on IIS 6 Windows Server 2003.&nbsp; Now this works on IIS7 with no problems but when I try on IIS6 I get a 503 response! Has anyone had the same issue?&nbsp; Is there a workaround?<br />
<br />
I use&nbsp; Application_PostRequestHandlerExecute in Global.asax to trap the 404 and&nbsp;&nbsp; <br />
WebOperationContext.Current.OutgoingResponse.StatusCode = System.Net.HttpStatusCode.TemporaryRedirect;<br />
WebOperationContext.Current.OutgoingResponse.Location = url;<br />
<br />
To redirect to an alternate url.&nbsp; I have also tried Response.Redirect! Now there is nothing in the logs that shed light on the issue.<br />
<br />
Now the reason we need this if we cannot match a contract we want to redirect it to another rest server.<br />
<br />
If any one can help I would be grateful.<br />
<br />
Thanks<br />
<br />
Peter<br />
<br />
<p>Solved!</p>
<p>The problem was was with machine routing not the Redirect. Using the machine name directly not localhost solved the problem.&nbsp; It seemed my development machine using IIS7 was setup correctly! Thanks </p>
<p> </p>
<p>&nbsp;</p>
<p></p>&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/wcf/18/10299190/responseredirect-in-a-vs2010-wcf-rest-application-iis6.aspx" target="_self">read more</a>]]></description><pubDate>Sat, 31 Mar 2012 16:00:34 GMT</pubDate></item><item><title><![CDATA[Custom SoapException detail not returned in WCF web service]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10264983/custom-soapexception-detail-not-returned-in-wcf-web-service.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10264983/custom-soapexception-detail-not-returned-in-wcf-web-service.aspx]]></link><description><![CDATA[<div class="post-text">
<p>I'm building a WCF web service inside a Web
Application using Visual Studio 2010. The code of the service is
structured as a try-catch-finally block, where the catch block ends with</p>
<pre class="lang-cs prettyprint"><code><span class="kwd">throw</span><span class="pln"> </span><span class="kwd">new</span><span class="pln"> </span><span class="typ">SoapException</span><span class="pun">(</span><span class="pln">e</span><span class="pun">.</span><span class="typ">Message</span><span class="pun">,</span><span class="pln"> </span><span class="typ">Soap12FaultCodes</span><span class="pun">.</span><span class="typ">ReceiverFaultCode</span><span class="pun">,</span><span class="pln"> &nbsp;</span><span class="str">"Target Application"</span><span class="pun">,</span><span class="pln"> myCustomXmlDetailElement</span><span class="pun">);</span><span class="pln"><br /></span></code></pre>
<p>The problem is, if I test the service using WcfTestClient.exe causing the exception I do not see my custom xml inside the <code>detail</code> node of <code>&lt;s:Fault&gt;</code>, but this:</p>
<pre class="lang-cs prettyprint"><code><span class="str">&lt;detail&gt;</span><span class="pln"><br />&nbsp; </span><span class="pun">&lt;</span><span class="typ">ExceptionDetail</span><span class="pln"> xmlns</span><span class="pun">=</span><span class="str">"http://schemas.datacontract.org/2004/07/System.ServiceModel"</span><span class="pln"> xmlns</span><span class="pun">:</span><span class="pln">i</span><span class="pun">=</span><span class="str">"http://www.w3.org/2001/XMLSchema-instance"</span><span class="pun">&gt;</span><span class="pln"><br />&nbsp; </span><span class="pun">&lt;</span><span class="typ">HelpLink</span><span class="pln"> i</span><span class="pun">:</span><span class="pln">nil</span><span class="pun">=</span><span class="str">"true"</span><span class="pln"> </span><span class="pun">/&gt;</span><span class="pln"><br />&nbsp; </span><span class="pun">&lt;</span><span class="typ">InnerException</span><span class="pln"> i</span><span class="pun">:</span><span class="pln">nil</span><span class="pun">=</span><span class="str">"true"</span><span class="pln"> </span><span class="pun">/&gt;</span><span class="pln"><br />&nbsp; </span><span class="pun">&lt;</span><span class="typ">Message</span><span class="pun">&gt;</span><span class="typ">Illegal</span><span class="pln"> characters </span><span class="kwd">in</span><span class="pln"> path</span><span class="pun">.&lt;/</span><span class="typ">Message</span><span class="pun">&gt;</span><span class="pln"><br />&nbsp; </span><span class="pun">&lt;</span><span class="typ">StackTrace</span><span class="pun">&gt;</span><span class="pln"> &nbsp;very </span><span class="kwd">long</span><span class="pln"> stack trace</span><span class="pun">&lt;/</span><span class="typ">StackTrace</span><span class="pun">&gt;</span><span class="pln"><br />&nbsp; </span><span class="pun">&lt;</span><span class="typ">Type</span><span class="pun">&gt;</span><span class="typ">System</span><span class="pun">.</span><span class="typ">Web</span><span class="pun">.</span><span class="typ">Services</span><span class="pun">.</span><span class="typ">Protocols</span><span class="pun">.</span><span class="typ">SoapException</span><span class="pun">&lt;/</span><span class="typ">Type</span><span class="pun">&gt;</span><span class="pln"><br />&nbsp; </span><span class="pun">&lt;/</span><span class="typ">ExceptionDetail</span><span class="pun">&gt;</span><span class="pln"><br /></span><span class="pun">&lt;/</span><span class="pln">detail</span><span class="pun">&gt;`</span><span class="pln"><br /></span></code></pre>
<p>I should note, the class that implements the service contract has the </p>
<p><code>[ServiceBehavior(IncludeExceptionDetailInFaults = true)]</code> and  </p>
<p><code>[AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]</code></p>
<p>attributes and the <code>serviceHostingEnvironment</code> node in the web.config has the attribute <code>aspNetCompatibilityEnabled="true"</code>.
I guess the first one is responsible for the stack trace and the other
two allow me to host the service inside ASP.NET, but could another
missing option be the culprit?</p>
<p>Thank you</p>
</div>&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/wcf/18/10264983/custom-soapexception-detail-not-returned-in-wcf-web-service.aspx" target="_self">read more</a>]]></description><pubDate>Sat, 31 Mar 2012 16:00:40 GMT</pubDate></item><item><title><![CDATA[Setting the original WSDL with externalMetadataLocation doesn't work]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10264981/setting-the-original-wsdl-with-externalmetadatalocation-doesnt-work.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10264981/setting-the-original-wsdl-with-externalmetadatalocation-doesnt-work.aspx]]></link><description><![CDATA[<div class="post-text">
<p>I'm building a WCF web service inside a Web
Application with C#, and since I need to include schema validation for
some Xml parameters I want to set a custom wsdl for the service where I
use <code>&lt;xs:include schemaLocation="&lt;schemafilename&gt;.xsd"/&gt;</code> inside the <code>&lt;wsdl:types&gt;</code> node.</p>
<p>I've learned that the place to do this is</p>
<pre class="default prettyprint"><code><span class="pln">&lt;serviceMetadata externalMetadataLocation="</span><span class="tag">&lt;wsdlfilename&gt;</span><span class="pln">.wsdl"/&gt;<br /></span></code></pre>
<p>but I can't get it to work. What baffles me is that it doesn't work
even if I let the service generate its own wsdl (that is, not setting
the attribute), access the generated metadata through <code>&lt;serviceurl&gt;/&lt;servicename&gt;.svc?wsdl</code>, save it to a file and then set this file as the externalMetadataLocation (using <code>..\&lt;wsdlfilename&gt;.wsdl</code>). WcfTestClient gives me this:</p>
<pre class="default prettyprint"><code><span class="typ">Warning</span><span class="pun">:</span><span class="pln"> </span><span class="typ">No</span><span class="pln"> code was generated</span><span class="pun">.</span><span class="typ">If</span><span class="pln"> you were trying to generate a client</span><span class="pun">,</span><span class="pln"> </span><span class="kwd">this</span><span class="pln"> could be<br />because the metadata documents did </span><span class="kwd">not</span><span class="pln"> contain any valid contracts </span><span class="kwd">or</span><span class="pln"> servicesor<br />because all contracts</span><span class="pun">/</span><span class="pln">services were discovered to exist </span><span class="kwd">in</span><span class="pln"> </span><span class="pun">/</span><span class="pln">reference assemblies</span><span class="pun">.</span><span class="pln"><br /></span><span class="typ">Verify</span><span class="pln"> that you passed all the metadata documents to the tool</span><span class="pun">.</span><span class="typ">Warning</span><span class="pun">:</span><span class="pln"> </span><span class="typ">If</span><span class="pln"> you would<br />like to generate data contracts </span><span class="kwd">from</span><span class="pln"> schemas make sure to </span><span class="kwd">use</span><span class="pln"> the </span><span class="pun">/</span><span class="pln">dataContractOnly<br />option</span><span class="pun">.</span><span class="pln"><br /></span></code></pre>
<p>Sometimes it gives me more complicated errors, like</p>
<pre class="default prettyprint"><code><span class="typ">Error</span><span class="pun">:</span><span class="pln"> </span><span class="typ">Cannot</span><span class="pln"> </span><span class="kwd">import</span><span class="pln"> wsdl</span><span class="pun">:</span><span class="pln">port<br /></span><span class="typ">Detail</span><span class="pun">:</span><span class="pln"> </span><span class="typ">Cannot</span><span class="pln"> find definition </span><span class="kwd">for</span><span class="pln"> http</span><span class="pun">:</span><span class="com">//tempuri.org/:BasicHttpBinding_IProcessi. &nbsp;Service Description with namespace http://tempuri.org/ is missing.Parameter name: name</span><span class="pln"><br /></span><span class="typ">XPath</span><span class="pln"> to </span><span class="typ">Error</span><span class="pln"> </span><span class="typ">Source</span><span class="pun">:</span><span class="pln"> </span><span class="com">//wsdl:definitions[@targetNamespace='http://www.archinet.it/HRSuite/Processi/']/wsdl:service[@name='Processi']/wsdl:port[@name='BasicHttpBinding_IProcessi']</span><span class="pln"><br /><br /></span><span class="typ">Error</span><span class="pun">:</span><span class="pln"> </span><span class="typ">Cannot</span><span class="pln"> </span><span class="kwd">import</span><span class="pln"> wsdl</span><span class="pun">:</span><span class="pln">portType<br /></span><span class="typ">Detail</span><span class="pun">:</span><span class="pln"> </span><span class="typ">An</span><span class="pln"> exception was thrown </span><span class="kwd">while</span><span class="pln"> running a WSDL </span><span class="kwd">import</span><span class="pln"> extension</span><span class="pun">:</span><span class="pln"> </span><span class="typ">System</span><span class="pun">.</span><span class="typ">ServiceModel</span><span class="pun">.</span><span class="typ">Description</span><span class="pun">.</span><span class="typ">DataContractSerializerMessageContractImporter</span><span class="pln"><br /><br /></span><span class="typ">Error</span><span class="pun">:</span><span class="pln"> </span><span class="typ">Schema</span><span class="pln"> </span><span class="kwd">with</span><span class="pln"> target </span><span class="kwd">namespace</span><span class="pln"> </span><span class="str">'http://www.archinet.it/HRSuite/Processi/'</span><span class="pln"> could </span><span class="kwd">not</span><span class="pln"> be found</span><span class="pun">.</span><span class="pln"><br /></span><span class="typ">XPath</span><span class="pln"> to </span><span class="typ">Error</span><span class="pln"> </span><span class="typ">Source</span><span class="pun">:</span><span class="pln"> </span><span class="com">//wsdl:definitions[@targetNamespace='http://www.archinet.it/HRSuite/Processi/']/wsdl:portType[@name='IProcessi']</span><span class="pln"><br /></span></code></pre>
<p>I'm not really all that skilled with xml namespaces yet, so it might
as well be something about them, but I've tried both with and without
namespaces, so I'm at a loss</p>
<p>Thank you</p>
</div>&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/wcf/18/10264981/setting-the-original-wsdl-with-externalmetadatalocation-doesnt-work.aspx" target="_self">read more</a>]]></description><pubDate>Sat, 31 Mar 2012 16:00:40 GMT</pubDate></item><item><title><![CDATA[Web Service mit WS-Security (Oasis) im Header]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10254240/web-service-mit-wssecurity-oasis-im-header.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10254240/web-service-mit-wssecurity-oasis-im-header.aspx]]></link><description><![CDATA[<p>hallo,</p>
<p>i have a client which will use a Webservice. I found a post in the forum but no solution. I have to add a header to an existing weservice function. </p>
<p>&nbsp;</p>
<p>e.g. Header i have to add:</p>
<p><span style="font-family: courier new; font-size: 10pt;">&lt;soapenv:Envelope xmlns:soapenv="</span><span style="font-size: 12pt;"><a href="http://schemas.xmlsoap.org/soap/envelope/"><tt><span style="color: #0000ff; font-size: 10pt; text-decoration: none; text-underline: none;">http://schemas.xmlsoap.org/soap/envelope/"&gt;</span></tt></a> <br />
</span><tt><span style="font-size: 10pt;">&nbsp; &nbsp;&lt;soapenv:Header xmlns:wsa="</span></tt><span style="font-size: 12pt;"><a href="http://www.w3.org/2005/08/addressing"><tt><span style="color: #0000ff; font-size: 10pt; text-decoration: none; text-underline: none;">http://www.w3.org/2005/08/addressing"&gt;</span></tt></a> <br />
</span><tt><span style="font-size: 10pt;">&nbsp; &nbsp; &nbsp; &lt;wsse:Security soapenv:mustUnderstand="1" xmlns:wsse="</span></tt><span style="font-size: 12pt;"><a href="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"><tt><span style="color: #0000ff; font-size: 10pt; text-decoration: none; text-underline: none;">http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"&gt;</span></tt></a> <br />
</span><tt><span style="font-size: 10pt;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;wsse:UsernameToken&gt;</span></tt><span style="font-size: 12pt;"> <br />
</span><tt><span style="font-size: 10pt;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;wsse:Username&gt;...&lt;/wsse:Username&gt;</span></tt><span style="font-size: 12pt;"> <br />
</span><tt><span style="font-size: 10pt;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;wsse:Password Type="</span></tt><span style="font-size: 12pt;"><a href="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText"><tt><span style="color: #0000ff; font-size: 10pt; text-decoration: none; text-underline: none;">http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText"&gt;...&lt;/wsse:Password&gt;</span></tt></a> <br />
</span><tt><span style="font-size: 10pt;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/wsse:UsernameToken&gt;</span></tt><span style="font-size: 12pt;"> <br />
</span><tt><span style="font-size: 10pt;">&nbsp; &nbsp; &nbsp; &lt;/wsse:Security&gt;</span></tt><span style="font-size: 12pt;"> <br />
</span><tt><span style="font-size: 10pt;">&nbsp; &nbsp; &nbsp; &lt;wsa:To&gt;</span></tt><span style="font-size: 12pt;"><a href="https://...</wsa:To>"><tt><span style="color: #0000ff; font-size: 10pt; text-decoration: none; text-underline: none;">https://...&lt;/wsa:To&gt;</span></tt></a> <br />
</span><tt><span style="font-size: 10pt;">&nbsp; &nbsp; &nbsp; &lt;wsa:MessageID&gt;urn:uuid:...&lt;/wsa:MessageID&gt;</span></tt><span style="font-size: 12pt;"> <br />
</span><tt><span style="font-size: 10pt;">&nbsp; &nbsp; &nbsp; &lt;wsa:Action&gt;<a href="http://schemas.xmlsoap.org/ws/2005/02/trust/RST/SCT%3c/wsa:Action"><span style="color: #0000ff;">http://schemas.xmlsoap.org/ws/2005/02/trust/RST/SCT&lt;/wsa:Action</span></a>&gt;</span></tt><span style="font-size: 12pt;"> <br />
</span><tt><span style="font-size: 10pt;">&nbsp; &nbsp;&lt;/soapenv:Header&gt;</span></tt><span style="font-size: 12pt;"> <br />
<br />
</span>but don't know how</p>
<p>&nbsp;</p>
<p>many thanks</p>
<p>&nbsp;</p>
<p>lomeco</p>&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/wcf/18/10254240/web-service-mit-wssecurity-oasis-im-header.aspx" target="_self">read more</a>]]></description><pubDate>Sat, 31 Mar 2012 16:00:56 GMT</pubDate></item><item><title><![CDATA[Set headers to CreateSequence message]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10247057/set-headers-to-createsequence-message.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10247057/set-headers-to-createsequence-message.aspx]]></link><description><![CDATA[Hi,<br />
<br />
I have a WCF client to a WCF session service with reliable messages.<br />
In this scenario the first call that arrives at the service, before the first method called from client is the CreateSequence request.<br />
<br />
So if i call proxy.StartSession() the service will receive 2 requests: 1st one is the CreateSequence request to establish the session, than 2nd one is StartSession request.<br />
<br />
How can i set a custom SOAP header or http header to the CreateSequence request?<br />
<br />
This code only adds the headers to the StartSession request:<br />
<br />
using (OperationContextScope scope = new OperationContextScope((IClientChannel)proxy))<br />
{<br />
HttpRequestMessageProperty httpRequestProperty = GetHttpReqProp();<br />
httpRequestProperty.Headers.Add("token", "1");<br />
OperationContext.Current.OutgoingMessageProperties[HttpRequestMessageProperty.Name] = httpRequestProperty;<br />
MessageHeader header = MessageHeader.CreateHeader("token","ns","1");<br />
OperationContext.Current.OutgoingMessageHeaders.Add(header);<br />
proxy.StartSession("aaa");<br />
<p>}</p>
<p>&nbsp;</p>
<p></p>
Thank you,<br />
Adrya&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/wcf/18/10247057/set-headers-to-createsequence-message.aspx" target="_self">read more</a>]]></description><pubDate>Sat, 31 Mar 2012 16:01:05 GMT</pubDate></item><item><title><![CDATA[SSIS WCF ProxyNamespace Ohhhhh my!]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10233612/ssis-wcf-proxynamespace-ohhhhh-my.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10233612/ssis-wcf-proxynamespace-ohhhhh-my.aspx]]></link><description><![CDATA[<span style="color: #1f5080; font-family: verdana, arial, tahoma; -webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px;">
<table width="100%" cellspacing="0" cellpadding="0">
    <tbody>
        <tr>
            <td valign="top" class="smalltxt" style="font-family: arial, sans-serif; color: #444444; font-size: 13px; font-weight: normal;"><span id="_ctl5_ctlTopic_ctlPanelBar_ctlTopicsRepeater__ctl4_lblFullMessage">I've been struggling with this for a day and going on half now. Any help is greatly appreciated.&nbsp;<br />
            <br />
            I have a WCF service hosted by my local site. Binginds are configured for basicHTTP with no authentication. Service has been tested with WCFTestClient and it works fine. I am not specifying a namespace for the service contract.&nbsp;<br />
            <br />
            Enter SSIS. Created the HTTP Connection and added the WebService Task. Downloaded the WSDL. COnfigured everything to the best of my knowledge and when I execute I get the following Exception:&nbsp;<br />
            [Web Service Task] Error: An error occurred with the following error message: "Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebserviceTaskException: Could not execute the Web method. The error is: Method 'ProxyNamespace.Transactions.ImportTransactions' not found..<br />
            at Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebMethodInvokerProxy.InvokeMethod(DTSWebMethodInfo methodInfo, String serviceName, Object connection)<br />
            at Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebServiceTaskUtil.Invoke(DTSWebMethodInfo methodInfo, String serviceName, Object connection, VariableDispenser taskVariableDispenser)<br />
            at Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebServiceTask.executeThread()".<br />
            <br />
            <br />
            <br />
            <br />
            So I read somewhere that the there was a problem with the importing of the schemas for the WSDL and so I removed the Tempuri.org line. Got a new error. At this point I went back the WCF service contract and added a namespace. Rebuild the solution and tested again with WCFTestClient.exe and it worked as expected. Went back to the SSIS project and downloaded the WSDL again. Verified that the Tempuri.org reference was gone from the WSDL. Now I'm getting the following error when executing the Task:&nbsp;<br />
            <br />
            <br />
            [Web Service Task] Error: An error occurred with the following error message: "Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebserviceTaskException: System.ArgumentException: Cannot find definition for KHE.PaymentCenter.Web.Services:ITransactions. Service Description with namespace KHE.PaymentCenter.Web.Services is missing.<br />
            Parameter name: name<br />
            at System.Web.Services.Description.ServiceDescriptionCollection.GetServiceDescription(XmlQualifiedName name)<br />
            at System.Web.Services.Description.ServiceDescriptionCollection.GetPortType(XmlQualifiedName name)<br />
            at System.Web.Services.Description.ProtocolImporter.GenerateCode(CodeNamespace codeNamespace, ImportContext importContext, Hashtable exportContext)<br />
            at System.Web.Services.Description.ServiceDescriptionImporter.Import(CodeNamespace codeNamespace, ImportContext importContext, Hashtable exportContext, StringCollection warnings)<br />
            at System.Web.Services.Description.ServiceDescriptionImporter.Import(CodeNamespace codeNamespace, CodeCompileUnit codeCompileUnit)<br />
            at Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebMethodInvoker.generateProxy(ServiceDescriptionCollection sdCollection, XmlSchemas schemas)<br />
            at Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebServiceTaskUtil.Invoke(DTSWebMethodInfo methodInfo, String serviceName, Object connection, VariableDispenser taskVariableDispenser)<br />
            at Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebServiceTask.executeThread()".<br />
            </span></td>
        </tr>
    </tbody>
</table>
</span>&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/wcf/18/10233612/ssis-wcf-proxynamespace-ohhhhh-my.aspx" target="_self">read more</a>]]></description><pubDate>Sat, 31 Mar 2012 16:01:24 GMT</pubDate></item><item><title><![CDATA[How to convert binary image into Dicom image]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10218798/how-to-convert-binary-image-into-dicom-image.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10218798/how-to-convert-binary-image-into-dicom-image.aspx]]></link><description><![CDATA[How to convert binary image into Dicom image&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/wcf/18/10218798/how-to-convert-binary-image-into-dicom-image.aspx" target="_self">read more</a>]]></description><pubDate>Sat, 31 Mar 2012 16:01:43 GMT</pubDate></item><item><title><![CDATA[How to create wcf service in vb.net that will connect infopath form to]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10216533/how-to-create-wcf-service-in-vbnet-that-will-connect-infopath-form-to.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10216533/how-to-create-wcf-service-in-vbnet-that-will-connect-infopath-form-to.aspx]]></link><description><![CDATA[I have been trying to find definitive info on this for a few days now and I am getting very frustrated. I need to build a web service to allow my infopath form to talk to my sql server database. I am using vs 2010 and it does not seem to have an option for creating a web service but it does have wcf service. I don't know what kind of code to use to import the infopath field data and transfer it into a sql server db table. If anybody can help me or point me in the right direction I would really appreciate it. Im pretty lost here and my boss needs me to get this done asap.&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/wcf/18/10216533/how-to-create-wcf-service-in-vbnet-that-will-connect-infopath-form-to.aspx" target="_self">read more</a>]]></description><pubDate>Sat, 31 Mar 2012 16:01:47 GMT</pubDate></item><item><title><![CDATA[How to bind to net.msmq from WF4 Receive Activity]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10216006/how-to-bind-to-netmsmq-from-wf4-receive-activity.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10216006/how-to-bind-to-netmsmq-from-wf4-receive-activity.aspx]]></link><description><![CDATA[<p>Hi all,</p>
<p>Can someone tell me if this is even possible with a transactional message queue?<br />
<br />
I am new to WF4 and WCF and I have seached for days looking for how I coud do this from my self-hosted workflow service. The only sample I found was using non-transactional queue, which I managed to get working. As soon as I changed the MSMQ to&nbsp;a transactional queue and make&nbsp;what I&nbsp;believe are the&nbsp;necessary changes for the binding/endpoints to handle&nbsp;a transactional queue, I only ever got the first message from my queue.</p>
<p>I posted a question regarding this yesterday, with code. Since then I moved the same code&nbsp;to a console app to test and found that my workflow is aborting, which is why I am only ever receiving a singe message.</p>
<p><a href="http://social.msdn.microsoft.com/Forums/en-US/wfprerelease/thread/7785d508-b16f-46dd-b82f-23f1aea5d2e9"><font color="#0066dd">http://social.msdn.microsoft.com/Forums/en-US/wfprerelease/thread/7785d508-b16f-46dd-b82f-23f1aea5d2e9</font></a></p>
<p >Am I using workflows correctly? What is my workflow aborting on? I've tried stepping through, and added the Fault handler to maybe get some exeption information, but it is null. I added ETW tracking but is does not tell me anything useful either.<br />
<br />
Thanks in advance for any help.<br />
<br />
Sheri</p>&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/wcf/18/10216006/how-to-bind-to-netmsmq-from-wf4-receive-activity.aspx" target="_self">read more</a>]]></description><pubDate>Sat, 31 Mar 2012 16:01:47 GMT</pubDate></item><item><title><![CDATA[Client WCF Connecting to Axis Web Service over https and certificate]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10203828/client-wcf-connecting-to-axis-web-service-over-https-and-certificate.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10203828/client-wcf-connecting-to-axis-web-service-over-https-and-certificate.aspx]]></link><description><![CDATA[Can anybody help me with this error:<br />
<br />
<span style="font-size: 11pt;">The content type text/xml;charset=utf-8 of the response message does not match the content type of the binding (application/soap+xml; charset=utf-8). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. The first 1024 bytes </span>:<br />
<br />
I Wrote then client Service (WinAPP) over framework 3.5 WCF c#<br />
<br />
this is my config<br />
<br />
<font color="#0000ff" size="2"><font color="#0000ff" size="2">
<p>&lt;<font color="#a31515" size="2"><font color="#a31515" size="2">system.serviceModel</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">&gt;
<p>&lt;<font color="#a31515" size="2"><font color="#a31515" size="2">behaviors</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">&gt;
<p>&lt;<font color="#a31515" size="2"><font color="#a31515" size="2">endpointBehaviors</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">&gt;
<p>&lt;<font color="#a31515" size="2"><font color="#a31515" size="2">behavior</font></font><font color="#0000ff" size="2"> </font><font color="#ff0000" size="2"><font color="#ff0000" size="2">name</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">=</font></font><font size="2">"</font><font color="#0000ff" size="2"><font color="#0000ff" size="2">ClientCertificateBehavior</font></font><font size="2">"</font><font color="#0000ff" size="2"><font color="#0000ff" size="2">&gt;
<p>&lt;<font color="#a31515" size="2"><font color="#a31515" size="2">clientCredentials</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">&gt;
<p>&lt;<font color="#a31515" size="2"><font color="#a31515" size="2">clientCertificate</font></font></p>
</font></font></p>
<p>&nbsp;</p>
</font></font></p>
<p>&nbsp;</p>
</font></font></p>
<p>&nbsp;</p>
</font></font></p>
<p>&nbsp;</p>
</font></font></p>
<p>&nbsp;</p>
</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">
<p><font color="#ff0000" size="2"><font color="#ff0000" size="2">x509FindType</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">=</font></font><font size="2">"</font><font color="#0000ff" size="2"><font color="#0000ff" size="2">FindBySubjectName</font></font><font size="2">"</font></p>
</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">
<p><font color="#ff0000" size="2"><font color="#ff0000" size="2">storeName</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">=</font></font><font size="2">"</font><font color="#0000ff" size="2"><font color="#0000ff" size="2">My</font></font><font size="2">"</font></p>
</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">
<p><font color="#ff0000" size="2"><font color="#ff0000" size="2">findValue</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">=</font></font><font size="2">"thecert</font><font size="2">"</font></p>
</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">
<p><font color="#ff0000" size="2"><font color="#ff0000" size="2">storeLocation</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">=</font></font><font size="2">"</font><font color="#0000ff" size="2"><font color="#0000ff" size="2">CurrentUser</font></font><font size="2">"</font><font color="#0000ff" size="2"><font color="#0000ff" size="2">/&gt;
<p>&lt;/<font color="#a31515" size="2"><font color="#a31515" size="2">clientCredentials</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">&gt;
<p>&lt;/<font color="#a31515" size="2"><font color="#a31515" size="2">behavior</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">&gt; <br />
<br />
<p><font color="#0000ff" size="2"><font color="#0000ff" size="2">&lt;/</font></font><font color="#a31515" size="2"><font color="#a31515" size="2">endpointBehaviors</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">&gt;
<p>&lt;/<font color="#a31515" size="2"><font color="#a31515" size="2">behaviors</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">&gt;
<p>&lt;<font color="#a31515" size="2"><font color="#a31515" size="2">bindings</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">&gt;<br />
</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">&lt;</font></font><font color="#a31515" size="2"><font color="#a31515" size="2">wsHttpBinding</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">&gt;
<p>&lt;<font color="#a31515" size="2"><font color="#a31515" size="2">binding</font></font><font color="#0000ff" size="2"> </font><font color="#ff0000" size="2"><font color="#ff0000" size="2">name</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">=</font></font><font size="2">"</font><font color="#0000ff" size="2"><font color="#0000ff" size="2">Binding1</font></font><font size="2">"</font><font color="#0000ff" size="2"><font color="#0000ff" size="2">&gt;
<p>&lt;<font color="#a31515" size="2"><font color="#a31515" size="2">security</font></font><font color="#0000ff" size="2"> </font><font color="#ff0000" size="2"><font color="#ff0000" size="2">mode</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">=</font></font><font size="2">"</font><font color="#0000ff" size="2"><font color="#0000ff" size="2">Transport</font></font><font size="2">"</font><font color="#0000ff" size="2"><font color="#0000ff" size="2">&gt;
<p>&lt;<font color="#a31515" size="2"><font color="#a31515" size="2">transport</font></font><font color="#0000ff" size="2"> </font><font color="#ff0000" size="2"><font color="#ff0000" size="2">clientCredentialType</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">=</font></font><font size="2">"</font><font color="#0000ff" size="2"><font color="#0000ff" size="2">Certificate</font></font><font size="2">"</font><font color="#0000ff" size="2"><font color="#0000ff" size="2"> /&gt;
<p>&lt;/<font color="#a31515" size="2"><font color="#a31515" size="2">security</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">&gt;
<p>&lt;/<font color="#a31515" size="2"><font color="#a31515" size="2">binding</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">&gt; <br />
<br />
<p>&lt;/<font color="#a31515" size="2"><font color="#a31515" size="2">wsHttpBinding</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">&gt;
<p>&lt;/<font color="#a31515" size="2"><font color="#a31515" size="2">bindings</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">&gt;
<p>&lt;<font color="#a31515" size="2"><font color="#a31515" size="2">client</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">&gt;
<p>&lt;<font color="#a31515" size="2"><font color="#a31515" size="2">endpoint</font></font><font color="#0000ff" size="2"> </font><font color="#ff0000" size="2"><font color="#ff0000" size="2">address</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">="</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2"><a href="https://serveraxis/services/service"><font color="#3681cc">https://serveraxis/services/service</font></a>" &lt;!--change for private --&gt;</font></font> </p>
</font></font></p>
<p>&nbsp;</p>
</font></font></p>
<p>&nbsp;</p>
</font></font></p>
</font></font></p>
</font></font></p>
</font></font></p>
</font></font></p>
</font></font></p>
</font></font></p>
</font></font></p>
</font></font></p>
</font></font></p>
</font></font></p>
</font></font></p>
<p>&nbsp;</p>
</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">
<p><font color="#ff0000" size="2"><font color="#ff0000" size="2">behaviorConfiguration</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">=</font></font><font size="2">"</font><font color="#0000ff" size="2"><font color="#0000ff" size="2">ClientCertificateBehavior</font></font><font size="2">"</font></p>
</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">
<p><font color="#ff0000" size="2"><font color="#ff0000" size="2">binding</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">=</font></font><font size="2">"</font><font color="#0000ff" size="2"><font color="#0000ff" size="2">wsHttpBinding</font></font><font size="2">"</font></p>
</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">
<p><font color="#ff0000" size="2"><font color="#ff0000" size="2">bindingConfiguration</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">=</font></font><font size="2">"</font><font color="#0000ff" size="2"><font color="#0000ff" size="2">Binding1</font></font><font size="2">"</font><font color="#0000ff" size="2"> </font><font color="#ff0000" size="2"><font color="#ff0000" size="2">contract</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">=</font></font><font size="2">"theservice.Interface</font><font size="2">"</font></p>
</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">
<p><font color="#ff0000" size="2"><font color="#ff0000" size="2">name</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">=</font></font><font size="2">"endpointname</font><font size="2">"</font><font color="#0000ff" size="2"><font color="#0000ff" size="2"> /&gt;
<p>&lt;/<font color="#a31515" size="2"><font color="#a31515" size="2">client</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">&gt; <br />
<p>&lt;/<font color="#a31515" size="2"><font color="#a31515" size="2">system.serviceModel</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">&gt;</font></font></p>
</font></font></p>
<p>&nbsp;</p>
<br />
<br />
</font></font></p>
<p>&nbsp;</p>
THKS A LOT<br />
<br />
</font></font>&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/wcf/18/10203828/client-wcf-connecting-to-axis-web-service-over-https-and-certificate.aspx" target="_self">read more</a>]]></description><pubDate>Sat, 31 Mar 2012 16:02:06 GMT</pubDate></item><item><title><![CDATA[SoapMapper string could not be found HRESULT=0x80004005]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10198439/soapmapper-string-could-not-be-found-hresult0x80004005.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10198439/soapmapper-string-could-not-be-found-hresult0x80004005.aspx]]></link><description><![CDATA[I am getting the error below when trying to use this code:<br />
&nbsp;&nbsp;&nbsp; set objSoapClient = Server.CreateObject("MSSOAP.SoapClient30")<br />
&nbsp;&nbsp; &nbsp;objSoapClient.ClientProperty("ServerHTTPRequest") = True<br />
&nbsp;&nbsp; &nbsp;objSoapClient.mssoapinit "https://www-03xpreprod.ibm.com/ibm/password/vendor/validate/services/IBMDSig?wsdl"<br />
<br />
<font size="2" face="Arial">SoapMapper:The schema definition with a
targetnamespace of http://schemas.xmlsoap.org/soap/encoding/ for
SoapMapper string could not be found HRESULT=0x80004005: Unspecified
error
- SoapMapper:The SoapMapper for element string could not be created
HRESULT=0x80004005: Unspecified error
- WSDLOperation:Initialization of a SoapMapper for operation verify
failed HRESULT=0x80004005: Unspecified error
- WSDLOperation:Initializing of the input message failed for operation
verify HRESULT=0x80004005: Unspecified error
- WSDLPort:An operation for port IBMDSig could not be initialized
HRESULT=0x80004005: Unspecified error
- WSDLPort:Analyzing the binding information for port IBMDSig failed
HRESULT=0x80004005: Unspecified error
- WSDLService:Initialization of the port for service IBMDSigService
failed HRESULT=0x80004005: Unspecified error
- WSDLReader:Analyzing the WSDL file failed HRESULT=0x80004005:
Unspecified error
- Client:One of the parameters supplied is invalid. HRESULT=0x80070057:
The parameter is incorrect.
</font><br />
<br />
It looks to be an issue with previously it working fine xsd:string but now with the WSDL having SOAP-ENC:string, it gives the above error. Any idea how to resolve this issue? Thanks for all your help in advance.&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/wcf/18/10198439/soapmapper-string-could-not-be-found-hresult0x80004005.aspx" target="_self">read more</a>]]></description><pubDate>Sat, 31 Mar 2012 16:02:15 GMT</pubDate></item><item><title><![CDATA[System.Web.Services.Protocols.SoapException: Internal Error occured]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10195713/systemwebservicesprotocolssoapexception-internal-error-occured.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10195713/systemwebservicesprotocolssoapexception-internal-error-occured.aspx]]></link><description><![CDATA[I am getting the below error message frequently.<br />
<br />
System.Web.Services.Protocols.SoapException: System.Web.Services.Protocols.SoapException: Internal Error occured while processing your request<br />
<br />
and also <br />
<br />
<strong>System.Net.WebException: The operation has timed-out</strong><br />
<br />
What is the difference between the above two error messages and how to resolve them..&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/wcf/18/10195713/systemwebservicesprotocolssoapexception-internal-error-occured.aspx" target="_self">read more</a>]]></description><pubDate>Sat, 31 Mar 2012 16:02:28 GMT</pubDate></item><item><title><![CDATA[wcf service method returning xml/json data]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10195688/wcf-service-method-returning-xmljson-data.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10195688/wcf-service-method-returning-xmljson-data.aspx]]></link><description><![CDATA[Hi All,<br />
<br />
I Need by service contract to return the xml/json result depending on the request type.I also need a kind of helper function which will convert my result set (i am using linq to sql) so that i do not need to create the xml format for the result set by iterating through the table row many times.What is the suitable way to do that.<br />
<br />
<br />
I need a kind of short cut method which will convert the table data to xml result.Had i been using asp.net mvc i would have been able to generate the xml data by overriding the the ExecuteResult method in the ActionResult and giving Conetnt-Type = "text/xml" as OP.But since i am using <br />
Wcf i don't have the controller context(as controller context is the parameter that needs to be passed to Execute Result).<br />
<br />
My present code for converting the table data to the xml format is below.<br />
<br />
public XDocument UsersLists(string authToken)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bool IsAuthenticated = Authenticate(authToken);<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; XDocument xDoc = new XDocument();<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; XElement root = new XElement("Users");<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (IsAuthenticated)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; List&lt;User&gt; lstUsers = _lService.UserRepository.GetUserCompanyFromAccountID(GetAccountId(authToken)).ToList();<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (lstUsers != null)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; root.Add(new XElement("Message", "Success"));<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; foreach (var u in lstUsers)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; XElement chid = new XElement("User");<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; root.Add(new XElement("UserId", u.UserId));<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; root.Add(new XElement("FirstName", u.FirstName));<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; root.Add(new XElement("LastName", u.LastName));<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; root.Add(new XElement("Email", u.Email));<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; root.Add(new XElement("CompanyName", u.Company.CompanyName));<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; root.Add(chid);<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xDoc.Add(root);<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return xDoc;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; else<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return ReturnFailure(xDoc, root);<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; else<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return ReturnFailure(xDoc, root);<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br />
<br />
I need to eliminate this way of generating xml for each table records.<br />
<br />
An early response is priceless.<br />
Thanks<br />
<br />
Technology : Windows Communication Foundation.<br />&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/wcf/18/10195688/wcf-service-method-returning-xmljson-data.aspx" target="_self">read more</a>]]></description><pubDate>Sat, 31 Mar 2012 16:02:28 GMT</pubDate></item><item><title><![CDATA[ws-security + saml + sender vouches in wcf service]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10191556/wssecurity--saml--sender-vouches-in-wcf-service.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10191556/wssecurity--saml--sender-vouches-in-wcf-service.aspx]]></link><description><![CDATA[Hi all,<br />
<br />
I need help ;-)...<br />
<br />
I have an WCF-Service that must operate in a ws-security context with SOAP + SAML + Sender Vouches. But, my wcf service work in a java context with the mentioned conditions and I must validate an incomming call (Java -SOAP+SAML+Sender Vouches) from Java Client. I hope that you can help me? <br />
I think what I need, are only to configure my wcf service to support ws-security wit SOAP+SAML+Sender Vouches? <br />
<br />
Kind Regards<br />
Yvan&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/wcf/18/10191556/wssecurity--saml--sender-vouches-in-wcf-service.aspx" target="_self">read more</a>]]></description><pubDate>Sat, 31 Mar 2012 16:02:34 GMT</pubDate></item><item><title><![CDATA[Proxy authentication problem WPF browser app calling WCF service]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10182837/proxy-authentication-problem-wpf-browser-app-calling-wcf-service.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10182837/proxy-authentication-problem-wpf-browser-app-calling-wcf-service.aspx]]></link><description><![CDATA[I have a WPF browser app (partial trust) that calls a WCF service that runs<br />
on the web server. All works fine when the client is not behind a proxy<br />
server. If it is, I get the message: "(407) Proxy Authentication Required".<br />
If I try to alter the &lt;defaultProxy&gt; settings I get the message "Insufficient<br />
permissions for setting the configuration section 'defaultProxy'". What<br />
should I do? I just want to use the same credentials for normal web access<br />
and WCF access.&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/wcf/18/10182837/proxy-authentication-problem-wpf-browser-app-calling-wcf-service.aspx" target="_self">read more</a>]]></description><pubDate>Sat, 31 Mar 2012 16:02:58 GMT</pubDate></item><item><title><![CDATA[invokeWorkflow and raising events of the workflow inside the invoke]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10166688/invokeworkflow-and-raising-events-of-the-workflow-inside-the-invoke.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10166688/invokeworkflow-and-raising-events-of-the-workflow-inside-the-invoke.aspx]]></link><description><![CDATA[Hi everyone, im having a problem with a workflow, ill try to explain it:<br />
<br />
i have a state machine workflow representing a product, who has 3 handleExternalEvent: for creating , for confirming and for cancelling a product. Those 3 events are in an interface i created. I tested that workflow with a windows form and it worked very well.. Now i hace the following problem, i need to model a workflow who represents an order. An order may have several products inside, so i though in creating as many invokeworkflow i need to represent all products inside the workflow of the order.<br />
<br />
I first tried to creat only one invokeworkflow with the producWorkflow inside... but i start having a problem, i dont know how exactly i have to pass the events the orderWorkflow receives, that should be for a product, like the create product, or the confirm product.. So i raise a event ProductCreated and i get the exception:<br />
<br />
************** Exception Text **************<br />
System.Workflow.Activities.EventDeliveryFailedException: Event "ProductCreated" on interface type "OrderLocalServices.IProductService" for instance id "c221a3c8-847e-4a7f-b4f5-3f23e119d26c" cannot be delivered. ---&gt; System.Workflow.Runtime.QueueException: Event Queue operation failed with MessageQueueErrorCode QueueNotFound for queue 'Message Properties<br />
Interface Type:OrderLocalServices.IProductService<br />
Method Name:ProductCreated<br />
CorrelationValues:<br />
'.<br />
&nbsp;&nbsp; at System.Wo....<br />
<br />
I first tried to pass the id of the orderworkflow and then the id of the productworkflow but i still have that exception, does anyone have any idea of what should i do to raise those events from the outside of the orderworkflow so the products can receive it wihtouth&nbsp; throwing the exception? maybe another way to represent the order and products withouth using the invokeworkflow? <br />
<br />
Thanx in advance, ill be please of giving more details if needed.<br />
<br />
Regards, Alejandro&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/wcf/18/10166688/invokeworkflow-and-raising-events-of-the-workflow-inside-the-invoke.aspx" target="_self">read more</a>]]></description><pubDate>Sat, 31 Mar 2012 16:03:08 GMT</pubDate></item><item><title><![CDATA[facng error while tryin to consume java webservice which is MTOM enabled in .Net]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10164097/facng-error-while-tryin-to-consume-java-webservice-which-is-mtom-enabled-in-net.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10164097/facng-error-while-tryin-to-consume-java-webservice-which-is-mtom-enabled-in-net.aspx]]></link><description><![CDATA[Hi,<br />
I am sending and requesting response from Java web service which is&nbsp; Mtom enabled.I am facing issue while sending request to the java web service&nbsp; rom .net client.<br />
How to enable my .net client to consume the java web service.<br />
I have pasted below the stack trace of the error:<br />
<br />
[ProtocolException: The content type multipart/related; type="application/xop+xml"; boundary="----=_Part_0_1783866869.1271997723010"; start="&lt;root.message@cxf.apache.org&gt;"; start-info="text/xml" of the response message does not match the content type of the binding (text/xml; charset=utf-8). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. The first 712 bytes of the response were: '<br />
------=_Part_0_1783866869.1271997723010<br />
Content-Type: application/xop+xml; charset=UTF-8; type="text/xml; charset=UTF-8"<br />
Content-Transfer-Encoding: binary<br />
Content-ID: &lt;root.message@cxf.apache.org&gt;<br />
<br />
&lt;soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"&gt;&lt;soap:Body&gt;&lt;ns1:createSimpleMTOMProjectResponse xmlns:ns1="http://client.webservice.projectmanagergui.xmlintl.com/"&gt;&lt;return&gt;&lt;id&gt;218255&lt;/id&gt;&lt;jobDescriptors&gt;&lt;fileName&gt;Lingo.txt&lt;/fileName&gt;&lt;id&gt;218258&lt;/id&gt;&lt;sourceLanguage&gt;en_GB&lt;/sourceLanguage&gt;&lt;targetLanguage&gt;bh_IN&lt;/targetLanguage&gt;&lt;/jobDescriptors&gt;&lt;name&gt;project218255&lt;/name&gt;&lt;/return&gt;&lt;/ns1:createSimpleMTOMProjectResponse&gt;&lt;/soap:Body&gt;&lt;/soap:Envelope&gt;<br />
------=_Part_0_1783866869.1271997723010--'.]<br />
&nbsp;&nbsp; System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) +7596735<br />
&nbsp;&nbsp; System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&amp; msgData, Int32 type) +275<br />
&nbsp;&nbsp; WCFLingo24.LingoSvc.PMService.createSimpleMTOMProject(createSimpleMTOMProject1 request) +0<br />
&nbsp;&nbsp; WCFLingo24.LingoSvc.PMServiceClient.WCFLingo24.LingoSvc.PMService.createSimpleMTOMProject(createSimpleMTOMProject1 request) in C:\Documents and Settings\ajay.chigurupati\My Documents\Visual Studio 2008\Projects\WCFLingo24\WCFLingo24\Service References\LingoSvc\Reference.cs:5840<br />
&nbsp;&nbsp; WCFLingo24.LingoSvc.PMServiceClient.createSimpleMTOMProject(createSimpleMTOMProject createSimpleMTOMProject1) in C:\Documents and Settings\ajay.chigurupati\My Documents\Visual Studio 2008\Projects\WCFLingo24\WCFLingo24\Service References\LingoSvc\Reference.cs:5846<br />
&nbsp;&nbsp; WCFLingo24._Default.BtnRequest_Click(Object sender, EventArgs e) in C:\Documents and Settings\ajay.chigurupati\My Documents\Visual Studio 2008\Projects\WCFLingo24\WCFLingo24\Default.aspx.cs:74<br />
&nbsp;&nbsp; System.Web.UI.WebControls.Button.OnClick(EventArgs e) +111<br />
&nbsp;&nbsp; System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +110<br />
&nbsp;&nbsp; System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10<br />
&nbsp;&nbsp; System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13<br />
&nbsp;&nbsp; System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36<br />
&nbsp;&nbsp; System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565<br />&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/wcf/18/10164097/facng-error-while-tryin-to-consume-java-webservice-which-is-mtom-enabled-in-net.aspx" target="_self">read more</a>]]></description><pubDate>Sat, 31 Mar 2012 16:03:18 GMT</pubDate></item><item><title><![CDATA[workflow and arguments of activities in WF4]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10162805/workflow-and-arguments-of-activities-in-wf4.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10162805/workflow-and-arguments-of-activities-in-wf4.aspx]]></link><description><![CDATA[We want to provide to our customers a flowchart workflow as a starting point that will always start with the creation of a record in the database eg. for approval of an insurance claim. As there are different types of insurance claims, we want our customer to be able to define different flowcharts for each type of insurance claim. We want to provide a set of custom activities, to build the workflow. Eg. an activity to add a document to the insurance claim, an activity to assign the responsible departement, and so on.<br />
The first activity will thus create a record for the insurance claim. All other activities will add records in different child tables of the master record (the insurance claim). The of the first activity result will be an id identitifying the master record.<br />
<br />
So basically each activity that adds a part to the insurance claim, will need to have a reference to the id of the master record, in order to be able to add a record to any of the underlying tables, based upon the type of activity. I know it is possible to create a variable which has a scope of the flowchart and that you can assign the In argument for each activity to this variable. , by using expressions in the designer.<br />
<br />
However, I was wondering if there is a way to automatically set the assignement, as soon as the user drops one of these activities on the designer, so they don't have to do it manually. Is there a way, to assign an In argument for an activity to a variable of the flowchart in code? That would give our customers the best experience to design a flowchart workflow, as all they have to do is to drop activities onto the designer and only have to provide all other In arguments needed for the activity, eg. the departement could be set using a dropdown of all possible departments.<br />&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/wcf/18/10162805/workflow-and-arguments-of-activities-in-wf4.aspx" target="_self">read more</a>]]></description><pubDate>Sat, 31 Mar 2012 16:03:22 GMT</pubDate></item><item><title><![CDATA[Connecting Android to a WCF webservice]]></title><guid isPermaLink="false"><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10160577/connecting-android-to-a-wcf-webservice.aspx]]></guid><link><![CDATA[http://www.eggheadcafe.com/community/wcf/18/10160577/connecting-android-to-a-wcf-webservice.aspx]]></link><description><![CDATA[Hello dear programmers,<br />
I want to connect an Android application to my WCF .<br />
I tried to use SOAP but for two weeks I can´t solve the problem.<br />
I am really tired now and I can not go any where else in my project unless this problem is solved.<br />
I have god my WSDL wich works very well.<br />
Please can you give me any help?<br />
I do not know many thinks in WCF and it is not developped by me.<br />
If you are not kind in Android, I think if I had the solution in Java I could tries to solve the problem in Android.<br />
I have cheked by the net but I have seen that there are many people who have the same problem but any solution is given now.<br />
For simple DotNet webServices, I have seen some explanations but it appears that WCF is a little bitt very specific...<br />
Please help me if possible.<br />
Thanks in advance&nbsp;&nbsp;<a href="http://www.eggheadcafe.com/community/wcf/18/10160577/connecting-android-to-a-wcf-webservice.aspx" target="_self">read more</a>]]></description><pubDate>Sat, 31 Mar 2012 16:03:23 GMT</pubDate></item></channel></rss>