<?xml version="1.0" encoding="utf-8"?>
<feed xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xml:lang="en-us" xmlns="http://www.w3.org/2005/Atom">
  <title>Santos Ray Victorero, II !</title>
  <link rel="alternate" type="text/html" href="http://www.blogs.victorero.com/" />
  <link rel="self" href="http://www.blogs.victorero.com/SyndicationService.asmx/GetAtom" />
  <icon>favicon.ico</icon>
  <updated>2007-11-08T10:03:08.5338038-05:00</updated>
  <author>
    <name>Copyright (c) 2007 by Santos Ray Victorero, II</name>
  </author>
  <subtitle>There is no business like cyber-business</subtitle>
  <id>http://www.blogs.victorero.com/</id>
  <generator uri="http://www.dasblog.net" version="2.0.7180.0">DasBlog</generator>
  <entry>
    <title>About</title>
    <link rel="alternate" type="text/html" href="http://www.blogs.victorero.com/2007/11/02/About.aspx" />
    <id>http://www.blogs.victorero.com/PermaLink,guid,0531a0ce-2603-4ca6-8ae5-7529a80ed6b9.aspx</id>
    <published>2007-11-01T23:32:48.412-04:00</published>
    <updated>2007-11-07T10:13:12.9754055-05:00</updated>
    <category term="About" label="About" scheme="http://www.blogs.victorero.com/CategoryView,category,About.aspx" />
    <content type="html">&lt;p&gt;
&lt;span style="FONT-SIZE: 13.5pt; FONT-FAMILY: Verdana"&gt;&lt;em&gt;&lt;font color=#0000ff size=1&gt;Nothing
in the world can take the place of persistence. Talent will not; nothing is more common
than unsuccessful men with talent. Genius will not; unrewarded genius is almost a
proverb. Education will not; the world is full of educated derelicts. Persistence
and determination are omnipotent. The slogan press on has solved and always will solve
the problems of the human race.&amp;nbsp; No person was ever honored for what he received.
Honor has been the reward for what he gave.&lt;/font&gt;&lt;/em&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;span style="FONT-SIZE: 13.5pt; FONT-FAMILY: Verdana"&gt;&lt;em&gt;&lt;font color=#0000ff size=1&gt;(John)
Calvin Coolidge &lt;/font&gt;&lt;/em&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;font size=2&gt;&lt;span style="FONT-SIZE: 11.5pt; FONT-FAMILY: Verdana"&gt;&lt;?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com:office:smarttags" /&gt;My
name is Santos Ray Victorero, II, I am a software developer, architect and consultant
specializing in building customized business solutions. I have worked with computers
since 1981 and have a Bachelor’s degree in Electrical Engineering from 
&lt;st1:place w:st="on"&gt;
&lt;st1:PlaceName w:st="on"&gt;Florida&lt;/st1:PlaceName&gt;
&lt;st1:PlaceName w:st="on"&gt;Atlantic&lt;/st1:PlaceName&gt;
&lt;st1:PlaceType w:st="on"&gt;University&lt;/st1:PlaceType&gt;
&lt;/st1:place&gt;
.&lt;/span&gt;&lt;span style="FONT-SIZE: 8.5pt; FONT-FAMILY: Verdana"&gt;&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;
&lt;o:p&gt;&lt;/o:p&gt;
&lt;/span&gt;&lt;/font&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;font size=2&gt;&lt;span style="FONT-SIZE: 11.5pt; FONT-FAMILY: Verdana"&gt;Over the past twenty-years
some of the technologies I have worked with include mainframes, minicomputers and
microcomputers.&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/span&gt;I have also developed
several business applications including Payroll Systems, Point-of-Sale applications,
School Management Systems, Private Investigation tools, Inventory Systems, Cargo Managers,
etc…&lt;/span&gt;&lt;span style="FONT-SIZE: 8.5pt; FONT-FAMILY: Verdana"&gt;
&lt;o:p&gt;&lt;/o:p&gt;
&lt;/span&gt;&lt;/font&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;font size=2&gt;&lt;span style="FONT-SIZE: 11.5pt; FONT-FAMILY: Verdana"&gt;Since September
of 2000 I have been developing applications using the .NET Framework (alpha version).
In 2001 I began working on a &lt;/span&gt;&lt;span style="FONT-SIZE: 8.5pt; FONT-FAMILY: Verdana"&gt;&lt;a href="http://www.blogs.victorero.com/2007/07/21/WhatIsTheCyberBizSoftIncsEnterpriseBusinessAccountingFramework.aspx"&gt;&lt;span style="FONT-SIZE: 11.5pt"&gt;&lt;font color=#006666&gt;business
framework&lt;/font&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style="FONT-SIZE: 11.5pt; FONT-FAMILY: Verdana"&gt; that
makes it easier to create customized business solutions. &lt;/span&gt;&lt;span style="FONT-SIZE: 8.5pt; FONT-FAMILY: Verdana"&gt;
&lt;o:p&gt;&lt;/o:p&gt;
&lt;/span&gt;&lt;/font&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;font size=2&gt;&lt;span style="FONT-SIZE: 11.5pt; FONT-FAMILY: Verdana"&gt;My hobbies include
music, reading and boating. &lt;span style="mso-spacerun: yes"&gt;&amp;nbsp;&lt;/span&gt;I mostly
read books about business, software architecture and programming but I love to read
anything as long as it is interesting&lt;/span&gt;&lt;span style="FONT-SIZE: 8.5pt; FONT-FAMILY: Verdana"&gt;.&lt;/span&gt;&lt;/font&gt;
&lt;/p&gt;
&lt;span style="FONT-SIZE: 8.5pt; FONT-FAMILY: Verdana"&gt;
&lt;o:p&gt;
&lt;p&gt;
&lt;img src="http://www.blogs.victorero.com/content/binary/WISA20Logo.gif" border=0&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://www.wwisa.org/"&gt;Worldwide Institute of Software Architects&lt;/a&gt;
&lt;/p&gt;
&lt;/o:p&gt;
&lt;/span&gt;&lt;img width="0" height="0" src="http://www.blogs.victorero.com/aggbug.ashx?id=0531a0ce-2603-4ca6-8ae5-7529a80ed6b9" /&gt;</content>
  </entry>
  <entry>
    <title>What is The CyberBizSoft Inc.'s Enterprise Business Accounting Framework? </title>
    <link rel="alternate" type="text/html" href="http://www.blogs.victorero.com/2007/07/21/WhatIsTheCyberBizSoftIncsEnterpriseBusinessAccountingFramework.aspx" />
    <id>http://www.blogs.victorero.com/PermaLink,guid,6b0f4c40-5d37-485f-88c5-0abdecddb216.aspx</id>
    <published>2007-07-20T23:38:43.376-04:00</published>
    <updated>2007-11-08T10:01:26.3521898-05:00</updated>
    <category term="Accounting Engine" label="Accounting Engine" scheme="http://www.blogs.victorero.com/CategoryView,category,Accounting%2BEngine.aspx" />
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p align="center">
          <img src="http://www.blogs.victorero.com/content/binary/CBSI-EBA%20Framework%20Context%20Diagram%20(No-Frame).jpg" border="0" />
        </p>
        <p>
 
