Using cxf with external web-services

2008-04-11 Thread Valerio Schiavoni
Hello everyone, suppose I want to write a client application to use the meteo webservice at this address: http://www.webservicex.net/globalweather.asmx?WSDL What are the steps to do so using CXF ? I've been using wsdl2java to geneate java classes and interfaces, but it's not quite clear how to

[HelloWorld JavaScript client] problem on IE.

2008-04-11 Thread bvandeputte.ext
Hi all, I just join cxf users mailingL, i'm a new cxf user and try to use the JavaScript CXF Client (good capability !) I got no problem since i try the sample (described into documentation) on Firefox (2.0.0.13) but i got a JavaScript error with Internet Explorer 7 (7.05730.13) (idem on

Re: Using cxf with external web-services

2008-04-11 Thread tmi
Have you already had a look at http://cwiki.apache.org/CXF20DOC/a-simple-jax-ws-service.html ? -- View this message in context: http://www.nabble.com/Using-cxf-with-external-web-services-tp16627061p16627305.html Sent from the cxf-user mailing list archive at Nabble.com.

Re: Thrown by JAXB : undefined element declaration 's:schema'

2008-04-11 Thread Tim Perrett
Hey Guys, Thanks for the various replies on this - If i wanted to add s:import - what would I need to add to the WSDL file? Cheers Tim On 8 Apr 2008, at 21:31, Daniel Kulp wrote: Thus, to get it working for CXF, you would need to modify the schema to put the proper s:import in place to

NPE org.apache.cxf.attachment.AttachmentSerializer.writeAttachments

2008-04-11 Thread guse
Hi List, I'm relatively new to Apache CXF and managed to implement a Webservice using JAX-WS which returns MTOM attachments. My service connects to a Webserver and gets the content of the MTOM attachment by reading a Java HTTPConnection. Sometimes there seems to be no content in the

[CXF] deployment problems

2008-04-11 Thread Cencio
Hi all, I have a provider implementation for a service, then i want deploy with a specified wsdl and every msg should call the invoke() method I deploy it and my specified wsdl if correctly displayed, but every msg sent to the service is threat as OneWay (an empty 200ok is sent every time...

Re: Using cxf with external web-services

2008-04-11 Thread Daniel Kulp
For the most part, you can just do: wsdl2java http://www.webservicex.net/globalweather.asmx?WSDL Then in your code, just do: GlobalWeather weather = new GlobalWeather(); GlobalWeatherSoap port = weather.getGlobalWeatherSoap(); String result = port.getWeather(city, country); Dan On Friday

Adding headers to soap request?

2008-04-11 Thread Tim Perrett
Hey chaps, Is there a way to add headers to the soap request inside the CXF service class? (or any other way) Cheers, Tim

Re: Adding headers to soap request?

2008-04-11 Thread Daniel Kulp
OK. I'm sick of answering this. :-) Added to the FAQ: http://cwiki.apache.org/confluence/display/CXF/FAQ#FAQ-HowcanIaddsoapheaderstotherequest%2Fresponse%3F Dan On Friday 11 April 2008, Tim Perrett wrote: Hey chaps, Is there a way to add headers to the soap request inside the CXF

Re: wsdl2Java compiler error w/customer binding

2008-04-11 Thread Christopher . Mathrusse
It is generated by the wsdl2java tool. I managed to get the source to compile by manually building it but I thought that the wsdl2java tool should have been able to do that as well. Chris Mathrusse [EMAIL PROTECTED] Sybase, Inc One Sybase Drive Dublin, CA 94568 (925) 236-5553 jim ma [EMAIL

Re: Adding headers to soap request?

2008-04-11 Thread Tim Perrett
Cheers Dan - your a star :-) On 11 Apr 2008, at 17:12, Daniel Kulp wrote: OK. I'm sick of answering this. :-) Added to the FAQ: http://cwiki.apache.org/confluence/display/CXF/FAQ#FAQ-HowcanIaddsoapheaderstotherequest%2Fresponse%3F Dan

Re: Problems resolving schemas using http, when wsdl is in a jar

2008-04-11 Thread Daniel Kulp
It probably is a bug in CXF. Feel free to log it. (and a patch would be nice :-) However, there is another issue that you need to think about: If the xsd's are to be hosted from the same localhost container as the service, the service may not start. For example, in tomcat, it loads and

Re: Thrown by JAXB : undefined element declaration 's:schema'

2008-04-11 Thread Benson Margulies
It goes inside the schema element. Any schema that references another schema needs an import. On Fri, Apr 11, 2008 at 7:18 AM, Tim Perrett [EMAIL PROTECTED] wrote: Hey Guys, Thanks for the various replies on this - If i wanted to add s:import - what would I need to add to the WSDL file?

Re: Using cxf with external web-services

2008-04-11 Thread Tim Perrett
This interested me, as Im trying to get to grips with CXF. I just tried to put together a basic client (and even tried the WSDL below) but im getting odd problems when trying to run it. Even in its most simple form (very similar to the hello world on the wiki -

Re: [HelloWorld JavaScript client] problem on IE.

2008-04-11 Thread Benson Margulies
I fixed it. you'll need a new snapshot.

Re: [HelloWorld JavaScript client] problem on IE.

2008-04-11 Thread Benson Margulies
There's a new snapshot.

Re: Using cxf with external web-services

2008-04-11 Thread Daniel Kulp
The jaxws-api jar is missing of the classpath somehow. That class comes from that jar. Dan On Friday 11 April 2008, Tim Perrett wrote: This interested me, as Im trying to get to grips with CXF. I just tried to put together a basic client (and even tried the WSDL below) but im getting

Unexpected EOF in prolog

2008-04-11 Thread Mick Knutson
I have an echo web service working when deployed to tomcat 5.5 and sending requests through soapUI. It seems to work great. But now I am trying to create a client via spring 2.5, and test this through testNG. *I keep getting this error when I create this client:* *!-- Web service dynamic

Re: [CXF] deployment problems

2008-04-11 Thread Daniel Kulp
Couple questions: 1) What version of CXF? 2) What deployment environment? Tomcat? 3) What's logged to the servers logs? Looking at the code, if res = msgFac.createMessage(); throws an exception, the return is null and nothing would get written out. It might be best to wrapper the exceptions

