You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

80 lines
2.2 KiB

7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. /******************************************************************
  2. * $Id: soap-client.h,v 1.13 2006/03/06 13:37:38 m0gg Exp $
  3. *
  4. * CSOAP Project: A SOAP client/server library in C
  5. * Copyright (C) 2003 Ferhat Ayaz
  6. *
  7. * This library is free software; you can redistribute it and/or
  8. * modify it under the terms of the GNU Library General Public
  9. * License as published by the Free Software Foundation; either
  10. * version 2 of the License, or (at your option) any later version.
  11. *
  12. * This library is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  15. * Library General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU Library General Public
  18. * License along with this library; if not, write to the
  19. * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  20. * Boston, MA 02111-1307, USA.
  21. *
  22. * Email: ayaz@jprogrammer.net
  23. ******************************************************************/
  24. #ifndef cSOAP_CLIENT_H
  25. #define cSOAP_CLIENT_H
  26. #include <libcsoap/soap-env.h>
  27. #include <libcsoap/soap-ctx.h>
  28. #define SOAP_ERROR_CLIENT_INIT 5001
  29. #ifdef __cplusplus
  30. extern "C" {
  31. #endif
  32. /**
  33. Initializes the client side soap engine
  34. */
  35. herror_t soap_client_init_args(int argc, char *argv[]);
  36. /**
  37. Destroy the soap client module
  38. */
  39. void soap_client_destroy();
  40. /**
  41. Establish connection to the soap server and send
  42. the given envelope.
  43. @param env envelope to send
  44. @param response the result envelope
  45. @param url url to the soap server
  46. @soap_action value for "SoapAction:" in the
  47. HTTP request header.
  48. @returns H_OK if success
  49. */
  50. herror_t soap_client_invoke(SoapCtx * ctx, SoapCtx ** response,
  51. const char *url, const char *soap_action);
  52. /**
  53. Sets the underlaying socket to use while connecting
  54. into block mode or not block mode.
  55. The default mode is always non-blocking mode.
  56. @param block 1 to creat blocked sockets, 0 to create non
  57. blocking sockets.
  58. */
  59. void soap_client_block_socket(int block);
  60. int soap_client_get_blockmode();
  61. #ifdef __cplusplus
  62. }
  63. #endif
  64. #endif