Advertisement
Guest User

Untitled

a guest
Aug 20th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.92 KB | None | 0 0
  1. #include "AddressValidationServiceSoapBinding.nsmap"
  2. #include "soapH.h"
  3.  
  4. struct ns2__AddressValidationReply validate_address(struct soap *soap, char *base_url, struct ns2__AddressValidationRequest *ptr_AddressValidationRequest)
  5. {
  6.  
  7.     struct ns2__AddressValidationReply AddressValidationReply;
  8.  
  9.     char soap_endpoint[36] = "/web-services/addressvalidation";
  10.     char soap_url[100] = "";
  11.  
  12.     strcat(soap_url, base_url);
  13.     strcat(soap_url, soap_endpoint);
  14.  
  15.     if (
  16.         soap_call___ns2__addressValidation(soap, soap_url,
  17.                                            NULL,
  18.                                            ptr_AddressValidationRequest,
  19.                                            &AddressValidationReply) == SOAP_OK)
  20.     {
  21.  
  22.     }
  23.     else
  24.     {
  25.         soap_print_fault(soap, stderr);
  26.         struct ns2__AddressValidationReply empty = {0};
  27.         return empty;
  28.     }
  29.     return AddressValidationReply;
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement