Showing posts with label Web Service. Show all posts
Showing posts with label Web Service. Show all posts

Aug 14, 2008

Pro PHP XML and Web Services (Pro)

Pro PHP XML and Web Services is the authoritative guide to using the XML features of PHP 5 and PHP 6. No other book covers XML and Web Services in PHP as deeply as this title. The first four chapters introduce the core concepts of XML required for proficiency, and will bring you up to speed on the terminology and key concepts you need to proceed with the rest of the book. Next, the book explores utilizing XML and Web Services with PHP5. Topics include DOM, SimpleXML, SAX, xmlReader, XSLT, RDF, RSS, WDDX, XML-RPC, REST, SOAP, and UDDI.

Author Robert Richards, a major contributor to the PHP XML codebase, is a leading expert in the PHP community. In this book, Richards covers all topics in depth, blending theory with practical examples. Youll find case studies for the most popular web services like Amazon, Google, eBay, and Yahoo. The book also covers XML capabilities, demonstrated through informative examples, in the PEAR libraries.


About the Author
Robert Richards, currently an independent contractor, has worked in various fields including Medical Information, Telecommunications, Media and E-Learning. Having been exposed to XML since its inception and used for various projects during his career, his most extensive work with the technology was within the E-Learning space. He helped created a proprietary XML based application server which used XML for data publishing, defining application business logic as well as data querying. He was also the lead engineer for the company's involvement in SCORM (Shareable Content Object Reference Model), used for Web based learning, established by the Department of Defense through its Advanced Distributed Learning (ADL) initiative.

After becoming the latest casualty of the "dot-com" implosion in 2001, Rob had his first taste of PHP and began contributing code to the domxml extension in 2002. Since then he became one of the authors of the DOM extension for PHP 5, contributes to the other XML based extensions and has authored the xmlReader, for PHP 5, and xmlwriter, for PHP 4.3+, extensions. Also on occasion, he contributes bug fixes to the libxml2 project found during the development of these extensions.


Download:
http://rapidshare.de/files/31391202/b-042b01.rar
http://www.mytempdir.com/899095

Apr 30, 2008

Pro PHP XML and Web Services


How This Book Is Structured

For you to get the most out of XML and Web services in PHP, this book is really grouped into three sections. The first section contains terminology and technical information about XML. This includes the concepts and structure of an XML document, validation, and other XML technologies commonly used. The chapters covering this information are based on various specifications. These specifications often use cryptic language and are difficult to understand, so I distill the information in clear terms.

The next group of chapters covers how to parse and manipulate XML documents using some of the extensions in PHP. I explain each extension and its API in detail with real-world examples to help reenforce the concepts covered. I also compare and contrast the extensions, providing you with some insight about where a particular extension excels and how it may not be the correct one to use in a particular situation.

The last group of chapters covers Web services. Although only a single native Web service extension exists in PHP (SOAP), I will provide in-depth coverage of additional technologies using
the extensions from earlier chapters. In addition, I will cover how to integrate with the Yahoo, Google, Amazon, and eBay Web services. Specifically, the chapters break down as follows:

Chapter 1, “Introduction to XML and Web Services”: This chapter provides some background information about XML and Web services. In addition, the chapter defines what these terms mean, explains the history of how they came about, and shows some examples of how XML is used in the real world.

Chapter 2, “XML Structure”: The XML 1.0 specification defines what XML is and the structure of documents but uses language that is not always so straightforward. This chapter explains the structure of an XML document in simple terms and provides some lucid examples. In addition, this chapter introduces some terminology used throughout the book.

Chapter 3, “Validation”: This chapter explains the use of validation in XML using Document Type Definitions (DTDs), XML Schemas, and RELAX NG.

Chapter 4, “XPath, XPointer, XInclude, and the Future”: The focus of this chapter is explaining how to write XPath expressions to query an XML document. You can use XPath with a few of the PHP extensions, and XPath serves as the foundation for XSLT in Chapter 10. The chapter also explains both XPointer and XInclude, which allow for more advanced XML processing.

Chapter 5, “PHP and XML”: This chapter introduces the new XML support in PHP 5.
It explains much of the functionality shared by the XML-based extensions, such as parser options, error handling, PHP streams, and document encoding.

Chapter 6,“Document Object Model (DOM)”: This chapter provides an in-depth look at using the DOM extension and shows how it is used to manipulate an XML document.

Chapter 7, “SimpleXML”: The SimpleXML extension provides a simple interface for working with XML documents. This chapter explains how to use the extension to access virtually any type of XML document, including more complex ones that use namespaces.

Chapter 8, “Simple API for XML (SAX)”: This chapter explains how to work with the xml extension and covers issues you may encounter when migrating an application that uses this extension from PHP 4 to PHP 5.

Chapter 9, “XMLReader”: The XMLReader extension is a lightweight parser and an alternative to the xml extension covered in Chapter 8. This chapter explains and demonstrates how to process an XML document using this extension.

Chapter 10, “Extensible Stylesheet Language Transformation (XSLT)”: You can transform XML documents using XSLT. This chapter begins by explaining the XSLT specification in easy-to-understand terms. Then, this chapter shows how to use the XSL extension in PHP to perform transformations.

