Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>What I believe is happening here is that your channel is timing out (as you suspect).</p> <p>If I understand correctly, it is not the calls to service <strong>A</strong> that are timing out, but rather to service <strong>B</strong>, <em>before</em> you call your operation.</p> <p>I'm guessing that you are creating your channel <em>before</em> you call service <strong>A</strong>, rather than <em>just in time</em> (i.e. before calling service <strong>B</strong>). You should create the channel (proxy, service client) just before you use it like:</p> <pre><code>AResponse aResp = null; BResponse bResp = null; using (ServiceAProxy proxyA = new ServiceAProxy()) { aResp = proxyA.DoServiceAWork(); using (ServiceBProxy proxyB = new ServiceBProxy()) { bResp = proxyB.DoOtherork(aResp); } } return bResp; </code></pre> <p>I believe however, that once you get over <em>that</em> problem (service B timing out), you'll realize that the sharepoint app's proxy (that called service <strong>A</strong>) will timeout. To solve that, you may wish to change your service model from a request-response, to a publish-subscribe model.</p> <p>With long-running services, you'll want your sharepoint app to subscribe to service A, and have service A publish its results when it is ready to do so - regardless of how long it takes.</p> <p>Programming WCF Services (O'Reilly) by Juval Lowey, has a great explanation, and IDesign (Juval's company) published <a href="http://idesign.net/idesign/download/IDesign%20WCF%20Coding%20Standard.zip" rel="nofollow noreferrer">a great set of coding standards for WCF</a>, as well as the code for a great <a href="http://idesign.net/idesign/DesktopDefault.aspx?tabindex=-1&amp;tabid=19&amp;download=225" rel="nofollow noreferrer">Publish-Subscribe Framework</a>.</p> <p>Hope this helps, Assaf.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload