SlideShare a Scribd company logo
1 of 6
Download to read offline
Workshop : consume WCF Services in Windows Phone application 2013
1
Objective
 Creating simple WCF Service
 Consuming WCF Service using Windows Phone application.
WCF SERVICE
STEP 1
First of all launch Visual Studio 2012. Click FILE->NEW->PROJECT. Create new "WCF Service
Application".
STEP 2
Once you create the project, you can see in solution that By Default WCF service and interface file are
already created. You should create file as we will create our own interface and WCF service file.
STEP 3
Now right click on solution and create one new WCF service file, and add two classes with your own
name, in my case I will name the interface IWin7MobileService.cs and the class that will implement the
interface Win7MobileService.svc.cs
STEP 4
IWin7MobileService.cs defines the interface of the WCF Service. It has two methods which are essentially
getter and setter methods.
Workshop : consume WCF Services in Windows Phone application 2013
2
STEP 5
Win7MobileService.svc.cs is an implementation of the interface. The class contains a static data member and
the implementation of the methods of the interface.
STEP 6
Web.config file defines essentially the <service> and <serviceBehaviors>. In your implementation, modify
the <baseAddresses> tag with the IP address of the machine
Workshop : consume WCF Services in Windows Phone application 2013
3
Consume WCF using Windows Phone application
STEP 1
Create a new Windows Phone Application. Here, we will not modify manually any XAML code but will
make use of toolbox for controls. As shown below, I’ve made use
of TextBlock, TextBox and Button controls from toolbox.
Workshop : consume WCF Services in Windows Phone application 2013
4
STEP 2
In order to consume deployed WCF Service, right click the project and select Add Service Reference. Enter
the address of the WCF Service (i.e. http://{IP
Address}/wcfserviceforwinmobile/win7mobileservice.svc?wsdl).
This will create ServiceReferences.ClientConfig file in the project. Now you can use WCF Service in your
Client application.
Workshop : consume WCF Services in Windows Phone application 2013
5
STEP 3
The following is the MainPage.xaml.cs code:
Workshop : consume WCF Services in Windows Phone application 2013
6

More Related Content

What's hot

Cloud Testing with Browser & Web Service using test injection technique
Cloud Testing with Browser & Web Service using test injection techniqueCloud Testing with Browser & Web Service using test injection technique
Cloud Testing with Browser & Web Service using test injection techniqueCloudtest Software
 
Aspnet mvc tutorial_01_cs
Aspnet mvc tutorial_01_csAspnet mvc tutorial_01_cs
Aspnet mvc tutorial_01_csAlfa Gama Omega
 
ASP.NET Session 10
ASP.NET Session 10ASP.NET Session 10
ASP.NET Session 10Sisir Ghosh
 
ASP.NET Session 6
ASP.NET Session 6ASP.NET Session 6
ASP.NET Session 6Sisir Ghosh
 
Automatic documentation with mule
Automatic documentation with muleAutomatic documentation with mule
Automatic documentation with muleF K
 
Integration with CMIS using Mule ESB
Integration with CMIS using Mule ESBIntegration with CMIS using Mule ESB
Integration with CMIS using Mule ESBSanjeet Pandey
 
Github plugin setup in anypointstudio
Github plugin setup in anypointstudioGithub plugin setup in anypointstudio
Github plugin setup in anypointstudioRajkattamuri
 
Integration with Microsoft SharePoint using Mule ESB
Integration with Microsoft SharePoint using Mule ESBIntegration with Microsoft SharePoint using Mule ESB
Integration with Microsoft SharePoint using Mule ESBSanjeet Pandey
 
Asp 2-createaspnetmvc
Asp 2-createaspnetmvcAsp 2-createaspnetmvc
Asp 2-createaspnetmvcFajar Baskoro
 
