Hi Nikolajs, I was trying to get xfire and .net to communicate over MTOM and had the following errors/emails that I sent to the list. It appears as if they are some interop issues between the 2 implementations. I didn't hear anything from the xfire list so I just scrapped using MTOM:
----- It appears that the Java and Microsoft folks are getting into as to who doesn't follow the spec. Here is an interesting post: http://forums.java.net/jive/thread.jspa?messageID=213187 The last message in that forum from a Microsoft tech seems to indicate that Microsoft believes their code is correct and wants the Java side to change. I will write a .NET client tommorrow and run in through TCP MON and compare the headers that work with IIS and the xfire headers that don't work. The battle continues! -------- After a little more investigation, I think I might know what the root problem is. Apparently the HTTP headers aren't being interperted correctly by IIS/WSE. Here is a blog post that helps explain some things: http://blogs.cocoondev.org/dims/archives/003279.html It looks like IIS doesn't like the Content-Type header on two lines. Also it seems to want two underscores prior to mime boundaries rather than 4. Is it possible for me to intercept the HTTP headers and overwrite them? Would it be possible to put a Hack into Xfire to deal with IIS? MTOM interopability would be great to have. In the absense of it, I guess just send the info as is without MTOM :-( Apparently some microsoft dude said he didn't see the problem, but I saw it in WSE 3.0 with IIS 5.0. --------------- Hello All, I got a little further and I found this strange error in the IIS logs, any ideas? HTTP/ASMX Message Receive Failure: Microsoft.Web.Services3.Mime.XopDocumentException: WSE1612: The content type specified for the XOP package does not contain a boundary parameter: multipart/related; type="application/xop+xml"; start="<[EMAIL PROTECTED]>"; start-info="text/xml"; at Microsoft.Web.Services3.Mime.XopMimeContentType..ctor(String contentType) at Microsoft.Web.Services3.Mime.XopDocument.LoadFromXopPackage(String contentType, Stream stream) at Microsoft.Web.Services3.WseProtocol.CreateRequestSoapEnvelope(SoapServerMessage message) at Microsoft.Web.Services3.WseProtocol.GetRequestEnvelopeFromMessage(SoapServerMessage message) ------------ I am trying to invoke a service using MTOM and I am getting an error with the SoapAction. The error is as follows: Server did not recognize the value of HTTP Header SOAPAction: http://www.getFileResponse.org/GetFile" boundary="----=_Part_0_78236.1179356929716. When I run this through TCP MON, I get the following invocation and response: INVOCATION: POST /image/Service.asmx HTTP/1.1 SOAPAction: "http://www.getFileResponse.org/GetFile" Content-Type: multipart/related; type="application/xop+xml"; start="<[EMAIL PROTECTED]>"; start-info="text/xml"; boundary="----=_Part_0_78236.1179356929716" User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; XFire Client +http://xfire.codehaus.org) Host: 165.189.102.74:5055 Expect: 100-continue Content-Length: 526 ------=_Part_0_78236.1179356929716 Content-Type: application/xop+xml; charset=UTF-8; type="text/xml" Content-Transfer-Encoding: 8bit Content-ID: <[EMAIL PROTECTED]> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soap:Body><GetFile xmlns="http://www.getFileResponse.org/"><fileName>c:\little_c.jpg</fileName></GetFile></soap:Body></soap:Envelope> ------=_Part_0_78236.1179356929716-- RESPONSE: HTTP/1.1 100 Continue Server: Microsoft-IIS/5.1 Date: Wed, 16 May 2007 23:07:29 GMT X-Powered-By: ASP.NET HTTP/1.1 500 Internal Server Error Server: Microsoft-IIS/5.1 Date: Wed, 16 May 2007 23:07:29 GMT X-Powered-By: ASP.NET X-AspNet-Version: 2.0.50727 Cache-Control: private Content-Type: text/xml; charset=utf-8 Content-Length: 489 <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><soap:Fault><faultcode>soap:Client</faultcode><faultstring>Server did not recognize the value of HTTP Header SOAPAction: http://www.getFileResponse.org/GetFile" boundary="----=_Part_0_78236.1179356929716.</faultstring><detail /></soap:Fault></soap:Body></soap:Envelope> I am not sure what to do at this point. I can disable MTOM in my xfire client and then everything works fine, however this will be inefficient. Is the xfire client generating an invalid request? Is the DOT NET server not handling the request appropriately? Any help would be appreciated. --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email