Chapter 11, “Effective and Efficient Processing”: With a number of different extensions that can be used to work with XML in PHP, it is often difficult to decide which one to use. This chapter explains the differences between the extensions and continues with tips and tricks that can be used to optimally work with XML in PHP.

Chapter 12, “XML Security”: Data integrity and data security are topics that every developer must be concerned with when writing applications. In this chapter, you will learn how to work with digital signatures and encryption as they pertain to XML.

Chapter 13, “PEAR and XML”: The PHP Extension and Application Repository (PEAR) is a collection of software that can be used when writing an application. This chapter introduces PEAR and explores some of the XML packages it provides.

Chapter 14, “Content Syndication: RSS and Atom”: Content syndication has become popular with the explosion of weblogs (blogs). This chapter examines the three formats that are used to syndicate data and shows how to create and consume syndicated feeds using the PHP extensions.

Chapter 15, “Web Distributed Data Exchange (WDDX)”: This chapter explains what WDDX is and how you can use the wddx extension to exchange data between systems.

Chapter 16, “XML-RPC”: This chapter examines the structure and exchange of XML-RPC documents. You will then learn about the xmlrpc extension and how you can use it to communicate with remote systems.

Chapter 17, “Representational State Transfer (REST)”: Representational State Transfer (REST) is a simple method to create and consume Web services. I demonstrate how to create and consume REST-based services. In particular, you will see how to consume some real services from both Yahoo and Amazon.

Chapter 18, “SOAP”: SOAP allows for the creation of complex Web services. The specifications involved are also quite complex. In this chapter, I show examples of both the Web Services Description Language (WSDL) specification and the SOAP specification. Using this knowledge, you will see how to use the SOAP extension in PHP using realworld examples from eBay and Google.

Chapter 19,“Universal Description,Discovery, and Integration (UDDI)”: UDDI is a technology meant to make working with Web services easier. This chapter shows how you can use PHP to access and maintain records in a UDDI registry.

Chapter 20, “PEAR and Web Services”: Chapter 13 introduces PEAR and its XML packages;this chapter introduces you to some packages that you can use to create and consume a variety of Web services.

Chapter 21, “Other XML Technologies and Extensions”: There are too many XML-based technologies to cover in a single book. In this chapter, I will introduce you to the XMLWriter and SDO XML Data Access Service extensions as well as show how to work with Ajax and Wireless Application Protocol (WAP) using PHP.


DOWNLOAD THIS BOOK

Apr 9, 2008

JSP and XML Integrating XML and Web Services in Your JSP Application

Download XML Tutorial, About JSP and XML Integrating XML and Web Services in Your JSP Application:
The purpose of this book is to teach you how to implement XML and Web services within a JSP Web application or site. The book will start very simply and then work its way up in complexity. This will make the book accessible to a wide range of readers.

The target audience includes new and intermediate JSP programmers. However, this book will be useful for any JSP programmer who wants to expand his or her XML or Web service implementation knowledge. The book is also geared towards helping a JSP programmer think in terms of the combination of JSP, XML, and Web services. The goal is to show how to usefully integrate these technologies into your projects and share the lessons we have learned in building Web applications.

We are programmers who spend quite a bit of time building Web applications. Over the past few years, we have been implementing XML in our projects. However, implementing XML is easier said than done at times. Even worse, many times XML is implemented in ways that can be harmful to a project. You should never use XML for XML's sake. This book is a reflection of our ordeals in learning the various tools and the methods of incorporating XML in a useful way into a Web site.

The problem for developers hasn't been about finding information on java XML api, but about using XML successfully within Web applications. While there are plenty of solid XML titles, no title really focuses on how to integrate XML into your JSP project. This book is written with the JSP developer in mind. We want to help teach XML, XSL, XPath, and the entire alphabet soup that goes along with XML. By showing how to use XML within a JSP framework, we intend to help make implementing XML both easy and advantageous for the JSP developer.

Filetype : chm
By Casey Kochmer, Erica Frandsen
Publisher: Addison Wesley
Pub Date: March 19, 2002
ISBN : 0-672-32354-0
Pages : 592
Publisher: O'Reilly
Pub Date: January 2004
ISBN : 0-596-00572-5
Pages : 746

Download this Books

Apr 7, 2008

The Java™ WSIT Tutorial For Web Services Interoperability Technologies Milestone Release 6


What is WSIT?
Sun is working closely with Microsoft to ensure interoperability of web services enterprise technologies such as message optimization, reliable messaging, and security. The initial release of WSIT is a product of this joint effort. WSIT is an implementation of a number of open web services specifications to support enterprise features. In addition to message optimization, reliable messaging, and security,WSIT includes a bootstrapping and configuration technology. Figure 1– 1 shows the underlying services that were implemented for each technology.

Introduction
This tutorial describes how to use the Web Services Interoperability Technologies (WSIT) - a product of Sun Microsystems web services interoperability effort to develop Java clients and service providers that interoperate with Microsoft .NET 3.0 clients and service providers.