Firebase crashlytics integration in iOS swift (dSYM File Required Problem Res...
Firebase crashlytics integration in iOS swift (dSYM File Required Problem Res...Firebase crashlytics integration in iOS swift (dSYM File Required Problem Res...
Firebase crashlytics integration in iOS swift (dSYM File Required Problem Res...InnovationM
 
Workflow for-dialog flow-integration-with-uipath-and-telephony-gateway
Workflow for-dialog flow-integration-with-uipath-and-telephony-gatewayWorkflow for-dialog flow-integration-with-uipath-and-telephony-gateway
Workflow for-dialog flow-integration-with-uipath-and-telephony-gatewayAjay Singh
 

What's hot (18)

Cloud Testing with Browser & Web Service using test injection technique
Cloud Testing with Browser & Web Service using test injection techniqueCloud Testing with Browser & Web Service using test injection technique
Cloud Testing with Browser & Web Service using test injection technique
 
Aspnet mvc tutorial_01_cs
Aspnet mvc tutorial_01_csAspnet mvc tutorial_01_cs
Aspnet mvc tutorial_01_cs
 
ASP.NET Session 10
ASP.NET Session 10ASP.NET Session 10
ASP.NET Session 10
 
ASP.NET Session 6
ASP.NET Session 6ASP.NET Session 6
ASP.NET Session 6
 
Automatic documentation with mule
Automatic documentation with muleAutomatic documentation with mule
Automatic documentation with mule
 
Mule Integration with Dropbox
Mule Integration with DropboxMule Integration with Dropbox
Mule Integration with Dropbox
 
Servlet session 3
Servlet   session 3Servlet   session 3
Servlet session 3
 
ASP DOT NET
ASP DOT NETASP DOT NET
ASP DOT NET
 
2310 b 03
2310 b 032310 b 03
2310 b 03
 
Integration with CMIS using Mule ESB
Integration with CMIS using Mule ESBIntegration with CMIS using Mule ESB
Integration with CMIS using Mule ESB
 
Github plugin setup in anypointstudio
Github plugin setup in anypointstudioGithub plugin setup in anypointstudio
Github plugin setup in anypointstudio
 
Integration with Microsoft SharePoint using Mule ESB
Integration with Microsoft SharePoint using Mule ESBIntegration with Microsoft SharePoint using Mule ESB
Integration with Microsoft SharePoint using Mule ESB
 
Active x
Active xActive x
Active x
 
Asp 2-createaspnetmvc
Asp 2-createaspnetmvcAsp 2-createaspnetmvc
Asp 2-createaspnetmvc
 
Firebase crashlytics integration in iOS swift (dSYM File Required Problem Res...
Firebase crashlytics integration in iOS swift (dSYM File Required Problem Res...Firebase crashlytics integration in iOS swift (dSYM File Required Problem Res...
Firebase crashlytics integration in iOS swift (dSYM File Required Problem Res...
 
home inspection demo
home inspection demohome inspection demo
home inspection demo
 
Workflow for-dialog flow-integration-with-uipath-and-telephony-gateway
Workflow for-dialog flow-integration-with-uipath-and-telephony-gatewayWorkflow for-dialog flow-integration-with-uipath-and-telephony-gateway
Workflow for-dialog flow-integration-with-uipath-and-telephony-gateway
 
Mule esb
Mule esbMule esb
Mule esb
 

Viewers also liked

Izkušnje pri uporabi ogrodja JSF za prenovo spletne aplikacije COBISS/OPAC
Izkušnje pri uporabi ogrodja JSF za prenovo spletne aplikacije COBISS/OPACIzkušnje pri uporabi ogrodja JSF za prenovo spletne aplikacije COBISS/OPAC
Izkušnje pri uporabi ogrodja JSF za prenovo spletne aplikacije COBISS/OPACbniz
 
지형형성,산지
지형형성,산지지형형성,산지
지형형성,산지Jung A Kwon
 
E-knjige in COBISS
E-knjige in COBISSE-knjige in COBISS
E-knjige in COBISSCOBISS
 
World guinness records 2
World guinness records 2World guinness records 2
World guinness records 2andreaalazcano
 
Xamarin first mobile application
Xamarin first mobile applicationXamarin first mobile application
Xamarin first mobile applicationZayen Chagra
 

Viewers also liked (7)

Izkušnje pri uporabi ogrodja JSF za prenovo spletne aplikacije COBISS/OPAC
Izkušnje pri uporabi ogrodja JSF za prenovo spletne aplikacije COBISS/OPACIzkušnje pri uporabi ogrodja JSF za prenovo spletne aplikacije COBISS/OPAC
Izkušnje pri uporabi ogrodja JSF za prenovo spletne aplikacije COBISS/OPAC
 
지형형성,산지
지형형성,산지지형형성,산지
지형형성,산지
 
E-knjige in COBISS
E-knjige in COBISSE-knjige in COBISS
E-knjige in COBISS
 
Pittsburgh Day Care
Pittsburgh Day CarePittsburgh Day Care
Pittsburgh Day Care
 
World guinness records 2
World guinness records 2World guinness records 2
World guinness records 2
 
Xamarin first mobile application
Xamarin first mobile applicationXamarin first mobile application
Xamarin first mobile application
 
Succession “Losers”: What Happens to Executives Passed Over for the CEO Job?
Succession “Losers”: What Happens to Executives Passed Over for the CEO Job? Succession “Losers”: What Happens to Executives Passed Over for the CEO Job?
Succession “Losers”: What Happens to Executives Passed Over for the CEO Job?
 

Similar to Windows Phone Workshop: WCF services

Background Tasks with Worker Service
Background Tasks with Worker ServiceBackground Tasks with Worker Service
Background Tasks with Worker Servicessusere19c741
 
Part 1 implementing a simple_web_service
Part 1 implementing a simple_web_servicePart 1 implementing a simple_web_service
Part 1 implementing a simple_web_servicekrishmdkk
 
Part 2 generating a client_from_wsdl
Part 2 generating a client_from_wsdlPart 2 generating a client_from_wsdl
Part 2 generating a client_from_wsdlkrishmdkk
 
WCF (Windows Communication Foundation_Unit_01)
WCF (Windows Communication Foundation_Unit_01)WCF (Windows Communication Foundation_Unit_01)
WCF (Windows Communication Foundation_Unit_01)Prashanth Shivakumar
 
ASP.NET MVC Introduction
ASP.NET MVC IntroductionASP.NET MVC Introduction
ASP.NET MVC IntroductionSumit Chhabra
 
Accelerating your application development with IBM BlueMix (Your dream devel...
Accelerating your application development with IBM BlueMix (Your dream devel...Accelerating your application development with IBM BlueMix (Your dream devel...
Accelerating your application development with IBM BlueMix (Your dream devel...Supal Chowdhury
 
Web services in asp.net
Web services in asp.netWeb services in asp.net
Web services in asp.netDharma Raju
 
Login Project with introduction .pptx
Login Project with introduction .pptxLogin Project with introduction .pptx
Login Project with introduction .pptxkulmiyealiabdille
 
Building A Simple Web Service With CXF
Building A Simple Web Service With CXFBuilding A Simple Web Service With CXF
Building A Simple Web Service With CXFCarl Lu
 
Murach: An introduction to web programming with ASP.NET Core MVC
Murach: An introduction to web programming with ASP.NET Core MVCMurach: An introduction to web programming with ASP.NET Core MVC
Murach: An introduction to web programming with ASP.NET Core MVCMahmoudOHassouna
 
WCF tutorial
WCF tutorialWCF tutorial
WCF tutorialAbhi Arya
 
235042632 super-shop-ee
235042632 super-shop-ee235042632 super-shop-ee
235042632 super-shop-eehomeworkping3
 
Creating & consuming simple web service
Creating & consuming simple web serviceCreating & consuming simple web service
Creating & consuming simple web serviceAbhijit B.
 
M365 global developer bootcamp 2019
M365 global developer bootcamp 2019M365 global developer bootcamp 2019
M365 global developer bootcamp 2019Thomas Daly
 

Similar to Windows Phone Workshop: WCF services (20)

Background Tasks with Worker Service
Background Tasks with Worker ServiceBackground Tasks with Worker Service
Background Tasks with Worker Service
 
Part 1 implementing a simple_web_service
Part 1 implementing a simple_web_servicePart 1 implementing a simple_web_service
Part 1 implementing a simple_web_service
 
Practical-3 ws.docx
Practical-3 ws.docxPractical-3 ws.docx
Practical-3 ws.docx
 
Part 2 generating a client_from_wsdl
Part 2 generating a client_from_wsdlPart 2 generating a client_from_wsdl
Part 2 generating a client_from_wsdl
 
WCF (Windows Communication Foundation_Unit_01)
WCF (Windows Communication Foundation_Unit_01)WCF (Windows Communication Foundation_Unit_01)
WCF (Windows Communication Foundation_Unit_01)
 
Dvwkbm lab2 cli1
Dvwkbm lab2 cli1Dvwkbm lab2 cli1
Dvwkbm lab2 cli1
 
Consuming web services_ax2012
Consuming web services_ax2012Consuming web services_ax2012
Consuming web services_ax2012
 
ASP.NET MVC Introduction
ASP.NET MVC IntroductionASP.NET MVC Introduction
ASP.NET MVC Introduction
 
Accelerating your application development with IBM BlueMix (Your dream devel...
Accelerating your application development with IBM BlueMix (Your dream devel...Accelerating your application development with IBM BlueMix (Your dream devel...
Accelerating your application development with IBM BlueMix (Your dream devel...
 
Web services in asp.net
Web services in asp.netWeb services in asp.net
Web services in asp.net
 
Login Project with introduction .pptx
Login Project with introduction .pptxLogin Project with introduction .pptx
Login Project with introduction .pptx
 
Building A Simple Web Service With CXF
Building A Simple Web Service With CXFBuilding A Simple Web Service With CXF
Building A Simple Web Service With CXF
 
Murach: An introduction to web programming with ASP.NET Core MVC
Murach: An introduction to web programming with ASP.NET Core MVCMurach: An introduction to web programming with ASP.NET Core MVC
Murach: An introduction to web programming with ASP.NET Core MVC
 
Unit 5
Unit 5Unit 5
Unit 5
 
WFC #1
WFC #1WFC #1
WFC #1
 
WCF tutorial
WCF tutorialWCF tutorial
WCF tutorial
 
235042632 super-shop-ee
235042632 super-shop-ee235042632 super-shop-ee
235042632 super-shop-ee
 
Creating & consuming simple web service
Creating & consuming simple web serviceCreating & consuming simple web service
Creating & consuming simple web service
 
web application.pptx
web application.pptxweb application.pptx
web application.pptx
 
M365 global developer bootcamp 2019
M365 global developer bootcamp 2019M365 global developer bootcamp 2019
M365 global developer bootcamp 2019
 

More from Zayen Chagra

Xamarin introduction
Xamarin introductionXamarin introduction
Xamarin introductionZayen Chagra
 
5 one minute Xamarin : MVVM
5 one minute Xamarin : MVVM5 one minute Xamarin : MVVM
5 one minute Xamarin : MVVMZayen Chagra
 
3 one minute Xamarin : Custom ListView
3 one minute Xamarin : Custom ListView 3 one minute Xamarin : Custom ListView
3 one minute Xamarin : Custom ListView Zayen Chagra
 
2 one minute Xamarin: Simple ListView
2 one minute Xamarin: Simple ListView2 one minute Xamarin: Simple ListView
2 one minute Xamarin: Simple ListViewZayen Chagra
 
1 one minute xamarin : UI
1 one minute xamarin : UI1 one minute xamarin : UI
1 one minute xamarin : UIZayen Chagra
 
C# features through examples
C# features through examplesC# features through examples
C# features through examplesZayen Chagra
 
The very first steps to make my first Mobile App with Xamarin
The very first steps to make my first Mobile App with XamarinThe very first steps to make my first Mobile App with Xamarin
The very first steps to make my first Mobile App with XamarinZayen Chagra
 
Design and User Experience for Windows & Windows Phone
Design and User Experience for Windows & Windows PhoneDesign and User Experience for Windows & Windows Phone
Design and User Experience for Windows & Windows PhoneZayen Chagra
 
Intel RealSense technology : Overview and demos
Intel RealSense technology : Overview and demosIntel RealSense technology : Overview and demos
Intel RealSense technology : Overview and demosZayen Chagra
 
Dev fest Tunisia 2014: NAO robot and Google technologies
Dev fest Tunisia 2014: NAO robot and Google technologies Dev fest Tunisia 2014: NAO robot and Google technologies
Dev fest Tunisia 2014: NAO robot and Google technologies Zayen Chagra
 
Windows Phone Workshop: RSS - WCF - JSON - Media Element
Windows Phone Workshop: RSS - WCF - JSON - Media ElementWindows Phone Workshop: RSS - WCF - JSON - Media Element
Windows Phone Workshop: RSS - WCF - JSON - Media ElementZayen Chagra
 
Windows Phone Workshop: Globalization
Windows Phone Workshop: GlobalizationWindows Phone Workshop: Globalization
Windows Phone Workshop: GlobalizationZayen Chagra
 
Windows Phone Workshop: Isolated Storage / LINQ to SQL
Windows Phone Workshop: Isolated Storage / LINQ to SQLWindows Phone Workshop: Isolated Storage / LINQ to SQL
Windows Phone Workshop: Isolated Storage / LINQ to SQLZayen Chagra
 
Windows Phone Workshop: Navigation and parameters
Windows Phone Workshop: Navigation and parameters Windows Phone Workshop: Navigation and parameters
Windows Phone Workshop: Navigation and parameters Zayen Chagra
 
Windows Phone Workshop sensors and battery
Windows Phone Workshop sensors and batteryWindows Phone Workshop sensors and battery
Windows Phone Workshop sensors and batteryZayen Chagra
 
Windows Phone Workshop launchers and choosers
Windows Phone Workshop launchers and choosersWindows Phone Workshop launchers and choosers
Windows Phone Workshop launchers and choosersZayen Chagra
 
Windows 8 seminar presentation
Windows 8 seminar presentationWindows 8 seminar presentation
Windows 8 seminar presentationZayen Chagra
 

More from Zayen Chagra (17)

Xamarin introduction
Xamarin introductionXamarin introduction
Xamarin introduction
 
5 one minute Xamarin : MVVM
5 one minute Xamarin : MVVM5 one minute Xamarin : MVVM
5 one minute Xamarin : MVVM
 
3 one minute Xamarin : Custom ListView
3 one minute Xamarin : Custom ListView 3 one minute Xamarin : Custom ListView
3 one minute Xamarin : Custom ListView
 
2 one minute Xamarin: Simple ListView
2 one minute Xamarin: Simple ListView2 one minute Xamarin: Simple ListView
2 one minute Xamarin: Simple ListView
 
1 one minute xamarin : UI
1 one minute xamarin : UI1 one minute xamarin : UI
1 one minute xamarin : UI
 
C# features through examples
C# features through examplesC# features through examples
C# features through examples
 
The very first steps to make my first Mobile App with Xamarin
The very first steps to make my first Mobile App with XamarinThe very first steps to make my first Mobile App with Xamarin
The very first steps to make my first Mobile App with Xamarin
 
Design and User Experience for Windows & Windows Phone
Design and User Experience for Windows & Windows PhoneDesign and User Experience for Windows & Windows Phone
Design and User Experience for Windows & Windows Phone
 
Intel RealSense technology : Overview and demos
Intel RealSense technology : Overview and demosIntel RealSense technology : Overview and demos
Intel RealSense technology : Overview and demos
 
Dev fest Tunisia 2014: NAO robot and Google technologies
Dev fest Tunisia 2014: NAO robot and Google technologies Dev fest Tunisia 2014: NAO robot and Google technologies
Dev fest Tunisia 2014: NAO robot and Google technologies
 
Windows Phone Workshop: RSS - WCF - JSON - Media Element
Windows Phone Workshop: RSS - WCF - JSON - Media ElementWindows Phone Workshop: RSS - WCF - JSON - Media Element
Windows Phone Workshop: RSS - WCF - JSON - Media Element
 
Windows Phone Workshop: Globalization
Windows Phone Workshop: GlobalizationWindows Phone Workshop: Globalization
Windows Phone Workshop: Globalization
 
Windows Phone Workshop: Isolated Storage / LINQ to SQL
Windows Phone Workshop: Isolated Storage / LINQ to SQLWindows Phone Workshop: Isolated Storage / LINQ to SQL
Windows Phone Workshop: Isolated Storage / LINQ to SQL
 
Windows Phone Workshop: Navigation and parameters
Windows Phone Workshop: Navigation and parameters Windows Phone Workshop: Navigation and parameters
Windows Phone Workshop: Navigation and parameters
 
Windows Phone Workshop sensors and battery
Windows Phone Workshop sensors and batteryWindows Phone Workshop sensors and battery
Windows Phone Workshop sensors and battery
 
Windows Phone Workshop launchers and choosers
Windows Phone Workshop launchers and choosersWindows Phone Workshop launchers and choosers
Windows Phone Workshop launchers and choosers
 
Windows 8 seminar presentation
Windows 8 seminar presentationWindows 8 seminar presentation
Windows 8 seminar presentation
 

Recently uploaded

Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsPixlogix Infotech
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DayH2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DaySri Ambati
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningLars Bell
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfRankYa
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 

Recently uploaded (20)

Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DayH2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdf
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 

Windows Phone Workshop: WCF services

  • 1. Workshop : consume WCF Services in Windows Phone application 2013 1 Objective  Creating simple WCF Service  Consuming WCF Service using Windows Phone application. WCF SERVICE STEP 1 First of all launch Visual Studio 2012. Click FILE->NEW->PROJECT. Create new "WCF Service Application". STEP 2 Once you create the project, you can see in solution that By Default WCF service and interface file are already created. You should create file as we will create our own interface and WCF service file. STEP 3 Now right click on solution and create one new WCF service file, and add two classes with your own name, in my case I will name the interface IWin7MobileService.cs and the class that will implement the interface Win7MobileService.svc.cs STEP 4 IWin7MobileService.cs defines the interface of the WCF Service. It has two methods which are essentially getter and setter methods.
  • 2. Workshop : consume WCF Services in Windows Phone application 2013 2 STEP 5 Win7MobileService.svc.cs is an implementation of the interface. The class contains a static data member and the implementation of the methods of the interface. STEP 6 Web.config file defines essentially the <service> and <serviceBehaviors>. In your implementation, modify the <baseAddresses> tag with the IP address of the machine
  • 3. Workshop : consume WCF Services in Windows Phone application 2013 3 Consume WCF using Windows Phone application STEP 1 Create a new Windows Phone Application. Here, we will not modify manually any XAML code but will make use of toolbox for controls. As shown below, I’ve made use of TextBlock, TextBox and Button controls from toolbox.
  • 4. Workshop : consume WCF Services in Windows Phone application 2013 4 STEP 2 In order to consume deployed WCF Service, right click the project and select Add Service Reference. Enter the address of the WCF Service (i.e. http://{IP Address}/wcfserviceforwinmobile/win7mobileservice.svc?wsdl). This will create ServiceReferences.ClientConfig file in the project. Now you can use WCF Service in your Client application.
  • 5. Workshop : consume WCF Services in Windows Phone application 2013 5 STEP 3 The following is the MainPage.xaml.cs code:
  • 6. Workshop : consume WCF Services in Windows Phone application 2013 6