</p>
        <p>
The CyberBizSoft Inc.'s Enterprise Business Accounting Framework (CBSI-EBA Framework)
is a baseline Service Oriented architecture for developing customized business applications
that is composed of several business components:
</p>
        <ul>
          <li>
 CBSI-EBA Accounting Engine<sup>TM</sup></li>
          <li>
            <sup> </sup>CBSI-EBA Business Tools<sup>TM</sup></li>
          <li>
CBSI-EBA Master Sets<sup>TM</sup></li>
        </ul>
        <p>
Just as the Accounting Process  also called the Accounting Cycle the CBSI-EBA
Framework consist of several parts for:
</p>
        <ul>
          <li>
Accumulating and Classifying Information 
</li>
          <li>
Recording and Processing Transactions 
</li>
          <li>
Reporting Financial Information   </li>
        </ul>
        <p>
The CBSI-EBA Accounting Engine<sup>TM </sup>is a transaction processor that receives
transactions from customized CBSI-EBA Business Tools<sup>TM </sup>or other, <strong>anywhere,
anytime and from any client</strong> in the enterprise validates and post
them to the General Ledger. In other words the CBSI-EBA Accounting Engine<sup>TM  </sup>is
a distributed or online General Ledger that also exposes its content through
the standard Financial Statements and other reports.
</p>
        <p>
CBSI-EBA Business Tools<sup>TM </sup>are customizable transaction generators that
represent the money exchanges between the several entities of the enterprise; Disbursements,
Receipts, Point of Sale/Service, Purchasing, Billing, Payroll, etc.
</p>
        <p>
