SlideShare uma empresa Scribd logo
1 de 18
///Code—webservice to insert data into data into the
database
using   System;
using   System.Data;
using   System.Web;
using   System.Collections;
using   System.Web.Services;
using   System.Web.Services.Protocols;
using   System.ComponentModel;
using   System.Data.SqlClient;

namespace inwebservice
{

    public class Service1 : System.Web.Services.WebService
    {

        [WebMethod]
        public bool information(string strSno,string strSname)
        {
            try
            {
                SqlConnection cn = new SqlConnection(quot;Data Source= -;Initial
Catalog=Assignment2;user id=kiprms;Password=
                cn.Open();
                SqlCommand cmd = new SqlCommand();
                cmd.Connection = cn;
                cmd.CommandType = CommandType.Text;
                int sno = int.Parse(strSno);
                string sname = strSname;
                cmd.CommandText = quot;insert into student values (quot; + sno + quot;,'quot;
+ sname + quot;')quot;;
                cmd.ExecuteNonQuery();
                cn.Close();
                return true;
            }
            catch
            {
                return false;
            }
        }
    }
}
2) Run the web service




3)click the method “”information””
4)Then enter the values in the following document




5) after clicking the invoke button we are going to get the
following form
6)Data is inserted successfully
7)copy the url
6) Now working with infopath form.
7) Goto All programsMicrosoft officeMicrosoft office
infopath 2007
8)A form will be opened in following way in that click design
form template
9)A new form window will be opened in that click blank icon
and press ok.




10)A new infopath form will be opened in the design mode click
controls in the design task and add the required controls
11)In that form window goto tools and select submit options
12) right click on the first textbox and select textbox properties
in that select the type of the text to be entered the textbox,
and in the same way for the remaining text box
12) a new window will be opened in that unclear the “allow
users to submit the form” and select webservice in the
dropdown list finally click advanced in that unclear that use
custom messages write the comments in the fields,




13)click add button in the submit options window.
14)paste the url of the webservice the following window
And then click next
15)select the web method in the following window and the
press next
16) Associate each and every field in info path form with fields
in web service by clicking the icon behind field or group
17)Then unclear the submit data as a string field and finally
click next
18)Finally click finish
19) Then press ok in the submit options button
20) in the infopath form click file menu and then select publish
button
21) save the form.
22) unclear the check box corresponding a new network
location and then click next
23)Browse the location of the infopath form save it with
different name for example newinfopath.xsn and then click
next
24) Finally publish the document
25) if we publish the document now we can enter data when
we click the button we will get a form (“success”) or a form
with (“failure”) if it is success then we can come to the
conclusion that data is successfully entered into the database.
How to work with infopath form in offline
  1)   Save the infopath form in the required location after
       publishing when ever it is needed we can directly enter the
       data into the database.
How to deploy infopath form in MOSS 2007
1) Open required site in the site actions options select create
   option then in the new form select create form templates
   options where we can directly infopath form from saved
   location

Mais conteúdo relacionado

Destaque

How To Configure Email Enabled Lists In Moss2007 Rtm Using Exchange 2003
How To Configure Email Enabled Lists In Moss2007 Rtm Using Exchange 2003How To Configure Email Enabled Lists In Moss2007 Rtm Using Exchange 2003
How To Configure Email Enabled Lists In Moss2007 Rtm Using Exchange 2003
LiquidHub
 
Pre Install Databases
Pre Install DatabasesPre Install Databases
Pre Install Databases
LiquidHub
 
Simple Farm Server Deployment
Simple Farm Server DeploymentSimple Farm Server Deployment
Simple Farm Server Deployment
LiquidHub
 
Moss 2007 Backup Strategies
Moss 2007 Backup StrategiesMoss 2007 Backup Strategies
Moss 2007 Backup Strategies
LiquidHub
 
eBooks, eReaders and
eBooks, eReaders and eBooks, eReaders and
eBooks, eReaders and
Denise O'Shea
 
Office2007 Overview Express
Office2007 Overview ExpressOffice2007 Overview Express
Office2007 Overview Express
LiquidHub
 

Destaque (9)

How To Configure Email Enabled Lists In Moss2007 Rtm Using Exchange 2003
How To Configure Email Enabled Lists In Moss2007 Rtm Using Exchange 2003How To Configure Email Enabled Lists In Moss2007 Rtm Using Exchange 2003
How To Configure Email Enabled Lists In Moss2007 Rtm Using Exchange 2003
 
