[JBossWS] - Re: Streaming webservices
by tommy.bergkvist
Unfortunately I am note the one who is responsible for the technical specifiaction. The transport should comply with a specified XSD and also various clients and servers (not only the ones I am implementing) should be able to communicate.
Also, the XML elements that are that large actually contains binary documents that the server is not required to understand. They should just be stored in an archive as base64 encoded strings.
I have tried to figure out how to solve this, but there does not seem to exist any implementation to handle streaming webservices with large XML elements. The one parser I have used which can handle this is Woodstox, but jboss does not support this, right? Maybe in the future?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4158908#4158908
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4158908
17 years, 3 months
[JBossWS] - Streaming webservices
by tommy.bergkvist
Hi,
I am using jbossas 4.2.2, jbossws 3.0.1.
I am having some trouble with my webservice implementation. My endpoint needs to be able to both send and receive large XMLs. In my case there are large elements (100 Mb) which are Base64 encoded.
All attempts on sending such XML ends up as a DOMSource on my endpoint. Is there any way to configure Webservices to not parse the incoming message and use StreamSource instead. I have no interest what so ever to marshall/unmarshall, validate, use Interceptors nor Handlers. I would be very pleased if incoming message could be streamed straight down to disk.
If StreamSource is not possible, then a StaxSource using the Woodstox implementation would be nice as well (it handles large Elements).
I am also having a similar problem with my stand-alone client. It runs with java 1.6. As soon as an Element is larger than 100kb I get an Exception that end element is missing, It seams that the XMLStreamReader (which is used by com.sun.xml.internal.ws.client.dispatch) can not handle large Elements.
Do I need to use Spring to be able to stream over Webservices?
Anyone has any ideas?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4158588#4158588
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4158588
17 years, 3 months
[JBossWS] - Problem calling a ws in a servlet
by APieropan
Hi,
i am developing an application using jboss 4.2.2,ejb 3.0 and netbeans.
Following one of the tutorials online i created a web service inside the ejb container, then i created a web service inside my web container. After that i created a servlet. In the servlet i used the "command call web service operation" to auto generate the needed code to call the ws.
The result is the injection
| @WebServiceRef(wsdlLocation = "http://localhost:8080/prova/NewWebService?wsdl")
|
That is not supported in jboss 4.2 causing a null pointer exception when i try to access the requested resource.
I tried the "walkaruond" found on this forum using this code in stand of the previous injection:
| private NewWebServiceService service;
| service = new NewWebServiceService();
|
and i got the following exception:
| java.lang.ClassCastException: org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl cannot be cast to javax.xml.ws.spi.ServiceDelegate21
|
Can someone help me solving this trouble, is there any working "walkaround" to call a ws inside a servlet using Jboss 4.2 and Netbeans?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4158513#4158513
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4158513
17 years, 3 months