CBSI-EBA Master Sets<sup>TM </sup>are customizable data collectors that are designed
to help with the accumulating and classifying of information and
they represent the entities of the enterprise; Customers, Vendors, Employees, Taxes,
etc.
</p>
        <p>
          <strong>Since all business are not created equal one size does not fit all!</strong>
        </p>
        <img width="0" height="0" src="http://www.blogs.victorero.com/aggbug.ashx?id=6b0f4c40-5d37-485f-88c5-0abdecddb216" />
      </div>
    </content>
  </entry>
  <entry>
    <title>ASMX/WCF Service Aggregation</title>
    <link rel="alternate" type="text/html" href="http://www.blogs.victorero.com/2007/04/18/ASMXWCFServiceAggregation.aspx" />
    <id>http://www.blogs.victorero.com/PermaLink,guid,3966b9f4-9e26-4486-bd0f-14b286ec58da.aspx</id>
    <published>2007-04-18T00:05:19.502-04:00</published>
    <updated>2007-11-08T10:03:08.5338038-05:00</updated>
    <category term="Services" label="Services" scheme="http://www.blogs.victorero.com/CategoryView,category,Services.aspx" />
    <content type="html">&lt;p class=MsoNormal&gt;&lt;?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com:office:smarttags" /&gt;
The Accounting Engine has a set of addressing components that include Countries, States/Provinces,
Zip/Regions, etc. The back-end of these components is composed of WCF (Windows Communication
Foundation) services, business logic, data access repository (DAO) and an O/R mapper
(NHibernate). I have a Smart Client to maintain those components but eventually I
want to be able to use 
&lt;st1:City w:st="on"&gt;
&lt;st1:place w:st="on"&gt;AJAX&lt;/st1:place&gt;
&lt;/st1:City&gt;
as Web Client in the future. The problem is that 
&lt;st1:City w:st="on"&gt;
&lt;st1:place w:st="on"&gt;AJAX&lt;/st1:place&gt;
&lt;/st1:City&gt;
does not support WCF yet and it only supports ASMX services. (Complete support for
WCF Services will be provided with .NET 3.5)
&lt;/p&gt;
&lt;p class=MsoNormal&gt;&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;
Since I want to be able to maintain those components using 
&lt;st1:place w:st="on"&gt;
&lt;st1:City w:st="on"&gt;AJAX&lt;/st1:City&gt;
&lt;/st1:place&gt;
now, I have implemented ASMX client services (aggregators) that make synchronous requests
to the WCF services. 
&lt;/p&gt;
&lt;p class=MsoNormal&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;
For the benefit of those that find themselves in the same situation I will provide
an outline of the steps I performed while creating the CountryService aggregation.
&lt;/p&gt;
&lt;p class=MsoNormal&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;
First I created an ASMX Web project and added references to the Data Contract and
Service Contract projects and to the System.Web.Extensions dll.&lt;span style="mso-spacerun: yes"&gt; &lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;
Then I added a &lt;span style="mso-spacerun: yes"&gt;&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;using&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt; System.Web.Script.Services; &lt;/span&gt;&lt;span style="mso-no-proof: yes"&gt;statement
and the following Attributes:&lt;o:p&gt;&lt;/o:p&gt;
&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="mso-layout-grid-align: none"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&lt;/span&gt;[&lt;span style="COLOR: #2b91af"&gt;ScriptService&lt;/span&gt;]&lt;o:p&gt;&lt;/o:p&gt;
&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="mso-layout-grid-align: none"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&lt;/span&gt;[&lt;span style="COLOR: #2b91af"&gt;GenerateScriptType&lt;/span&gt;(&lt;span style="COLOR: blue"&gt;typeof&lt;/span&gt;(&lt;span style="COLOR: #2b91af"&gt;CountryData&lt;/span&gt;))]&lt;o:p&gt;&lt;/o:p&gt;
&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="mso-layout-grid-align: none"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&lt;/span&gt;[&lt;span style="COLOR: #2b91af"&gt;GenerateScriptType&lt;/span&gt;(&lt;span style="COLOR: blue"&gt;typeof&lt;/span&gt;(&lt;span style="COLOR: #2b91af"&gt;CountryListData&lt;/span&gt;))]&lt;o:p&gt;&lt;/o:p&gt;
&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="mso-layout-grid-align: none"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;
&lt;/span&gt;&lt;span style="mso-no-proof: yes"&gt;I also added the ICountryService interface
(service contract) to the Web Service class:&lt;o:p&gt;&lt;/o:p&gt;
&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="mso-layout-grid-align: none"&gt;
&lt;span style="mso-no-proof: yes"&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;
&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;public&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt; &lt;span style="COLOR: blue"&gt;class&lt;/span&gt; &lt;span style="COLOR: #2b91af"&gt;CountryService&lt;/span&gt; : &lt;span style="COLOR: #2b91af"&gt;WebService&lt;/span&gt;, &lt;span style="COLOR: #2b91af"&gt;ICountryService&lt;o:p&gt;&lt;/o:p&gt;
&lt;/span&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="mso-layout-grid-align: none"&gt;
&lt;span style="FONT-SIZE: 10pt; COLOR: #2b91af; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;
&lt;/span&gt;&lt;span style="mso-no-proof: yes"&gt;generated the stubs for the ICountryService
and added the WebMethod attributes:&lt;o:p&gt;&lt;/o:p&gt;
&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="mso-layout-grid-align: none"&gt;
&lt;span style="mso-no-proof: yes"&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;
&lt;/span&gt;&lt;span style="mso-no-proof: yes"&gt;…&lt;o:p&gt;&lt;/o:p&gt;
&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="mso-layout-grid-align: none"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&lt;/span&gt;[&lt;span style="COLOR: #2b91af"&gt;WebMethod&lt;/span&gt;]&lt;o:p&gt;&lt;/o:p&gt;
&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="mso-layout-grid-align: none"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&lt;/span&gt;&lt;span style="COLOR: blue"&gt;public&lt;/span&gt; &lt;span style="COLOR: #2b91af"&gt;CountryData&lt;/span&gt; Save(&lt;span style="COLOR: #2b91af"&gt;CountryData&lt;/span&gt; data)&lt;o:p&gt;&lt;/o:p&gt;
&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="mso-layout-grid-align: none"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;
&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN-LEFT: 1in; mso-layout-grid-align: none"&gt;
&lt;span style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;throw&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt; &lt;span style="COLOR: blue"&gt;new&lt;/span&gt; &lt;span style="COLOR: #2b91af"&gt;Exception&lt;/span&gt;(&lt;span style="COLOR: #a31515"&gt;"The
method or operation is not implemented."&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;
&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="mso-layout-grid-align: none"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;
&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="mso-layout-grid-align: none"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;
&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;[&lt;span style="COLOR: #2b91af"&gt;WebMethod&lt;/span&gt;]&lt;o:p&gt;&lt;/o:p&gt;
&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="mso-layout-grid-align: none"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&lt;/span&gt;&lt;span style="COLOR: blue"&gt;public&lt;/span&gt; &lt;span style="COLOR: blue"&gt;void&lt;/span&gt; Delete(&lt;span style="COLOR: blue"&gt;int&lt;/span&gt; countryID)&lt;o:p&gt;&lt;/o:p&gt;
&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="mso-layout-grid-align: none"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;
&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN-LEFT: 1in; mso-layout-grid-align: none"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;t&lt;span style="COLOR: blue"&gt;hrow&lt;/span&gt; &lt;span style="COLOR: blue"&gt;new&lt;/span&gt; &lt;span style="COLOR: #2b91af"&gt;Exception&lt;/span&gt;(&lt;span style="COLOR: #a31515"&gt;"The
method or operation is not implemented."&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;
&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="mso-layout-grid-align: none"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&lt;/span&gt;}&lt;/span&gt;&lt;span style="mso-no-proof: yes"&gt;
&lt;o:p&gt;&lt;/o:p&gt;
&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="mso-layout-grid-align: none"&gt;
&lt;span style="mso-no-proof: yes"&gt;…&lt;o:p&gt;&lt;/o:p&gt;
&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="mso-layout-grid-align: none"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;
&lt;/span&gt;Now I needed a typed proxy to access the WCF service and I created that from
a Visual Studio command prompt using the following command:
&lt;/p&gt;
&lt;p class=MsoNormal&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"&gt;wsdl /n:CyberBizSoft.Common.Services
/o:CountryClient.cs /urlkey:CountryClientAddress http://localhost:1218/common/countryservice.svc?wsdl&lt;o:p&gt;&lt;/o:p&gt;
&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;
&lt;/span&gt;After including the generated file in the project I created a class variable
reference to the WCF CountryService:
&lt;/p&gt;
&lt;p class=MsoNormal&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;CountryClient
mClient = &lt;span style="COLOR: blue"&gt;new&lt;/span&gt; CountryClient();&lt;o:p&gt;&lt;/o:p&gt;
&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="mso-layout-grid-align: none"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;
&lt;/span&gt;&lt;span style="mso-no-proof: yes"&gt;Then added the code to all the interface stubs:&lt;o:p&gt;&lt;/o:p&gt;
&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="mso-layout-grid-align: none"&gt;
&lt;span style="mso-no-proof: yes"&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;
&lt;/span&gt;&lt;span style="mso-no-proof: yes"&gt;…&lt;o:p&gt;&lt;/o:p&gt;
&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="mso-layout-grid-align: none"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&lt;/span&gt;[&lt;span style="COLOR: #2b91af"&gt;WebMethod&lt;/span&gt;]&lt;o:p&gt;&lt;/o:p&gt;
&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="mso-layout-grid-align: none"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&lt;/span&gt;&lt;span style="COLOR: blue"&gt;public&lt;/span&gt; &lt;span style="COLOR: #2b91af"&gt;CountryData&lt;/span&gt; Save(&lt;span style="COLOR: #2b91af"&gt;CountryData&lt;/span&gt; data)&lt;o:p&gt;&lt;/o:p&gt;
&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="mso-layout-grid-align: none"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;
&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="mso-layout-grid-align: none"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&lt;/span&gt;&lt;span style="COLOR: blue"&gt;&amp;nbsp;&amp;nbsp;
return&lt;/span&gt; mClient.Save(data);&lt;o:p&gt;&lt;/o:p&gt;
&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="mso-layout-grid-align: none"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;
&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="mso-layout-grid-align: none"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;
&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;[&lt;span style="COLOR: #2b91af"&gt;WebMethod&lt;/span&gt;]&lt;o:p&gt;&lt;/o:p&gt;
&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="mso-layout-grid-align: none"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&lt;/span&gt;&lt;span style="COLOR: blue"&gt;public&lt;/span&gt; &lt;span style="COLOR: blue"&gt;void&lt;/span&gt; Delete(&lt;span style="COLOR: blue"&gt;int&lt;/span&gt; countryID)&lt;o:p&gt;&lt;/o:p&gt;
&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="mso-layout-grid-align: none"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;
&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="mso-layout-grid-align: none"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&lt;/span&gt;&amp;nbsp;&amp;nbsp;
mClient.Delete(countryID);&lt;o:p&gt;&lt;/o:p&gt;
&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="mso-layout-grid-align: none"&gt;
&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;
&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="mso-layout-grid-align: none"&gt;
&lt;span style="mso-no-proof: yes"&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;
&lt;/span&gt;&lt;span style="mso-no-proof: yes"&gt;…&lt;o:p&gt;&lt;/o:p&gt;
&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal&gt;
Finally I added the following to the web.config to specify the endpoint to communicate
with:
&lt;/p&gt;
&lt;p class=MsoNormal&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;
&lt;span style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&amp;lt;&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: #a31515; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;appSettings&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;
&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN-LEFT: 1in; mso-layout-grid-align: none"&gt;
&lt;span style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&amp;lt;&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: #a31515; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;add&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt; &lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: red; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;key&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;=&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;"&lt;span style="COLOR: blue"&gt;CountryClientAddress&lt;/span&gt;"&lt;span style="COLOR: blue"&gt; &lt;/span&gt;&lt;span style="COLOR: red"&gt;value&lt;/span&gt;&lt;span style="COLOR: blue"&gt;=&lt;/span&gt;"&lt;span style="COLOR: blue"&gt;http://localhost:1218/common/countryservice.svc&lt;/span&gt;"&lt;span style="COLOR: blue"&gt;/&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;
&lt;/span&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal&gt;
&lt;span style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&lt;/span&gt;&lt; SPAN&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: #a31515; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;appSettings&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;
&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal&gt;
&lt;span style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;
&lt;/span&gt;&lt;span style="mso-no-proof: yes"&gt;&lt;font color=#000000&gt;&lt;strong&gt;Now I can access
the services from 
&lt;st1:City w:st="on"&gt;
&lt;st1:place w:st="on"&gt;AJAX&lt;/st1:place&gt;
&lt;/st1:City&gt;
!&lt;/strong&gt; &lt;/font&gt;&lt;/span&gt;
&lt;/p&gt;
&gt;&lt;img width="0" height="0" src="http://www.blogs.victorero.com/aggbug.ashx?id=3966b9f4-9e26-4486-bd0f-14b286ec58da" /&gt;</content>
  </entry>
</feed>