Pre Install Databases
Pre Install DatabasesPre Install Databases
Pre Install Databases
 
Simple Farm Server Deployment
Simple Farm Server DeploymentSimple Farm Server Deployment
Simple Farm Server Deployment
 
Moss 2007 Backup Strategies
Moss 2007 Backup StrategiesMoss 2007 Backup Strategies
Moss 2007 Backup Strategies
 
LOD2 Plenary Vienna 2012: WP12 - Project Management
LOD2 Plenary Vienna 2012: WP12 - Project ManagementLOD2 Plenary Vienna 2012: WP12 - Project Management
LOD2 Plenary Vienna 2012: WP12 - Project Management
 
eBooks, eReaders and
eBooks, eReaders and eBooks, eReaders and
eBooks, eReaders and
 
Boost Up your Sales with SBOeCube Sales Dashboards
Boost Up your Sales with SBOeCube Sales DashboardsBoost Up your Sales with SBOeCube Sales Dashboards
Boost Up your Sales with SBOeCube Sales Dashboards
 
Office2007 Overview Express
Office2007 Overview ExpressOffice2007 Overview Express
Office2007 Overview Express
 
Proyecto de desnutricion
Proyecto de desnutricionProyecto de desnutricion
Proyecto de desnutricion
 

Semelhante a Working With Infopath 2007

Previous weeks work has been uploaded as well as any other pieces ne.docx
Previous weeks work has been uploaded as well as any other pieces ne.docxPrevious weeks work has been uploaded as well as any other pieces ne.docx
Previous weeks work has been uploaded as well as any other pieces ne.docx
keilenettie
 
CIS407AWk2iLabDefault.aspx Greetings and Salutations.docx
CIS407AWk2iLabDefault.aspx        Greetings and Salutations.docxCIS407AWk2iLabDefault.aspx        Greetings and Salutations.docx
CIS407AWk2iLabDefault.aspx Greetings and Salutations.docx
clarebernice
 
Cis407 a ilab 4 web application development devry university
Cis407 a ilab 4 web application development devry universityCis407 a ilab 4 web application development devry university
Cis407 a ilab 4 web application development devry university
lhkslkdh89009
 
Database By Salman Mushtaq
Database By Salman MushtaqDatabase By Salman Mushtaq
Database By Salman Mushtaq
Salman Mushtaq
 
Line Graph Analysis using R Script for Intel Edison - IoT Foundation Data - N...
Line Graph Analysis using R Script for Intel Edison - IoT Foundation Data - N...Line Graph Analysis using R Script for Intel Edison - IoT Foundation Data - N...
Line Graph Analysis using R Script for Intel Edison - IoT Foundation Data - N...
WithTheBest
 
please code in c#- please note that im a complete beginner- northwind.docx
please code in c#- please note that im a complete beginner-  northwind.docxplease code in c#- please note that im a complete beginner-  northwind.docx
please code in c#- please note that im a complete beginner- northwind.docx
AustinaGRPaigey
 
in order to save data from access database and search from it in c# .pdf
in order to save data from access database and search from it in c# .pdfin order to save data from access database and search from it in c# .pdf
in order to save data from access database and search from it in c# .pdf
kalerottnerheissst52
 

Semelhante a Working With Infopath 2007 (20)

Open microsoft visual studio/tutorialoutlet
Open microsoft visual studio/tutorialoutletOpen microsoft visual studio/tutorialoutlet
Open microsoft visual studio/tutorialoutlet
 
Previous weeks work has been uploaded as well as any other pieces ne.docx
Previous weeks work has been uploaded as well as any other pieces ne.docxPrevious weeks work has been uploaded as well as any other pieces ne.docx
Previous weeks work has been uploaded as well as any other pieces ne.docx
 
Prep 2-booklet-2nd-term-2016-2017
Prep 2-booklet-2nd-term-2016-2017Prep 2-booklet-2nd-term-2016-2017
Prep 2-booklet-2nd-term-2016-2017
 
Micro services from scratch - Part 1
Micro services from scratch - Part 1Micro services from scratch - Part 1
Micro services from scratch - Part 1
 
CIS407AWk2iLabDefault.aspx Greetings and Salutations.docx
CIS407AWk2iLabDefault.aspx        Greetings and Salutations.docxCIS407AWk2iLabDefault.aspx        Greetings and Salutations.docx
CIS407AWk2iLabDefault.aspx Greetings and Salutations.docx
 
