blob: 00d2ee0797763455239555f2e91e2d97d4191333 [file] [log] [blame]
// Copyright 2003-2004 The Apache Software Foundation.
// (c) Copyright IBM Corp. 2004, 2005 All Rights Reserved
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include "CommonClientTestCode.h"
#include "operations.h"
#define WSDL_DEFAULT_ENDPOINT "http://localhost:9080/ComplexTypeAll/services/Service"
int main(int argc, char* argv[])
{
AXISCHANDLE ws;
aRecord* input;
xsdc__boolean result = (xsdc__boolean)0;
char *endpoint = WSDL_DEFAULT_ENDPOINT;
int returnValue = 1; // Assume Failure
axiscAxisRegisterExceptionHandler(exceptionHandler);
if (argc>2 && strcmp(argv[1], "-e") == 0)
endpoint = argv[2];
ws = get_operations_stub(endpoint);
input = Axis_Create_aRecord(0);
result = myOperation(ws, input);
Axis_Delete_aRecord(input, 0);
destroy_operations_stub(ws);
printf( "Result %d\n", result);
printf("---------------------- TEST COMPLETE -----------------------------\n");
returnValue = 0; // Success
return returnValue;
}