Hello,
I have a VB client using the high level API in the MS
Toolkit 2.0 trying to talk to a service in Apache.
The service returns the attached response.
In the initial response from the Service, I get a fault on
the client saying "Connector - Server returned contenttype
other than text/xml. The Content-Type in the header looks correct
however.
It looks correct to me and other responses from the same
server with the same header are handled correctly.
The other really strange thing is that I was initially getting
a marshalling fault from the server (I resolved this but can
induce it easily). While the header in the fault has the same
"Content-Type", the MS client can correctly handle this.
I'm attaching a text file with the original request and the fault
and correct responses.
I also noted that there is a old posting on the Apache discussion
group about this issue but the posting said that the problem
was resolved in the MS Toolkit Beta 2 a while ago. I'm using
the SP2 version currently posted on the MSDN site so this
shouldn't be a problem.
regards,
Robert
Robert Larson
Sr Architect
Saba
www.saba.com
+1 (650) 581-2559
Request from MS client:
=======================
Content-Type: text/xml; charset="UTF-8" Host: localhost SOAPAction: "http://tempuri.org/action/SabaCoreServiceImpl.authenticate" Content-Length: 389 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<SOAP-ENV:Envelope
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<SOAPSDK1:authenticate xmlns:SOAPSDK1="urn:hcdm-content-core">
<username>uone</username>
<password>welcome</password>
</SOAPSDK1:authenticate>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Fault response from Apache (this is handled by MS SOAP):
========================================================
HTTP/1.0 500 Internal Server Error
Server: JRun Web Server/3.0
Date: Wed, 26 Sep 2001 19:35:27 GMT
Set-Cookie: jsessionid=2101751001532926330;path=/
Expires: Thu, 01 Dec 1994 16:00:00 GMT
Connection: close
Cache-Control: no-cache="set-cookie,set-cookie2"
Content-Type: text/xml; charset=utf-8
Content-Length: 550
<?xml version='1.0' encoding='UTF-8'?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:xsd="http://www.w3.org/1999/XMLSchema">
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode>SOAP-ENV:Client</faultcode>
<faultstring>No Deserializer found to deserialize a ':password' using encoding style 'http://schemas.xmlsoap.org/soap/encoding/'.</faultstring>
<faultactor>/soap/servlet/rpcrouter</faultactor>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Success response from Apache (this is not handled by MS SOAP):
==============================================================
HTTP/1.0 200 OK
Server: JRun Web Server/3.0
Date: Wed, 26 Sep 2001 19:36:31 GMT
Set-Cookie: jsessionid=485451001532974800;path=/
Expires: Thu, 01 Dec 1994 16:00:00 GMT
Connection: close
Cache-Control: no-cache="set-cookie,set-cookie2"
Content-Type: text/xml; charset=utf-8
Content-Length: 545
<?xml version='1.0' encoding='UTF-8'?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/1999/XMLSchema">
<SOAP-ENV:Body>
<ns1:authenticateResponse xmlns:ns1="urn:hcdm-content-core" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<return xmlns:ns2="" xsi:type="ns2:certificate">ccert2134EA436A630AC35DA2A83E934F675BEE835F6327AFBF38</return>
</ns1:authenticateResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