ASP DOT NET
ASP DOT NETASP DOT NET
ASP DOT NET
 
Project: Call Center Management
Project: Call Center ManagementProject: Call Center Management
Project: Call Center Management
 
Cis407 a ilab 4 web application development devry university
Cis407 a ilab 4 web application development devry universityCis407 a ilab 4 web application development devry university
Cis407 a ilab 4 web application development devry university
 
Programming Without Coding Technology (PWCT) - Browse control
Programming Without Coding Technology (PWCT) - Browse controlProgramming Without Coding Technology (PWCT) - Browse control
Programming Without Coding Technology (PWCT) - Browse control
 
Database By Salman Mushtaq
Database By Salman MushtaqDatabase By Salman Mushtaq
Database By Salman Mushtaq
 
data binding.docx
data binding.docxdata binding.docx
data binding.docx
 
Programming Without Coding Technology (PWCT) - Show PDF using InternetExplore...
Programming Without Coding Technology (PWCT) - Show PDF using InternetExplore...Programming Without Coding Technology (PWCT) - Show PDF using InternetExplore...
Programming Without Coding Technology (PWCT) - Show PDF using InternetExplore...
 
Programming Without Coding Technology (PWCT) - ShellExplorer Sample
Programming Without Coding Technology (PWCT) - ShellExplorer SampleProgramming Without Coding Technology (PWCT) - ShellExplorer Sample
Programming Without Coding Technology (PWCT) - ShellExplorer Sample
 
Line Graph Analysis using R Script for Intel Edison - IoT Foundation Data - N...
Line Graph Analysis using R Script for Intel Edison - IoT Foundation Data - N...Line Graph Analysis using R Script for Intel Edison - IoT Foundation Data - N...
Line Graph Analysis using R Script for Intel Edison - IoT Foundation Data - N...
 
please code in c#- please note that im a complete beginner- northwind.docx
please code in c#- please note that im a complete beginner-  northwind.docxplease code in c#- please note that im a complete beginner-  northwind.docx
please code in c#- please note that im a complete beginner- northwind.docx
 
.net programming using asp.net to make web project
 .net programming using asp.net to make web project .net programming using asp.net to make web project
.net programming using asp.net to make web project
 
Programming Without Coding Technology (PWCT) - ASCII Code
Programming Without Coding Technology (PWCT) - ASCII CodeProgramming Without Coding Technology (PWCT) - ASCII Code
Programming Without Coding Technology (PWCT) - ASCII Code
 
in order to save data from access database and search from it in c# .pdf
in order to save data from access database and search from it in c# .pdfin order to save data from access database and search from it in c# .pdf
in order to save data from access database and search from it in c# .pdf
 
Creating a dot netnuke
Creating a dot netnukeCreating a dot netnuke
Creating a dot netnuke
 
Programming Without Coding Technology (PWCT) - Internet Explorer ActiveX Control
Programming Without Coding Technology (PWCT) - Internet Explorer ActiveX ControlProgramming Without Coding Technology (PWCT) - Internet Explorer ActiveX Control
Programming Without Coding Technology (PWCT) - Internet Explorer ActiveX Control
 

Mais de LiquidHub

Sharepoint 2013 upgrade process
Sharepoint 2013 upgrade processSharepoint 2013 upgrade process
Sharepoint 2013 upgrade process
LiquidHub
 
Share point 2013
Share point 2013Share point 2013
Share point 2013
LiquidHub
 
Share point 2010-uiimprovements
Share point 2010-uiimprovementsShare point 2010-uiimprovements
Share point 2010-uiimprovements
LiquidHub
 
Microsoft office-sharepoint-server-2007-presentation-120211522467022-2
Microsoft office-sharepoint-server-2007-presentation-120211522467022-2Microsoft office-sharepoint-server-2007-presentation-120211522467022-2
Microsoft office-sharepoint-server-2007-presentation-120211522467022-2
LiquidHub
 
Managing metadata in_share_point_2010
Managing metadata in_share_point_2010Managing metadata in_share_point_2010
Managing metadata in_share_point_2010
LiquidHub
 
Fast search for share point
Fast search for share pointFast search for share point
Fast search for share point
LiquidHub
 
Moss 2007 Deployment Detail
Moss 2007 Deployment DetailMoss 2007 Deployment Detail
Moss 2007 Deployment Detail
LiquidHub
 
5060 A 01 Demonstration Steps
5060 A 01 Demonstration Steps5060 A 01 Demonstration Steps
5060 A 01 Demonstration Steps
LiquidHub
 
