>
> Is there any way to stop the sign method of XMLSignature adding namespace
> information to every element? When I use it the argument list in my SOAP
> message becomes 7 times larger because namespace information is added to
> every element. For long element lists this is causing an OutOfMemory error
> because the SOAP message is too large. For example:
>
> Before calling sign:
>
>     <soapenv:Body SOAP-SEC:id="Body">
>         <ns1:WSMethod1
> soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";
> xmlns:ns1="https://machine.domain:9443/MyApp/services/MyService";>
>             <ns1:arg0 xsi:type="xsd:string">text1</ns1:arg0>
>             <ns1:arg1 xsi:type="xsd:string">text2</ns1:arg1>
>             <ns1:arg2 xsi:type="xsd:string">text3</ns1:arg2>
>
You have two ways, if you use the 1.2 and you don't use xpath
transformations the dom will not be populuted.
If you use xpath or old version, you should c14n before sending it.


Regards,

Raul

http://r-bg.com

Reply via email to