Queries regarding WS-Addressing

2008-07-15 Thread harbhanu
Hi, I have couple of queries related to implementation of WS-Addressing in CXF. 1> How is the target service identified in CXF, with/without WS-Addressing? Is the value of "To" header block is always expected to be the address on which service is hosted OR one can have more than one se

Re: CXF cannot create webservice in JDK 1.5 with libraries but succeeds in 1.6

2008-07-15 Thread Tim Burns 2
dkulp wrote: > > > This seems to be an older service. Can you try turning off chunking? > > Dan > > Hi Dan, I tried turning off chucking to my web service: http://joey:8082/ReportServer_SS08/ReportService2005.asmx?wsdl by creating a cxf.xml file in the src directory. I experiemented

CXF Service w/JMS Transport & non-ActiveMQ Dynamic Queue

2008-07-15 Thread rgavlin
I have a CXF Service w/JMS transport that I want to listen on a non-ActiveMQ dynamic queue. When a jndiDestinationName lookup is performed on an ActiveMQ dynamic queue, ActiveMQ creates the dynamic queue and returns it. Most other JMS providers do not seem to behave this way. Rather, when a jndiDe

Re: help with fixing external binding file

2008-07-15 Thread Daniel Kulp
Try this: http://www.w3.org/2001/XMLSchema"; xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; wsdlLocation="MasterAccountService.wsdl" xmlns="http://java.sun.com/xml/ns/jaxws"; xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"; version="2.0"> childElementName="tns:mast

Re: Unable to locate Spring NamesapceHandler for element 'jaxws:endpoint' of schema namespace 'http://cxf.apache.org/jaxws'

2008-07-15 Thread Daniel Kulp
Other than double check to make sure the jars on the classpath have the proper META-INF/spring.handlers file available and has the line: http\://cxf.apache.org/ jaxws=org.apache.cxf.jaxws.spring.NamespaceHandler in it. Our cxf jar should have that just fine. However, make sure some c

Re: A CXF 2.1 CPU consumption question

2008-07-15 Thread Daniel Kulp
On Jul 11, 2008, at 10:18 AM, David Soroko wrote: Hi all We are now in profiling stages of some CXF 2.1 based web services. In all our services we observe that most of the CPU time is not consumed by the service logic itself but by CXF. I attach a picture (worth 1000 words) of a JProfil

Re: Fail to access a (webmethod based) SOAP service with CXF client

2008-07-15 Thread Daniel Kulp
Probably need to turn chunking off. See: http://cwiki.apache.org/CXF20DOC/client-http-transport.html Dan On Jul 11, 2008, at 5:36 AM, nicolas de loof wrote: I was a little wrong in my previous post, as I didn't read the tcpdump fully : The TCP stream used by CXF to connect to webmethod

Re: CXF cannot create webservice in JDK 1.5 with libraries but succeeds in 1.6

2008-07-15 Thread Daniel Kulp
This seems to be an older service. Can you try turning off chunking? Dan On Jul 11, 2008, at 1:14 PM, Tim Burns 2 wrote: If I create a CXF project and compile the project under Java 1.6, I am able to connect to SQL server reporting Services with no problems. public static Repo

Re: WSDLToJava Task throwing AbstractMethodError

2008-07-15 Thread Daniel Kulp
This sounds like an old xerces version is being picked up. Possibly check the jre/lib/endorsed dir to see if there is a version there or something. If not, grab a recent version of xerces and put it there. Dan On Jul 11, 2008, at 3:29 PM, smodekurti wrote: We have upgraded our appl

Re: xml validation - only for logging [Virus checked]

2008-07-15 Thread Daniel Kulp
Probably need to ask on the jaxb list. My gut feeling says that is fine. You pretty much would be logging all validation errors, but allowing them to go through. Should be OK to me. Dan On Jul 15, 2008, at 7:10 AM, [EMAIL PROTECTED] wrote: Hello, i have requirement to do xml schem

Re: CXF client without building from wsdl

2008-07-15 Thread Daniel Kulp
On Jul 15, 2008, at 4:13 AM, jotr wrote: Hi Dan, My initial problem was that instantiating the port object takes too long and I assumed that this is because it needs to parse the wsdl and create objects dynamically based on the contents. Unfortunately with your code it takes longer. W

Re: Any Example to use Apache Commons HTTP Client in CXF Client? or Status of CXF-291

2008-07-15 Thread Daniel Kulp
On Jul 15, 2008, at 3:33 AM, jian wu wrote: I'm trying to upgrade an existing XFire 1.2.6 based WS Client and Server to CXF 2.1. And the existing XFire 1.2.6 WS Client depends on Commons HTTPClient to set up connection pool. Is there any chance CXF-291 could be fixed in CXF 2.1.2 or sooner?

