[jboss-user] [JBossWS] - Re: mtom on the server

2008-08-17 Thread lfoggy
I am concerned if a client can not process mtom encoded attachments, so I like 
to make mtom optional on the server. (this is an in-house application, so 
customers will have control over the server) So when server is not 
mtom-enabled, attachment is send inline.
The javadoc for BindingType annotation states that the annotation may be 
overriden programmatically. I was thinking maybe I can use that to read mtom 
configuration from a properties file, but I am not sure how do that.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4170939#4170939

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4170939
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - mtom on the server

2008-08-14 Thread lfoggy
Hi,
If I want to make mtom optional on the server, what is the best way of 
configuring that? Is there any way to package the BindingType outside the 
webservice class, so that users can turn mtom on or off?
Thanks,



View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4170482#4170482

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4170482
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Re: Enabling MTOM-Support at JBossWS client fails

2008-08-12 Thread lfoggy
Well, I am using document/literal wrapped for my wsdl file, and what I have 
found so far is that mtom only works if the parameter type of the method is 
DataHandler. For example, this works:

@WebMethod
@RequestWrapper(localName = sendOctet, targetNamespace = 
http://xxx.com/webservice/mtom/;, className = 
com.xxx.webservice.mtom.SendOctet)
@ResponseWrapper(localName = sendOctetResponse, targetNamespace = 
http://xxx.com/stat/webservice/mtom/;, className = 
com.xxx.webservice.mtom.SendOctetResponse)
public void sendOctet(
@WebParam(name = octet, targetNamespace = )
DataHandler octet,

But if I pass something like List, or another holder bean that contains a 
DataHandler field, mtom does not work anymore, and the message is send inline.



View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4170124#4170124

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4170124
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Re: Enabling MTOM-Support at JBossWS client fails

2008-08-12 Thread lfoggy
Thank you very much for the replies.
In your case the code is working because StatementDO has a single DataHandler 
field.

public final class StatementDO 
implements Serializable  { 
... 
private DataHandler stmtContent; 

I think the problem is when there is a List of DataHandlers.
public final class StatementDO 
implements Serializable  { 
... 
private List stmtContent;

I also think you are right and the problem might be taken care of  by this:
[JBWS-2012] - Attachment support for JAX-WS collections 

unfortunately it was fixed in version 3.0.2 and I can't move up to that version 
yet since I am running Jboss 4.0.5 for now. 

Thanks,


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4170156#4170156

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4170156
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Re: Enabling MTOM-Support at JBossWS client fails

2008-08-11 Thread lfoggy
Hi,
I have been trying to compare my classes with the sample xop examples in 
jbossws package and finally I was able to find the problem.
Here are my classes:
class AttachmentType {
 @XmlMimeType(application/octet-stream)
 protected DataHandler dh;



class AttachmentTypeHolder {
protected List attachments;



In my endpoint class if I have the following method signature, then the xop 
works:

public AttachmentType echoDataHandler(DHRequest request)

but if I change the method signature to this:

public AttachmentHolder echoDataHandler(DHRequest request)

then the response is returned inline and not xop encoded.

Is there anything I have to do to fix this. I am using Doc/Literal Wrapped 
wsdl, with a WSDL-first approach.

Any help would really be appreciated.
Thanks,


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4169948#4169948

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4169948
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Re: Enabling MTOM-Support at JBossWS client fails

2008-08-06 Thread lfoggy
Hi,
I am also having the same problem. I am using JAX-WS 2.0.3 with jboss 4.0.5, 
and enabling mtom on the client side to send an attachment to the server. When 
I check the content of the msg in trace mode, it looks like it is inline. Is 
there anything else I need to do or maybe the trace mode is not showing the 
correct msg body?
Any help would be appreciated.
Thanks,


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4169113#4169113

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4169113
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: jboss 4.0.5 SP1

2008-05-28 Thread lfoggy
Hi again,
Can at least someone tell me where I can go to ask this question? We need 
access to 4.0.5 SP1 that has a few security fixes, but I can not find it on the 
download page. Do we have to get it from the source?
Any help would be appreciated.
Thanks,


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4154035#4154035

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4154035
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration DEPLOYMENT] - jboss 4.0.5 SP1

2008-05-27 Thread lfoggy
Hi,
Can anybody tell me where I can download Jboss 4.0.5 SP1 from?
Thanks


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4153797#4153797

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4153797
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration Deployment] - jboss4 classloader web-inf/lib

2007-01-16 Thread lfoggy
Not sure if this is the correct forum.
This issue relates to JBAS-2072 bug fix.
I was deploying a .war file under Jboss-4.0.5 and had trouble seeing the Oracle 
jdbc drivers. Turns out the above bug fix works for .jar files, but it does not 
work for .zip files. 
I am posting this in case this helps someone out there.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4002435#4002435

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4002435
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user