The tutorial consists of the following chapters:
• This chapter, the introduction, introduces WSIT, highlights the features of each WSIT technology, describes the standards that WSIT implements for each technology, and provides high-level descriptions of how each technology works.

• Chapter 2 provides instructions for creating, deploying, and testing Web service providers and clients using NetBeans IDE.

• Chapter 3 describes how to create a WSIT client from a Web Service Description Language (WSDL) file.

• Chapter 4 describes how to configure web service providers and clients to use message optimization.

• Chapter 5 describes how to configure web service providers and clients to use reliable messaging.

• Chapter 6 describes how to use the NetBeans IDE to configure web service providers and clients to use web services security.

• Chapter 7 provides code examples and instructions for creating, deploying, and testing web service providers and clients using either of the supported web containers.

• Chapter 8 describes how to build and run a Microsoft Windows Communication Foundation (WCF) client that accesses the addnumbers service described in Chapter 7.

• Chapter 9 describes the best practices for production and consumption of data contracts for interoperability between WCF web services and Java web service clients or Java web services and WCF web service clients.

• Chapter 10 describes Atomic Transactions.

Filetype : pdf
August 24, 2007
Download this Books

Apr 5, 2008

SOA Using Java Web Services

Java became a powerful development platform for Service-Oriented Architecture (SOA) in 2006. Java EE 5, released in May 2006, signi.cantly enhanced the power and usability of the Web Services capabilities on the application server. Then Java SE 6, released in December 2006, incorporated the majority of those capabilities into the standard edition of the Java programming language.

Because robust Web Services technology is the foundation for implementing SOA, Java now provides the tools modern enterprises require to integrate their Java applications into SOA infrastructures. Of course, Java has had basic Web Services capabilities for some time. JAX-RPC 1.0 was released in June 2002. J2EE 1.4, .nalized in November 2003, included JAX-RPC 1.1. So what is signi.cant about the latest versions of the Java Web Services (JWS) APIs?
The answers are power and ease of use. Programmers will .nd it much easier to build enterprise-class applications with Web Services in Java EE 5 than in J2EE 1.4. Evidence of that is contained in Chapters 9 and 10, which describe an application I developed to integrate online shopping across eBay, Yahoo! Shopping, and Amazon. It’s a pure Java EE 5 application, called SOAShopper, that consumes REST and SOAP services from those shopping sites. SOAShopper also provides its own SOAP and REST endpoints for cross-platform search, and supports an Ajax front-end. SOAShopper would have been a struggle to develop using J2EE 1.4 and JAX-RPC. With the new Java Web Services standards, it was a pleasure to write.

This book focuses on the following standards comprising the new Java
Web Services:
1. JAX-WS 2.0 [JSR 224]—The Java API for XML-Based Web Services.
The successor to JAX-RPC, it enables you to build and consume Web services with Java.

2. JAXB 2.0 [JSR 222]—The Java Architecture for XML Binding.
Tightly integrated with JAX-WS, the JAXB standard controls how Java objects are represented as XML.

3. WS-Metadata [JSR 181]—Web Services Metadata for the Java Platform.
WS-Metadata provides annotations that facilitate the .exible de.nition and deployment of Java Web Services.

4. WSEE 1.2 [JSR 109]—Web Services for Java EE. WSEE de.nes the programming model and run-time behavior of Web Services in the Java EE container. These standards contain a few big improvements and many little enhancements that add up to a signi.cantly more powerful Web Services programming platform.
New annotations, for example, make it easier to write Web Services applications. And the delegation, in JAX-WS 2.0 [JSR 224], of the Java/XML binding to JAXB 2.0 [JSR 222] greatly improves the usability of JAX-WS as compared with JAX-RPC. The deployment model has been greatly simpli.ed by WS-Metadata 1.0 [JSR 181] and an improved 1.2 release of WSEE [JSR-109].

Chapters 1 and 2 review these JWS standards in detail and describe how they improve on the previous set of JWS standards. Chapters 3 through 10 focus on writing code. To really understand the power and ease of use of the new Java Web Services, you need to start writing code. And that is primarily what this book is about. Chapters 3 through 10 are packed with code examples showing you how to best take advantage of the powerful features, avoid some of the pitfalls, and work around some of the limitations. Chapter 11 looks to the future and offers some ideas, along with a prototype implementation, for a WSDL-centric approach to creating Web Services that might further improve JWS as a platform for Service-Oriented Architecture.

I started writing this book in 2002, when JAX-RPC .rst appeared on the scene. I soon ran into trouble, though, because I wanted it to be a book for programmers and I had a hard time writing good sample code with JAXRPC. Four years later, when I started playing around with beta versions of the GlassFish Java EE 5 application server, I noticed that things had signi.- cantly improved. It was now fun to program Web Services in Java and I recommitted myself to .nishing this book.
The result is a book with lots of code showing you how to deal with SOAP, WSDL, and REST from inside the Java programming language. Hopefully this code, and the writing that goes with it, will help you master Java Web Services and enable you to start using Java as a powerful platform for SOA.

Filetype : pdf
First printing, April 2007
Page : 605
Download SOA Using Java Web Services