Re: WebServiceContext not injected in endpoint

2008-02-28 Thread Davide Gesino
OK! As soon as I can I'll try CXF 2.1 and I'll send you a feedback! Thanks. Davide -- View this message in context: http://www.nabble.com/WebServiceContext-not-injected-in-endpoint-tp15708465p15731308.html Sent from the cxf-user mailing list archive at Nabble.com.

minOccurs removed?

2008-02-28 Thread Matthias Karlsson
Hi, I'm experiencing a rather strange problem using the latest version of CXF. I'm creating a web service by generating code from a hand-written WSDL which works fine in all our tests, but now we have received a notification from one of our customers that the WSDL that is outputted does not

Re: Aegis databinding custom types

2008-02-28 Thread Benson Margulies
We're made a lot of changes in this area for 2.1. If you're willing to move to a 2.1 snapshot, I'm willing to work with you to figure out how to do what you need to do. On Thu, Feb 28, 2008 at 6:30 AM, Tony Burdett [EMAIL PROTECTED] wrote: Hi, I'm in the process of porting my service from

Re: WebServiceContext not injected in endpoint

2008-02-28 Thread Davide Gesino
willem.jiang wrote: After went through the JaxWsServerFactoryBean codes, I think you need to modify the invoker factory construction argument. Here are the codes. Object implementor = new GreeterImpl(); String address = http://localhost:9000/SoapContext/SoapPort;;

Re: Aegis databinding custom types

2008-02-28 Thread Tony Burdett
Hi Benson, Thanks for the response. I've nothing to tie me to any particular version, so I'm more than happy to use a 2.1 snapshot. I believe that all I actually need to do is configure my service to recognise the additional types I want it to use. But where I would even start doing this

RE: upgrading from XFire - SSL handshake errors

2008-02-28 Thread Arundel, Donal
You are right, Its unfortunate that the ciphersuite 3DES_EDE_CBC_SHA isn't enabled by default since this is a strong and commonly used ciphersuite. I suspect it is an oversight. Do you want to raise a JIRA on this? (should be easily fixed) I'll raise one if you want, but thought it would be nice

Re: Aegis databinding custom types

2008-02-28 Thread Benson Margulies
In 2.1, you'd create a DefaultTypeMapping object, add your mappings, and then push that into an AegisContext object. You'd then push the AegisContext object into the AegisDatabinding object. You'll really need to be looking at CXF source. Look at the AegisContext class and the AbstractEncodingTest

Re: Problem generating WSDL from Java API with CXF 2.0.3

2008-02-28 Thread Phil Weighill-Smith
Dan, Does this one still look fixable and would it be possible to patch 2.0.x with the fixes to get functional WSDL generation in this case? Thanks again for your endeavours in resolving these issues, Phil :n. On Wed, 2008-02-27 at 16:48 -0500, Daniel Kulp wrote: This looks exactly like

RE: Usage of X509 certificates in WSS4J

2008-02-28 Thread Arundel, Donal
Okay, sounds like the certs were as we suspected then :-) If you were proposing a WSS4J enhancement request for x509TokenProfile 1.1 then perhaps it might be worth throwing a query to the WSS4J mail list? Obviously for this sort of extension we shouldn't add the logic into CXF itself. Cheers,

Re: WebServiceContext not injected in endpoint

2008-02-28 Thread Li, Weiye
As a matter of fact, it works for even 2.0.4. I tried it yesterday, this context got injected and I could get request back indirectly from it. Well, I used Spring bean for all my test. On 2/28/08 3:07 AM, Davide Gesino [EMAIL PROTECTED] wrote: Hi Dan, I have used this CXF 2.1 snapshot.

Re: minOccurs removed?

2008-02-28 Thread Daniel Kulp
Quick question: Are those elements top level elements or do they just occur inside other structures (like xsd:sequence/xsd:choice)? It it's the former, then they are NOT supposed to have minOccurs/maxOccurs constraints at all. Both should actually be dropped.If you check section 3.3.2 of

Maven Java2WSDL/Java2WS Plugin

2008-02-28 Thread Will Gomes
I was unable to find config options to specify the source/class/resource directories for the java2wsdl or java2ws maven plugins. Currently the plugins output both source and class files in same directory. Also java2ws outputs source/class files under the project directory, rather than

SV: minOccurs removed?

2008-02-28 Thread Matthias Karlsson
Hi, All these elements are part of a xsd:sequence, so that shouldn't be the problem. I'll try to find time to create a small test case, though unfortunately my time currently rather limited. I'm using 2.0.4 anyway, which is also what we use in production. Matthias -Ursprungligt

Re: WebServiceContext not injected in endpoint

2008-02-28 Thread Daniel Kulp
Davide, How is your bus/cxf stuff configured? Are you using the defaults or are you specifically using the spring imports to import very specific things? If it's the latter, you will need to import: META-INF/cxf/cxf-extension-jaxws.xml as well. If it's the former, that sounds like a

Re: Building cxf

2008-02-28 Thread Daniel Kulp
No idea. Couple suggestions: 1) What version of maven are you using? You may need 2.0.7. Not really sure. 2) Can you run with -X flag and look at the Classpath that is printed just before the javac command? It should have:

Re: set Default minOccurs and nillable Parameters

2008-02-28 Thread Daniel Kulp
On Wednesday 27 February 2008, Brad Harper wrote: Can this be done using JAXB? These nillable attributes are the bane of my existence... Is there anyway to make them go away? Depends on where in the schema and who is generating them The nillables in the actual java beans that you return

