Haven't heard from anyone regarding this potential bug. Can anyone
confirm if this is indeed an invalid MTOM-encoded SOAP message? It
looks pretty fishy to me.
Thanks,
Chris
-----Original Message-----
From: Christopher Moesel
Sent: Thursday, January 04, 2007 3:20 PM
To: 'users_at_jax-ws.dev.java.net'
Subject: Invalid MTOM Responses?
I'm using JAX-WS 2.1 EA3 and I've just turned on MTOM support by adding
"enable-mtom='true'" to the sun-jaxws.xml in the deployed war. This is
for a contract-first ("from WSDL") service.
Now my .NET client (using WSE 3.0 w/ MTOM enhancements turned on) chokes
on the response. Running the request/response through a proxy, I
noticed some suspicious extra characters in the response that don't seem
to be in the example responses shown in the JAX-WS MTOM documentation.
I've included the response below-the characters I'm suspicious of are:
* "34f" before the -uid line
* "2f" after </S:Envelope>
* "0" on the last line
Is this a valid response or does the .NET client have a good reason for
choking? Any pointers?
Thanks (example response below),
Chris
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
X-Powered-By: Servlet 2.4; JBoss-4.0.5.GA (build: CVSTag=Branch_4_0
date=200610162339)/Tomcat-5.5
Content-Type:
multipart/related;type="application/xop+xml";boundary="uuid:c69e1423-765
4-4f42-9d8e-aabc41eac190";start-info="text/xml"
Transfer-Encoding: chunked
Date: Thu, 04 Jan 2007 20:01:59 GMT
34f
--uuid:c69e1423-7654-4f42-9d8e-aabc41eac190
Content-Type: application/xop+xml;charset=utf-8;type="text/xml"
Content-Transfer-Encoding: binary
<?xml version="1.0" ?>
<S:Envelope xmlns:S="
http://schemas.xmlsoap.org/soap/envelope/">
<S:Header>
<To
xmlns="
http://www.w3.org/2005/08/addressing">
http://www.w3.org/2005/08/a
ddressing/anonymous</To>
<Action
xmlns="
http://www.w3.org/2005/08/addressing">
http://mycompany.com/myserv
ice/GetSomeStringsResponse</Action>
<MessageID
xmlns="
http://www.w3.org/2005/08/addressing">uuid:cbb1e91e-97b5-4ba7-960
2-0ff938a9ada1</MessageID>
</S:Header>
<S:Body>
<getSomeStrings
xmlns="
http://mycompany.com/myservice/types">
<stringResult>string1</stringResult>
<stringResult>string2</stringResult>
<stringResult>string3</stringResult>
</getSomeStrings>
</S:Body>
</S:Envelope>
2f
--uuid:c69e1423-7654-4f42-9d8e-aabc41eac190--
0