My webservice returns a binary document which I declare in my wsdl as
base64Binary. Using SOAPMonitor I see my document in the returned soap
message. However, tcpmon shows that the document is empty. I have tried
this both with and without MTOM.
Without MTOM here is the soap from SOAPMonitor...
<?xml version='1.0' encoding='utf-8'?>
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/
<http://schemas.xmlsoap.org/soap/envelope/> ">
<soapenv:Header />
<soapenv:Body>
<ns1:getDocumentResponse xmlns:ns1="urn:webservices.docharbor.com">
<ns1:return>
<ns1:documentSize>198</ns1:documentSize>
<ns1:document>e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZGVmZjBcZGVmbGFuZzEwMzN7XG
ZvbnR0Ymx7XGYwXGZzd2lzc1xmY2hhcnNldDAgQXJpYWw7fX0NCntcKlxnZW5lcmF0b3IgTX
NmdGVkaXQgNS40MS4xNS4xNTA3O31cdmlld2tpbmQ0XHVjMVxwYXJkXGYwXGZzMjAgSSdtIH
RoZSBkZWZhdWx0IGRvY3VtZW50IGZvciBpbXBvcnRhdGlvbi5ccGFyDQp9DQoA</ns1:docu
ment>
</ns1:return>
</ns1:getDocumentResponse>
</soapenv:Body>
</soapenv:Envelope>
... and here is the output of tcpmon
HTTP/1.1 200 OK
Server: ""
Date: Tue, 27 Mar 2007 18:26:12 GMT
Content-type: text/xml; charset=UTF-8
Transfer-encoding: chunked
016f
<?xml version='1.0' encoding='UTF-8'?>
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/
<http://schemas.xmlsoap.org/soap/envelope/> ">
<soapenv:Header />
<soapenv:Body>
<ns1:getDocumentResponse
xmlns:ns1="urn:webservices.docharbor.com">
<ns1:return>
<ns1:documentSize>198</ns1:documentSize>
<ns1:document></ns1:document> <<<<<<<<<<<<<<<<<<<< notice
the empty document
</ns1:return>
</ns1:getDocumentResponse>
</soapenv:Body>
</soapenv:Envelope>
0
Does anyone know why this is happening? Thanks, Valerie