Re: CXFServlet Errors Starting Tomcat In Eclipse

2010-11-15 Thread Michael
Benson, That might work! I thought of something else, kind of a variation on your theme. When you create a Tomcat server in Eclipse, Eclipse also creates a Tomcat Server project. If this project is similar to other Eclipse projects then the project preferences should have a way for me to add

Re: Support SOAP 1.1 and SOAP 1.2 in the same Endpoint

2010-11-15 Thread Daniel Kulp
I'd probably need to see a test case, but you really don't need to enable 1.1 support if 1.2 is turned on.With CXF, if 1.2 is turned on, it will also work fine for 1.1 requests. If a 1.1 request comes in, it will automatically respond with a 1.1 response. Dan On Monday 15 November 2010

Re: CXF on Sonar

2010-11-15 Thread Daniel Kulp
On Saturday 13 November 2010 2:42:49 pm Robert Liguori wrote: > Why was CXF removed from the Sonar page? http://nemo.sonarsource.org/ It seems to be back today, but a bit out of date. I'll send them a note asking about it. -- Daniel Kulp dk...@apache.org http://dankulp.com/blog

Re: wsdl2java error

2010-11-15 Thread Daniel Kulp
You need to endorse the jaxb-api jar file to pick up the changes to the XmlElement class. I'll get that added to the shell scripts. Dan On Monday 15 November 2010 11:25:13 am Dmitry Zinushin wrote: > Hi, > > > > I use CXF 2.3 for implement client for external web-service > > wsdl fil

Re: Using CXF asynchronously

2010-11-15 Thread Daniel Kulp
On Monday 15 November 2010 11:41:41 am Villoud Pierre Julien wrote: > Hello an sorry about the very late reply. > > I think that the request actually timeouts, but the out of memory errors > happened when a lot of request are made and my guess is that there are > more request made than request tha

RE: Using CXF asynchronously

2010-11-15 Thread Villoud Pierre Julien
Hello an sorry about the very late reply. I think that the request actually timeouts, but the out of memory errors happened when a lot of request are made and my guess is that there are more request made than request that timeout. So at some point, a out of memory error occurs. I am doubling th

Re: separate CXFServlet for private API's

2010-11-15 Thread Conficio
I guess this is pointing to the same issue? https://issues.apache.org/jira/browse/CXF-2838 -- View this message in context: http://cxf.547215.n5.nabble.com/separate-CXFServlet-for-private-API-s-tp3261355p3265976.html Sent from the cxf-user mailing list archive at Nabble.com.

Re: separate CXFServlet for private API's

2010-11-15 Thread Conficio
Thank Daniel, here is my sample, based of java first with spring support /webapp/WEB-INF/beans-private.xml http://www.springframework.org/schema/beans"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:jaxws="http://cxf.apache.org/jaxws"; xsi:schemaLocation

wsdl2java error

2010-11-15 Thread Dmitry Zinushin
Hi, I use CXF 2.3 for implement client for external web-service wsdl file that ws contains complexType like this (just example for clarity): When I run wsdl utility for wsdl file with this type I receive error: wsdl2java.bat -verbose -client -d .\bui

Discuss change http authorization handling to be strategy based

2010-11-15 Thread Schneider Christian
Hi all, I am currently working on https://issues.apache.org/jira/browse/CXF-3123 (Support Spnego/Kerberos authentication for http transport). My first attempt was to use implement an AuthSupplier for this case. I thought AuthSupplier acts as a kind of strategy to implement auth support. When I

Support SOAP 1.1 and SOAP 1.2 in the same Endpoint

2010-11-15 Thread hsemar
Hello experts, I have a simple web service, lets call it as webserviceA, and I would like the web service method to support soap1.1 and soap 1.2 versions. I'm using JBossWS CXF 3.2.2 GA which uses CXF 2.2.5. I have used the following annotion in my service class to add soa

Re: Unable to inject @context from junit test case

