CXF + Spring + Tomcat

2008-07-04 Thread Emily Gu
Hi, I am using the JSR-311 example with Tomcat + Spring configration. When I am starting my Tomcat, the following error occured. Please help. Thanks in advance! Here is my bean.xml http://www.springframework.org/schema/beans"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:ja

Re: cxf in an OSGi environment

2008-07-04 Thread Benson Margulies
Could I ask a question in return about OSGi? Are you using Felix or Equinox? Do you happen to know if the Eclipse native code bundle fragment system is a generic OSGi feature or specific to Eclipse? On Fri, Jul 4, 2008 at 7:24 AM, David Savage <[EMAIL PROTECTED]> wrote: > Hi Daniel, > > This w

Re: cxfjsutils?

2008-07-04 Thread Benson Margulies
If you use the ?js URL to get the javascript, it is automatically included. Otherwise, we put it in the etc directory. On Fri, Jul 4, 2008 at 4:14 PM, Christine <[EMAIL PROTECTED]> wrote: > Hi, > I want to create a javascript soap client, I have used wsdl2js to create > a javascript, now I seem t

cxfjsutils?

2008-07-04 Thread Christine
Hi, I want to create a javascript soap client, I have used wsdl2js to create a javascript, now I seem to need cxfjsutils. Where do I get those and how do I use them? I am new to web services, today I created my first web service and it worked within five minutes. I like cxf :-) Christine -- dagd

Re: cxf in an OSGi environment

2008-07-04 Thread David Savage
Hi Daniel, This was with CXF 2.1.1 I'm actually working on getting CXF working within infiniflow (based on newton - http://newton.codecauldron.org) as a provider of a web services binding. I've now managed to get the JaxWsProxyFactoryBean working now though it still needs the patch I mentioned to

Re: EOF in prolog exception

2008-07-04 Thread Karan Malhi
Dan, The issue is fixed. It was a problem in the OpenEJB HttpServer. Thanks for all the help On Thu, Jul 3, 2008 at 11:49 AM, Karan Malhi <[EMAIL PROTECTED]> wrote: > Thanks Dan, > > OpenEjb has its own built in HttpServer. AFAIK, it does understand > chunking. > > Below is the Calculator Servic

Re: Does wsdl2java command when used with and without -exsh option make a difference for the client when making requests to a webservice

2008-07-04 Thread Igor Vlasov
Hello I try to make a test request too. I generate a clien stub with wsdl2java -client "my wsdl file" Now i try to start using this stub OfranService service = new OfranService(); OfranServiceSoap client=service.getOfranServiceSoap(); String value=client.getTitle("ru"); with plain JDK6 ru

Re: New to CFX2 : call web service error

2008-07-04 Thread Glen Mazza
2008-07-04 Igor Vlasov wrote: > Thank you for answer. > > Your tutorial is about creating webservice and then calling it. > > I need just call "existed production webservice". This is not my own WS. > OK, how about this one then: http://www.jroller.com/gmazza/date/20070929? Glen

Re: JAXRS custom provider selection based on media type

2008-07-04 Thread Sergey Beryozkin
Typo, @Path("/storage") needs to be used in both cases... Cheers, Sergey If you can't then the the workaround is to to split a method into with multiple ones which will cause the selection be driven by the annotations match : @Path("/storage") @ProduceMime("application/xml") public Response g

Re: JAXRS custom provider selection based on media type

2008-07-04 Thread Sergey Beryozkin
If you can't then the the workaround is to to split a method into with multiple ones which will cause the selection be driven by the annotations match : @Path("/storage") @ProduceMime("application/xml") public Response getXml() { toXmlObj(privateGetStorage()); } @Path("/json") @ProduceMime

Re: New to CFX2 : call web service error

2008-07-04 Thread Igor Vlasov
Thank you for answer. Your tutorial is about creating webservice and then calling it. I need just call "existed production webservice". This is not my own WS. I can call it with java6, but i need to cal it from java5 I think that where is a simple way to do this with CFX(i think this is a comm

Re: JAXRS custom provider selection based on media type

2008-07-04 Thread Sergey Beryozkin
Hi Brad The trunk has been updated to take the Response.getMediaType() into consideration - is there any chance you can try the latest source ? Cheers, Sergey Hi, I have the following annotations on a method in my project: @GET @Path("/storage") @ProduceMime( {"application/xml",

Re: New to CFX2 : call web service error

2008-07-04 Thread Glen Mazza
Trying to find the problem as-is would be like looking for a needle in a haystack. My WSDL-first tutorial may give you some ideas of how to proceed: http://www.jroller.com/gmazza/date/20080417 HTH, Glen 2008-07-04 Igor Vlasov wrote: > Hello All. > > I try to use CFX 2.1.1 for calling Simple web

JAXRS custom provider selection based on media type

2008-07-04 Thread Brad
Hi, I have the following annotations on a method in my project: @GET @Path("/storage") @ProduceMime( {"application/xml", "application/json", "text/html", "application/atom+xml"} ) the method in question returns a Response with an XMLBean object set as the entity. Based on certain con

Re: CXF rejected, Axis working

2008-07-04 Thread Bård Magnus Kvalheim
Thanks Ulhas and Glen for your quick response. Disabling chunking does the trick :-) Best Magnus 2008/7/4 Glen Mazza <[EMAIL PROTECTED]>: > Yes, that's what I needed for an eBay client to work, See #8 here: > http://www.jroller.com/gmazza/entry/using_the_ebay_shopping_api1 > > For web service

New to CFX2 : call web service error

2008-07-04 Thread Igor Vlasov
Hello All. I try to use CFX 2.1.1 for calling Simple webService 1. I use wsdl2java ang generate client .jar file. D:\java\apache-cxf-2.1.1\bin\wsdl2java.bat -p com.ofran.service -d ofran_java -compile -classdir ofran_build -verbose -client OfranService.asmx.xml 2. I write a simple programm fo

Re: CXF rejected, Axis working

2008-07-04 Thread Glen Mazza
Yes, that's what I needed for an eBay client to work, See #8 here: http://www.jroller.com/gmazza/entry/using_the_ebay_shopping_api1 For web service providers that expect a Content-Length, CXF-based clients need to explicitly shut off chunking to work, Metro (and apparently Axis) clients do not. G

Re: CXF rejected, Axis working

2008-07-04 Thread Ulhas Bhole
One more difference id Transfer-Encoding: chunked. Can you try disabling chunking in CXF configuration? Regards, Ulhas Bhole Bård Magnus Kvalheim wrote: Hi, I've exposing and consuming webservices with cxf. Everything works fine on my local setup. I've purchased tomcat hosting and deployed m

CXF rejected, Axis working

2008-07-04 Thread Bård Magnus Kvalheim
Hi, I've exposing and consuming webservices with cxf. Everything works fine on my local setup. I've purchased tomcat hosting and deployed my webservice there. WS calls made from cxf clients are rejected by this server, but axis calls are accepted. (I get a 406 response, see below) I'm currently

Dynamic typing

2008-07-04 Thread acze
Hi! We are writing an abstract webservice connection to our system, and we have some problems with Types. Is it possible to use a kind of "dynamic typing" when calling: org.apache.cxf.endpoint.Client#invoke() method? I mean something like: client.invoke("hello", "2", "bleble"); where all the