[Xml-compile] Custom SOAP11 header
Kaare Rasmussen
kaare at jasonic.dk
Mon Nov 1 14:53:27 GMT 2010
Hi
I have to access a service with authentication. Authentication is performed
using a custom SOAP header. The header is named AuthHeader and contain two
elements, UserName and Password.
The documentation leads me to believe I should be able to do something like
this:
my $authHeader = {
UserName => 'user',
Password => 'password',
};
my $myns = '{http://namespace/}';
my $h1el = pack_type( $myns, $authHeader);
my $method = 'someMethod';
my $call = $wsdl->compileClient(
operation => $method,
port => 'port',
header => [ AuthHeader => $h1el, ]
);
But XML::Compile::SOAP11 expects something else. Can I somehow tell
compileClient to use a customer SOAP header, is it compileMessage for each
call, or what am I missing?
--
Med venlig hilsen
Kaare Rasmussen, Jasonic
Jasonic Telefon: +45 3816 2582
Nordre Fasanvej 12
2000 Frederiksberg Email: kaare at jasonic.dk
More information about the Xml-compile
mailing list