2010-11-15 Thread DonDiego761
Hi, I have the same problem with my JUnit test case. The uriInfo variable is null. And I don't understand the solution of Sergey. Could you explain with details the solution please? My config: The interface IRestService et the implementation RestServiceImpl where uriInfo is initialized by the an

Re: Turn off available soap services page

2010-11-15 Thread Sergey Beryozkin
ok, thanks. In this case, updating CXF to reject /services requests would not solve the problem because the question is what CXF should return. Some users may want 404, some others may want something more descriptive. Have just seen an email from Glen - hiding the service page using the CXFServlet

Re: Turn off available soap services page

2010-11-15 Thread Glen Mazza
http://cxf.547215.n5.nabble.com/Disable-Listing-of-Web-Services-in-Browser-Deploying-two-CXFServlet-instances-tp566754p566755.html podiki wrote: > > Hi, > > For a project I'm trying to find out how to turn off the page that cxf > returns where it lists the available SOAP services. Unfortunatel

Re: Turn off available soap services page

2010-11-15 Thread Podiki Stifado
I would like to hide the web service from the service page and turn off that page all together. Of course it's security through obscurity, but we would like to turn off all the information that shows this is a web service provided by CXF. So showing our own page or not showing it at all would be pr

Re: Turn off available soap services page

2010-11-15 Thread Sergey Beryozkin
Hi On Mon, Nov 15, 2010 at 11:49 AM, Podiki Stifado wrote: > Hi, > > For a project I'm trying to find out how to turn off the page that cxf > returns where it lists the available SOAP services. Unfortunately I don't > seem to be able to find the right information on how to do this. Can > anybody

Turn off available soap services page

2010-11-15 Thread Podiki Stifado
Hi, For a project I'm trying to find out how to turn off the page that cxf returns where it lists the available SOAP services. Unfortunately I don't seem to be able to find the right information on how to do this. Can anybody give me some pointers? Regards, Podiki

Re: Excluding empty array elements from the generated message

2010-11-15 Thread Jaco Prinsloo
Hi Freeman, Thanks for the reply. Setting nillable=true and the items to null results in the following entry: http://www.w3.org/2001/XMLSchema-instance"; ns3:nil="true"/> Setting nillable=false and the items to null results in my desired behaviour. Thank a lot! Jaco On Mon, Nov 15, 2010 at 12:0

Re: Excluding empty array elements from the generated message

2010-11-15 Thread Freeman Fang
Hi Jaco, I believe if you use nillable=true and setItems(null), there should be no . But if you setItems(new String[]) string[] isn't null but the length is 0, I think have is expected behavior, as it's different with null. Freeman On 2010-11-15, at 下午5:00, Jaco Prinsloo wrote: Hi Fre

Re: How to configure JAXBProvider

2010-11-15 Thread Sergey Beryozkin
Hi On Fri, Nov 12, 2010 at 5:01 PM, Stefan wrote: > So, there is no way of doing this via an API at the moment, right? > It is possible, either use JAXRSServerFactoryBean or extend CXFNonSpringJAXRSServlet and override its getProviders() method. Actually, you can register a JAXRS Application im

Re: Using WSDL2Java in java code!

2010-11-15 Thread Jinglong Wang
On 2010/11/15 17:43, Freeman Fang wrote: > > On 2010-11-15, at 下午4:46, Jinglong Wang wrote: > >> On 2010/11/15 16:30, Freeman Fang wrote: >>> >>> On 2010-11-15, at 下午4:20, Jinglong Wang wrote: >>> On 2010/11/15 16:03, Freeman Fang wrote: > > On 2010-11-15, at 下午3:53, Wang Jinglong wrot

Re: Using WSDL2Java in java code!

2010-11-15 Thread Freeman Fang
On 2010-11-15, at 下午4:46, Jinglong Wang wrote: On 2010/11/15 16:30, Freeman Fang wrote: On 2010-11-15, at 下午4:20, Jinglong Wang wrote: On 2010/11/15 16:03, Freeman Fang wrote: On 2010-11-15, at 下午3:53, Wang Jinglong wrote: On 2010/11/15 14:41, Freeman Fang wrote: Hi, Did you already s