Re: finding the number of input output parameters using dynamic client.

2008-02-28 Thread Daniel Kulp
I'm going to assume you are using CXF 2.0.4 or the 2.1 snapshots If not, definitely update as what I'm about to describe applies to code enhanced for that version It SOUNDS like you are using a wrapped doc/literal wsdl, which is fine. However, in that case, the wsdl message only

how to change endpoint address in cxf.xml?

2008-02-28 Thread Christopher Cheng
How could I change the endpoint addresses of all service calls in cxf? I am trying to switch the endpoint address from https://myhost/websvc to http://myhost/websvc Is there a 1-line configuration to do that?

Re: Building cxf

2008-02-28 Thread Glen Mazza
Steps 1 and 2 of here[1] are how I downloaded and compiled CXF. Perhaps that might be of help. Glen [1] http://www.jroller.com/gmazza/date/20080225 dkulp wrote: No idea. Couple suggestions: 1) What version of maven are you using? You may need 2.0.7. Not really sure. 2) Can

Re: how to change endpoint address in cxf.xml?

2008-02-28 Thread Glen Mazza
I'm unsure if you're trying to change the URL that a SOAP client is using, or a the URLs being employed by the web service. If the former, Step 7 of [1] might help you. You can use dependency injection to feed a URL to your SOAP client, and use the Java code in Step #7 to dynamically change the

Re: WebServiceContext not injected in endpoint

2008-02-28 Thread Daniel Kulp
Never mind, this is definitely not working. Looking into it. Dan On Thursday 28 February 2008, Daniel Kulp wrote: Davide, How is your bus/cxf stuff configured? Are you using the defaults or are you specifically using the spring imports to import very specific things? If it's the

Maps and Interfaces as params/returns sample....

2008-02-28 Thread Daniel Kulp
I just wanted to let everyone know that I've deployed a new CXF 2.1 snapshot that has an updated java_first_jaxws sample that includes using an interface and a Map object as parameters/returns to methods on the interface. Since those have been common issues lately, I'd greatly appreciate it

WebServiceContext violates loader constraints

2008-02-28 Thread Daniel Lipofsky
Suddenly I am getting this error: 2008-02-28 13:47:02,631 ERROR [STDERR] - Feb 28, 2008 1:47:02 PM org.apache.cxf.phase.PhaseInterceptorChain doIntercept INFO: Application has thrown exception, unwinding now: Class javax/xml/ws/WebServiceContext violates loader constraints It was working fine

Re: WebServiceContext violates loader constraints

2008-02-28 Thread Daniel Kulp
Looks like there are two different jaxws-api jars being picked up somehow.That's definitely what I'd check for. Not sure why it would start happening today unles you are on a 2.1 snapshot using maven or something. I did a deploy with some updated WebServiceContext injection code this

SOAPFaultException from Provider not written to SOAP response

2008-02-28 Thread Bokde, Dhiraj
Hi, I am using CXF version 2.0.4-incubator in an application that implements the JAX-WS ProviderSource interface. The application throws a SOAPFaultException on error, but the client gets the HTTP message below, which does not have a SOAP Envelope and hence cannot be parsed. The code snippet

RE: WebServiceContext violates loader constraints

2008-02-28 Thread Daniel Lipofsky
Well, I still can't figure out what changed. But JBoss does include that class in jboss-jaxws.jar. Removing the CXF version (jaxws-api-2.0.jar) from my install solved the problem. Is there a list of JARs to avoid for a JBoss install? I would suspect most of the API-type JARs would be duplicated

CXF 2.0.4 and Websphere version 6.1.0.9 with WS feature pack

2008-02-28 Thread Satishstp
I need some help with Websphere 6.1.x and CXF2.0.4. I wrote a simple service and client using CXF and getting below exception when a Client code invokes the service. Can anyone help me out? [2/28/08 17:22:26:334 EST] 0023 PhaseIntercep I org.apache.cxf.phase.PhaseInterceptorChain

Re: how to change endpoint address in cxf.xml?

2008-02-28 Thread Christopher Cheng
Hi Glen, I am implementing the client side, so [1] is more relevant. I can see that the URL is changed at bp.getRequestContext(). put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, endpointURL); What I want to make it happen is that I could change the endpoint address in cxf.xml

Re: how to change endpoint address in cxf.xml?

2008-02-28 Thread Glen Mazza
Forwarding to cxf-user list (email accidentally just went to Christopher) Am Donnerstag, den 28.02.2008, 21:58 -0500 schrieb Glen Mazza: Possibly, but I don't think you should do that in a CXF-specific manner that you are envisioning. (I don't know of a CXF-specific manner myself.) It

slow startup?

2008-02-28 Thread Christopher Cheng
When I call the service as a client, it takes 5 seconds to load. I am not sure whether it takes 5 seconds to create the service or it takes 5 seconds to look up for ciper filters. Feb 29, 2008 2:14:42 PM org.apache.cxf.service.factory.ReflectionServiceFactoryBean buildServiceFromWSDL INFO:

Re: how to change endpoint address in cxf.xml?

2008-02-28 Thread Christopher Cheng
I already did that using jakarta commmons-configuration, I think it is better to move to Spring which is more appropriate. Thanks for the help. - Original Message - From: Glen Mazza [EMAIL PROTECTED] To: cxf-user cxf-user@incubator.apache.org Sent: Friday, February 29, 2008 11:07 AM