Hi David, here some additional information to the stuff below: the Tcl http::geturl call produced from tclSOAP in the good case:
::http::geturl http://localhost:8083/soaptest.ttml -headers {SOAPAction {"AntragNeu"}} -timeout 0 -query {<?xml version="1.0"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/1999/XMLSchema" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"><SOAP-ENV:Body><AntragNeu><Mandant>5</Mandant><Prozess>P</Prozess> <Aussteller>5as</Aussteller></AntragNeu></SOAP-ENV:Body></SOAP-ENV:Envelope> } and in the bad case: ::http::geturl http://localhost:8083/soaptest.ttml -headers {SOAPAction {"AntragNeu"}} -type text/xml <==== here is the difference -timeout 0 -query {<?xml version="1.0"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/1999/XMLSchema" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"><SOAP-ENV:Body><AntragNeu><Mandant>5</Mandant><Prozess>P</Prozess> <Aussteller>5as</Aussteller></AntragNeu></SOAP-ENV:Body></SOAP-ENV:Envelope> } hope that makes it clearer. Arnulf Am Mittwoch, 10. August 2005 16:41 schrieb Arnulf Wiedemann: > Hi David, > > Am Dienstag, 9. August 2005 22:28 schrieb David N. Welton: > > Arnulf Wiedemann wrote: > > > Hi, > > > I have a question, is it possible to handle documents of type text/xml > > > with rivet? > > > > Certainly. > > > > > What I want to do is, to build a little SOAP server. > > > What I get with my configuration of apache is: > > > unknown content -type: `text/xml' > > > > Where do you get that... ? > > Sorry I should have been more specific: I found that message in the apache > error_log file. > As respone within my Tcl SOAP request I get: > > debug ok - HTTP/1.1 500 Internal Server Error > ERROR:MSG:Server response is not well-formed XML. > response was <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> > <HTML><HEAD> > <TITLE>500 Internal Server Error</TITLE> > </HEAD><BODY> > <H1>Internal Server Error</H1> > The server encountered an internal error or > misconfiguration and was unable to complete > your request.<P> > > I am using the following Tcl Script: > > #!/bin/sh > # \ > exec ~/ActiveTcl/bin/tclsh "$0" "$@" > > set vn [package require SOAP] > puts stderr "vn:$vn:" > > SOAP::setLogLevel debug > > > SOAP::create AntragNeu \ > -proxy "http://localhost:8083/soaptest.ttml" \ > -params {"Mandant" "" "Prozess" "" "Aussteller" ""} \ > -action "AntragNeu" \ > > > if {[catch {set ret [::AntragNeu 5 P "5as"]} msg]} { > puts stderr "ERROR:MSG:$msg:$::errorInfo:" > } else { > puts stderr "ret:$ret:" > } > > The suffix .ttml is configured the same as .rvt. > > > > Do I have to do something special in the httpd.conf file? > > > > Ah, I see, you want Rivet to parse those files. Hrm. You might go > > about that differently: > > > > The result in the end has to be some text going out to the client as > > type text/xml, but does the file have to have an .xml extension or > > anything like that? > > no. > > What I want to do is process a POST request which has some xml stuff in it. > The processing can be done using tclxml, but the problem is, that I do not > get the contents of that request to process it within the .ttml/.rvt file. > The contents is normally placed in the request, that after having called > hgetvars, I have it in the VARS array. > > > > I am sending the request with tclsoap 1.6.7 method POST to a .rvt file > > > to handle it. > > > > > > If I remove the -type `text/xml' from being sent, the rest can be > > > handled. > > > > You want to use the command: > > > > headers type "text/xml" > > That is what the tclSOAP package is producing. > Here is the output, if I am removing the -type text/xml parameter from the > SOAP Request (that is what I want to get in the other case too): > > debug ok - HTTP/1.1 200 OK > ERROR:MSG:Server response is not well-formed XML. > response was VARS: > <?xml version:"1.0"?> > <SOAP-ENV:Envelope > xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xm > lns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" > SOAP-ENV:encodingStyle= > "http://schemas.xmlsoap.org/soap/encoding/" > xmlns:xsd="http://www.w3.org/1999/XM > LSchema" > xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"><SOAP-ENV:Body><A > ntragNeu><Mandant>5</Mandant><Prozess>P</Prozess><Aussteller>5as</Ausstelle >r></A ntragNeu></SOAP-ENV:Body></SOAP-ENV:Envelope> > <br> > > That is the contents of the .ttml file: > <? > hgetvars > puts "VARS:" > foreach name [array names VARS] { > puts "$name:$VARS($name)<br>" > } > ?> > > > towards the top of your .rvt file... Does that make sense or were you > > after something else? > > Tanks for the answer, > Arnulf > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
