<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Avivo Tech Blog &#187; Web Services</title>
	<atom:link href="http://tech.avivo.si/category/web-services/feed/" rel="self" type="application/rss+xml" />
	<link>http://tech.avivo.si</link>
	<description>Solving problems</description>
	<lastBuildDate>Tue, 24 Jan 2012 14:46:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>The easiest way to generate a QR Code for software developers</title>
		<link>http://tech.avivo.si/2012/01/the-easiest-way-to-generate-a-qr-code-for-programmers/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=the-easiest-way-to-generate-a-qr-code-for-programmers</link>
		<comments>http://tech.avivo.si/2012/01/the-easiest-way-to-generate-a-qr-code-for-programmers/#comments</comments>
		<pubDate>Tue, 24 Jan 2012 14:46:11 +0000</pubDate>
		<dc:creator>developer</dc:creator>
				<category><![CDATA[ASP.NET MVC]]></category>
		<category><![CDATA[HTML, Javascript and CSS]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[Silverlight/WPF]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[Web Services]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[example]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[qr code generators]]></category>
		<category><![CDATA[sample]]></category>
		<category><![CDATA[simple]]></category>
		<category><![CDATA[web service]]></category>

		<guid isPermaLink="false">http://tech.avivo.si/?p=1445</guid>
		<description><![CDATA[So you want to simply generate a QR Code image without diving into the technical specifics? This blog post contains a few simple examples. Just copy-paste where you need it. Idea is to build a URL, make an HTTP request and download the QR Code image. Result is the following image: HTTP Request URL looks [...]]]></description>
			<content:encoded><![CDATA[<p>So you want to simply generate a QR Code image without diving into the technical specifics? This blog post contains a few simple examples. Just copy-paste where you need it.</p>
<p>Idea is to build a URL, make an HTTP request and download the QR Code image. Result is the following image:</p>
<pre><img src="http://www.esponce.com/api/v3/generate?content=your%20content%20goes%20here&#038;format=png" alt="your content goes here" /></pre>
<h2>HTTP Request</h2>
<p>URL looks like<strong> http://www.esponce.com/api/v3/generate?content={content}&amp;format={format}</strong> where <strong>{content}</strong> is URL encoded content to be embedded in QR and <strong>{format}</strong> is output image format. Available formats are <strong>png, jpg, bmp, tif, xaml, svg, eps, txt, html, zip</strong> (containing all listed formats)</p>
<p>List of other parameters like color and size can be found <a href="http://www.esponce.com/help/api-v3/generate#parameters">here</a>.</p>
<h2>C# Sample</h2>
<p>This code can be used in <strong>.NET 2.0</strong> including ASP.NET and WPF or <strong>Silverlight</strong> for web or <strong>WP7</strong></p>
<pre class="brush: csharp; title: ; notranslate">
using System;
using System.IO;
using System.Web;
using System.Net;

public class Program
{
  public static void Main(string[] args)
  {
    //Generate a QR Code and save it to file &quot;sample.png&quot;
    Generate(&quot;your content goes here&quot;, &quot;png&quot;, &quot;sample.png&quot;);
  }

  public static void Generate(string content, string format, string path)
  {
    string encoded = HttpUtility.UrlEncode(content);
    Uri uri = new Uri(&quot;http://www.esponce.com/api/v3/generate?content=&quot; + encoded + &quot;&amp;format=&quot; + format);
    WebClient client = new WebClient();
    client.DownloadFile(uri, path);
  }
}
</pre>
<h2>Java Sample</h2>
<p>This code can be used in a classic <strong>Java</strong> application or web <strong>applet</strong> or <strong>Android</strong> application</p>
<pre class="brush: java; title: ; notranslate">
import java.io.*;
import java.net.*;

public class qrcode
{
  public static void main(String args[])
  {
    //Generate a QR Code image and save it to file &quot;sample.png&quot;
    generate(&quot;your content goes here&quot;, &quot;png&quot;, &quot;sample.png&quot;);
  }

  public static void generate(String content, String format, String path)
  {
    try
    {
      String encoded = URLEncoder.encode(content, &quot;UTF-8&quot;);
      String url = &quot;http://www.esponce.com/api/v3/generate?content=&quot; + encoded + &quot;&amp;format=&quot; + format;
      BufferedInputStream ins = new BufferedInputStream(new URL(url).openStream());
      FileOutputStream fos = new FileOutputStream(path);
      BufferedOutputStream bos = new BufferedOutputStream(fos, 1024);

      int size = 0;
      byte data[] = new byte[1024];
      while ((size = ins.read(data, 0, 1024)) &amp;gt; 0)
      {
        bos.write(data, 0, size);
      }

      bos.close();
      fos.close();
      ins.close();
    }
    catch (Exception e)
    {
    }
  }
}
</pre>
<h2>Python Sample</h2>
<p>Using Python 2.7</p>
<pre class="brush: python; title: ; notranslate">
#!/usr/bin/env python
# -*- coding: UTF-8 -*-

import urllib
import httplib

def generate(content, format = &quot;png&quot;):
    query = urllib.urlencode({ &quot;content&quot;: content, &quot;format&quot;: format })
    con = httplib.HTTPConnection(&quot;www.esponce.com&quot;)
    con.request(&quot;GET&quot;, &quot;/api/v3/generate?&quot; + query)
    response = con.getresponse()
    image = response.read()
    con.close()
    return image

image = generate(&quot;your content goes here&quot;)
file = open(&quot;sample.png&quot;, &quot;wb&quot;)
file.write(image)
file.close()
</pre>
<h2>JavaScript Sample</h2>
<p>JavaScript in combination with HTML</p>
<pre class="brush: jscript; title: ; notranslate">
&lt;img id=&quot;qrcode&quot; src=&quot;&quot; alt=&quot;QR Code&quot; /&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
    function generate(content)
    {
        var url = &quot;http://www.esponce.com/api/v3/generate?content=&quot; + encodeURI(content) + &quot;&amp;format=png&quot;;
        var img = document.getElementById(&quot;qrcode&quot;);
        img.src = url;
    }
    generate(&quot;your content goes here&quot;);
&lt;/script&gt;
</pre>
<h2>PHP Sample</h2>
<pre class="brush: php; title: ; notranslate">
&lt;img src=&quot;&lt;?php echo generate(&quot;your content goes here&quot;); ?&gt;&quot; alt=&quot;QR Code&quot; /&gt;

&lt;?php
function generate($content, $format = &quot;png&quot;)
{
    $encoded = urlencode($content);
    $url = &quot;http://www.esponce.com/api/v3/generate?content=$encoded&amp;format=$format&quot;;
    return $url;
}
?&gt;
</pre>
<h2>There is more</h2>
<p>Download all samples with <em>make</em> script <a href="http://tech.avivo.si/wp-content/uploads/2012/01/generate-qr-code-samples-src.zip">here</a>.</p>
<p>Other QR Code related methods like decoding (reverse process of generating) and tracking scans can be found at <a href="http://www.esponce.com/help">esponce.com</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://tech.avivo.si/2012/01/the-easiest-way-to-generate-a-qr-code-for-programmers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Increasing maximum request length for WCF REST Web Service with ASP .NET 4.0</title>
		<link>http://tech.avivo.si/2011/10/increase-maximum-request-length-for-wcf-rest-web-service-asp-net-4/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=increase-maximum-request-length-for-wcf-rest-web-service-asp-net-4</link>
		<comments>http://tech.avivo.si/2011/10/increase-maximum-request-length-for-wcf-rest-web-service-asp-net-4/#comments</comments>
		<pubDate>Wed, 26 Oct 2011 18:50:22 +0000</pubDate>
		<dc:creator>developer</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Web Services]]></category>
		<category><![CDATA[asp .net 4.0]]></category>
		<category><![CDATA[behavior]]></category>
		<category><![CDATA[binding]]></category>
		<category><![CDATA[request length]]></category>
		<category><![CDATA[rest]]></category>
		<category><![CDATA[wcf]]></category>
		<category><![CDATA[web service]]></category>
		<category><![CDATA[web.config]]></category>

		<guid isPermaLink="false">http://tech.avivo.si/?p=1407</guid>
		<description><![CDATA[Recently we have extended a web service with method for uploading user&#8217;s profile image. So far the service was working fine with less amount of data, i.e. name, address and description. First image upload test with the new method resulted with 400 Bad Request. Breakpoints were set in WCF method but debugger did not stop [...]]]></description>
			<content:encoded><![CDATA[<p>Recently we have extended a web service with method for uploading user&#8217;s profile image. So far the service was working fine with less amount of data, i.e. name, address and description. First <strong>image upload test</strong> with the new method resulted with <strong>400 Bad Request</strong>. Breakpoints were set in <strong>WCF method</strong> but debugger did not stop there, not even entered the method.</p>
<h2>Default configuration</h2>
<p>WCF service had been configured for REST using default webHttpBinding configuration in web.config</p>
<pre>&lt;configuration&gt;
  ...
  &lt;system.serviceModel&gt;
    &lt;behaviors&gt;
      &lt;endpointBehaviors&gt;
        &lt;behavior name="ApiBehavior" /&gt;
      &lt;/endpointBehaviors&gt;
      &lt;serviceBehaviors&gt;
        &lt;behavior name="Avivo.Web.Services.ApiServiceBehavior"&gt;
         &lt;serviceMetadata httpGetEnabled="true" /&gt;
         &lt;serviceDebug includeExceptionDetailInFaults="false" /&gt;
         &lt;serviceTimeouts transactionTimeout="00:05:00" /&gt;
        &lt;/behavior&gt;
      &lt;/serviceBehaviors&gt;
    &lt;/behaviors&gt;

    &lt;services&gt;
      &lt;!-- API v1.0 --&gt;
      &lt;service behaviorConfiguration="Avivo.Web.Services.ApiServiceBehavior"
name="Avivo.Web.Services.ApiService"&gt;
        &lt;host&gt;
          &lt;baseAddresses&gt;
            &lt;add baseAddress="http://localhost:1234/api/v1" /&gt;
          &lt;/baseAddresses&gt;
        &lt;/host&gt;
        &lt;endpoint address="" binding="webHttpBinding"
contract="Avivo.Web.Services.IApiService" behaviorConfiguration="ApiBehavior" /&gt;
      &lt;/service&gt;
    &lt;/services&gt;

    &lt;serviceHostingEnvironment aspNetCompatibilityEnabled="true"
multipleSiteBindingsEnabled="true"&gt;
      &lt;baseAddressPrefixFilters&gt;
        &lt;add prefix="http://localhost:1234/api/v1"/&gt;
      &lt;/baseAddressPrefixFilters&gt;
    &lt;/serviceHostingEnvironment&gt;

  &lt;/system.serviceModel&gt;
  ...
&lt;/configuration&gt;</pre>
<h2>Identifying the problem</h2>
<p>Images can be quite large (few MB), especially when comparing with text size (few KB). At first it was assumed the web service call has <strong>exceeded maximum request length limit</strong>. To confirm the assumption we analyzed WCF traffic using <strong>SvcTraceViewer</strong>.</p>
<p>Enabling WCF tracing in web.config</p>
<pre>&lt;configuration&gt;
  ...
  &lt;!-- Use SvcTraceViewer for debugging WCF services --&gt;
  &lt;system.diagnostics&gt;
    &lt;trace autoflush="true" /&gt;
    &lt;sources&gt;
      &lt;source name="System.ServiceModel" switchValue="Information,
ActivityTracing" propagateActivity="true"&gt;
        &lt;listeners&gt;
          &lt;add name="sdt" type="System.Diagnostics.XmlWriterTraceListener"
initializeData="d:\temp\wcf-trace.svclog" /&gt;
        &lt;/listeners&gt;
      &lt;/source&gt;
    &lt;/sources&gt;
  &lt;/system.diagnostics&gt;
  ...
&lt;/configuration&gt;</pre>
<p>When the tracing is set each request to web service will write entry to d:\temp\wcf-trace.svclog in this case. The report file can be opened with <strong>SvcTraceViewer</strong> found in <strong>%ProgramFiles%\Microsoft SDKs\Windows</strong>, e.g. &#8220;c:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\SvcTraceViewer.exe&#8221;</p>
<p>Entries in SvcTraceViewer marked with red represents errors. The problematic request was logged with error message:</p>
<pre>The maximum message size quota for incoming messages (65536) has been exceeded. To increase the quota, use the MaxReceivedMessageSize property on the appropriate binding element.</pre>
<p>Identifying that assumption was right and the upload request exceeded <strong>default 65 KB limit</strong>.</p>
<h2>Increasing request limit quota</h2>
<p>Customizing <strong>webHttpBinding</strong> in web.config and referencing with <strong>bindingConfiguration</strong> in endpoint element</p>
<pre>&lt;configuration&gt;
        ...
  &lt;system.serviceModel&gt;
        ...
    &lt;bindings&gt;
      &lt;!-- Customizations for REST service --&gt;
      &lt;webHttpBinding&gt;
        &lt;!-- Limits set to 10 MB (specified value in bytes) --&gt;
        &lt;binding name="ApiQuotaBinding" maxReceivedMessageSize="10485760"
maxBufferPoolSize="10485760" maxBufferSize="10485760" closeTimeout="00:03:00"
openTimeout="00:03:00" receiveTimeout="00:10:00" sendTimeout="00:03:00"&gt;
          &lt;readerQuotas maxDepth="32" maxStringContentLength="10485760"
maxArrayLength="10485760" maxBytesPerRead="10485760" /&gt;
          &lt;security mode="None" /&gt;
        &lt;/binding&gt;
      &lt;/webHttpBinding&gt;
    &lt;/bindings&gt;

    &lt;services&gt;
      &lt;!-- API v1.0 --&gt;
      &lt;service behaviorConfiguration="Avivo.Web.Services.ApiServiceBehavior"
name="Avivo.Web.Services.ApiService"&gt;
        &lt;host&gt;
          &lt;baseAddresses&gt;
            &lt;add baseAddress="http://localhost:1234/api/v1" /&gt;
          &lt;/baseAddresses&gt;
        &lt;/host&gt;
        &lt;!-- Added attribute 'bindingConfiguration' --&gt;
        &lt;endpoint address="" bindingConfiguration="ApiQuotaBinding" binding="webHttpBinding"
contract="Avivo.Web.Services.IApiService" behaviorConfiguration="ApiBehavior" /&gt;
      &lt;/service&gt;
    &lt;/services&gt;

  &lt;/system.serviceModel&gt;
  ...
&lt;/configuration&gt;</pre>
<p>Additionally <strong>httpRuntime</strong> limits must also be set because web service is running in ASP .NET compatibilty mode. Note that maxRequestLength has value in kilobytes.</p>
<pre>&lt;configuration&gt;
  ...
  &lt;system.web&gt;
    &lt;httpRuntime maxRequestLength="10240" /&gt;
  &lt;/system.web&gt;
  ...
&lt;/configuration&gt;</pre>
<h2>Testing</h2>
<p>Finding the solution was not straightforward, it took some time searching the web and reading documentation. Finally after figuring out the described config in this post we solved the problem with success.</p>
]]></content:encoded>
			<wfw:commentRss>http://tech.avivo.si/2011/10/increase-maximum-request-length-for-wcf-rest-web-service-asp-net-4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>QR Codes API &#8211; automatically generated for given content</title>
		<link>http://tech.avivo.si/2011/05/qr-codes-api-automatically-generated-for-given-content/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=qr-codes-api-automatically-generated-for-given-content</link>
		<comments>http://tech.avivo.si/2011/05/qr-codes-api-automatically-generated-for-given-content/#comments</comments>
		<pubDate>Mon, 16 May 2011 18:31:05 +0000</pubDate>
		<dc:creator>Avivo</dc:creator>
				<category><![CDATA[ASP.NET MVC]]></category>
		<category><![CDATA[HTML, Javascript and CSS]]></category>
		<category><![CDATA[Programming Techniques]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[Social networks]]></category>
		<category><![CDATA[Web Services]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[barcode]]></category>
		<category><![CDATA[branding]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[qr code generators]]></category>
		<category><![CDATA[qr codes]]></category>
		<category><![CDATA[qrcode]]></category>
		<category><![CDATA[scanner]]></category>
		<category><![CDATA[smart phones]]></category>
		<category><![CDATA[social networks]]></category>
		<category><![CDATA[tracking]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://tech.avivo.si/?p=1318</guid>
		<description><![CDATA[There are a lot of  QR Code generators on a web and there is also listed our generator &#8211; available at http://qrcode.good-survey.com It already went over simple generator functionality and new features are adding. Basically, beside QR Code generation, we are offering as addition: Tracking of generated QR Codes &#8211; for marketing managers ti know [...]]]></description>
			<content:encoded><![CDATA[<p>There are a lot of  <a title="QR Code generators" href="http://2d-code.co.uk/qr-code-generators/" target="_blank">QR Code generators</a> on a web and there is also listed our generator &#8211; available at <a title="Good Survey QR Code Generator and Tracking" href="http://qrcode.good-survey.com" target="_blank">http://qrcode.good-survey.com</a></p>
<p>It already went over simple generator functionality and new features are adding.</p>
<div id="attachment_1325" class="wp-caption alignnone" style="width: 710px"><img class="size-large wp-image-1325" title="QR Codes Generator and API" src="http://tech.avivo.si/wp-content/uploads/2011/05/qr-codes-generator-and-api-700x475.jpg" alt="QR Codes Generator and API" width="700" height="475" /><p class="wp-caption-text">QR Codes Generator and API</p></div>
<p>Basically, beside QR Code generation, we are offering as addition:</p>
<ul>
<li>Tracking of generated QR Codes &#8211; for marketing managers ti know which locations work best (i.e. posters with printed QR Code)</li>
<li>Dynamic QR Codes &#8211; if some QR Code is already printed you can make it point to completely different URL without changing the printed code</li>
<li>Adding your logo inside QR Code (with readability testing) &#8211; branding feature</li>
<li>All types of content are supported (hyperlinks, custom text, vCard, Bizcard, Mecard,  vCalendar, social networks &#8211; Twitter, Facebook, YouTube, Geo locations and maps, SMS messages, phones,&#8230;)</li>
<li>Strong use of API &#8211; automating generation process and possibility to use from your application/website &#8211; this is what we will talk about a little bit more in this article&#8230;</li>
</ul>
<p>Using API is not complicated at all, <a title="QR Codes API" href="http://qrcode.good-survey.com/help" target="_blank">we wrote a tutorial</a> which is easy to understand.</p>
<p>Here is an example how you can have instantly QR Code image on your website:</p>
<p>This are direct links:</p>
<ul>
<li><a href="http://qrcode.good-survey.com/api/v2/generate?content=Hello%20World&amp;format=png&amp;padding=2&amp;size=10&amp;em=byte&amp;ec=m" target="_blank">Hello World custom text</a></li>
<li><a href="http://qrcode.good-survey.com/api/v2/generate?content=http%3a%2f%2fmaps.google.com%2fmaps%3ff%3dq%26q%3d46.043286%2c14.492791300000022%26q%3d30%2bTeslova%2bUlica%252c%2bLjubljana%2b1000%252c%2bSlovenia&amp;format=png&amp;padding=2&amp;size=10&amp;em=byte&amp;ec=m" target="_blank">Google Maps location of company&#8217;s office</a></li>
<li><a href="http://qrcode.good-survey.com/api/v2/generate?content=http%3a%2f%2fqrcode.good-survey.com&amp;format=png&amp;padding=2&amp;size=10&amp;em=byte&amp;ec=m" target="_blank">QR Code generator URL</a></li>
</ul>
<p>This how it could look like inside your website (just put this hyperlink inside your IMG tag)</p>
<pre lang="csharp">&lt;img src="http://qrcode.good-survey.com/api/v2/generate?content=
http%3a%2f%2fmaps.google.com%2fmaps%3ff%3dq%26q%3d46.043286%2c14.492791300000022%
26q%3d30%2bTeslova%2bUlica%252c%2bLjubljana%2b1000%252c%2bSlovenia&amp;
format=png&amp;padding=2&amp;size=10&amp;em=byte&amp;ec=m" alt="Avivo location" /&gt;</pre>
<div style="margin-top:20px;">
Try it also by yourself &#8211; just download <a title="QR Codes API demo application" href="http://qrcodeapi.codeplex.com/" target="_blank">DEMO API application</a> from CodePlex and you can play with supported API features.</div>
]]></content:encoded>
			<wfw:commentRss>http://tech.avivo.si/2011/05/qr-codes-api-automatically-generated-for-given-content/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The service cannot be activated due to an exception during compilation. The exception message is: This collection already contains an address with scheme http. There can be at most one address per scheme in this collection.</title>
		<link>http://tech.avivo.si/2010/11/the-service-cannot-be-activated-due-to-an-exception-during-compilation-the-exception-message-is-this-collection-already-contains-an-address-with-scheme-http-there-can-be-at-most-one-address-per-sch/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=the-service-cannot-be-activated-due-to-an-exception-during-compilation-the-exception-message-is-this-collection-already-contains-an-address-with-scheme-http-there-can-be-at-most-one-address-per-sch</link>
		<comments>http://tech.avivo.si/2010/11/the-service-cannot-be-activated-due-to-an-exception-during-compilation-the-exception-message-is-this-collection-already-contains-an-address-with-scheme-http-there-can-be-at-most-one-address-per-sch/#comments</comments>
		<pubDate>Thu, 25 Nov 2010 14:38:51 +0000</pubDate>
		<dc:creator>Avivo</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Silverlight/WPF]]></category>
		<category><![CDATA[Web Services]]></category>
		<category><![CDATA[silverlight]]></category>
		<category><![CDATA[The service cannot be activated due to an exception during compilation]]></category>
		<category><![CDATA[There can be at most one address per scheme in this collection]]></category>
		<category><![CDATA[This collection already contains an address with scheme http]]></category>
		<category><![CDATA[wcf]]></category>
		<category><![CDATA[wcf service error]]></category>
		<category><![CDATA[web service]]></category>

		<guid isPermaLink="false">http://tech.avivo.si/?p=825</guid>
		<description><![CDATA[You can solve this issue by adding the following code to your web.config: &#60;system.serviceModel&#62; ... &#60;serviceHostingEnvironment&#62; &#60;baseAddressPrefixFilters&#62; &#60;add prefix="http://sample.domain.tld/Sample/"/&#62; &#60;/baseAddressPrefixFilters&#62; &#60;/serviceHostingEnvironment&#62; ... &#60;/system.serviceModel&#62;]]></description>
			<content:encoded><![CDATA[<p>You can solve this issue by adding the following code to your web.config: </p>
<pre class=xml>
&lt;system.serviceModel&gt;
	...
	&lt;serviceHostingEnvironment&gt;
	  &lt;baseAddressPrefixFilters&gt;
	  	&lt;add prefix="http://sample.domain.tld/Sample/"/&gt;
	  &lt;/baseAddressPrefixFilters&gt;
	&lt;/serviceHostingEnvironment&gt;
	...
&lt;/system.serviceModel&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://tech.avivo.si/2010/11/the-service-cannot-be-activated-due-to-an-exception-during-compilation-the-exception-message-is-this-collection-already-contains-an-address-with-scheme-http-there-can-be-at-most-one-address-per-sch/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Allowing WCF services (svc extension) in IIS7</title>
		<link>http://tech.avivo.si/2010/07/allowing-wcf-services-svc-extension-in-iis7/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=allowing-wcf-services-svc-extension-in-iis7</link>
		<comments>http://tech.avivo.si/2010/07/allowing-wcf-services-svc-extension-in-iis7/#comments</comments>
		<pubDate>Mon, 12 Jul 2010 20:17:45 +0000</pubDate>
		<dc:creator>Avivo</dc:creator>
				<category><![CDATA[Web Services]]></category>
		<category><![CDATA[allow iis to serve svc files]]></category>
		<category><![CDATA[httpHandlers]]></category>
		<category><![CDATA[iis 7]]></category>
		<category><![CDATA[mime types]]></category>
		<category><![CDATA[svc extension]]></category>
		<category><![CDATA[wcf]]></category>
		<category><![CDATA[web.config]]></category>

		<guid isPermaLink="false">http://tech.avivo.si/?p=542</guid>
		<description><![CDATA[First, click on your website (or IIS7 website root) Click on MimeTypes and enter &#8220;.svc&#8221; and &#8220;application/octet-stream&#8221; and save In your project add this to your web.config in &#60;httpHandlers&#62; section: &#60;add name=&#8221;svc-Integrated&#8221; path=&#8221;*.svc&#8221; verb=&#8221;*&#8221; type=&#8221;System.ServiceModel.Activation.HttpHandler, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089&#8243; preCondition=&#8221;integratedMode&#8221; /&#62; &#60;add name=&#8221;svc-ISAPI-2.0&#8243; path=&#8221;*.svc&#8221; verb=&#8221;*&#8221; modules=&#8221;IsapiModule&#8221; scriptProcessor=&#8221;%SystemRoot%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll&#8221; preCondition=&#8221;classicMode,runtimeVersionv2.0,bitness32&#8243; /&#62;]]></description>
			<content:encoded><![CDATA[<ol>
<li>First, click on your website (or IIS7 website root)</li>
<li>Click on MimeTypes and enter &#8220;.svc&#8221; and &#8220;application/octet-stream&#8221; and save</li>
<li>In your project add this to your web.config in &lt;httpHandlers&gt; section:<br />
&lt;add name=&#8221;svc-Integrated&#8221; path=&#8221;*.svc&#8221; verb=&#8221;*&#8221; type=&#8221;System.ServiceModel.Activation.HttpHandler, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089&#8243; preCondition=&#8221;integratedMode&#8221; /&gt;<br />
&lt;add name=&#8221;svc-ISAPI-2.0&#8243; path=&#8221;*.svc&#8221; verb=&#8221;*&#8221; modules=&#8221;IsapiModule&#8221; scriptProcessor=&#8221;%SystemRoot%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll&#8221; preCondition=&#8221;classicMode,runtimeVersionv2.0,bitness32&#8243; /&gt;</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://tech.avivo.si/2010/07/allowing-wcf-services-svc-extension-in-iis7/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Web Service security using Microsoft WSE 3.0</title>
		<link>http://tech.avivo.si/2009/11/web-service-security-using-microsoft-wse-30/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=web-service-security-using-microsoft-wse-30</link>
		<comments>http://tech.avivo.si/2009/11/web-service-security-using-microsoft-wse-30/#comments</comments>
		<pubDate>Wed, 11 Nov 2009 10:48:14 +0000</pubDate>
		<dc:creator>Avivo</dc:creator>
				<category><![CDATA[Web Services]]></category>
		<category><![CDATA[generate proxy class]]></category>
		<category><![CDATA[web security]]></category>
		<category><![CDATA[wsdl]]></category>
		<category><![CDATA[wse 3.0]]></category>

		<guid isPermaLink="false">http://blog.sweetucan.com/?p=195</guid>
		<description><![CDATA[When you have a proxy use this command to generate proxy class: "c:\Program Files\Microsoft WSE\v3.0\Tools\WseWsdl3.exe" "http://your_service_url/your_service.asmx" /out:c:\YourService.cs /type:webClient]]></description>
			<content:encoded><![CDATA[<p>When you have a proxy use this command to generate proxy class:</p>
<pre class="c-sharp">"c:\Program Files\Microsoft WSE\v3.0\Tools\WseWsdl3.exe" "http://your_service_url/your_service.asmx" /out:c:\YourService.cs /type:webClient</pre>
]]></content:encoded>
			<wfw:commentRss>http://tech.avivo.si/2009/11/web-service-security-using-microsoft-wse-30/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

