Tutorial Addendum on Web Account and SOAP - SOAP RPC Presentation

 31 December 18:00   

    



    



    

Using SOAP Letters to Adjure RPC

    



    

Invocation of added complicated limited procedures requires SOAP messages. Actuality is an example.

    



    

Example 3 - A user wants to amend prices of a account of allotment numbers in an account arrangement with

    

the afterward RPC:

    

 

    

updatePrice(List=ArrayOfStructures)

    



    



    

The SOAP bulletin to adjure the aloft RPC could attending like:

    

 

    

<?xml version="1.0"?>

    

<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">

    

<env:Body

    

env:encodingStyle="http://www.w3.org/2003/05/soap-encoding"

    

xmlns:enc="http://www.w3.org/2003/05/soap-encoding">

    

<rpc:updatePrice enc:nodeType="struct" xmlns:rpc="http://www.yang.com">

    

<rpc:List enc:arraySize="2">

    

<rpc:item>

    

<rpc:PartNumber>123</rpc:PartNumber>

    

<rpc:Price>99.00</rpc:Price>

    

</rpc:item>

    

<rpc:item>

    

<rpc:PartNumber>321</rpc:PartNumber>

    

<rpc:Price>199.00</rpc:Price>

    

</rpc:item>

    

</rpc:List>

    

</rpc:updatePrice>

    

</env:Body>

    

</env:Envelope>

    



    



    



    

RPC Acknowledgment Messages

    



    

Examples of RPC responses:

    



    

Example 1 - A user needs to adjure the afterward RPC on a ambition arrangement alleged "inventory":

    

 

    

getQuantityInStock(PartNumber="123")

    



    



    

This RPC can be invoked as a Web method. The ambition arrangement will retrieve the accepted abundance amount

    

and forward it aback in a SOAP RPC acknowledgment message:

    

 

    

<?xml version="1.0"?>

    

<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">

    

<env:Body

    

env:encodingStyle="http://www.w3.org/2003/05/soap-encoding"

    

xmlns:enc="http://www.w3.org/2003/05/soap-encoding">

    

<res:response enc:nodeType="struct" xmlns:res="http://www.yang.com">

    

<res:result>208</res:result>

    

</res:response>

    

</env:Body>

    

</env:Envelope>

    



    



    

Example 2 - Addition user needs to adjure the afterward RPC on a ambition arrangement alleged "inventory":

    

 

    

updateQuantityInStock(PartNumber="123", NewQuantity="200")

    



    



    

This RPC can be invoked as a Web method. The ambition arrangement will amend the abundance and forward a SOAP RPC acknowledgment bulletin back.

    

The ambition arrangement may adjudge to cover the adapted abundance as the acknowledgment value, and the antecedent amount as an output

    

parameter:

    

 

    

<?xml version="1.0"?>

    

<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">

    

<env:Body

    

env:encodingStyle="http://www.w3.org/2003/05/soap-encoding"

    

xmlns:enc="http://www.w3.org/2003/05/soap-encoding">

    

<res:response enc:nodeType="struct" xmlns:res="http://www.yang.com">

    

<res:result>200</res:result>

    

<res:previousQuantity>208</res:previousQuantity>

    

</res:response>

    

</env:Body>

    

</env:Envelope>

    



    



    

Example 3 - A user wants to amend prices of a account of allotment numbers in an account arrangement with

    

the afterward RPC:

    

 

    

updatePrice(List=ArrayOfStructures)

    



    



    

This RPC can be invoked with a SOAP RPC abracadabra message. The ambition arrangement will amend prices

    

based on the account accustomed as an ascribe constant and forward a SOAP RPC acknowledgment message. The ambition arrangement may decide

    

to cover the amount of prices that accept been adapted as the acknowledgment value:

    

 

    

<?xml version="1.0"?>

    

<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">

    

<env:Body

    

env:encodingStyle="http://www.w3.org/2003/05/soap-encoding"

    

xmlns:enc="http://www.w3.org/2003/05/soap-encoding">

    

<res:response enc:nodeType="struct" xmlns:res="http://www.yang.com">

    

<res:result>2</res:result>

    

</res:response>

    

</env:Body>

    

</env:Envelope>

    



    



    



    

Conclusions

    



    

SOAP RPC Presentation offers some simple rules that users should chase if breeding RPC abracadabra SOAP messages

    

and RPC acknowledgment messages.

    



    

Question for you, can the antecedent arrangement adjure RPC as a Web adjustment after any SOAP messages, and acquiesce the ambition system

    

to acknowledgment SOAP messages?

    



    

 


Tags: prices, system, example, price, called, presentation, value, method, message, messages, target, envelope, response, result

 envelope, xmlns, response, system, target, encoding, result, partnumber, messages, invoke, message, example, nodetype, price, struct, encodingstyle, inventory, update, following, prices, version, updateprice, value, return, method, presentation, invoked, quantity, , < env, http www, org 2003, < rpc, < res, env body, soap encoding, env envelope, target system, res result, soap rpc, res response, rpc response, enc nodetype, struct xmlns, nodetype struct, rpc item, rpc partnumber, rpc price, item <, enc http, yang com, com <, www yang, encoding <, xml version, envelope xmlns, < xml, xmlns enc, soap messages, following rpc, xmlns env, rpc updateprice, env http, encoding xmlns, env encodingstyle, encodingstyle http, envelope <, soap envelope, res http, xmlns res, rpc presentation, response enc, result <, response <, system will, invoke the, rpc can, web method, response message, update prices, soap encoding xmlns, nodetype struct xmlns, env encodingstyle http, enc nodetype struct, env envelope xmlns, target system will, rpc response message, env envelope example, system will update, target system called, updateprice list arrayofstructures, inventory system with, rpc updateprice list, system called inventory,

Share Tutorial Addendum on Web Account and SOAP - SOAP RPC Presentation:
Digg it!   Google Bookmarks   Del.icio.us   Yahoo! MyWeb   Furl  Binklist   Reddit!   Stumble Upon   Technorati   Windows Live   Bookmark

Text link code :
Hyper link code:

Also see ...

Permalink
Article In : Computers & Technology  -  web service