Stoping cxf server while undeploying application in Tomcat 7

2010-11-15 Thread Vladislav Krejcirik
Hi, I have web application, which runs on Tomcat 7. In application, I have bean for creating and destroying cxf server. When I deploy application, server is initializing and runs. When I undeploy application, server is destroying, but port where server runs is still used. So I cannot redeploy

Re: separate CXFServlet for private API's

2010-11-15 Thread Sergey Beryozkin
Can you have two servlets referring to the same Spring configuration (via the context parameter) which defines two endpoints (possibly reusing the same service bean) ? cheers, Sergey On Fri, Nov 12, 2010 at 4:59 PM, Conficio wrote: > > Thanks Willem for the reply. > > I'm not sure how I make t

Re: Excluding empty array elements from the generated message

2010-11-15 Thread Jaco Prinsloo
Hi Freeman, Sorry, I should have added. I tried setting nillable to false and I also tried leaving it out completely, but none of it helped. Thank you, Jaco On Mon, Nov 15, 2010 at 10:11 AM, Freeman Fang wrote: > > On 2010-11-15, at 下午4:05, Jaco Prinsloo wrote: > > Hi, >> >> I have an element

Re: Using WSDL2Java in java code!

2010-11-15 Thread Jinglong Wang
On 2010/11/15 16:30, Freeman Fang wrote: > > On 2010-11-15, at 下午4:20, Jinglong Wang wrote: > >> On 2010/11/15 16:03, Freeman Fang wrote: >>> >>> On 2010-11-15, at 下午3:53, Wang Jinglong wrote: >>> On 2010/11/15 14:41, Freeman Fang wrote: > Hi, > > Did you already specify namepace=p

Re: Using WSDL2Java in java code!

2010-11-15 Thread Freeman Fang
On 2010-11-15, at 下午4:20, Jinglong Wang wrote: On 2010/11/15 16:03, Freeman Fang wrote: On 2010-11-15, at 下午3:53, Wang Jinglong wrote: On 2010/11/15 14:41, Freeman Fang wrote: Hi, Did you already specify namepace=packagename following the syntax <[wsdl-namespace =]package-name>* after -p?

Re: Using WSDL2Java in java code!

2010-11-15 Thread Jinglong Wang
On 2010/11/15 16:03, Freeman Fang wrote: > > On 2010-11-15, at 下午3:53, Wang Jinglong wrote: > >> On 2010/11/15 14:41, Freeman Fang wrote: >>> Hi, >>> >>> Did you already specify namepace=packagename following the syntax >>> <[wsdl-namespace =]package-name>* after -p? >>> You can't only insert -p in

Re: Excluding empty array elements from the generated message

2010-11-15 Thread Freeman Fang
On 2010-11-15, at 下午4:05, Jaco Prinsloo wrote: Hi, I have an element which is annotated as given below: @XmlElement(name = "Items", nillable = false, required = false) public String[] getItems() { return items; } Hi, How about change nillable=true to see if it helps? Freeman It genera

Excluding empty array elements from the generated message

2010-11-15 Thread Jaco Prinsloo
Hi, I have an element which is annotated as given below: @XmlElement(name = "Items", nillable = false, required = false) public String[] getItems() { return items; } It generates fine when it contains items, and generates an empty element when it does not: Is there any way that I can conf

Re: Using WSDL2Java in java code!

2010-11-15 Thread Freeman Fang
On 2010-11-15, at 下午3:53, Wang Jinglong wrote: On 2010/11/15 14:41, Freeman Fang wrote: Hi, Did you already specify namepace=packagename following the syntax <[wsdl-namespace =]package-name>* after -p? You can't only insert -p in the arg list. Freeman On 2010-11-15, at 下午2:29, Wang Jinglong