-
1. Re: MTOM -- Get samples...??? Where are they?
thomas.diesler May 30, 2006 5:01 PM (in response to sam.griffith)Its supported in jbossws-1.0.1. Please try the latest from SVN
http://wiki.jboss.org/wiki/Wiki.jsp?page=JBWSFAQBuildAndInstall -
2. Re: MTOM -- Get samples...??? Where are they?
sam.griffith May 30, 2006 5:03 PM (in response to sam.griffith)Thanks
-
3. Re: MTOM -- Get samples...??? Where are they?
sam.griffith May 31, 2006 2:46 AM (in response to sam.griffith)I got the latest update from svn, but in the samples I don't see an example of doing a 'get' from the server. Am I missing something?
Thanks! -
4. Re: MTOM -- Get samples...??? Where are they?
heiko.braun May 31, 2006 3:42 AM (in response to sam.griffith)Check the XOP resources under http://fisheye.jboss.com/viewrep/JBossWS/trunk/src/test/java/org/jboss/test/ws/samples/mtom. They contain an XOP client and a service endpoint that returns various binary data.
-
5. Re: MTOM -- Get samples...??? Where are they?
sam.griffith Jun 2, 2006 2:16 AM (in response to sam.griffith)I'm trying to create a client proxy in .NET (2.0) against the MTOM sample for jbossws. However, when I run the WSDL tool here's the comments I get in the generated proxy class:
// CODEGEN: The operation binding 'sendMimeImageGIF' from namespace 'http://org.jboss.ws/samples/mtom' was ignored. Each message part in a use=literal style=rpc message must specify a type.
// CODEGEN: The operation binding 'sendMimeImageJPEG' from namespace 'http://org.jboss.ws/samples/mtom' was ignored. Each message part in a use=literal style=rpc message must specify a type.
// CODEGEN: The operation binding 'sendMimeTextPlain' from namespace 'http://org.jboss.ws/samples/mtom' was ignored. Each message part in a use=literal style=rpc message must specify a type.
// CODEGEN: The operation binding 'sendMimeMultipart' from namespace 'http://org.jboss.ws/samples/mtom' was ignored. Each message part in a use=literal style=rpc message must specify a type.
// CODEGEN: The operation binding 'sendMimeTextXML' from namespace 'http://org.jboss.ws/samples/mtom' was ignored. Each message part in a use=literal style=rpc message must specify a type.
// CODEGEN: The operation binding 'sendMimeApplicationXML' from namespace 'http://org.jboss.ws/samples/mtom' was ignored. Each message part in a use=literal style=rpc message must specify a type.
It appears that the usage of 'element' within the operation bindings (instead of type) is causing an issue.
Questions:
1. Is it necessary to define the operation XOP parts as elements (as in the current WSDL), or is it possible to re-craft the WSDL so that it has 'type' for each operation part?
2. Can the different element types be re-defined as complex types and then used as 'type' within the operation parts?
Any assistance/insight into this would be appreciated.
Thanks.
Kevin Wittkopf - Solutions Architect
.NET ISV Platform Adoption Team - Java
Developer and Platform Evangelism
office: 425 703 8440
mobile: 206 218 7662 -
6. Re: MTOM -- Get samples...??? Where are they?
omatzura Jun 2, 2006 2:40 AM (in response to sam.griffith)Hi,
as far as MTOM is concerned, defining the XOP elements as seperate parts in a rpc/literal operation is allowed but certainly not required, they can be part of a single parts infoset.. (one of the key points of MTOM as far as I can see..) regarding the use of the element attribute instead of type, this seems to be in conflict with basic-profile, if you run the basic-profile validations against the wsdl you will get the same error.. on the other hand, this is a bit strange because the BP states that message parts not explicitely referenced by the corresponding binding in a rpc/literal operation can by defined using the element attribute.. (R2207)
this doesn't help you out much I guess.. lets see what light Thomas/Jason can shed on this issue.. :-)
regards!
/Ole
eviware.com -
7. Re: MTOM -- Get samples...??? Where are they?
heiko.braun Jun 2, 2006 7:56 AM (in response to sam.griffith)Regarding Kevin's question:
1) It can becomes types, although you'd loose the content-type attribute.
JBossWS handles this case gracefully, i don't know about .NET ...<message name="XOPTest_sendMimeImageGIF"> <part name="message" type="xsd:string"/> <part name="xoppart" type="xmime:base64Binary"/> </message> <message name="XOPTest_sendMimeImageGIFResponse"> <part name="result" type="xmime:base64Binary"/> </message>
2) You mean outside of the xmime namespace, declaring them locally?
Currently not because we expect them to come from this particular namespace. -
8. Re: MTOM -- Get samples...??? Where are they?
kevinwit Jun 2, 2006 4:31 PM (in response to sam.griffith)Okay, I updated the WSDL as per, and now I can generate a .NET client.... getting closer.
However, when I make the call, I get an error that the server can't find the attachment part (but it's there). I have a trace below (with most of the binary goo cut out for brevity)... but you can see the content that is being sent, and the response. It appears that the MIME attachement is there, referenced with the appropriate ID, etc... not sure why the server side is not detecting it. Any insights appreciated
Here's the trace:
- - - - -
<tcpTraceLog tcpTraceVersion='0.8.1.717' xmlns='http://www.pocketsoap.com/tcptrace/xmlformat/01' xmlns:xsd='http://www.w3.org/1999/XMLSchema'
xmlns:xsi='http://www.w3.org/1999/XMLSchema-instance'>
<logStarted xsi:type='xsd:timeInstant'>2006-06-02T13:12:47-07:00
<loggedAt xsi:type='xsd:timeInstant'>2006-06-02T13:13:25-07:00
<connectionOpened xsi:type='xsd:timeInstant'>2006-06-02T13:13:25-07:00
<connectionClosed xsi:type='xsd:timeInstant'>2006-06-02T13:13:25-07:00
172.28.41.188
localhost:8080
25965
720
POST /jbossws-samples-mtom HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client Protocol 2.0.50727.42)
VsDebuggerCausalityData: uIDPo8alq9H4c1dGhr4MTZ2ewbMAAAAAOF+PlF68eU6ax3n4X1ot46koPebSUghHiHJMPqnVoOYACAAA
SOAPAction: ""
Host: kevinwit-acer:8090
Content-Type: multipart/related; type="application/xop+xml"; boundary=--MIMEBoundary632848508054661278; start="<0.632848508054661278@example.org>";
start-info="text/xml; charset=utf-8"
Content-Length: 25428
Expect: 100-continue
Connection: Keep-Alive
----MIMEBoundary632848508054661278
content-id: <0.632848508054661278@example.org>
content-type: application/xop+xml; charset=utf-8; type="text/xml; charset=utf-8"
content-transfer-encoding: binary
<soap:Envelope xmlns:xop="http://www.w3.org/2004/08/xop/include" 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" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"><soap:Header><wsa:Action></wsa:Action><wsa:MessageID>urn:
uuid:76bc5695-51e8-4efa-9099-8291f641f1f4</wsa:MessageID><wsa:ReplyTo><wsa:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:
Address></wsa:ReplyTo><wsa:To>http://kevinwit-acer:8090/jbossws-samples-mtom</wsa:To><wsse:Security><wsu:Timestamp
wsu:Id="Timestamp-58ce580d-3eda-4c21-9eb6-1754e8c0e457"><wsu:Created>2006-06-02T20:13:25Z</wsu:Created><wsu:Expires>2006-06-02T20:18:25Z</wsu:Expires>&l
t;/wsu:Timestamp></wsse:Security></soap:Header><soap:Body>Test<xoppart p6:contentType="application/xop+xml" xmlns:p6="http://www.w3.org/2005/05/xmlmime" xmlns=""><xop:Include
href="cid:1.632848508054817567@example.org" /></soap:Body></soap:Envelope>
----MIMEBoundary632848508054661278
content-id: <1.632848508054817567@example.org>
content-type: application/octet-stream
content-transfer-encoding: binary
ÿØÿà JFIF H H (MORE BINARY data here that has been removed for this post)....
----MIMEBoundary632848508054661278--
HTTP/1.1 100 Continue
HTTP/1.1 500 Internal Server Error
Server: Apache-Coyote/1.1
X-Powered-By: Servlet 2.4; JBoss-4.0.5.CR1 (build: CVSTag=Branch_4_0 date=200605301628)/Tomcat-5.5
Set-Cookie: JSESSIONID=F71BE5F3854729A58C379288B7480308; Path=/
Content-Type: text/xml;charset=UTF-8
Transfer-Encoding: chunked
Date: Fri, 02 Jun 2006 20:13:25 GMT
Connection: close
51
<env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'><env:Header/>
2a
<env:Body><env:Fault>env:Client
c
6c
org.jboss.ws.WSException: Cannot find attachment part for: cid:1.632848508054817567@example.org
e
c
</env:Fault>
b
</env:Body>
f
</env:Envelope>
0
<logStopped xsi:type='xsd:timeInstant'>2006-06-02T13:18:28-07:00 -
9. Re: MTOM -- Get samples...??? Where are they?
heiko.braun Jun 7, 2006 12:28 PM (in response to sam.griffith)It's a known bug http://jira.jboss.com/jira/browse/JBWS-961 that just showed up these days. I will take care of that ...
-
10. Re: MTOM -- Get samples...??? Where are they?
heiko.braun Jun 7, 2006 12:54 PM (in response to sam.griffith)It's fixed in HEAD