#!/usr/bin/perl
package Deletecontext;
use strict;
use Data::Dumper;
use base qw(BasicCommandlineOptions);


#Use the SOAP::Lite Perl module
#use SOAP::Lite +trace => 'debug';
use SOAP::Lite;

my $test = new Deletecontext();
$test->doRequest();

sub new {
	my ($inPkg) = @_;
	my $self = BasicCommandlineOptions->new();
	
	bless $self, $inPkg;
    return $self;
}

sub doRequest {
    my $inSelf = shift;
    my $soap = SOAP::Lite->ns( $inSelf->{'serviceNs'} )->proxy( $inSelf->{'basisUrl'}."OXContextService" );
    
    my $som_entry = 
      $soap->delete($inSelf->{'Context'},
    	            $inSelf->{'mastercreds'}
    	     );
    
    if ( $som_entry->fault() ) {
        $inSelf->fault_output($som_entry);
    } else {
        print "Fine\n";
    }

}

exit;

