Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "AddressValidationServiceSoapBinding.nsmap"
- #include "soapH.h"
- struct Result
- {
- char *soap_error;
- struct ns2__AddressValidationReply AddressValidationReply;
- };
- struct /*ns2__AddressValidationReply*/ Result validate_address(struct soap *soap, char *base_url, struct ns2__AddressValidationRequest *ptr_AddressValidationRequest)
- {
- struct ns2__AddressValidationReply AddressValidationReply;
- char soap_endpoint[36] = "/web-services/addressvalidation";
- char soap_url[100] = "";
- strcat(soap_url, base_url);
- strcat(soap_url, soap_endpoint);
- if (
- soap_call___ns2__addressValidation(soap, soap_url,
- NULL,
- ptr_AddressValidationRequest,
- &AddressValidationReply) == SOAP_OK)
- {
- }
- else
- {
- char xx[3000] = "";
- soap_sprint_fault(soap, xx, 3000);
- printf("s = %s", xx);
- //soap_print_fault(soap, stderr);
- //free (AddressValidationReply); // TODO
- //struct /*ns2__AddressValidationReply*/Result empty = {0};
- //return empty;
- struct Result aa = {
- xx,
- AddressValidationReply};
- return aa;
- }
- struct Result aa = {
- NULL,
- AddressValidationReply};
- return aa;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement