Hi,
How can I get the name space of the message header to be declared before the
schema reference? i.e.
At the moment Hermes defaults the SOAP header as:
<soap-env:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xlink="http://www.w3.org/1999/xlink"
xsi:schemaLocation="http://schemas.xmlsoap.org/soap/envelope/
http://www.oasis-open.org/committees/ebxml-msg/schema/envelope.xsd">
<soap-env:Header
xsi:schemaLocation="http://www.oasis-open.org/committees/ebxml-msg/schema/ms
g-header-2_0.xsd
http://www.oasis-open.org/committees/ebxml-msg/schema/msg-header-2_0.xsd">
<eb:MessageHeader
xmlns:eb="http://www.oasis-open.org/committees/ebxml-msg/schema/msg-header-2
_0.xsd" soap-env:mustUnderstand="1" eb:version="2.0">
However I want to get the part:
xmlns:eb="http://www.oasis-open.org/committees/ebxml-msg/schema/msg-header-2
_0.xsd"
to be declared in the SOAP Envelope and not in the MessageHeader, so the
Envelope would look like this:
<soap-env:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:eb="http://www.oasis-open.org/committees/ebxml-msg/schema/msg-header-2
_0.xsd"
xsi:schemaLocation="http://schemas.xmlsoap.org/soap/envelope/
http://www.oasis-open.org/committees/ebxml-msg/schema/envelope.xsd">
<soap-env:Header
xsi:schemaLocation="http://www.oasis-open.org/committees/ebxml-msg/schema/ms
g-header-2_0.xsd
http://www.oasis-open.org/committees/ebxml-msg/schema/msg-header-2_0.xsd">
<eb:MessageHeader soap-env:mustUnderstand="1" eb:version="2.0">
Thanks
Wahid
|