WS-Addressing Reference Properties Confusion
From: Fraser Goffin (anonymous_at_discussions.microsoft.com)
Date: 02/23/04
- Previous message: Kuba Gregorski: "Re: Client WSE Signature verification and MachineKeys Access denied."
- Next in thread: Lucien: "Re: WS-Addressing Reference Properties Confusion"
- Reply: Lucien: "Re: WS-Addressing Reference Properties Confusion"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 23 Feb 2004 07:46:07 -0800
The WS-Addressing spec and schema describe the From, ReplyTo, FaultTo and Recipient headers to be of type EndPointReference :-
<xs:element name="From" type="wsa:EndpointReferenceType"/><xs:element name="ReplyTo" type="wsa:EndpointReferenceType"/><xs:element name="FaultTo" type="wsa:EndpointReferenceType"/><xs:element name="Recipient" type="wsa:EndpointReferenceType"/
... and an EndPointReference type is described as follows :-
<xs:element name="EndpointReference" type="wsa:EndpointReferenceType"/><xs:complexType name="EndpointReferenceType"><xs:sequence><xs:element name="Address" type="wsa:AttributedURI"/><xs:element name="ReferenceProperties" type="wsa:ReferencePropertiesType" minOccurs="0"/><xs:element name="PortType" type="wsa:AttributedQName" minOccurs="0"/><xs:element name="ServiceName" type="wsa:ServiceNameType" minOccurs="0"/><xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/></xs:sequence><xs:anyAttribute namespace="##other" processContents="lax"/></xs:complexType>
One could imagine the serialisation of say the ReplyTo element being thus :-
<ReplyTo xmlns="http://schemas.xmlsoap.org/ws/2003/03/addressing"><Address>myURI</Address><ReferenceProperties/><PortType>Q:name</PortType><ServiceName PortName="NCName">Q:name</ServiceName></ReplyTo>
Reading on, the spec talks about how when using a SOAP binding the ReferenceProperties should be encoded, in short, each should become independant header blocks.
My confusion is this....
Say I want to construct a message which informs the receiver to send in the response a CustomerNo. Should I construct a From header which includes the ReferenceProperty 'CustomerNo' like this ? (i.e. NOT a header block, but part of the From header within ReferenceProperties) : -
<From xmlns="http://schemas.xmlsoap.org/ws/2003/03/addressing"><Address>senderURI</Address><ReferenceProperties><frg:CustomerNo>abc123</frg:CustomerNo></ReferenceProperties></From>
such that when the receiver is constructing the response they encode it as :-
<soap:Envelope xmlns:soap="http://www.w3.org/2002/12/soap-envelope" xmlns:frg="some-uri"><soap:Header><To xmlns="http://schemas.xmlsoap.org/ws/2003/03/addressing">senderURI</To><frg:CustomerNo>abc123</frg:CustomerNo>
... other header blocks
This spec is quite thin on implementation detail (or it might just be me being a bit slow :-), but any help greatly appreciated.
Regards
Fraser.
- Previous message: Kuba Gregorski: "Re: Client WSE Signature verification and MachineKeys Access denied."
- Next in thread: Lucien: "Re: WS-Addressing Reference Properties Confusion"
- Reply: Lucien: "Re: WS-Addressing Reference Properties Confusion"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|