help with fixing external binding file

2008-07-15 Thread nmt999
wsdl2java when run on the wsdl https://sandbox.marketing.ews.yahooapis.com/services/V4/MasterAccountService?wsdl gives the following error WSDLToJava Error: Thrown by JAXB : Two declarations cause a collision in the ObjectFactory class. There are 2 methods getMasterAccount and getMasterAccountSta

RE: JAX-RS Get all query parameters

2008-07-15 Thread Sergey Beryozkin
Sure, use @Context UriInfo ui, either as a parameter, a field or a bean property And then do ui.getQueryParameters() (or something similar) Cheers, Sergey -Original Message- From: Joe Sunday [mailto:[EMAIL PROTECTED] Sent: 15 July 2008 18:36 To: users@cxf.apache.org Subject: JAX-RS Ge

Re: CXF client without building from wsdl

2008-07-15 Thread Daniel Kulp
On Jul 14, 2008, at 3:01 PM, Glen Mazza wrote: Hmmm...really? He's doing wsdl2java, so that would mean WSDL- first. The example CXF test that you gave below[1] is Java-first. But isn't it the case that any *Service class generated by a wsdl2java run (which is the Service class that he

JAX-RS Get all query parameters

2008-07-15 Thread Joe Sunday
Is it possible to easily inject all of the query parameters for a REST call as a Map or MultiValuedMap without having to put each one in the method signature individually? --Joe

Re: style=rpc (problem with WSDL2JAVA)

2008-07-15 Thread Glen Mazza
RPC/encoded wsdls are not supported by JAX-WS implementations like CXF and Metro. Axis 1.x is probably your better bet. Glen Rahul Kumar-7 wrote: > > > Hi, > > > > I am trying to develop consumer of a webservice.The wsdl which I got has > element style=3D"rpc". When I try to generate jav

Re: Is this a CXF's wsdl2java bug?

2008-07-15 Thread nmt999
There are 2 methods that have the same input parameter in the wsdl file. I'm trying to map the parameters for one of the two methods. I don't have much expertise in writing the mapping file. However I tried to follow the example for parameter binding and to the best of my understanding I have gene

style=rpc (problem with WSDL2JAVA)

2008-07-15 Thread Rahul Kumar
Hi, I am trying to develop consumer of a webservice.The wsdl which I got has element style=3D"rpc". When I try to generate java class i.e. SEI using WSDL2JAVA tool I got an error "WSDLToJava Error: Rpc/encoded wsdls are not supported in JAXWS 2.0" I have tried to find out the work around

JavaScript clients with ?js

2008-07-15 Thread Andrew Clegg
Hi folks, I've recently started experimenting with CXF, and I must say, I'm liking it better than both Axis2 and Metro so far. Onhe quick question though. I have read references to automatically-generated javascript clients that can be provided at the server side, but I can't make this work. I ha

xml validation - only for logging [Virus checked]

2008-07-15 Thread jan . minaroviech
Hello, i have requirement to do xml schema validation, but in case of problem only to log it, but continue serialization/deserialization. This is beacause after enabling validation we found that some clients are not sending requests valid against schema (e.g. are not sending elements, instead

Re: CXF Hibernate problem?

2008-07-15 Thread Sergey Beryozkin
Hi Hi all, I really hope someone can help me with this. Using CXF as the basis for a configuration repository. Configuration information is marshalled/unmarshalled with JAXB and the service is using a JAXRS endpoint. I'm writing a configuration front end and I'm having a problem when I'm tryi

Re: CXF client without building from wsdl

2008-07-15 Thread jotr
Hi Dan, My initial problem was that instantiating the port object takes too long and I assumed that this is because it needs to parse the wsdl and create objects dynamically based on the contents. Unfortunately with your code it takes longer. What is the fastest way using CXF to instantiate a po

Any Example to use Apache Commons HTTP Client in CXF Client? or Status of CXF-291

2008-07-15 Thread jian wu
Hi, I'm trying to upgrade an existing XFire 1.2.6 based WS Client and Server to CXF 2.1. And the existing XFire 1.2.6 WS Client depends on Commons HTTPClient to set up connection pool. Is there any chance CXF-291 could be fixed in CXF 2.1.2 or sooner? Or it could be great to have some example cod

Re: JSESSIONID cookie not sent back to server

2008-07-15 Thread Asad (Landslide)
There is a problem in the current session-based architecture due to which sessions of different users are getting mixed up on client side when client set session_maintain_property = true BindingProvider bp = (BindingProvider)port; bp.getRequestContext().put(BindingProvider.SESSION_MAINTAIN_PROPE