<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;">
<div>I’m developing a SOAP client Moose Role for my job that uses XML::Compile::WSDL11 under the hood. If I use multiple WSDL’s, which will happen in at least one module consuming this Role, I get the error “explicit selection required”. At first, I was going
to require the consuming class to specify the SOAP method -> service map, but I discovered that $wsdl->operations already knows what service goes to what method. Is there any reason, save two services with the same method name, not to do the following?</div>
<div><br>
</div>
<div> my %method_services = map { $_->name => $_->serviceName } $wsdl->operations</div>
<div> </div>
<div> sub call { </div>
<div> my ($self, $method, %options) = @_;</div>
<div> $options{‘service’} = $method_services{$method};</div>
<div> $self->wsdl->compileCall($method, %options);</div>
<div> }</div>
<div><br>
</div>
<div>KP</div>
</body>
</html>