<div dir="ltr">Resending now that I&#39;ve registered on the list.<br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Dec 1, 2014 at 5:48 PM, Robert Woodard <span dir="ltr">&lt;<a href="mailto:robt.woodard@gmail.com" target="_blank">robt.woodard@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">

<p class="MsoNormal">I’m having a terrible time trying to figure out how to get
the WSS SOAP header out of my compiled client.<span> 
</span>For some reason, doing this:</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal"><span style="font-size:10pt;font-family:&quot;Courier New&quot;">use
XML::Compile::WSDL11;</span></p>

<p class="MsoNormal"><span style="font-size:10pt;font-family:&quot;Courier New&quot;">use
XML::Compile::SOAP11;</span></p>

<p class="MsoNormal"><span style="font-size:10pt;font-family:&quot;Courier New&quot;">use
XML::Compile::Transport::SOAPHTTP;</span></p>

<p class="MsoNormal"><span style="font-size:10pt;font-family:&quot;Courier New&quot;">use
XML::Compile::C14N::Util qw/C14N_EXC_NO_COMM/;</span></p>

<p class="MsoNormal"><span style="font-size:10pt;font-family:&quot;Courier New&quot;">use
XML::Compile::Util qw/pack_type/;</span></p>

<p class="MsoNormal"><span style="font-size:10pt;font-family:&quot;Courier New&quot;"> </span></p>

<p class="MsoNormal"><span style="font-size:10pt;font-family:&quot;Courier New&quot;">my
$wsdl = XML::Compile::WSDL11-&gt;new(“TicketManagement.wsdl&quot;);</span></p>

<p class="MsoNormal"><span style="font-size:10pt;font-family:&quot;Courier New&quot;"> </span></p>

<p class="MsoNormal"><span style="font-size:10pt;font-family:&quot;Courier New&quot;">my
$createTroubleTicket = $wsdl-&gt;compileClient( &#39;createTroubleTicket&#39; );</span></p>

<p class="MsoNormal"><span style="font-size:10pt;font-family:&quot;Courier New&quot;"> </span></p>

<p class="MsoNormal"><span style="font-size:10pt;font-family:&quot;Courier New&quot;">my
@ticket_params = (</span></p>

<p class="MsoNormal"><span style="font-size:10pt;font-family:&quot;Courier New&quot;"><span>    </span>parameters =&gt; {</span></p>

<p class="MsoNormal"><span style="font-size:10pt;font-family:&quot;Courier New&quot;"><span>        </span>TroubleTicket =&gt; $ticket_xml,</span></p>

<p class="MsoNormal"><span style="font-size:10pt;font-family:&quot;Courier New&quot;"><span>    </span>}</span></p>

<p class="MsoNormal"><span style="font-size:10pt;font-family:&quot;Courier New&quot;">);</span></p>

<p class="MsoNormal"><span style="font-size:10pt;font-family:&quot;Courier New&quot;"> </span></p>

<p class="MsoNormal"><span style="font-size:10pt;font-family:&quot;Courier New&quot;">my
($response, $trace) = $createTroubleTicket-&gt;( @ticket_params );</span></p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">Yields this SOAP object:</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">&lt;?xml version=&quot;1.0&quot;
encoding=&quot;UTF-8&quot;?&gt;</p>

<p class="MsoNormal">&lt;SOAP-ENV:Envelope xmlns:SOAP-ENV=&quot;<a href="http://schemas.xmlsoap.org/soap/envelope/" target="_blank">http://schemas.xmlsoap.org/soap/envelope/</a>&quot;&gt;</p>

<p class="MsoNormal"><span>   
</span>&lt;SOAP-ENV:Header&gt;</p>

<p class="MsoNormal"><span>       
</span>&lt;wsse:Security
xmlns:wsse=&quot;<a href="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" target="_blank">http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd</a>&quot;
SOAP-ENV:mustUnderstand=&quot;1&quot;/&gt;</p>

<p class="MsoNormal"><span>   
</span>&lt;/SOAP-ENV:Header&gt;</p>

<p class="MsoNormal"><span>   
</span>&lt;SOAP-ENV:Body&gt;</p>

<p class="MsoNormal">[…]</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">And the web service responds (using Dumper($response) to
dump the response object):</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;">Fault =&gt; {</span></p>

<p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;"><span>    </span>faultstring =&gt; &#39;MustUnderstand headers:
[{<a href="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd%7DSecurity" target="_blank">http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd}Security</a>]
are not understood.&#39;,</span></p>

<p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;"><span>    </span>faultcode =&gt;
&#39;{<a href="http://schemas.xmlsoap.org/soap/envelope/%7DMustUnderstand" target="_blank">http://schemas.xmlsoap.org/soap/envelope/}MustUnderstand</a>&#39;,</span></p>

<p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;"><span>    </span>_NAME =&gt; &#39;error&#39;</span></p>

<p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;"><span>  </span>},</span></p>

<p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;"><span>  </span>wsse_Security =&gt; {},</span></p>

<p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;"><span>  </span>error =&gt; {</span></p>

<p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;"><span>    </span>reason =&gt; &#39;MustUnderstand headers:
[{<a href="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd%7DSecurity" target="_blank">http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd}Security</a>]
are not understood.&#39;,</span></p>

<p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;"><span>    </span>class =&gt; [</span></p>

<p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;"><span>     
</span>&#39;<a href="http://schemas.xmlsoap.org/soap/envelope/" target="_blank">http://schemas.xmlsoap.org/soap/envelope/</a>&#39;,</span></p>

<p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;"><span>      </span>&#39;MustUnderstand&#39;</span></p>

<p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;"><span>    </span>],</span></p>

<p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;"><span>    </span>code =&gt;
&#39;{<a href="http://schemas.xmlsoap.org/soap/envelope/%7DMustUnderstand" target="_blank">http://schemas.xmlsoap.org/soap/envelope/}MustUnderstand</a>&#39;</span></p>

<p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;"><span>  </span>}</span></p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">I am at my wits’ end trying to figure out how to get rid of
that SOAP header…or to get mustUnderstand set to zero.<span>  </span>Turning on WSS security on the service is not
an option, unfortunately.</p><p class="MsoNormal"><br></p><p class="MsoNormal">Any suggestions?</p><p class="MsoNormal"><br></p><p class="MsoNormal">Sincerely,</p><p class="MsoNormal"><br></p><p class="MsoNormal">Rob Woodard</p><p class="MsoNormal"><a href="mailto:robt.woodard@gmail.com" target="_blank">robt.woodard@gmail.com</a><br></p>

</div>
</blockquote></div><br></div></div>