RE: Problem creating WSDL with CXF 2.1

2008-05-07 Thread Leo de Blaauw
Hey, We had exactly the same problem when upgrading to the 2.1 release with our applications running under glassfish v2.1. The solution we found to be working is to replace the stax parser that glassfish uses as default with the woodstox stax parser, since that doesnt validate on namespaces as a d

NoClassDefFoundError when using jaxrs

2008-05-07 Thread John Mikhail
Hello, I'm fairly new to CXF and I'm trying to setup a simple REST service running on tomcat. I've gone through the documentation and built a simple service that mirrors the howto (http://cwiki.apache.org/CXF20DOC/jax-rs-jsr-311.html). I'm able to deploy my web app fine under tomcat (6.0.14) with

Re: Couple of questions with CXF 2.1

2008-05-07 Thread Daniel Kulp
On May 7, 2008, at 12:58 PM, Bharath Thippireddy wrote: Thanks Dan.We will give that a try by migrating to 2.1. I have a couple of questions/issues before we do that. 1)With CXF version 2.0.3 ,we see that the CXF Parser treats the spaces/new line charaters between the soap message elements

Re: Unable to resolve the namespace "http://www.w3.org/2005/08/addressing" behind a firewall

2008-05-07 Thread Callum Haig
Some more followup: It seems likely that the bloating of the JAXB context with extraneous classes during the initalialization of my JobCreation service was due to the lack of application of the @XmlSeeAlso annotation. In its absense (and the absence of a jaxb.index file, which wouldn't have helpe

Re: Problem creating WSDL with CXF 2.1

2008-05-07 Thread vkmohan
Got the same exception when i tried to move my Http Web Service from 2.0.5 into 2.1. I had a wsdl first webservice working fine in 2.0.5 but when i moved it to the new 2.1 got the same exception as Eduardo. The service deploys fine but when i access the serviceURL it throughs this exception. App

Re: Unable to resolve the namespace "http://www.w3.org/2005/08/addressing" behind a firewall

2008-05-07 Thread chaig
I have some followup to my earlier post. As part of an investigation of technologies for wrapping existing code as web services I have defined a number of services. One represents a simple, synchronous service called JobCreation. The other two represent an alternative asynchronous approach: Asy

Resolving asm jar conflicts with CXF 2.1

2008-05-07 Thread Daniel Lipofsky
I am trying to upgrade from CXF 2.0.5 to 2.1 (with JDK 1.5 and JBoss 4.2), and I am using hibernate so I am encountering the conflict with the asm JARs. I already read http://cwiki.apache.org/confluence/display/CXF/2.1+Migration+Guide but it is not helping me much. I redownloaded hibernate 3.2.6G

Re: Namespaces on attributes

2008-05-07 Thread Benson Margulies
I didn't know Aegis would ever put things into attributes at all, with or without namespaces. What is the java declaration of the thing that turns into an attribute with a namespace? On Wed, May 7, 2008 at 7:13 AM, Richard Grantham <[EMAIL PROTECTED]> wrote: > I'm running 2.0.6. I assume I need t

[m2] Issue with asm Dependancy and cxf

2008-05-07 Thread Mick Knutson
I keep getting the following errors: *Caused by: java.lang.NoSuchMethodError: org.objectweb.asm.ClassVisitor.visit(ILjava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)V * *at net.sf.cglib.core.ClassEmitter.begin_class(ClassEmitter.java:63)* The standard fix talks about c

SOAP to REST

2008-05-07 Thread Adnan Memon
Hi All, We are using XFire SOAP for contract first, annotation based web services ... we have a new requirement to support the RESTful services for existing interfaces. Somewhere in CFX manual I read (If I remember correctly ?!) CFX have some bindings support or some feature that I can u

dynamic client code

2008-05-07 Thread Daniel Lipofsky
We have the same method on many different services, I am trying to find a nice generic way to invoke it This works but is not what I really want because I still have to import the PersonPortType: String portClassName = JAXWS_PACKAGE + serviceName + "PortType"; Class portClass = Class.for

Re: @Path not mapping to required methods

2008-05-07 Thread Brad
Hi Sergey, yeah saw the discussion over on the jax-rs mailing list. Not a bug then as its in line with the spec. Bit disappointed that the spec doesn't support that but maybe that's just me. Thanks for looking into it. Brad. On Wed, May 7, 2008 at 2:36 PM, Sergey Beryozkin <[EMAIL PROTECTED]>

Re: JAX-RS and application/octet POST requests

2008-05-07 Thread Chris Norris
Changing the parameters of the post method to be a byte array seemed to make things work much better, but the byte array contains more than just the file I'm sending. Can I set up more parameters to separate things out? On Wed, May 7, 2008 at 1:00 PM, Chris Norris <[EMAIL PROTECTED]> wrote: > I'm

turning off @XmlSeeAlso in wsdl2java in CXF 2.1

2008-05-07 Thread Daniel Lipofsky
With CXF 2.1 wsdl2java the generated code now adds @XmlSeeAlso. Is there a way to turn this off? This only case seems to be "@XmlSeeAlso({ObjectFactory.class})". I don't want to use ObjectFactory and have been choosing to delete it but without it I can't compile because of this tag. (ObjectFactor

headers not in wsdl.

2008-05-07 Thread sudip shrestha
Is it possible to send implicit headers with WSDL (cxf generated) when doing java first development? I have an interceptor applied to a service that checks the headers to make sure it contains a valid userid and pwd as shown here: I want this header requirement published in the gener

Problem creating WSDL with CXF 2.1

2008-05-07 Thread Carlos Eduardo Rodrigues de Almeida
I have a project that is running with CXF-incubator-2.0.6. I decided to upgrade to the new CXF 2.1. The project is a java first web service integrated with spring. I´m able to start the CXFSevlet, list the web services but I´m not able to make CXF create the WSDL when I access serviceName?WSDL. I

JAX-RS and application/octet POST requests

2008-05-07 Thread Chris Norris
I'm trying to enable my service to accept a file. I control the client making the request, so I can set the content-type to be anything I want it to be. I'm new to CXF and have a service running so far that can accept GET requests just fine and send back some XML. I'm not really sure where to sta

Re: Could not send Message: CXF Servlet in Tomcat

2008-05-07 Thread BillRowell
I was able to debug in Eclipse and discovered that the XMLStreamException is thrown while the XMLStreamWriter is writing the element out, which would be the first thing it does. In case there was a problem with the types I converted all of the types in the object to strings. Any more ideas abou

Couple of questions with CXF 2.1

2008-05-07 Thread Bharath Thippireddy
Thanks Dan.We will give that a try by migrating to 2.1. I have a couple of questions/issues before we do that. 1)With CXF version 2.0.3 ,we see that the CXF Parser treats the spaces/new line charaters between the soap message elements as text nodes.Is this an encoding problem ?.Is it reported a

Re: HTTP multipart/form-data and REST

2008-05-07 Thread Sergey Beryozkin
In fact, you might get it working by having a method with the InputStream input parameter (or may be even byte[]) and ConsumeMime("multipart/form-data") and then process the multipart/form-data directly in the method. Cheers, Sergey - Original Message - From: "Sergey Beryozkin" <[EMAIL

Re: HTTP multipart/form-data and REST

2008-05-07 Thread Sergey Beryozkin
Hi JAX-RS mandates the support for DataSource and I reckon this would be the way to get the multipart/form-data in. CXF JAX-RS does not support this type yet. Possibly another viable alternative is to have a custom MessageBodyReader which will have a ConsumeMime("multipart/form-data") annontat

RE: cxf client to invoke strikeIron ws

2008-05-07 Thread olanga henry
Dan, result was the same with both the versions. Thanks > From: [EMAIL PROTECTED] > To: users@cxf.apache.org > Subject: Re: cxf client to invoke strikeIron ws > Date: Tue, 6 May 2008 17:41:59 -0400 > > > Any chance you can try this with 2.0.6 or 2.1? I fixed a couple > header issues with

Marshalling Error: class security.NamespacePermission nor any of its super class is known to this context.

2008-05-07 Thread Arul Dhesiaseelan
Hi, I keep getting marshalling error when I try to invoke operations on my CXF service. Exception in thread "main" javax.xml.ws.soap.SOAPFaultException: Marshalling Error: class security.NamespacePermission nor any of its super class is known to this context. at org.apache.cxf.jaxws.JaxW

Configuring clients using Spring and JaxWsProxyFactoryBean

2008-05-07 Thread Glen Mazza
Hello, I have a question about configuring CXF SOAP Clients using Spring[1]. Lumidant's Blog[2] had an example of this when he was configuring WS-Security on the service and client. At the very end of his blog entry he created an AuthServiceFactory that generated the SOAP client based on inform

HTTP multipart/form-data and REST

2008-05-07 Thread John-M Baker
Hello, Using the CXFServlet and REST, wget can be used to post a file to a URL defined as a post operation: wget --post-file file.xml url And wget makes the following HTTP submission: $ nc -p 1234 -l POST /blah/push HTTP/1.0 User-Agent: Wget/1.10.2 Accept: */* Host: localhost:1234 Connection:

Re: @Path not mapping to required methods

2008-05-07 Thread Sergey Beryozkin
Hi Brad Thanks for looking into this code. It would be great if several people could have a shared knowledge of what's happening in that code...The algorithm implementation in CXF may still need some fixes applied to it. (requested)uri: "/" template: "/{mess

Re: Deploy my service implementation separately from my security configuration?

2008-05-07 Thread GavinHogan
I know this is a very old post, but. I was wondering if you every got this fully working and if you would be willing to share you solution. Our team currently has a similar design problem and there is a lack of concensus on how to proceed. A good working model would be a great place to star

Re: Could not send Message: CXF Servlet in Tomcat

2008-05-07 Thread BillRowell
I am able to get the wsdl when I run http://localhost:8080/spotimdsproxy/services/spotimdsproxy?wsdl. I deploy the WAR generated by the build to the Tomcat webapps directory and then start Tomcat. The Tomcat manager page shows it deployed at /SpotImdsProxy. I have uploaded the WSClient.java fi

RE: Namespaces on attributes

2008-05-07 Thread Richard Grantham
I'm running 2.0.6. I assume I need to set attributeFormDefault="unqualified" somewhere. But where? My config looks like this:

Re: How to use CXF with Tomcat

2008-05-07 Thread Brad
Think I had this before, wrong version of asm JAR on your classpath. Brad. On Wed, May 7, 2008 at 10:41 AM, Leo de Blaauw <[EMAIL PROTECTED]> wrote: > Hey, > > Well would be helpfull if you could also post your code for the helloWorld > bean and the appcontext for > spring in which you are usi

Re: Namespaces on attributes

2008-05-07 Thread Benson Margulies
What version of CXF are you running?

Re: @Path not mapping to required methods

2008-05-07 Thread Brad
Hi, just to follow up from yesterday, I just wanted to clarify the regular expression stuff. Having stepped through the code in URITemplate.match the main point of interest seems to be around line 122: Matcher m = templateRegexPattern.matcher(uri); if (!m.matches()) {

RE: How to use CXF with Tomcat

2008-05-07 Thread Leo de Blaauw
Hey, Well would be helpfull if you could also post your code for the helloWorld bean and the appcontext for spring in which you are using this bean ;-) Greetz Leo Van: jiaqran [mailto:[EMAIL PROTECTED] Verzonden: wo 7-5-2008 11:38 Aan: users@cxf.apache.org Onder

How to use CXF with Tomcat

2008-05-07 Thread jiaqran
Hi everyone , I need some help, please! When I'm trying the sample ( java_first_spring_support ) with tomcat I'm having a problem. ( my jdk is 1.5 and tomcat is 5.5 ) Out : org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'helloWorld': Invocation of ini

Antwort: empty soap action using JAXWS/JAXB [Virus checked]

2008-05-07 Thread jan . minaroviech
Hello, following fix works for me: apache-cxf-2.1-src\rt\frontend\jaxws\src\main\java\org\apache\cxf\jaxws\support\JaxWsServiceFactoryBean.java add o.setProperty("action", getAction(o, method)); after o.setProperty(METHOD, method); in initializeWSDLOperation(InterfaceInfo intf, OperationInfo

empty soap action using JAXWS/JAXB [Virus checked]

2008-05-07 Thread jan . minaroviech
Hello, i'm using following code to obtain client proxy (some comments in code) JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean(); factory.setServiceClass(serviceInterface); // here is wsdl2java generated port interface (which contains soapaction="defau

Re: How to create a Spring-CXF Client Proxy

2008-05-07 Thread javawerks
Hi, Dan I'm using CXF 2.0.6. I have tried the cxf-all.xml option, the no *.xml option and about every other *.xml option you can imagine, to no avail. I have not tried the jaxws:client approach. No matter how I configured a client proxy, I consistently received a npe on DestinationFactoryManage

Re: 2.1 cxf-codegen-plugin wsdl2java not building to specified package dir

2008-05-07 Thread Peter Gardfjell
Hi, I am also experiencing the same problem. The "-p" option does not seem to have any effect for cxf-codegen-plugin as of version 2.1. Is it time to file a bug report or is the documentation lagging behind? Anyone? Thanks, Peter jack Nuzbit wrote: > > Hi All, > > I'm using Maven to build t

Namespaces on attributes

2008-05-07 Thread Richard Grantham
Hi list, I have been porting our current application from XFire to CXF. I think I'm 80% of the way there now but have run into an issue with the SOAP output from a Web service. As shown in the below output the id attribute on the message is in the namespace ns1. XFire would put this in no namespa

Unable to resolve the namespace "http://www.w3.org/2005/08/addressing" behind a firewall

2008-05-07 Thread Callum Haig
I'm having some difficulties which are related to failed attempts to resolve the namespace "http://www.w3.org/2005/08/addressing"; behind a firewall during initialization of a JAX-WS service. I can see that a copy of the xsd is located within the cx-common-schemas jar (at schemas/wsdl/ws-addr.xsd)