Re: bi-directional relationships

2008-04-11 Thread Daniel Kulp
Wow. This is neet. I didn't know about this one at all. I honestly though JAXB wouldn't do it. I learned something today. :-) Thanks Glen! Dan On Thursday 10 April 2008, Glen Mazza wrote: Here you go: https://jaxb.dev.java.net/guide/Mapping_cyclic_references_to_XML.html Glen Am

Re: bi-directional relationships

2008-04-11 Thread Christopher . Mathrusse
I've started playing with this and it seems to work correctly. (More testing needed) But one issue I came across was in the generated Client objects. My server side object looks as follows: public class QuoteDTO { @XmlAttribute @XmlIDREF protected CustomerDTO customer; But my

Re: NPE org.apache.cxf.attachment.AttachmentSerializer.writeAttachments

2008-04-11 Thread Daniel Kulp
Christoph, How is the attachment constructed? Is this something that is a byte[] in the jaxb beans or is it an Image or a DataHandler or what? That may help narrow down that cause a bit. All we do is iterator over the attachments, write out the mime headers, then call:

Re: JiBX and CXF

2008-04-11 Thread Daniel Kulp
No one really ended up with having the time to implement it. :-( Unfortunately, it hasn't really been a priority for me as none of IONA's paying customers have even asked for it at all. (plus, the fact many of us have never even used JiBX at all doesn't help)Even the xmlbeans support is

Re: Problem with CXF WAS Deployment

2008-04-11 Thread Daniel Kulp
Just fyi, I finally managed to get tomcat running from a dir with spaces in it (had to hack the catalina.sh script a bit) and it seems to work fine with the latest CXF code. I deployed a bunch of wars with wsdl's and imports and such and they all seemed to work. Dan On Wednesday 09 April

Re: bi-directional relationships

2008-04-11 Thread Christopher . Mathrusse
I've begun to play with this type of implementation, using the @XmlIDREF and @XmlAttribute annotations and I've found a few issues. 1) As stated below, your client generated classes have the references to parent objects defined as data type Object. (an annoyance but workable) 2) As stated in

Re: bi-directional relationships

2008-04-11 Thread Glen Mazza
Chris, for advanced JAXB questions, you might just want to go ahead and ask on the Sun forum[1]. We use their JAXB, and the JAXB specialists tend to congregate on that site. Regards, Glen [1] http://forums.java.net/jive/forum.jspa?forumID=46 Am Freitag, den 11.04.2008, 14:33 -0700 schrieb

Re: Using cxf with external web-services

2008-04-11 Thread Glen Mazza
Perhaps my client example may help you: http://www.jroller.com/gmazza/date/20070929 Glen Am Freitag, den 11.04.2008, 18:21 +0100 schrieb Tim Perrett: This interested me, as Im trying to get to grips with CXF. I just tried to put together a basic client (and even tried the WSDL below) but

Re: Unexpected EOF in prolog

2008-04-11 Thread Glen Mazza
I don't know what version of CXF you're using but 2.0.5 has some changes that *might* reduce the number of com.ctc.wstx.exc.WstxEOFExceptions you will be getting, and hopefully provide you a more useful error message: http://www.jroller.com/gmazza/date/20080327 HTH, Glen Am Freitag, den

Re: Transfer-encoding chunked

2008-04-11 Thread Glen Mazza
If you have followed the instructions in the paragraph starting with The first thing to notice is... on [1] closely in order to come up with the exact name, and it still doesn't work, then possibly we have a CXF bug. It can be tricky to get right. Glen [1]