Hi All
I am trying to extract a node from a soap XML through extract variable policy.When extracted the last node which has to be extracted gets appended with all the namespaces present in that SOAP Xml
why is it appending all the namespaces?
ExtractVariables configuration
<ExtractVariables name='EV-1'> <Source>something_here</Source> <XMLPayload stopPayloadProcessing="false"> <Namespaces> <Namespace prefix="soap">http://www.w3.org/2003/05/soap-envelope</Namespace> <Namespace prefix="c">http://www.docusign.net/API/3.0</Namespace> <Namespace prefix="s">http://webservice.bmc.pharmacy.com</Namespace> </Namespaces> <Variable name="process" type="nodeset"> <XPath>/soap:Envelope/soap:Body/c:Root/c:Name/c:Country/node()</XPath> </Variable> </XMLPayload> </ExtractVariables>
SOAP request
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ss="http://schemas.xmlsoap.org/soap/encoding/"> <soap:Body> <Root xmlns="http://www.docusign.net/API/3.0"> <Name> <Country> <Countrycode xmlns="http://webservice.bmc.pharmacy.com"> <Code1>6DCDC360-5339-4028-ACF3-54B639499642</Code1> <Code2>2020-05-26T08:52:30</Code2> <US> <Uscode1>Community and Economic Development Association of Cook County, Inc.</Uscode1> <Uscode2>21</Uscode2> </US> </Countrycode> </Country> </Name> </Root> </soap:Body> </soap:Envelope>
ExtractVariables response
<Countrycode xmlns="http://webservice.bmc.pharmacy.com" xmlns:ss="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <Code1>6DCDC360-5339-4028-ACF3-54B639499642</Code1> <Code2>2020-05-26T08:52:30</Code2> <US> <Uscode1>Community and Economic Development Association of Cook County, Inc.</Uscode1> <Uscode2>21</Uscode2> </US> </Countrycode>
Attaching the details
I don't know why the extraneous namespaces are included there. That seems like an unnecessary side-effect of the ExtractVariables policy.
The XML namespaces do not affect the correctness of the extracted XML, though.
You could remove them with an XSLT if they are bothering you, or causing other problems.
You need the "default" namepace, of course (the pharmacy.com namespace).
Yes,XSLT would work and is working,but i wanted to use the predefined policies to extract to avoid the compiling and all process of an xslt...
Yes,I do need the pharmacy namespace while sending the response .
Is there a ticket raised for this bug of extract variable policy?
User | Count |
---|---|
1 | |
1 | |
1 | |
1 | |
1 |