Originally posted by Satish Kumar:
i am using weblogic 8.1 and dont know whether it supports JAX-WS and MTOM.
Weblogic 8.1 is an implementation of
J2EE 1.3.
Web services (JAX-RPC) did not enter the J2EE specification until 1.4.
JAX-WS is part of the
Java EE 5 specification.
So neither JAX-WS or MTOM are supported by Weblogic 8.1.
Attachment support is limited to SOAP attachments which aren't universally supported by all SOAP clients (though Java SOAP clients can use SAAJ).
In Weblogic 8.1 SOAP attachments have to be handled through SOAP Message Handlers:
eDocs Home> BEA WebLogic Server 8.1 Documentation> Programming WebLogic Web Services> Creating SOAP Message Handlers to Intercept the SOAP Message> Programming WebLogic Web Services: Creating SOAP Message Handlers to Intercept the SOAP Message Given the vintage of the implementation I have my doubts that a 200 MB attachment would be handled properly (I'd expect to see a 10 MB limit) - but you would have to
test that.
Large file transfers should really be handled by protocols more suited to the task - like FTP. The web service provider would then handle the creation of temporary FTP identities/privileges/credentials and return the necessary information to the web service consumer.
Alternately the files could be managed through a REST-style storage service (
Amazon S3,
Introduction to Amazon S3 with Java and REST,
ParkPlace).