Advertisement
Guest User

Untitled

a guest
Jun 29th, 2018
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.74 KB | None | 0 0
  1. #include "AddressValidationServiceSoapBinding.nsmap"
  2. #include "soapH.h"
  3.  
  4. struct ns1__AddressValidationReply validate_address(struct ns1__AddressValidationRequest *ptr_AddressValidationRequest)
  5. {
  6.  
  7.     struct soap *soap = soap_new();
  8.     struct ns1__AddressValidationReply AddressValidationReply;
  9.  
  10.     if (
  11.         soap_call___ns1__addressValidation(soap, "https://wsbeta.fedex.com:443/web-services/addressvalidation",
  12.         NULL,
  13.         ptr_AddressValidationRequest,
  14.         &AddressValidationReply) == SOAP_OK)
  15.     {
  16.         // TODO
  17.     }
  18.     else
  19.     {
  20.         soap_print_fault(soap, stderr);
  21.     }
  22.  
  23.     //soap_destroy(soap);
  24.     //soap_end(soap);
  25.     //soap_free(soap); TODO: Enable if linux?
  26.  
  27.     return AddressValidationReply;
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement