{
xmlFreeDoc(doc);
return z_soap_error(o, p, "SOAP-ENV:Client",
"No Envelope element", 0);
}
/* check for SRU root node match */
{
xmlFreeDoc(doc);
return z_soap_error(o, p, "SOAP-ENV:Client",
"No Envelope element", 0);
}
/* check for SRU root node match */
- if (yaz_match_glob(handlers[i].ns, (const char *)ptr->ns->href))
- break;
+ {
+ const char *hns = handlers[i].ns;
+ if (strchr(hns, ':'))
+ {
+ if (yaz_match_glob(hns, (const char *) ptr->ns->href))
+ break;
+ }
+ else
+ {
+ if (yaz_match_glob(hns, (const char *) ptr->name))
+ break;
+ }
+ }
{
xmlFreeDoc(doc);
return z_soap_error(o, p, "SOAP-ENV:Client",
{
xmlFreeDoc(doc);
return z_soap_error(o, p, "SOAP-ENV:Client",
- fprintf(stderr, "checking globns=%s ns=%s\n",
- handlers[i].ns, ns);
- if (yaz_match_glob(handlers[i].ns, ns))
+ if (strchr(handlers[i].ns, ':') &&
+ yaz_match_glob(handlers[i].ns, ns))