Overviewofthe2007 Microsoft Office System Components Refresh
Overviewofthe2007 Microsoft Office System Components RefreshOverviewofthe2007 Microsoft Office System Components Refresh
Overviewofthe2007 Microsoft Office System Components Refresh
LiquidHub
 
Organizingand Finding Resourceswith Office Share Point Server2007 Refresh
Organizingand Finding Resourceswith Office Share Point Server2007 RefreshOrganizingand Finding Resourceswith Office Share Point Server2007 Refresh
Organizingand Finding Resourceswith Office Share Point Server2007 Refresh
LiquidHub
 
Organizingand Finding Resourceswith Office Share Point Server2007
Organizingand Finding Resourceswith Office Share Point Server2007Organizingand Finding Resourceswith Office Share Point Server2007
Organizingand Finding Resourceswith Office Share Point Server2007
LiquidHub
 
Office Share Point Server2007 Functionaland Architectural Overview
Office Share Point Server2007 Functionaland Architectural OverviewOffice Share Point Server2007 Functionaland Architectural Overview
Office Share Point Server2007 Functionaland Architectural Overview
LiquidHub
 
Moss2007 Installation Configuration
Moss2007 Installation ConfigurationMoss2007 Installation Configuration
Moss2007 Installation Configuration
LiquidHub
 
Moss2007 Enterprise Features Administration
Moss2007 Enterprise Features AdministrationMoss2007 Enterprise Features Administration
Moss2007 Enterprise Features Administration
LiquidHub
 
Microsoft Windows Share Point Services Installation Configuration
Microsoft Windows Share Point Services Installation ConfigurationMicrosoft Windows Share Point Services Installation Configuration
Microsoft Windows Share Point Services Installation Configuration
LiquidHub
 
Introductionto Windows Share Point Services3.0
Introductionto Windows Share Point Services3.0Introductionto Windows Share Point Services3.0
Introductionto Windows Share Point Services3.0
LiquidHub
 
Introducing Content Types Microsoft Windows Share Point Services
Introducing Content Types Microsoft Windows Share Point ServicesIntroducing Content Types Microsoft Windows Share Point Services
Introducing Content Types Microsoft Windows Share Point Services
LiquidHub
 

Mais de LiquidHub (20)

Share point 2013 coding standards and best practices 1.0
Share point 2013 coding standards and best practices 1.0Share point 2013 coding standards and best practices 1.0
Share point 2013 coding standards and best practices 1.0
 
Sharepoint 2013 upgrade process
Sharepoint 2013 upgrade processSharepoint 2013 upgrade process
Sharepoint 2013 upgrade process
 
Share point 2013
Share point 2013Share point 2013
Share point 2013
 
Share point 2010-uiimprovements
Share point 2010-uiimprovementsShare point 2010-uiimprovements
Share point 2010-uiimprovements
 
Microsoft office-sharepoint-server-2007-presentation-120211522467022-2
Microsoft office-sharepoint-server-2007-presentation-120211522467022-2Microsoft office-sharepoint-server-2007-presentation-120211522467022-2
Microsoft office-sharepoint-server-2007-presentation-120211522467022-2
 
Managing metadata in_share_point_2010
Managing metadata in_share_point_2010Managing metadata in_share_point_2010
Managing metadata in_share_point_2010
 
Fast search for share point
Fast search for share pointFast search for share point
Fast search for share point
 
Moss 2007 Deployment Detail
Moss 2007 Deployment DetailMoss 2007 Deployment Detail
Moss 2007 Deployment Detail
 
Bdc Screens
Bdc ScreensBdc Screens
Bdc Screens
 
Bdc Screens
Bdc ScreensBdc Screens
Bdc Screens
 
5060 A 01 Demonstration Steps
5060 A 01 Demonstration Steps5060 A 01 Demonstration Steps
5060 A 01 Demonstration Steps
 
Overviewofthe2007 Microsoft Office System Components Refresh
Overviewofthe2007 Microsoft Office System Components RefreshOverviewofthe2007 Microsoft Office System Components Refresh
Overviewofthe2007 Microsoft Office System Components Refresh
 
Organizingand Finding Resourceswith Office Share Point Server2007 Refresh
Organizingand Finding Resourceswith Office Share Point Server2007 RefreshOrganizingand Finding Resourceswith Office Share Point Server2007 Refresh
Organizingand Finding Resourceswith Office Share Point Server2007 Refresh
 
