Ce SoA Web s 教育部-BM专业综合改革项目 SOAP Message Structure The root element is SOAP V1.1 always“ Envelope namespace <?xml version=1.0"encoding="UTF-8?> <soapenv: Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv: Header> The optional <I-- Insert header info here -- Header'element <soapenv: Header> <soapenv: Body> The required Insert message body here--> “Body" element </soapenv: Body> contains the soap </soapenv: Envelope> request Lan Zhou University
SOA & Web Service Lan Zhou University 教育部-IBM专业综合改革项目 SOAP Message Structure
Ce SOA& Web s 教育部-BM专业综合改革项目 SOAP Message Envelope Embedded Information Namespaces Encoding information Header Optional Can be handled by intermediaries Body Mandatory Handled only by ultimate receiver Lan Zhou University
SOA & Web Service Lan Zhou University 教育部-IBM专业综合改革项目 SOAP Message Envelope ▪ Embedded Information – Namespaces – Encoding information ▪ Header – Optional – Can be handled by intermediaries ▪ Body – Mandatory – Handled only by ultimate receiver
Ce SOA& Web s 教育部-BM专业综合改革项目 SOAP Header (env: Header) Intermediaries Initial Sender Ultimate Receiver SOAP SOAP SOAP a Used for extension send Sender- Receive Sender- Receiver Receiver Context Authentication Nodes/SoAP Applications Transaction Management Many other sysem level semantics Made of Header blocks(Header entries) Most Web services standard activities are basically defining standard header entries for a particular domain Lan Zhou University
SOA & Web Service Lan Zhou University 教育部-IBM专业综合改革项目 SOAP Header (<env:Header>) ▪ Used for extension – Context – Authentication – Transaction – Management – Many other sysem level semantics ▪ Made of Header blocks (Header entries) ▪ Most Web services standard activities are basically defining standard header entries for a particular domain
Ce SoA Web s 教育部-BM专业综合改革项目 SOAP Body (<env: Body> Made of Body blocks Body entries) Consumed by ultimate SoAP receiver Carry end-to-end information Application data(Xml document)(document style RPC method and parameters(rpc style) SOAP fault Lan Zhou University
SOA & Web Service Lan Zhou University 教育部-IBM专业综合改革项目 SOAP Body (<env:Body>) ▪ Made of Body blocks (Body entries) ▪ Consumed by Ultimate SOAP receiver ▪ Carry end-to-end information – Application data (XML document) (document style) – RPC method and parameters (rpc style) – SOAP fault
SoA Web s 教育部-BM专业综合改革项目 SOAP document exchange example <?xml version="1. 0" encoding="UTF-8"?> <soapenv: Envelope xmins:soapenvahttp://schemas.xmlsoap.org/soap/envelope/"> <soapenv: Body> <purchaseorderxmlns=http://purchaseorder.beans <orderinfo> <orderid> 9876 </orderId> <itemName> Car </itemName> dorderInfo <custIne> <cus tomerId> 9876 </customerId> <cus tomerName> John Doe <cus tomerName> </custInfo> </purchaseorder> </soapenv: Body> <soapenv: Envelope> Lan Zhou University
SOA & Web Service Lan Zhou University 教育部-IBM专业综合改革项目 SOAP document exchange example