I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2009-05-07 22:56:35-07 by eamondaly
Adding to the Header?
I can't for the life of me figure out how to add a WS-Security header to my calls. I've been trying various permutations of SOAP::WSDL::Deserializer and SOAP::WSDL::Deserializer::Hash, such as:
use SOAP::WSDL::Deserializer::Hash; my $header = SOAP::WSDL::Deserializer::Hash->deserialize($header_xml); my $response = $service->list ( { # MyTypes::ListRequest filter => $filter }, $header );
but no_dispatch just shows an empty header:
<SOAP-ENV:Header></SOAP-ENV:Header>
What am I missing?
Direct Responses: 10661 | Write a response
Posted on 2009-05-09 17:42:58-07 by mkutter in response to 10639
Re: Adding to the Header?
Hi,
there's no support for WS-Security in SOAP::WSDL, so your're quite on your own there.
The best approach probably is to write your own serializer/deserializer pair.
While the serializer has to add the WS-Security header, the deserializer has to remove it. The deserializer is the tricky part, because SOAP::WSDL's parser will possibly throw errors on unexpected elements (like the WS-Security stuff). You may need to add the WS-Security elements to the typemap used by the parser.
Martin
Direct Responses: Write a response