Organizingand Finding Resourceswith Office Share Point Server2007
Organizingand Finding Resourceswith Office Share Point Server2007Organizingand Finding Resourceswith Office Share Point Server2007
Organizingand Finding Resourceswith Office Share Point Server2007
 
Office Share Point Server2007 Functionaland Architectural Overview
Office Share Point Server2007 Functionaland Architectural OverviewOffice Share Point Server2007 Functionaland Architectural Overview
Office Share Point Server2007 Functionaland Architectural Overview
 
Moss2007 Installation Configuration
Moss2007 Installation ConfigurationMoss2007 Installation Configuration
Moss2007 Installation Configuration
 
Moss2007 Enterprise Features Administration
Moss2007 Enterprise Features AdministrationMoss2007 Enterprise Features Administration
Moss2007 Enterprise Features Administration
 
Microsoft Windows Share Point Services Installation Configuration
Microsoft Windows Share Point Services Installation ConfigurationMicrosoft Windows Share Point Services Installation Configuration
Microsoft Windows Share Point Services Installation Configuration
 
Introductionto Windows Share Point Services3.0
Introductionto Windows Share Point Services3.0Introductionto Windows Share Point Services3.0
Introductionto Windows Share Point Services3.0
 
Introducing Content Types Microsoft Windows Share Point Services
Introducing Content Types Microsoft Windows Share Point ServicesIntroducing Content Types Microsoft Windows Share Point Services
Introducing Content Types Microsoft Windows Share Point Services
 

Último

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Último (20)

How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 

Working With Infopath 2007

  • 1. ///Code—webservice to insert data into data into the database using System; using System.Data; using System.Web; using System.Collections; using System.Web.Services; using System.Web.Services.Protocols; using System.ComponentModel; using System.Data.SqlClient; namespace inwebservice { public class Service1 : System.Web.Services.WebService { [WebMethod] public bool information(string strSno,string strSname) { try { SqlConnection cn = new SqlConnection(quot;Data Source= -;Initial Catalog=Assignment2;user id=kiprms;Password= cn.Open(); SqlCommand cmd = new SqlCommand(); cmd.Connection = cn; cmd.CommandType = CommandType.Text; int sno = int.Parse(strSno); string sname = strSname; cmd.CommandText = quot;insert into student values (quot; + sno + quot;,'quot; + sname + quot;')quot;; cmd.ExecuteNonQuery(); cn.Close(); return true; } catch { return false; } } } }
  • 2. 2) Run the web service 3)click the method “”information””
  • 3. 4)Then enter the values in the following document 5) after clicking the invoke button we are going to get the following form
  • 4. 6)Data is inserted successfully 7)copy the url
  • 5. 6) Now working with infopath form. 7) Goto All programsMicrosoft officeMicrosoft office infopath 2007 8)A form will be opened in following way in that click design form template
  • 6. 9)A new form window will be opened in that click blank icon and press ok. 10)A new infopath form will be opened in the design mode click controls in the design task and add the required controls
  • 7. 11)In that form window goto tools and select submit options 12) right click on the first textbox and select textbox properties in that select the type of the text to be entered the textbox, and in the same way for the remaining text box
  • 8. 12) a new window will be opened in that unclear the “allow users to submit the form” and select webservice in the dropdown list finally click advanced in that unclear that use custom messages write the comments in the fields, 13)click add button in the submit options window. 14)paste the url of the webservice the following window
  • 9. And then click next 15)select the web method in the following window and the press next
  • 10. 16) Associate each and every field in info path form with fields in web service by clicking the icon behind field or group
  • 11. 17)Then unclear the submit data as a string field and finally click next
  • 12. 18)Finally click finish 19) Then press ok in the submit options button 20) in the infopath form click file menu and then select publish button
  • 13. 21) save the form.
  • 14. 22) unclear the check box corresponding a new network location and then click next 23)Browse the location of the infopath form save it with different name for example newinfopath.xsn and then click next
  • 15.
  • 16. 24) Finally publish the document
  • 17. 25) if we publish the document now we can enter data when we click the button we will get a form (“success”) or a form with (“failure”) if it is success then we can come to the conclusion that data is successfully entered into the database. How to work with infopath form in offline 1) Save the infopath form in the required location after publishing when ever it is needed we can directly enter the data into the database.
  • 18. How to deploy infopath form in MOSS 2007 1) Open required site in the site actions options select create option then in the new form select create form templates options where we can directly infopath form from saved location