Re: JMS performance

2007-11-26 Thread James Strachan
Firstly remember that you're probably not comparing apples to oranges. The default in JMS is to use persistence; that means the messages are all written to disk before they are sent (on both the request and probably response) which is gonna add hugely to the latency as each thread is gonna be spend

RE: what would be the best place to introduce xslt transformer for response message

2007-11-26 Thread Liu, Jervis
Here you go. It looks like below (roughly): import java.io.IOException; import java.io.OutputStream; import javax.xml.transform.Transformer; import javax.xml.transform.stream.StreamResult; import javax.xml.transform.stream.StreamSource; import org.apache.cxf.binding.soap.SoapMessage; import org.

Re: Error or Debug?

2007-11-26 Thread Willem Jiang
Hi , Take easy , it is information level message , the "ERROR [STDERR]" message header is cause by the java.util.log is directed to error message output stream which is holden by log4j. I highly recommend you to try out the cxf 2.0.3 in which we did some enhancement on the logger system. Wi

RE: Throwing faults from within an Interceptor

2007-11-26 Thread Liu, Jervis
> -Original Message- > From: Christian Vest Hansen [mailto:[EMAIL PROTECTED] > Sent: 2007年11月26日 18:36 > To: cxf-user@incubator.apache.org > Subject: Re: Throwing faults from within an Interceptor > > Hello Jervis. > > > Make sure the exception thrown from your interceptor is declared a

Re: disable-address-updates breaks ServiceName?wsdl url

2007-11-26 Thread Willem Jiang
Can I see your whole web.xml and endpoint configuration file (bean.xml or cxf-servlet.xml)? I think there must be something wrong with them. BTW, Can you get the wsdl by removing the disable-address-updates and base-addresses parameters in your web.xml? Willem. Christian Vest Hansen wrote:

Questions about CXF WS-RM sample

2007-11-26 Thread Glen Mazza
Hello, I've been going through CXF's Reliable Messaging sample[1] and had a couple of questions about it. The WS_RM sample involves a client[2] that sends four messages to the service[3]. The client has a MessageLossSimulator[4] interceptor that intentionally causes the 2nd and 4th messages to b

RE: Error with wsdl2java from maven

2007-11-26 Thread Silberman, Nathan
Yep, that was it, works fine now, thanks! -Original Message- From: Beryozkin, Sergey [mailto:[EMAIL PROTECTED] Sent: Monday, November 26, 2007 3:40 PM To: cxf-user@incubator.apache.org Subject: RE: Error with wsdl2java from maven Most likely what this means is that the module you're bui

jaxb xml element mapping via configuration file

2007-11-26 Thread mule1
Hello, Is it possible to do jaxb xml element mapping in the configuration file instead of using the annotations such as @XmlElement etc? -- View this message in context: http://www.nabble.com/jaxb-xml-element-mapping-via-configuration-file-tf4878381.html#a13960372 Sent from the cxf-user mailing

JSON client?

2007-11-26 Thread Bill Crook
Hi all, I've got my JSON endpoints up with CXF which is great. I now want to write a java client that can hit the JSON endpoint and turn the JSON response into the corresponding java objects. What is the best approach for doing this? Does anyone have any experience with this? Thanks for the help!

RE: Missing namespace prefix on arg0 ?

2007-11-26 Thread Benson Margulies
Look at the schema for elementFormDefault and/or specific form= modifiers. Code first? RPC or Doc? > -Original Message- > From: Kaleb Walton [mailto:[EMAIL PROTECTED] > Sent: Monday, November 26, 2007 2:11 PM > To: cxf-user@incubator.apache.org > Subject: Missing namespace prefix on arg0

RE: Error with wsdl2java from maven

2007-11-26 Thread Beryozkin, Sergey
Most likely what this means is that the module you're building has some dependencies which pull in older Xerces impls, Say xerces 2.6.2... What you can do is to remove a content of xerces section in your mvn repo, except for the latest 2.8.1 one and then do mvn -o install in the module which fails

Error with wsdl2java from maven

2007-11-26 Thread Silberman, Nathan
Has anybody encountered the following error type when using wsdl2java from maven? The error: [INFO] [ERROR] BUILD ERROR [INFO] [INFO] org.apache.xerc

Missing namespace prefix on arg0 ?

2007-11-26 Thread Kaleb Walton
This may be due to my lack of expertise with XML / WSDLs in general but I am confused as to why the tag below does not include the ns1: prefix as the rest of the tags do. If I add the ns1: prefix to (to make it ) CXF does not digest the request properly. Is there any way to apply a namespace to

Re: JMS performance

2007-11-26 Thread Mayank Thakore
Hi Ulhas, I am using default temp. queue. Earlier when working with XFire we had tried static reply queue. But are just gearing up with CXF. I was interested in relative performance of http / jms. We have been given performance requirements for our project. While http meets just as it is, jms is

Re: [Deploy in JBOSS] Address already in use Exception

2007-11-26 Thread Eman Ali al-Maktari [IT Department]
Dear Andrew, Thanks a lot for your cooperation you did your best, and you was helpful coz even if the problem wasn't solved but at least I could fined something to say to my Boss ;-) Dear Saleh, Thanks for your reply , I'll try it and feed you back.. - Original Message - From: "Sale

Re: JMS performance

2007-11-26 Thread Ulhas Bhole
Hi Mayank, I don't think anyone has done the benchmark on the cost of request/response on JMS transport. Are you using static reply queue or using default temp. queue for response? Regards, Ulhas Bhole Mayank Thakore wrote: Hi, I wrote a simple WSDL based web service. In HTTP I am gettin

Re: [Deploy in JBOSS] Address already in use Exception

2007-11-26 Thread Saleh Al-Ghashmi
Andrew Dinn wrote: > > Hi Eman, > > Your config files look ok. I'm afraid I don't really understand what is > going wrong in that case. > > Regarding your destroy code I have two comments. Firstly, I was > suggesting you destroy the cxf *servlet*, not (just) the cxf bus. Also, > there is n

restful_http_binding and WebServiceContext

2007-11-26 Thread Michael Nelson
I am trying to figure out how to get access to WebServiceContext in the restful_http_binding sample that comes with CXF. In CustomerServiceImpl.java, I've added: @Resource private WebServiceContext wsContext; to the CustomerServiceImpl class. But wsContext isn't set when methods are invo

Re: Refactoring a WSDL with CXF and Eclipse...

2007-11-26 Thread Tophebboy
==>Hi! Jonathan Huang wrote: > > Hi, Tophebboy > Have you try to build your project after refactoring your SEI?? > > ==>Yes > > Have you add Jax-ws related annotaions to the modified SEI?? > > ==> Yes > > When you right click the "Project", does the operation "Generate > W

RE: what would be the best place to introduce xslt transformer for response message

2007-11-26 Thread mule1
Hello, I am not clear exactly what you said. I looked at the SAAJOutInterceptor, but didn't clearly understand how I can get the message content - either bytes or something that I can use to tranform with an xslt transfomer. If possible, can you provide me some sample lines of code? Thanks. -- V

RE: Diagnosis of stupid JAXB/JAXWS errors

2007-11-26 Thread Benson Margulies
No, I'd say that they are different. This person is getting a web message sent out with a missing namespace. In my case, the response that goes out is completely empty. > -Original Message- > From: Jim Ma [mailto:[EMAIL PROTECTED] > Sent: Sunday, November 25, 2007 9:27 PM > To: cxf-user@

Re: disable-address-updates breaks ServiceName?wsdl url

2007-11-26 Thread Christian Vest Hansen
I tried this, but I can't seem to hit home on any of these base-addresses: http://localhost:8080/myapp http://localhost:8080/myapp/ http://localhost:8080/myapp/services http://localhost:8080/myapp/services/ Regardless, my point was that I still wanted to access the wsdl at the same url, just witho

Re: Throwing faults from within an Interceptor

2007-11-26 Thread Christian Vest Hansen
Hello Jervis. > Make sure the exception thrown from your interceptor is declared as an > exception on the operation being invoked It is. It is declared to be thrown in the WSDL and on my implementation methods. > was the MyFault class generated by wsdltojava? does it have the WebFault > annota

Re: [Deploy in JBOSS] Address already in use Exception

2007-11-26 Thread Andrew Dinn
Hi Eman, Your config files look ok. I'm afraid I don't really understand what is going wrong in that case. Regarding your destroy code I have two comments. Firstly, I was suggesting you destroy the cxf *servlet*, not (just) the cxf bus. Also, there is no guarantee that the default bus at the

RE: Throwing faults from within an Interceptor

2007-11-26 Thread Liu, Jervis
Hi, it is possible to throw a checked Exception from CXF interceptors. Make sure the exception thrown from your interceptor is declared as an exception on the operation being invoked, otherwise this exception will not be recognized as a checked Exception. Also was the MyFault class generated by

Re: Refactoring a WSDL with CXF and Eclipse...

2007-11-26 Thread Jonathan Huang
Hi, Tophebboy Have you try to build your project after refactoring your SEI?? Have you add Jax-ws related annotaions to the modified SEI?? When you right click the "Project", does the operation "Generate WSDL" appear in the popup menu?? Tophebboy wrote: > > Hi! > I'm using Eclip