I was reviewing Witango 6 and webservices, and started to begin from scratch 
and follow the directions...  After a few glitches (resolved), web services are 
apparently correctly configured but ...

When I go to http://localhost/webservices/WhatsTheTime.taf  (a taf that 
accesses the webservice and shows the results)

I get a response indicating that the webservice is operational (my webservices 
directory is located at the root of /Documents, which is webroot) and that 
there was a correct response to the soap request.

<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope";>

  <env:Body>
    <mns:WhatsTheTime_Response xmlns:mns="witangowebservices">
      <CurrentTime>03/16/2011 11:10:28</CurrentTime>
      <status>OK</status>
    </mns:WhatsTheTime_Response>
  </env:Body>

</env:Envelope>

but when I go to http://WhatsTheTime.wws


I get this, apparently indicating that a soap request either wasn't correct or 
was empty:

<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope";>

  <env:Body>
    <env:Fault>
      <mns:faultstring xmlns:mns="witangowebservice">Error in soap request.No 
soap request</mns:faultstring>
    </env:Fault>
  </env:Body>

</env:Envelope>

At the same time, a look at the headers indicated for that request shows that 
the content-type is erroneous and may be preventing a correct response:

Date: Wed, 16 Mar 2011 15:05:40 GMT
Server: Apache/2.2.15 (Unix) mod_ssl/2.2.15 OpenSSL/0.9.8l DAV/2
Set-Cookie: Witango_UserReference=6E6DB37C755900C24D80D1C4; path=/
Keep-Alive: timeout=5, max=100
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: text/html

200 OK
When I use a WSDL editor (from Oxygen XML) to review the wsdl file ==> when I 
test it, I get this error response

"Invalid Content-Type:text/html. Is this an error message instead of a SOAP 
response?"

A further trip around the Google-verse appeared to indicate that content-type 
has to be served up as text/xml in order for the webservice to work properly. 
If an application does not specifically request that content-type, either 
Witango or Apache is serving it up as text/html. I would think that the mime 
type wws would take care of this, but apparently it is not. I tried tweaking 
mime types in Apache to serve up wws as text/xml but that broke the mime type 
for the Witango server for wws, so that wasn't the solution.

What do I need to further configure on either the Apache side or the Witango 
side to get the webservices served up as text/xml instead of text/html?

----------------------------------------

To unsubscribe from this list, please send an email to [email protected] 
with "unsubscribe witango-talk" in the body.

Reply via email to