Re: CXF 2.0.4 and Websphere version 6.1.0.9 with WS feature pack

2008-02-29 Thread Daniel Kulp
> WSWS4100E: Method createFault() of class javax.xml.soap.SOAPFactory is > not supported in SAAJ 1.2. > That's the error the concerns me the most. Looks like WebSphere has an old version of SAAJ or something. JAX-WS requires SAAJ 1.3, not 1.2. I hate to ask a silly question, but have you

Re: Downloads corrupt?

2008-02-29 Thread Daniel Kulp
On Friday 29 February 2008, nate roe wrote: > When I try to download CXF, I have trouble opening the archives > (tar.gz or zip) in WinRAR or in WinZip. The MD5 hashes for these > files do not match. This seems to be the case for both 2.0.3 and 2.0.4 > binary distributions. I just tried the tar.gz

Re: Configure JMS Transport With Code?

2008-02-29 Thread Daniel Kulp
You MIGHT be able to do this: factory.setStart(false); Server serv = factory.create(); JMSDestination dest = (JMSDestination)serv.getDestination(); AddressType address = dest.getJMSAddress(); address.setJndiDestinationName(); serv.start(); Dan On Friday 29 February 2008, Ayush Gupta

Re: Downloads corrupt?

2008-02-29 Thread Willem Jiang
AFAIK CXF 2.0.4 uses the JAXB 2.0 and JAXWS API 2.0. If you are using the JDK 1.6 update 3 or later version , the JDK's JAXB and JAXWS version are 2.1. If you build the CXF 2.0.4 source with it , you will get build fail message. Willem nate roe wrote: When I try to download CXF, I have trou

Downloads corrupt?

2008-02-29 Thread nate roe
When I try to download CXF, I have trouble opening the archives (tar.gz or zip) in WinRAR or in WinZip. The MD5 hashes for these files do not match. This seems to be the case for both 2.0.3 and 2.0.4 binary distributions. The 2.0.4 Zip source distribution does not appear corrupted. However, wh

RE: Configure JMS Transport With Code?

2008-02-29 Thread Ayush Gupta
It appears to me that I just cannot do this configuration via the API and must use the WSDL or cxf.xml. It will be great if someone could confirm this? If that is true then JMS configuration does seem to go against the "Rules of Configuration" mentioned at http://cwiki.apache.org/CXF20DOC/configur

RE: client SSL question

2008-02-29 Thread kalakhr
Here is a complete example of a CXF client using SSL and WS-Security. You don't need cxf.xml configuration file to use this, all is done in Java. TestClient.java --- /** * Please modify this class to meet your needs * This class is not complete */ import java.util.HashMap; import

Re: How to seperate with CXF

