Skip to content

Commit

Permalink
fix for SOAP 1.2 not returning faultNotImplemeted instead returns fau…
Browse files Browse the repository at this point in the history
…ltNoAnswerProduced
  • Loading branch information
Sheeju Alex committed Jul 28, 2018
1 parent 679b3a1 commit 9e91b96
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/XML/Compile/SOAP/Server.pm
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,15 @@ sub compileHandler(@)
}

my $answer = $callback->($self, $data, $session);

#For SOAP 1.2 $answer returns XML::LibXML::Document object
#This is used for faultNotImplemented callback
if(ref($answer) eq 'XML::LibXML::Document') {
notice __x"procedure {name} is LibXML doc", name => $name;
return ( RC_INTERNAL_SERVER_ERROR, 'invalid answer produced'
, $self->faultNotImplemented($name));
}

unless(defined $answer)
{ notice __x"procedure {name} did not produce an answer", name=>$name;
return ( RC_INTERNAL_SERVER_ERROR, 'no answer produced'
Expand Down

0 comments on commit 9e91b96

Please sign in to comment.