Welcome to Windows Communication Foundation (WCF)
Top Tasks :

POX/REST Encoder and Yahoo Client (Microsoft)

File Details
Downloads: 976 File Size: 15.9kB
Posted By: vipulm Views: 2951
Date Added: Wed, Oct 04 2006

This sample application demonstrate the use of custom POX/REST message encoder to talk to REST based Yahoo! Web service.
 
The POX message encoder allows sending and receiving plain XML (non SOAP) and Text only messages for Interoperability with POX and REST services and clients. The encoder can be used in the Text mode or XML mode which can be configured via a POXMessageProperty. In the text mode, the encoder can send and receive plain text messages. The value of the text message is specified in or obtained from the POXMessageProperty. In the XML mode, the encoder can send the plain XML message without the SOAP envelop. The XML message is the serialized XML value of the body object.

Using the client application you can search Yahoo! for the specified query or you can obtain the spelling suggestion for your query. The request for the Yahoo! web services  is constructed from the user specified arguments in to HTTP query string. The XML response is constructed using the XmlSerializer based data types generated by specifying the response schema to XSD.EXE.

NOTE: You must specify your Yahoo! application ID in the App.Config for the sample to work.

Comments
No comments exist for this file.

Add Comment

Name (required)
Web Site (optional)
Comment (required)
Add

Copyright © 2006 Microsoft Corporation. All Rights Reserved. | Terms of Use | Privacy Statement | Contact Us