Menu

#83 on_action removed in SOAP::WSDL >= 2.00

2.0x
closed-fixed
5
2008-04-24
2008-04-24
Anonymous
No

after upgrading from SOAP::WSDL 1.2x to SOAP::WSDL 2.x

on_action was removed.

broken sample code:

my $soap = SOAP::WSDL->new( wsdl => 'file://my.wsdl' );
$soap->proxy('https://any.url.de/bla.asmx');

# .NET wants SOAPAction with / instead of (perl standard) #
$soap->on_action( sub { join '/', @_ } );

$soap->wsdlinit( caching => 1 );

# .NET delivers untyped example code - we do the same.
$soap->autotype(0);

my $som = $soap->call( SomeInstances => %{$data} );

$som->match('/Envelope/Body/[1]/[1]/[1]'); # match method

my $first_value = $som->valueof('[1]');

Discussion

  • Martin Kutter

    Martin Kutter - 2008-04-24

    Logged In: YES
    user_id=884175
    Originator: NO

    Setting on_action is not required any more, the appropriate value is
    automatically taken from the WSDL.

    I added a on_action no-op for compatibility issues in rev621 in SVN.

    Thanks for reporting,

    Martin

     
  • Martin Kutter

    Martin Kutter - 2008-04-24
    • assigned_to: nobody --> kutterma
    • status: open --> closed-fixed
     

Log in to post a comment.