Or, on the second thought, may be there something else is wrong with the
request?
How else can I interpret Microsoft error "The request failed schema
validation: Data at the root level is invalid. Line 1, position 1."
Axis request and MS IIS response attached below.
Thanks,
~ Alex.
POST /EWS/exchange.asmx HTTP/1.1
Content-Type: multipart/related;
boundary=MIMEBoundaryurn_uuid_93111751F0B81DFF191291088731495;
type="application/xop+xml";
start="<0.urn:uuid:[email protected]>";
start-info="text/xml"
SOAPAction:
"http://schemas.microsoft.com/exchange/services/2006/messages/ResolveNames"
User-Agent: Axis2
Authorization: Basic dGVzdHVzZXI6dGVzdHVzZXI=
Host: 192.1.1.243
Content-Length: 639
--MIMEBoundaryurn_uuid_93111751F0B81DFF191291088731495
Content-Type: application/xop+xml; charset=UTF-8; type="text/xml"
Content-Transfer-Encoding: binary
Content-ID: <0.urn:uuid:[email protected]>
<?xml version='1.0' encoding='UTF-8'?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<mes:ResolveNames ReturnFullContactData="true"
xmlns:mes="http://schemas.microsoft.com/exchange/services/2006/messages">
<mes:UnresolvedEntry>testuser</mes:UnresolvedEntry>
</mes:ResolveNames></soapenv:Body></soapenv:Envelope>
--MIMEBoundaryurn_uuid_93111751F0B81DFF191291088731495--
********************************
HTTP/1.1 500 Internal Server Error
Date: Tue, 30 Nov 2010 02:53:10 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
X-AspNet-Version: 2.0.50727
Content-Length: 994
Cache-Control: private
Content-Type: text/xml; charset=utf-8
<?xml version="1.0"?>
<soap11:Envelope
xmlns:soap11="http://schemas.xmlsoap.org/soap/envelope/"><soap11:Header><t:ServerVersionInfo
MajorVersion="8" MinorVersion="2" MajorBuildNumber="176"
MinorBuildNumber="2"
xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"
/></soap11:Header>
<soap11:Body>
<soap11:Fault><faultcode>soap11:Client</faultcode>
<faultstring>The request failed schema validation: Data at the root
level is invalid. Line 1, position
1.</faultstring><detail><e:ResponseCode
xmlns:e="http://schemas.microsoft.com/exchange/services/2006/errors">ErrorSchemaValidation</e:ResponseCode><e:Message
xmlns:e="http://schemas.microsoft.com/exchange/services/2006/errors">Data at
the root level is invalid. Line 1, position 1.</e:Message><e:Line
xmlns:e="http://schemas.microsoft.com/exchange/services/2006/errors">1</e:Line><e:Position
xmlns:e="http://schemas.microsoft.com/exchange/services/2006/errors">1</e:Position></detail></soap11:Fault></soap11:Body></soap11:Envelope>
On 11/29/2010 9:41 PM, Alex A wrote:
Hello
I am looking for a way to stream the content of file inside the XML
element, *without MTOM enabled*.
Because it looks like MTOM is not supported by the Microsoft's IIS.
Axis2/J, only client - wsdl used to generate xmlbeans/stub.
Anyone could give me pointers or even better, examples?
Thanks,
~ Alex.