BizTalk Utilities CV ,   Jobs ,   Code library  
 
Home Page
WCF, WS, SOAP
SoapFormatter vs XmlSerializer
A Serialized SOAP Message
Retrieving Message Headers
SOAP Headers
Deserializing an Object Graph
Serializing an Object Graph
The SoapFormatter
Runtime Object Serialization
Importance of a UDDI based Service Registry
BizTalk and WCF: Part V, Publishing Operations Patterns
BizTalk and WCF: Part IV, Attachment Patterns
BizTalk and WCF: Part III, Transaction Patterns
BizTalk and WCF: Part II, Security Patterns
BizTalk and WCF: Part I, Operation Patterns
Accessing UDDI using Apache Scout APIs
Storing state in an XML property bag
UDDIExplorer
XslTransport for PocketSOAP
Kafka - XSLT SOAP Toolkit
VB Web services Proxy Generator
<< Uncategorized
XALAN >>

By :Mark Wilson
I am the creator of TopXML. I am available for international and local (Australia) contracts. I am a Solution Architect/Business Analyst. I have worked in IT in several countries (NZ, Australia, South Africa, UK) building and training teams for government and very large non-governmental organizations. I am ex-Microsoft Consulting Services. I wrote the first book on Microsoft XML published in 2000 called XML Programming with VB and ASP. Most recently I have been building tools for the SEO industry. Ask me for a 37 point SEO health-checkup for your website.
First posted :03/24/2008
Times viewed :306

 

RPC using the NET SoapFormatter

The SoapFormatter can generate two different types of SOAP messages: document-style messages for serialized objects and messages suited for RPC-style communication. While the intention behind the two messages types is very different, the format of the two message types is very similar. Specifically the format for RPC messages is defined in Section 7 of the SOAP standard describes the format for RPC as follows:

  • The first child element in the message body is named after the method to invoke.
  • Each inbound method parameter ([in] and [in,out] - This syntax is borrowed from the Interface Definition Langauge, which lets users specify in which directions to marshal a method parameter) is modeled as a child element of the method element. They appear in the same order as in the method definition.
  • If a parameter references any struct-like values they have to be encoded according to the serialization format in section 5 of the standard.

When you read through the above list you may notice that he only difference between the two formats is the meaning of the first element in the message body. In an RPC message the first body entry identifies the method to invoke, not the root object of a serialized object graph.

Figure The architecture of a SOAP RPC system. A client communicates with a server through SOAP messages to invoke methods on the server. The client sends a SOAP message to the server to request a method invocation. The server executes the method and returns a SOAP message containing the results of the invocation.

In the following we will learn how we can leverage the SoapFormatter’s built-in support for the SOAP RPC-format to build an distributed component infrastructure á la WebServices or DCOM. We will develop the RPC counter parts of the sender and receiver classes we developed in chapter 13. We will also learn how to return the results of a method invocation or return information about errors that occurred while a method request was processed.


Rate this article on a scale of 1 to 10

Your vote :  


 

Recent Jobs

Software Developers Needed in Charl
Sr. Software Engineer - Analytics
Immediate Mainframe openings for Ch
Immediate TANDEM-TAL openings for C
Immediate ASP.NET/C# Openings for C

View all Jobs (Add yours)
View all CV (Add yours)



conference calling
swimming pool builder
spfxmasks
water softener
Teleconference
Host Department NOLIMIT Web Hosting
MSN
sunglasses


    Email TopXML  

Front Page Daily Stuff TopXML Forum XML blogs XML Newsgroups BizTalk Biztalk Utilities Biztalk Utilities Tutorial B2B SAP XML Microsoft .NET Dotnet System XML Soapformatter SQLXML XMLserializer XQuery PHP PHP SimpleXML PHP XML Dom PHP XML RPC PHP XSLT Java Java Java XML Xalan Microsoft ASP ASP Schemas XML SQL Server XML XMLDom XSL XSL Tutorial XSLT Stylesheets General Javascript CSS XHTML WAP