Wednesday, June 22, 2011

OSB: getting data from $body

bear in mind these differences when passing $body to XQuery functions:

assume:
 $body  = <soapenv:Body xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">  <BLANotification Type="TrainItinerary" DateTime="2007-10-26T08:36:28" Id="3" ValidityDate="2004-02-14"/></soapenv:Body>

then:
 $body/. = $body
 $body/* = $body/node() = <BLANotification Type="TrainItinerary" DateTime="2007-10-26T08:36:28" Id="3" ValidityDate="2004-02-14"/>

No comments: