wsdlTOjava plugin, fails with mime:multipartRelated attachments

2008-01-04 Thread imorales
Hi all, I´m using CXF 2.0.2. I have a wsdl with a method that retuns a ComplexType and one attachments. I have problems configuring rigth the mime:multipartRelated in the operation binding to run CXF plugin WSDLtoJava. Here is my files and the error: Wsdl:

Re: Custom exceptions in CXF web-service

2007-11-29 Thread imorales
ption directly > from the web service code, you should throw MetaInfoException_Exception > (message, MetaInfoException), no? Again, look at my example[5] here. > > Glen > > [4] http://tinyurl.com/2j5mrq > [5] http://www.jroller.com/gmazza/date/20071019#step6 > > > Am

Re: Custom exceptions in CXF web-service

2007-11-29 Thread imorales
any.CustomExceptionType customException, Throwable cause) { > super(message, cause); -->this.customException = customException;<-- } > > > Am Donnerstag, den 29.11.2007, 01:45 -0800 schrieb imorales: >> I use the one parameter Constructor. >> --> throw new MetaIn

Re: Custom exceptions in CXF web-service

2007-11-29 Thread imorales
I use the one parameter Constructor. --> throw new MetaInformacionException("Error in meta Info") Glen Mazza-2 wrote: > > Am Mittwoch, den 28.11.2007, 00:25 -0800 schrieb imorales: >> Hi all. I developed a web service using CXF. The methods of the web >> serv

Re: Custom exceptions in CXF web-service

2007-11-28 Thread imorales
Well that it´s a bug --> https://issues.apache.org/jira/browse/CXF-1028 But I don´t understand because my cxf version is 2.0.2 and the bug is fixed for that version. imorales wrote: > > Hi all. I developed a web service using CXF. The methods of the web > service throws Custo

Custom exceptions in CXF web-service

2007-11-28 Thread imorales
Hi all. I developed a web service using CXF. The methods of the web service throws Custom Exceptions. Something like that: - @WebResult(name="ticket") Long iniciaFormulario( @WebParam(name="xslt") String xslt)

Re: MTOM and @XmlMimeType("application/octet-stream") annotation.

2007-10-16 Thread imorales
t4210895.html > > Best Regards > > Freeman > > > imorales wrote: >> Hi all. >> >> I´m trying to implemente a web service that uses MTOM Attachments. The >> way >> I´m doing is "Annotation if JAXB bean". The problem is that the wsd

Re: MTOM and @XmlMimeType("application/octet-stream") annotation.

2007-10-16 Thread imorales
Thanks guys... I will try ty implement the wrappers Jim Ma-3 wrote: > > This is not supported in CXF . > This thread FYI: > http://www.nabble.com/MTOM-sample-generated-WSDL-with-DataHandler-on-server-t4210895.html > > imorales wrote: >> Hi all. >> >> I´

MTOM and @XmlMimeType("application/octet-stream") annotation.

2007-10-16 Thread imorales
Hi all. I´m trying to implemente a web service that uses MTOM Attachments. The way I´m doing is "Annotation if JAXB bean". The problem is that the wsdl that I generate with ant task "java2wsdl" doesn´t add the annotation @XmlMimeType("application/octet-stream") in the . My bean is:

WSS4JInterceptor Exception

2007-10-05 Thread imorales
Hi all. I have a web service and I need to know what user name call each time to my web service. In my service implementation I have a declared: @javax.annotation.Resource private WebServiceContext context; With this variable I can access to MessageContext and

Re: Know the user principal is callin a WS

2007-10-05 Thread imorales
turns > null. > Thanks to Willem (from Iona), he put a fix (issue CXF-1074) and checked > it > in the trunk. The fix failed in my case but might work for your case. > Please > get the latest trunk and build and use it. ( > http://incubator.apache.org/cxf/building.html) >

Know the user principal is callin a WS

2007-10-05 Thread imorales
Hi all. I need to know how get the user name that is invoking a web service. I have a WebServiceContext in my webservice implementor class, WebServiceContext has a method "getUserPrincipal", but WebServiceContext is null and i cant acces to it. I read how to write a custom Interceptor but i dont