Presentation on theme: "Louis Maresca Software Development Engineer Microsoft Corporation GP15."— Presentation transcript:
Louis Maresca Software Development Engineer Microsoft Corporation GP15
Explore the basics of Web Services for Microsoft Dynamics GP as we review when and how to leverage this technology. Explore the basics of Web Services for Microsoft Dynamics GP as we review when and how to leverage this technology. We'll demonstrate how to fully utilize Web Services and you'll walk away with insight and knowledge into how this technology translates into greater opportunities for your organization. We'll demonstrate how to fully utilize Web Services and you'll walk away with insight and knowledge into how this technology translates into greater opportunities for your organization.
How many of you are coders? (implementers?) How many are you are PMs? Who has used Web Services (in general)? Who has used GP Web Services before?
What is GP Web Services? How to use Web Services? Some Code… ahhh! Examples Best Practices
WSDL: Web Service Description Language SOAP: Simple Object Access Protocol Proxy: Service Proxy Object ASMX: Web Service Page Decoupled Loosely Typed – Strongly Typed
Do you understand the GP Data Model? Tables|Fields|Relations? WS is a way to talk to GP with out having to understand the BackEnd. Lets Hide\Encapsulate all the complex stuff and talk to something descriptive (human readable!!)
GP Web ServicesGP Web Services WorkflowWorkflow Busines s Portal Portal BDC / Search GP Web Services -Installs to IIS server, and to SQL server. -Consoles can be installed on any machine that can talk to IIS. -Dependency is on -eConnect: It needs access to API through COM+, and stored procedures. -IIS -ADAM/Azman for security Workflow -Installs to MOSS/IIS Server -Dependency on GP Web Services and Windows Workflow GP BDC – Search (Office 12) -Installs to MOSS/IIS Server and to SQL server -Dependency is on - GP Web Services Business Portal -Installs to IIS and SQL server -Dependency is on -GP Web Services -eConnect -MBF -MOSS -WSS CRM Integration -Dependency is on: GP Web Services PortalsPortals CRM Integration Dynamics Mobility Server
What can the service do? Contract 300+ Operations Standard Naming Convention GetBusinessObjectByList GetBusinessObjectByKey CreateBusinessObject DeleteBusinessObject VoidBusinessObject Strongly typed Descriptive things that are returned (objects) rather than TEXT (xml) ReturnsReturns Customer
RequestService Proxy Request Service WSDL (Description)CustomerFOO (GetCustomerByKe y)
Security Subsystem Policy Subsystem Exception Subsystem Create/Update/Delet e Get / GetList
Role Based What Operations belong to that Role? What Tasks Belong to those operations? (e.g., Sales Person) What do can you see? Security Subsystem
You are a SalesPerson and you are assigned to a set of customers GetList (basedonCustomerId) returns only the customers you are assigned
What is a Policy? Internal Policies e.g., Force Credit Limit(s) External Policies e.g., Create a customer with a default Class ID Role Based Each role can have a different set of policies.
There is an error…Is it safe to send back the details?! Not necessarily! We return a error, but to see all of the data, information behind the issue, you can retrieve it from the Exception Service Expose Exception Method
We talk to the Back Office For you… Business Logic/ Validation is done against the data, and performed automatically This is the magic layer for you…
1) Create a Proxy, or use the shipped one 2) Generate a Context 3) Decide, from the Proxy, What Web Operation you are calling 4) Build up your operation call using strongly typed objects in the interface
DynamicsGP clientProxy = new DynamicsGP() Thats IT! Is this slow for you? Why is it slow sometimes?!!!!! [Best Practice] What happens underneath? Do you really want to know? Thinning the contract…
How?! Create a new ASMX, point it to our assembly Thats it! Want a demo?
Properties Organization Key CultureName Currency Role Key WorkOnBehalfOfa
The Service Contract exposes various CRUD operations that include additional GP Specific operations Get_ :Retrieves individual Documents GetList_ : Returns a Collection of objects Create_ : Creates new document Update_ :Updates an existing document Delete_ :Deletes an existing document Void_ :Voids an existing transactions 300+ Web Operations
Two ways to access online evaluation forms CommNet and evaluation stations located throughout the New Orleans Morial Convention Center From any wired or wireless connection to www.msconvergence.com/home.aspxwww.msconvergence.com/home.aspx For more information please refer to your Conference Guide Note: For every attendee who completes an evaluation, Convergence will donate $1 to the Boys & Girls Club of Southeast Louisiana Be eligible to win great daily prizes and the grand prize – a $5,000 Travel Voucher!