X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=zutil%2Fsoap.c;fp=zutil%2Fsoap.c;h=2b416b3e51105acf548d14ecf20fe975e014b587;hp=f06ae8ff94f74e90e3a565935837ad782f05a7c2;hb=39f322672612cc6146a9a85fd32d2f8c325763da;hpb=4a72187a377987ccbe95cb7c549adb0678bc7159 diff --git a/zutil/soap.c b/zutil/soap.c index f06ae8f..2b416b3 100644 --- a/zutil/soap.c +++ b/zutil/soap.c @@ -2,7 +2,7 @@ * Copyright (c) 2002-2003, Index Data. * See the file LICENSE for details. * - * $Id: soap.c,v 1.4 2003-02-17 22:35:48 adam Exp $ + * $Id: soap.c,v 1.5 2003-02-18 14:28:53 adam Exp $ */ #include @@ -165,7 +165,7 @@ int z_soap_codec(ODR o, Z_SOAP **pp, else { ret = z_soap_error(o, p, "SOAP-ENV:Client", - "No handler for NS", 0); + "No handler for NS", ptr->ns->href); } } xmlFreeDoc(doc); @@ -217,4 +217,28 @@ int z_soap_codec(ODR o, Z_SOAP **pp, } return 0; } +#else +int z_soap_codec(ODR o, Z_SOAP **pp, + char **content_buf, int *content_len, + Z_SOAP_Handler *handlers) +{ + const char *err_xml = + "\n" + "\n" + "\t\n" + "\t\t\n" + "\t\t\tSOAP-ENV:Server\n" + "\t\t\tHTTP error\n" + "\t\t\tSOAP not supported in this YAZ configuration\n" + "\t\t\n" + "\t\n" + "\n"; + if (o->direction == ODR_ENCODE) + { + *content_buf = err_xml; + *content_len = strlen(err_xml); + } + return -1; +} #endif