2008-02-29 Thread Daniel Kulp
You can try something like: ClassLoader cl = new URLClassLoader(new URL[0], Thread.currentThread().getContextClassLoader()) { public InputStream getResourceAsStream(String s) { if ("META-INF/services/javax.xml.ws.spi.Provider".equals("s")) {

Re: How to seperate with CXF

2008-02-29 Thread Daniel Kulp
That seems to be an OLD MS based service. Most likely, turning chunking off will fix it. import org.apache.cxf.endpoint.Client; import org.apache.cxf.frontend.ClientProxy; import org.apache.cxf.transport.http.HTTPConduit; HPRequestWSSoap port = ss.getHPRequestWSSoap(); Cli

Re: CXF 2.0.4 and Websphere version 6.1.0.9 with WS feature pack

2008-02-29 Thread Satishstp
Thank you, removing the wstx-asl jar worked for me on the service. But the client is throwing following exception after getting the response back from the service. Feb 29, 2008 4:29:18 PM org.apache.cxf.phase.PhaseInterceptorChain doIntercept INFO: Interceptor has thrown exception, unwinding now

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

2008-02-29 Thread Ayush Gupta
Yes, that makes sense since it is the concrete class which does take over. I did wish that Jaxb was smarter about handling interfaces. Thanks for explaining! -ayush -Original Message- From: Daniel Kulp [mailto:[EMAIL PROTECTED] Sent: Friday, February 29, 2008 1:11 PM To: cxf-user@incub

Re: How to seperate with CXF

2008-02-29 Thread yulinxp
Could you pls give me some code snippets? I don't know how to block the call to getResource("META-INF/services/javax.xml.ws.spi.Provider") dkulp wrote: > > > Honestly, I'm not sure there IS a way. I was hoping for at least a > system property, but looking at the code for jaxws-api, the sys

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

2008-02-29 Thread Daniel Kulp
Right... That's the limitation of how the XmlJavaTypeAdapter stuff works. It's the concrete class that COMPLETELY drives the generated schema and what gets written to the wire. All the JAXB annotations go on that class, not the interface (other than the TypeAdapater annotation, although

Re: How to seperate with CXF

2008-02-29 Thread yulinxp
Now using NET, I can connect to it! Using wsimport, I can connect too! But CXF client doesn't work! The message could be sent! ~~ I mean could NOT. (typo again) -- View this message in context: http://www.nabble.com/How-to

Re: How to seperate with CXF

2008-02-29 Thread yulinxp
I was trying to use cxf client. But it didn't work for me. Here is my post: http://www.nabble.com/client-SSL-question-td15564062.html#a15564062 To summarize my problem: I need to access the web service here: https://mdf.ingenixmedpoint.com/mdfwebservices/hprequest.asmx?WSDL I can't connect to url

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

2008-02-29 Thread Ayush Gupta
Daniel, I tried this and am indeed able to use interfaces as parameters. However, I did encounter one problem: "The marshalling is being done based on the concrete class of passed object and not based on the interface itself" So, consider this example: - Lets say that UserImpl has a few additio

Re: SOAPFaultException from Provider not written to SOAP response

2008-02-29 Thread Daniel Kulp
It doesn't seem to be working anyway you look at it. I have a fix I'm testing now. :-( The "workaround" right now that MIGHT work would be to use spring configuration to org.apache.cxf.binding.soap.interceptor.SoapOutInterceptor to the outFaultChain of the service. That's what my fix is ba

RE: passing a flag from impl method to interceptor

2008-02-29 Thread Daniel Lipofsky
Those all sound good, but unfortunately I am pretty much a web-services newbie, I don't have a clue how to implement that, especially the @WebParam sugestion. Do I need some entries in the WSDL, etc? the old implementation was basically outputing this: http://www.foobar.com/connector-1.5/headers_

Re: How to seperate with CXF

2008-02-29 Thread Daniel Kulp
That all said, can I ask the reason for NOT using CXF for the client? Dan On Friday 29 February 2008, Daniel Kulp wrote: > Honestly, I'm not sure there IS a way. I was hoping for at least a > system property, but looking at the code for jaxws-api, the system > property is actually checked las

Re: How to seperate with CXF

2008-02-29 Thread Daniel Kulp
Honestly, I'm not sure there IS a way. I was hoping for at least a system property, but looking at the code for jaxws-api, the system property is actually checked last. :-( The only way I can come up with that MIGHT work is to create a special classloader that blocks the call to getResourc

Re: How to seperate with CXF

2008-02-29 Thread yulinxp
Those classes generated by wsimport and CXF client are very similar. For HPRequestWS ss = new HPRequestWS(); wsimport version: ss-->delegate: [EMAIL PROTECTED] CXF version: ss-->delegate: [EMAIL PROTECTED] How can I force it use WSServiceDelegate not cxf ServiceImpl??? Please help! -- View thi

error trying to add logging in cxf-servlet.xml

2008-02-29 Thread Daniel Lipofsky
So I want to add some custom logging, but first I just tried the logging example in the wiki page for configuration. I get an exception on startup. What am I doing wrong? The only difference I see is between my cxf-servlet.xml and the example is that the example has no jaxws:endpoint entires. C

RE: WebServiceContext violates loader constraints

2008-02-29 Thread Daniel Lipofsky
On Friday February 29, 2008 Daniel Kulp wrote: > > On Thursday 28 February 2008, Daniel Lipofsky wrote: > > 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 pro

How to seperate with CXF

2008-02-29 Thread yulinxp
I have a project which uses CXF server to publish my own service. Now I need to add in a web service client into the project to connect to 3rd party web service. I use JAX-WS RI wsimport to generate those class files. It works alone! But when I add it in my project, cxf client take control! I do

Configure JMS Transport With Code?

2008-02-29 Thread Ayush Gupta
The documentation talks about configuring JMS transport for a service via either WSDL or through cxf.xml. Is there a way that I can set or override these properties using code? More specifically, I'd like to set the following things at runtime: 1. jndiDestinationName 2. jndiReplyDesti

Re: CXF 2.0.4 and Websphere version 6.1.0.9 with WS feature pack

2008-02-29 Thread Daniel Kulp
Interesting. I did a bunch of searches for: javax.xml.stream.isInterning and am not finding much. It seems to be some proprietary property IBM through in for websphere. That looks like to me is that it's somehow getting some sort of custom implementation of JAXB that IBM has created (instead

Problem with SOAPBinding / parameterStyle

2008-02-29 Thread Ron Piterman
Hi, I am prototyping with cxf and have some difficulties with a ruby client I have a simple test service which looks like that: @WebService @SOAPBinding() public interface HelloService { @WebMethod public String sayHello(); @WebMethod public String say( @WebParam(name="w"

Re: WebServiceContext violates loader constraints

2008-02-29 Thread Daniel Kulp
On Thursday 28 February 2008, Daniel Lipofsky wrote: > 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?

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

2008-02-29 Thread Daniel Kulp
Chris, How are you creating your client in your spring config? If you are using our jaxws:client namespace handlers, it has an "address" parameter that would work. If you are using the JaxWsProxyFactoryBean class in a normal "bean", set the "address" property. That should work. Dan

Re: WebServiceContext not injected in endpoint

2008-02-29 Thread Daniel Kulp
On Friday 29 February 2008, Davide Gesino wrote: > I have tried the new snapshot (release 35) with different factories, > and definetively now everything works fine. > The pooled factory is pretty cool!!! Thanks for confirming that it works. :-) I've been thinking about this more and the new fa

Re: passing a flag from impl method to interceptor

2008-02-29 Thread Daniel Kulp
Of course, I typed all that and forgot the most obvious way: Just add a parameter to your method like: @WebParam(header = true, mode = Mode.OUT) Holder header Dan On Friday 29 February 2008, Daniel Kulp wrote: > OK. This is turning into another FAQ type thing that possibly needs > a sample

Re: passing a flag from impl method to interceptor

2008-02-29 Thread Daniel Kulp
OK. This is turning into another FAQ type thing that possibly needs a sample There are a couple options open to you: First, you need the context injected in: @Resource WebServiceContext context; 1) Standard JAX-WS API's: throw the value in the WebServiceContext and in a SoapHandler, us

Re: WSDLtoJava

2008-02-29 Thread Daniel Kulp
On Friday 29 February 2008, John-M Baker wrote: > Sounds great. > > Should I be using the Axis2 java2wsdl generator, or CXF's version? I > can't help feeling that I should let Axis2 generate it... And I > couldn't get the java2wsdl task to work :) Well, if the map is in there, it either won't wor

Re: WSDLtoJava

2008-02-29 Thread Benson Margulies
I thought you wrote that you were also failing with CXF java2wsdl? On Fri, Feb 29, 2008 at 12:17 PM, John-M Baker <[EMAIL PROTECTED]> wrote: > Sorry, "What's your frustration with java-first and CXF"? > > John Baker > -- > Web SSO > IT Infrastructure > Deutsche Bank London > > URL: http://websso

Re: WSDLtoJava

2008-02-29 Thread John-M Baker
Sounds great. Should I be using the Axis2 java2wsdl generator, or CXF's version? I can't help feeling that I should let Axis2 generate it... And I couldn't get the java2wsdl task to work :) Take a look: Anything look obviously wrong

passing a flag from impl method to interceptor

2008-02-29 Thread Daniel Lipofsky
I have a csae where I want to set something in the SOAP response header based on what happened in the execution of the method implementation. I suppose I want to extend AbstractSoapInterceptor, but what I can't figure out is how to pass a flag from the method to the interceptor. I thought about s

Re: WSDLtoJava

2008-02-29 Thread Daniel Kulp
On Friday 29 February 2008, John-M Baker wrote: > Yep, I agree. Or rather, Axis2's java2wsdl has helpfully put that > namespace in the file. The -p option obviously resolved it for me. I > assume Axis2 is behaving correctly by generating this WSDL given > returning a Map must be a fairly common fea

Re: WSDLtoJava

2008-02-29 Thread John-M Baker
Sorry, "What's your frustration with java-first and CXF"? John Baker -- Web SSO IT Infrastructure Deutsche Bank London URL: http://websso.cto.gt.intranet.db.com "Benson Margulies" <[EMAIL PROTECTED]> 29/02/2008 17:08 Please respond to cxf-user@incubator.apache.org To cxf-user@incubato

Re: WSDLtoJava

2008-02-29 Thread Benson Margulies
It's wrong in my opinion. HashMap's in JAXB are hard, but they can be done. What's your frustration with java-first and CXF? On Fri, Feb 29, 2008 at 12:06 PM, John-M Baker <[EMAIL PROTECTED]> wrote: > Yep, I agree. Or rather, Axis2's java2wsdl has helpfully put that > namespace in the file. Th

Re: WSDLtoJava

2008-02-29 Thread John-M Baker
Yep, I agree. Or rather, Axis2's java2wsdl has helpfully put that namespace in the file. The -p option obviously resolved it for me. I assume Axis2 is behaving correctly by generating this WSDL given returning a Map must be a fairly common feature, yet 'claiming' that namespace seems to be a 'b

Re: WSDLtoJava

2008-02-29 Thread Benson Margulies
It is doing what you asked it to do. You've got namespaces like http://util.java/xsd"; in your file. You are claiming control of that package. Either change the namespace or remap it to a package of your own. There's nothing wrong with returning hashmaps. On Fri, Feb 29, 2008 at 11:58 A

RE: WSDLtoJava

2008-02-29 Thread John-M Baker
Thanks, that fixed the problem. I'm returning a java.util.HashMap from one of the objects - I assume that's where the problem lies? Is this a bad thing? John Baker -- Web SSO IT Infrastructure Deutsche Bank London URL: http://websso.cto.gt.intranet.db.com "Daniel Lipofsky" <[EMAIL PROTE

Re: WSDLtoJava

2008-02-29 Thread John-M Baker
WSDL, generated by the java2wsdl Axis2 task. More than happy to try the CTX java2wsdl process when I can persuade it to work (which I currently can not!). http://schemas.xmlsoap.org/wsdl/"; xmlns:ns4="http://ldap.dao.websso.db.com/xsd"; xmlns:ns0="http://ldap.springframework.org/xsd"; xmlns

RE: WSDLtoJava

2008-02-29 Thread Daniel Lipofsky
I'm not sure why it is using that package, it usually bases the package name off the namespace URL, but you can override by adding the -p parameter like this try that and see if it helps. - Dan > -Original Message- > From: John-M Baker [mailto:[EMAIL PROTECTED]

Re: WSDLtoJava

2008-02-29 Thread Benson Margulies
You'd need to show us your wsdl. On Fri, Feb 29, 2008 at 11:20 AM, John-M Baker <[EMAIL PROTECTED]> wrote: > Hello, > > I'm looking for a reliable wsdl2java product and I'm looking at CXF. I've > generated a set of sources from a WSDL but a set of java.util.xsd.* > sources have been generated. Wh

RE: WSDLtoJava

2008-02-29 Thread Robert Dellago
That looks ok to me. What kind of error do you get? Bob -Original Message- From: John-M Baker [mailto:[EMAIL PROTECTED] Sent: Friday, February 29, 2008 11:20 AM To: [EMAIL PROTECTED] Subject: WSDLtoJava Hello, I'm looking for a reliable wsdl2java product and I'm looking at CXF. I've

WSDLtoJava

2008-02-29 Thread John-M Baker
Hello, I'm looking for a reliable wsdl2java product and I'm looking at CXF. I've generated a set of sources from a WSDL but a set of java.util.xsd.* sources have been generated. When compiled and run, the VM complains that java.util is a protected package (because it is). I'm generating the s

Re: Does CXF Support Interfaces as Web Params?

2008-02-29 Thread Benson Margulies
Aegis has interface support. You can specify a map from Class to class name that maps interface classes to proxy class names, and it will create objects of the proxy types. On Wed, Feb 27, 2008 at 10:15 PM, Daniel Kulp <[EMAIL PROTECTED]> wrote: > On Wednesday 27 February 2008, Ayush Gupta wrote:

Re: WebServiceContext not injected in endpoint

2008-02-29 Thread Davide Gesino
I have tried the new snapshot (release 35) with different factories, and definetively now everything works fine. The pooled factory is pretty cool!!! thanks. Davide -- View this message in context: http://www.nabble.com/WebServiceContext-not-injected-in-endpoint-tp15708465p15758714.html Sent

Re: Usage of X509 certificates in WSS4J

2008-02-29 Thread Mayank Mishra
Thanks Arundel, I never knew about WSS4J mailing list. I will start a thread in regard to this on WSS4J mailing list. With Regards, Mayank Arundel, Donal wrote: Okay, sounds like the certs were as we suspected then :-) If you were proposing a WSS4J enhancement request for x509TokenProfile 1

slow startup?

2008-02-29 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: Cre

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

2008-02-29 Thread MartyH
Yip, using cxf 2.0.4. Dan, thanks. That worked a treat. I added this to the code and life is good. if (toCall.isUnwrappedCapable()){ toCall = toCall.getUnwrappedOperation(); } one othe strange thing i'm seeing in my unit tests though is occaisonally I'm getting this

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

2008-02-29 Thread Ayush Gupta
Sweet! Thanks for looking at this so promptly. I'll try this tomorrow. -ayush -Original Message- From: Daniel Kulp [mailto:[EMAIL PROTECTED] Sent: Thursday, February 28, 2008 12:09 PM To: cxf-user@incubator.apache.org Cc: [EMAIL PROTECTED] Subject: Maps and Interfaces as params/returns