* Copyright (c) 1998-2004, Index Data.
* See the file LICENSE for details.
*
- * $Id: yaz-proxy.cpp,v 1.79 2004-01-07 11:37:45 adam Exp $
+ * $Id: yaz-proxy.cpp,v 1.80 2004-01-07 20:56:03 adam Exp $
*/
#include <assert.h>
m_invalid_session = 0;
m_config = 0;
m_marcxml_flag = 0;
- m_stylesheet = 0;
+ m_stylesheet_schema = 0;
m_schema = 0;
m_initRequest_apdu = 0;
m_initRequest_mem = 0;
xfree (m_default_target);
xfree (m_proxy_authentication);
xfree (m_optimize);
- xfree (m_stylesheet);
+ xfree (m_stylesheet_schema);
xfree (m_schema);
if (m_s2z_odr_init)
odr_destroy(m_s2z_odr_init);
{
assert (m_parent);
Yaz_Proxy *parent = m_parent;
- Z_OtherInformation **oi;
Yaz_ProxyClient *c = m_client;
if (!m_proxyTarget)
void Yaz_Proxy::convert_xsl(Z_NamePlusRecordList *p)
{
- if (!m_stylesheet)
+ if (!m_stylesheet_schema)
return;
- xmlDocPtr xslt_doc = xmlParseFile(m_stylesheet);
+ xmlDocPtr xslt_doc = xmlParseFile(m_stylesheet_schema);
xsltStylesheetPtr xsp;
xsp = xsltParseStylesheetDoc(xslt_doc);
int Yaz_Proxy::send_http_response(int code)
{
ODR o = odr_encode();
- const char *ctype = "text/xml";
Z_GDU *gdu = z_get_HTTP_Response(o, code);
Z_HTTP_Response *hres = gdu->u.HTTP_Response;
if (m_http_version)
soap_package->u.generic->ns = soap_handlers[0].ns;
soap_package->u.generic->p = (void *) srw_pdu;
soap_package->ns = m_soap_ns;
- int ret = z_soap_codec_enc(o, &soap_package,
- &hres->content_buf, &hres->content_len,
- soap_handlers, 0);
+ z_soap_codec_enc(o, &soap_package,
+ &hres->content_buf, &hres->content_len,
+ soap_handlers, 0, 0);
if (m_log_mask & PROXY_LOG_REQ_CLIENT)
{
yaz_log (LOG_LOG, "%sSending %s to client", m_session_str,
err = cfg->check_syntax(odr_encode(),
m_default_target,
sr->preferredRecordSyntax, rc,
- &addinfo, &m_stylesheet, &m_schema);
+ &addinfo, &m_stylesheet_schema, &m_schema);
if (err == -1)
{
sr->preferredRecordSyntax =
err = cfg->check_syntax(odr_encode(), m_default_target,
pr->preferredRecordSyntax,
pr->recordComposition,
- &addinfo, &m_stylesheet, &m_schema);
+ &addinfo, &m_stylesheet_schema, &m_schema);
if (err == -1)
{
pr->preferredRecordSyntax =
int keepalive_limit_bw, keepalive_limit_pdu;
int pre_init;
const char *cql2rpn = 0;
- const char *zeerex = 0;
Yaz_ProxyConfig *cfg = check_reconfigure();