|
From: Wahid M. <wa...@ph...> - 2005-06-29 09:45:24
|
Mattias, I don't think I want to change my XML implementation as its strictly defined from another party. I have noticed that Hermes gives the ability to add attributes to the MessageHeader but I can't find a way of adding or modifying attributes of the Envelope section. Thanks -----Original Message----- From: Wahid Muhammad Sent: 28 June 2005 17:18 To: 'ebx...@li...' Subject: Changing SOAP Header attributes 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 |