wood burning stoves 2.0*
The moose likes Web Services and the fly likes Web Service parameter for large xml ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Web Service parameter for large xml ?" Watch "Web Service parameter for large xml ?" New topic
Author

Web Service parameter for large xml ?

jerry king
Greenhorn

Joined: Nov 05, 2008
Posts: 12
Hi all,

I have implementing a web service with only one method, the method have to receive a 'large' xml as input parameter (let say ~60mb ). I have try to use string type, but following error found:

Unable to connect to URL: http://192.168.5.10:8988/ADF-ADFReceiver-context-root/MyWebService1SoapHttpPort due to java.security.PrivilegedActionException: oracle.j2ee.ws.saaj.ContentTypeException: Not a valid SOAP Content-Type: text/html
09/01/21 14:34:26 ; nested exception is:
HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: oracle.j2ee.ws.saaj.ContentTypeException: Not a valid SOAP Content-Type: text/html


Is there any type (something like inputstream) that can be use as the web service input parameter? Please kinldy advise on this.
Peer Reynders
Bartender

Joined: Aug 19, 2005
Posts: 2922
    
    5
jerry king wrote:I have implementing a web service with only one method, the method have to receive a 'large' xml as input parameter (let say ~60mb ).

Replacing FTP wasn't part of the overall SOAP web service vision. Accomplishing this with a SOAP web service stack could require you to develop your own "chunking protocol". It is far simpler to
  • use FTP (after all, it was designed to "transfer files")
  • use a (HTTP) servlet-based solution that uses something like Commons FileUpload
  •  
    I agree. Here's the link: http://aspose.com/file-tools
     
    subject: Web Service parameter for large xml ?