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

Re: JavaScript clients with ?js

2008-07-17 Thread Andrew Clegg
2008/7/16 Daniel Kulp [EMAIL PROTECTED]: Well, couple questions: 1) Are you using a 2.1.x version of CXF or 2.0.x? The javascript stuff is only in 2.1.x. 2.1.1 2) In your war or tomcat setup, are you using the big CXF bundle jar or individual modules? If using modules, is the

Re: JavaScript clients with ?js

2008-07-17 Thread Andrew Clegg
2008/7/17 Daniel Kulp [EMAIL PROTECTED]: Just add another dependency like: dependency groupIdorg.apache.cxf/groupId artifactIdcxf-rt-javascript/artifactId version${cxf.version}/version /dependency That should be it. maven should then add that to the package and it should be

Re: Asynchronous Web Services using AsyncHandler

2008-09-17 Thread Andrew Clegg
2008/9/16 kpalania [EMAIL PROTECTED]: Wouldn't it be better if the client had a web service available and the callback was simply to that web service? Seems cleaner than this sort of fake asynchronous approach.. This is probably more robust -- less prone to timeouts etc. -- but the downside

Re: Asynchronous Web Services using AsyncHandler

2008-09-17 Thread Andrew Clegg
2008/9/17 kpalania [EMAIL PROTECTED]: What would be clean and distributed in my mind is if the callback actually happens to be another web service call. That way, the client registers a web service call as the callback and when the response is ready, the server side implementation simply

Manually generating XML for response

2008-09-23 Thread Andrew Clegg
Hi folks, I have a web service that pulls large result sets from a database -- of the order of 10,000-100,000 rows per query, from an 80M row table. Each record is two short strings and two doubles. The query itself runs in about 3-5s, and my initial approach has a data access object which

Re: Manually generating XML for response

2008-09-24 Thread Andrew Clegg
://my.uri.goes.here/; ... /myns:MyResponseElement ... because the automatically-generated envelope won't have a reference to myns. Cheers, Andrew. 2008/9/23 Andrew Clegg [EMAIL PROTECTED]: Thanks, I've built the cxf sample that uses jax-ws providers, will post again if I get stuck. Andrew. On 23 Sep

Supplying contextual information to JAX-WS provider services

2008-09-24 Thread Andrew Clegg
Hello again, I want to use the same Provider implementation class (payload only) to provide content for four different services, each of which has the same WSDL but which lives at a different URL. This is because the implementations of the underlying services are actually almost identical (just

Re: Supplying contextual information to JAX-WS provider services

2008-09-24 Thread Andrew Clegg
2008/9/24 Ian Roberts [EMAIL PROTECTED]: Andrew Clegg wrote: In order to do this, I need a way to determine which endpoint the provider was invoked from -- e.g. the endpoint ID, or the raw URL, or some made-up jaxws:property in cxf-servlet.xml. Is this possible? Or is there another way

Re: CXF not propagating error

2008-09-25 Thread Andrew Clegg
Would enabling schema validation do what you want? http://www.mail-archive.com/[EMAIL PROTECTED]/msg00125.html It'll incur a bit of a performance hit but it should ensure that any types deviating from the WSDL (or referenced XSD) cause an error to be thrown. Andrew. 2008/9/24 samuel_rg [EMAIL

Re: Trying to make an interceptor for WSDL

2008-09-26 Thread Andrew Clegg
2008/9/26 Idar Borlaug [EMAIL PROTECTED]: Hi I am trying to create an interceptor that will trigger when someone asks for the WSDL. I want to rewrite it based on some settings. I thought an interceptor would be a good way of doing this. But my interceptors only trigger on method calls. Even

Re: wsdl2java NullPointer

2008-09-29 Thread Andrew Clegg
There may be a problem with your WSDL. If you post it here people can have a look at it, and I'm sure the maintainers will be interested if it is causing an NPE. My first attempt to debug things like this though is to start out with the simplest, most minimal WSDL I can (starting from a published

Schema validation in Provider services

2008-09-30 Thread Andrew Clegg
Morning all, I've noticed that if I 'roll my own' response payload and serve it up via a class implementing ProviderStreamSource, the schema-validation-enabled property in cxf-servlet.xml is ignored. I can produce non-schema-compliant messages and they will be returned to the client just fine.

Re: Schema validation in Provider services

2008-09-30 Thread Andrew Clegg
: Andrew Clegg [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 30, 2008 2:54 AM To: users@cxf.apache.org Subject: Schema validation in Provider services Morning all, I've noticed that if I 'roll my own' response payload and serve it up via a class implementing ProviderStreamSource, the schema

Re: Schema validation in Provider services

2008-09-30 Thread Andrew Clegg
2008/9/30 Lee Breisacher [EMAIL PROTECTED]: Well...sortof... I did manage to cobble something together that seems to work for me, but it has some rather my-project-specific stuff in it. Here's the guts of it: [snip] Great, thanks, I'll hack around a bit with that. Andrew.

Persistent helper objects on server side

2008-10-01 Thread Andrew Clegg
Morning all, This is a slightly noob-ish question that reflects my lack of experience with Java web apps in general. I have some objects for database access and business logic which I want to create on deploying my service WAR. I want these to hang around within the CXF servlet so they can by

Re: Persistent helper objects on server side

2008-10-01 Thread Andrew Clegg
2008/10/1 Glen Mazza [EMAIL PROTECTED]: For a rather primitive example, you can use a static { } block in your service implementation bean as shown here[1] in Step #6. It's a start at least. I didn't think of that. Nice one. I'm sure there's a 'proper' way with servlet context listeners or

Re: Persistent helper objects on server side

2008-10-01 Thread Andrew Clegg
it. Another option it to inject the Bus into your service with: @Resource Bus bus; And save things on the bus that you could retrieve later. Dan On Wednesday 01 October 2008, Andrew Clegg wrote: Morning all, This is a slightly noob-ish question that reflects my lack of experience with Java

Possible bug: provider classes must implement ProviderT even when superclass does

2008-10-08 Thread Andrew Clegg
Hi folks, I've discovered something a bit weird while messing around with provider services. It seems that the implementation class must directly implement the interface ProviderT, even if its parent class already does so. If this isn't done, I get an ArrayIndexOutOfBoundsException rather than an

Re: How to avoid that ClientProxyFactoryBean add the tag corresponding to the wsdl operation in the body of the SOAP message ?

2008-10-09 Thread Andrew Clegg
2008/10/9 cmoulliard [EMAIL PROTECTED]: Apparently, the client sends a wrapped soap message which should not be the case because the style defined in the wsdl port binding section is document/literal !!! Not sure what you mean here -- 'wrapped' is a style of document/literal, all wrapped

Sending XML comments to keep connection alive

2008-10-10 Thread Andrew Clegg
Afternoon all, I've just seen some interesting behaviour from a web service provided by some of my collaborators in Switzerland -- don't know what stack (or even language) they use. Their service does some pretty intensive data analysis and can accept quite big queries. It starts by sending the

Re: Sending XML comments to keep connection alive

2008-10-14 Thread Andrew Clegg
On Friday 10 October 2008 9:16:17 am Andrew Clegg wrote: Afternoon all, I've just seen some interesting behaviour from a web service provided by some of my collaborators in Switzerland -- don't know what stack (or even language) they use. Their service does some pretty intensive data analysis

Streamlining dependencies for distribution

2008-10-15 Thread Andrew Clegg
Morning all, I'm working on a sample client app (just a command line thing) to distribute to our collaborators, to demonstrate usage of our services. To keep things simple, I've built a single jar using Maven's assembly plugin, which contains all the dependencies. This weighs in at a not

Re: wsdl2java NullPointer

2008-10-21 Thread Andrew Clegg
My first thought is, how can you have a 'choice' between two elements with the same name and type? Does it still cause the error if you change the name and/or type of one of them? Andrew. 2008/10/21 _Eric_ [EMAIL PROTECTED]: Sorry for answering so late, other important things could'nt wait in

Re: Bundling ASM in CXF

2008-10-28 Thread Andrew Clegg
You can use Maven's assembly plugin to suck all the dependencies for your project into one jar, including CXF and all its dependencies, if that helps: http://maven.apache.org/plugins/maven-assembly-plugin/descriptor-refs.html#jar-with-dependencies I guess you could rebuild CXF from source this

Timeout from embedded Jetty during testing

2008-10-28 Thread Andrew Clegg
Evening all, I've set up my services to do embedded Endpoint testing as described in Glen's article here: http://www.jroller.com/gmazza/entry/writing_junit_test_cases_for#testep This uses Jetty behind the scenes. However it seems to have a 1min timeout, as if a service takes more than 60

Re: New CXF User question: Need a replacement for a PHP web service

2008-10-28 Thread Andrew Clegg
I'm not entirely sure what you want to do -- are you after a SOAP or REST service? If SOAP, then there's a good tutorial here which covers Tomcat: http://www.jroller.com/gmazza/date/20080417 I'm only a noob myself, but this is what got me started, and I still refer back to it fairly often.

Re: New CXF User question: Need a replacement for a PHP web service

2008-10-28 Thread Andrew Clegg
) So my question now is: What can I use for a valid soap version? Joe -Original Message- From: Andrew Clegg [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 28, 2008 4:16 PM To: users@cxf.apache.org Subject: Re: New CXF User question: Need a replacement for a PHP web service

Dispatch clients don't read http:conduit timeout settings... Showstopper?

2008-10-29 Thread Andrew Clegg
Hi folks, Couldn't find any way to make this work via Google, hopefully there is a way or I'm a bit shafted. I'm working with services that send fairly large chunks of XML around, and I'm currently testing the client. I have a mock service using the Provider interface which just waits for a

Re: Dispatch clients don't read http:conduit timeout settings... Showstopper?

2008-10-30 Thread Andrew Clegg
=YOUR_ADDESS serviceClass=DUMMYCLASS features bean xmlns=http://www.springframework.org/schema/beans; class=HttpClientConfigFeature property name=myConfig ref=refConfig /property /bean /features /client Willem Andrew Clegg wrote: Unfortunately not -- it still times out after 60s during

Re: Dispatch clients don't read http:conduit timeout settings... Showstopper?

2008-10-30 Thread Andrew Clegg
know if it's not working because I haven't configured something right, or if it's just not possible to add it to the bus like that... Andrew. 2008/10/30 Ian Roberts [EMAIL PROTECTED]: Andrew Clegg wrote: Hi Willem, Thanks for confirmation, I'll do a little example case and raise a JIRA when I

Re: cxf on jetty

2008-11-06 Thread Andrew Clegg
2008/11/6 Joshua Partogi [EMAIL PROTECTED]: hi all, I was wondering whether anyone has worked cxf on jetty here? Does it work? Because mine does not work on jetty, but works on tomcat. Would you share what you have done to make it work on jetty? I use jetty in the testing phase, before

Re: configuring number of connections and connection pool timeout

2008-11-11 Thread Andrew Clegg
Sorry, misread connection pool timeout for connection timeout, apologies for any confusion. 2008/11/11 Andrew Clegg [EMAIL PROTECTED]: Check out this page, under Advanced configuration: http://cwiki.apache.org/CXF20DOC/client-http-transport-including-ssl-support.html The http-conf:client

Re: configuring number of connections and connection pool timeout

2008-11-11 Thread Andrew Clegg
Check out this page, under Advanced configuration: http://cwiki.apache.org/CXF20DOC/client-http-transport-including-ssl-support.html The http-conf:client element is where most of this stuff lives. The easiest way to set global properties is by using this syntax: http-conf:conduit

Re: Looking for a solution for Large XML Messages - streaming and JAXWS

2008-11-12 Thread Andrew Clegg
2008/11/12 Saniya Afaq [EMAIL PROTECTED]: Hi, I'm using Metro 1.3 with JDK 1.5.x. This is the Apache CXF mailing list. Metro is a completely different implementation of JAX-WS, by Sun! I need a solution for streaming large messages - currently in my solution - we stream large messages by

Re: configuring the WSDL generator at serviceUrl?wsdl

2008-11-28 Thread Andrew Clegg
I don't know where that WSDL comes from either, but if it's urgent, you could always slap a remote debugger on Tomcat (or whatever web app container you're using) and see what happens when you request the ?wsdl page. As in -- http://wiki.apache.org/tomcat/FAQ/Developing#Q1 Although having said

Re: Grr. Maven.

2008-12-01 Thread Andrew Clegg
2008/12/1 Christian Schneider [EMAIL PROTECTED]: I would vote for making cleaning out dependencies a high priority issue. What do other CXF developers think? Well I'm not a CXF developer (as in a developer *of* CXF) but as a user I think it's a discussion that should be had. I raised the

Re: How to configure WSDL in java

2008-12-02 Thread Andrew Clegg
2008/12/1 ysahuly [EMAIL PROTECTED]: I have an implementation class and an WSDL. Is there any possibility to configure the WSDL to the corresponding class.Not using the normal two approaches i.e WSDL first or JAVA first. I have both the class and WSDL, only thing is i need to configure it. If

Re: Customizing Generated Java

2008-12-02 Thread Andrew Clegg
You might also find SoapUI useful for creating mock services from a WSDL -- see soapui.org . Andrew. On 1 Dec 2008, at 21:35, castlec [EMAIL PROTECTED] wrote: dkulp wrote: The JAXWS tooling (wsdl2java) does have a plugin thing that can provide default values for various return

Re: Improving user error messages for failed webservice connection?

2008-12-11 Thread Andrew Clegg
2008/12/11 Kent Närling [EMAIL PROTECTED]: Also, is there any nice and reliable way to ping a webservice server via CXF, without having to call a proper webservice function? Well, you can request the WSDL: http://example.org:8080/my-web-app-war/services/MyService?wsdl This ensures that the

Re: Improving user error messages for failed webservice connection?

2008-12-11 Thread Andrew Clegg
2008/12/11 Kent Närling [EMAIL PROTECTED]: 2008/12/11 Andrew Clegg [EMAIL PROTECTED] Well, you can request the WSDL: http://example.org:8080/my-web-app-war/services/MyService?wsdl Good idea! Is there any easy way of triggering this through CXF? Or do I have to make my own http connection

Re: Improving user error messages for failed webservice connection?

2008-12-11 Thread Andrew Clegg
2008/12/11 Kent Närling [EMAIL PROTECTED]: Do you have any feedback on my other question regarding logging and error handling? Unfortunately not, I'm sure someone else here will have a suggestion though. Andrew.

Re: CXF Service using XMLStreamReader as input and output

2008-12-12 Thread Andrew Clegg
2008/12/12 Rao, Sameer V s...@amfam.com: I think I found the answer, the Provider interface support StreamSource SAXSource which should be able to give me a Stream. Actually this does work as well, I've done it myself in the past -- this is what I get for answering before I've had any

Re: Howto consume huge amount of data with a cxf client

2008-12-16 Thread Andrew Clegg
2008/12/16 Thomas Engelschmidt t...@zama.org: I only have control over the client side. MTOM I would imagine requires configurtion on the server side. I misread your mail as well -- so ignore what I said about Provider services -- but you could build a DispatchStreamSource client to stream

Re: Howto consume huge amount of data with a cxf client

2008-12-16 Thread Andrew Clegg
You could use a ProviderStreamSource service that just writes the stream directly to disk, and then invokes another service (or just calls a method in your back-end application directly). http://cwiki.apache.org/CXF20DOC/provider-services.html Andrew. 2008/12/16 Thomas Engelschmidt

Re: wrong xs:dateTime converted to null ?

2008-12-18 Thread Andrew Clegg
2008/12/18 nicolas de loof nico...@apache.org: Just to follow this issue : How can I turn on schema validation from spring configuration : jaxws:endpoint address=/donneesClient implementor=#donneesclientEndPoint wsdlLocation=WEB-INF/wsdl/donneesClient_v1.0.wsdl / Try this: jaxws:endpoint

Re: wrong xs:dateTime converted to null ?

2008-12-18 Thread Andrew Clegg
much :-) Andrew. 2008/12/18 nicolas de loof nicolas.del...@gmail.com: Thanks :) 2008/12/18 Andrew Clegg andrew.cl...@gmail.com 2008/12/18 nicolas de loof nico...@apache.org: Just to follow this issue : How can I turn on schema validation from spring configuration : jaxws:endpoint

Re: software caused connection abort caused by a lengthy message

2009-01-03 Thread Andrew Clegg
2008/12/30 kpalania kpala...@yahoo.com: It fails when the length of my payload is over 3951 characters. Adding 1 more character to the message results in this error. Is this a bug? I've sent messages of over 20KB before without causing any problems, so I doubt it's that. Maybe stepping through

Re: POLL: JDDOM Usage and Aegis

2009-01-04 Thread Andrew Clegg
2009/1/4 Andrew Clegg andrew.cl...@gmail.com: But then I don't use Aegis or JSON (yet) so feel free to disregard :-) Errr, JDOM rather...

Re: POLL: JDDOM Usage and Aegis

2009-01-04 Thread Andrew Clegg
2009/1/4 Benson Margulies bimargul...@gmail.com: I know that some of you out there wish that CXF were slimmer. I've have an opportunity to do some trimming come up. Aegis has code to allow mapping of JDOM Elements to XML and vica versa. Does anyone want this or care? At one level, I think it

Re: Cxf, parameter function problem.

2009-01-06 Thread Andrew Clegg
2009/1/6 tremek rafal@biatel.com.pl: It have only one function sayInteger(Integer text). If i call this function from exemple SoapUi with parameter 12 it works fine, but if i call with 12aa i get from function null and any warning. My question. Is possible to set in cxf to check the

Re: Cxf, parameter function problem.

2009-01-08 Thread Andrew Clegg
2009/1/8 tremek rafal@biatel.com.pl: Hi. I add the schema validation just like in this exemple http://cxf.apache.org/faq.html#FAQ-JAXWSRelated and nothing happens. No exception. I still have null when i call function with 21aa parameter. Can you post the wsdl for the service please?

Re: Cxf, parameter function problem.

2009-01-08 Thread Andrew Clegg
2009/1/8 tremek rafal@biatel.com.pl: wsdl:import location=http://localhost:8080/CxfTestTwo/Test?wsdl=Test.wsdl; namespace=http://service/; /wsdl:import And this one as well please! There's no schema definitions in the outer one. Andrew.

Re: Cxf, parameter function problem.

2009-01-08 Thread Andrew Clegg
schema validation hasn't worked. Andrew. 2009/1/8 Andrew Clegg andrew.cl...@gmail.com: 2009/1/8 tremek rafal@biatel.com.pl: wsdl:import location=http://localhost:8080/CxfTestTwo/Test?wsdl=Test.wsdl; namespace=http://service/; /wsdl:import And this one as well please! There's

Re: wsdl2java question

2009-01-08 Thread Andrew Clegg
2009/1/8 brian_beech bbeech...@yahoo.com: wsdlOptions wsdlOption wsdl ${basedir}/src/main/wsdl/School.wsdl /wsdl

Re: cxf doesn't validate my data, even with schema-validation-enabled

2009-01-08 Thread Andrew Clegg
Someone else posted the same problem earlier, can you post the WSDL(s) please? Andrew. 2009/1/8 nicolas de loof nico...@apache.org: Hi, My service endpoint expect some integer as input. I discovered that a malformed request using is converted to null parameters : soapenv:Envelope

Getting client's IP address in Provider service

2009-01-09 Thread Andrew Clegg
Hi folks, This is probably a symptom of me never having written a traditional Java web app, but... How do you get the client's IP address? Bear in mind that I'm using a JAX-WS Provider service rather than a WebService. Thanks! Andrew. -- New site launched: http://biotext.org.uk/ I am

Re: Getting client's IP address in Provider service

2009-01-09 Thread Andrew Clegg
2009/1/9 David Bosschaert david.bosscha...@gmail.com: If you're running in the client code, you can use: InetAddress.getLocalHost().getHostAddress() Nope, I meant in the service. Andrew.

Re: Thick client notification from web service

2009-01-11 Thread Andrew Clegg
2009/1/11 SKS sumit.kumarsha...@steria.co.uk: I have a thick swing client used by users to perform actions. Business logic is on server and exposed as CXF web services. I have a requirement where Admin user can see list of connected user and disconnect them for some reason , if required. I

Re: UnknownHostException: my.service

2009-01-12 Thread Andrew Clegg
Try grepping your codebase for the string my.service and seeing where it appears? Sounds like you have this string somewhere in place of a real hostname. Andrew. 2009/1/12 Alexey Zavizionov alexey.zavizio...@gmail.com: Hello list, I have deployed two web services with CXF, and I have with

Re: UnknownHostException: my.service

2009-01-12 Thread Andrew Clegg
2009/1/12 Alexey Zavizionov alexey.zavizio...@gmail.com: Try generating client code but using the WSDL served dynamically from the server. (i.e. provide the URL rather than a path on your local filesystem.) I cannot do this. I have no server with this service. I have to develop server and

Re: Entitlements in webservices

2009-01-15 Thread Andrew Clegg
2009/1/15 scott.w.sincl...@jpmchase.com: I think a cooler way would be to have different WSDL generated, so the client stubs don't even have the fields in their generated classes. But how can I make one interface publish 2 different WSDLs and is there a way to autogenerate the WSDLs (as I

Re: CXF embedded in larger frameworks -- Camel, ServiceMix, FUSE, Mule, Synapse??

2009-01-17 Thread Andrew Clegg
as a Web Service Gateway or more generally a Service Gateway. You might want to check Apache MINA ( http://mina.apache.org/ ), which is a very good NIO based framework to build Service Gateway. Hope this info would be helpful. Jian On Wed, Jan 14, 2009 at 2:20 AM, Andrew Clegg

Re: CXF embedded in larger frameworks -- Camel, ServiceMix, FUSE, Mule, Synapse??

2009-01-20 Thread Andrew Clegg
been pleased with how easy it is to get things done. Hope that helps! Derek From: Andrew Clegg and...@nervechannel.com To: users@cxf.apache.org Sent: Saturday, January 17, 2009 6:09:19 AM Subject: Re: CXF embedded in larger frameworks -- Camel, ServiceMix

Re: How to create asynchronus provider

2009-01-21 Thread Andrew Clegg
2009/1/21 Gox slad...@uns.ns.ac.yu: Hi! I manage to create asynchronous web service, but I don't know how to create asynchronous provider. I need to send row XML and not JAXB objects. The javax.ws.Provider interface has only the invoke() method. Does anyone know how to do this? You can

Re: Create services without Java classes OR WSDL?

2009-01-27 Thread Andrew Clegg
Can't you just setup up multiple jaxws:endpoint entries in your CXF config and have them all point to the same implementor? Or does the config information absolutely *have* to come from a different config file of your own design? Andrew. 2009/1/27 Dave Burford d...@burfordfc.com: Hello, I

Re: Create services without Java classes OR WSDL?

2009-01-27 Thread Andrew Clegg
2009/1/27 Dave Burford burfordd...@gmail.com: The problem with this is that I don't have an implementor for the endpoint ... the call will be picked up and acted on by my custom Invoker (which will handle all of the operations on all of my web services in a generic fashion). I've never used

Re: AW: (newbie urgent !) i'd like to avoid generating the Service- and SEI-implementation at runtime

2009-02-09 Thread Andrew Clegg
Admittedly I'm more of a server-side guy, but when I had a go at building a client following Glen's excellent tutorial here: http://www.jroller.com/gmazza/entry/creating_a_wsdl_first_web1 I'm 99.99% sure all the proxy interfaces and classes were generated at build time. Try following that guide

Suddenly, a problem with my cxf-servlet.xml

2009-02-12 Thread Andrew Clegg
Morning all, Between last night and today, my cxf-servlet.xml has developed a problem, without me changing anything. Bear with me, I know it sounds weird :-) It looks like this: ?xml version=1.0 encoding=UTF-8? beans xmlns=http://www.springframework.org/schema/beans;

Re: Suddenly, a problem with my cxf-servlet.xml

2009-02-12 Thread Andrew Clegg
2009/2/12 Andrew Clegg and...@nervechannel.com: Now, I can go to http://cxf.apache.org/schemas/jaxws.xsd in my browser and it's fine. But when I highlight this URL in the xsi:schemaLocation in Eclipse, and hit F3 for go-to-definition, I see: Not Found The requested URL /schemas

Re: Suddenly, a problem with my cxf-servlet.xml

2009-02-12 Thread Andrew Clegg
2009/2/12 Ian Roberts i.robe...@dcs.shef.ac.uk: Andrew Clegg wrote: I have even tried reverting my cxf-servlet.xml from SVN as it was error free right through yesterday, but no change. Has any change been made to the web server or the schema at cxf.apache.org which would cause this? My

Re: Suddenly, a problem with my cxf-servlet.xml

2009-02-12 Thread Andrew Clegg
2009/2/12 Daniel Kulp dk...@apache.org: Honestly, I have no idea what to suggest. The schema DID change on monday when 2.1.4 was released as the new version was put in place. The only change was adding xsd:annotationxsd:documentation things all over it to document it better. However, the

Re: Suddenly, a problem with my cxf-servlet.xml

2009-02-12 Thread Andrew Clegg
://cxf.apache.org/schemas/jaxws.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not xsd:schema. on the first jaxws:endpoint in each cxf-servlet.xml. Bizarre! If I come across a solution I'll post it... Andrew. 2009/2/12 Andrew Clegg

Re: Suddenly, a problem with my cxf-servlet.xml

2009-02-12 Thread Andrew Clegg
I take it back! Sorry :-) Eclipse didn't automatically revalidate on startup, so one of either clearing the org.eclipse.wst.internet.cache or updating all my plugins fixed it, as Dan suggested. Many thanks. No more from me on this subject, back to work time. Andrew. 2009/2/12 Andrew Clegg

Re: XML Validation Nt working in CXF

2009-02-13 Thread Andrew Clegg
Have you switched on schema validation as specified in the FAQ? http://cxf.apache.org/faq.html It's off by default for performance reasons. Andrew. 2009/2/13 arun_rocky arunkumarave...@cognizant.com: hi, i have created an sample webservice and my interface is @webservice(name=sample)

[JAX-WS] Setting timeout for Service.create()

2009-02-14 Thread Andrew Clegg
Hi, Not sure if this is a CXF question or a JAX-WS API question... Is there any way to set a timeout for javax.xml.ws.Service.create() ? What happens if the operation to retrieve the WSDL from a remote URL takes forever? Cheers, Andrew. -- :: http://biotext.org.uk/ ::

Getting WSDL or schema of service from inside a JAX-WS Provider

2009-02-16 Thread Andrew Clegg
Hi folks, From inside a Provider implementation, how can I obtain the schema of the service's request/response messages, short of reading the WSDL myself and extracting the schema from it? Thanks, Andrew. -- :: http://biotext.org.uk/ ::

Re: [JAX-WS] Setting timeout for Service.create()

2009-02-18 Thread Andrew Clegg
Anybody have any pointers for this one? Thanks :-) 2009/2/14 Andrew Clegg and...@nervechannel.com: Hi, Not sure if this is a CXF question or a JAX-WS API question... Is there any way to set a timeout for javax.xml.ws.Service.create() ? What happens if the operation to retrieve the WSDL from

Re: Getting WSDL or schema of service from inside a JAX-WS Provider

2009-02-19 Thread Andrew Clegg
via an old thread on here, but that requires a ServiceInfo object -- is there any way to acquire one of these for a Provider service? Thanks, Andrew. 2009/2/16 Andrew Clegg and...@nervechannel.com: Hi folks, From inside a Provider implementation, how can I obtain the schema of the service's

Re: Getting WSDL or schema of service from inside a JAX-WS Provider

2009-02-19 Thread Andrew Clegg
, there is an XmlSchemaCollection of the schemas. In earlier branches, it has a DOM copy of them. We could, I suppose, expose. I'm hoping that Dan will wade in at this point. On Thu, Feb 19, 2009 at 5:42 AM, Andrew Clegg and...@nervechannel.com wrote: Followup... So I've got this working

Re: Getting WSDL or schema of service from inside a JAX-WS Provider

2009-02-19 Thread Andrew Clegg
...@gmail.com: Superfically, looks like you could call that API, yes. It's used internally to set up validation. Of course, you'd need to follow a trail of breadcrumbs to the CXF-specific Service object to get there. Is that the issue? On Thu, Feb 19, 2009 at 7:55 AM, Andrew Clegg

Re: Getting WSDL or schema of service from inside a JAX-WS Provider

2009-02-19 Thread Andrew Clegg
it will always return a singleton list, but if not find your particular service on the list, and then you have the item to pass to the function you found, which is extremely unlikely to melt. On Thu, Feb 19, 2009 at 8:30 AM, Andrew Clegg and...@nervechannel.com wrote: Yeah, as long as you wouldn't say

Re: Getting WSDL or schema of service from inside a JAX-WS Provider

2009-02-19 Thread Andrew Clegg
2009/2/19 Benson Margulies bimargul...@gmail.com: Right. To get a running provider, someone had to call Endpoint.publish. I was suggesting that whomever that is would hang onto the returned Endpoint and pass it into the provider, or walk the trail to the schema and store that somewhere the

Re: Getting WSDL or schema of service from inside a JAX-WS Provider

2009-02-20 Thread Andrew Clegg
probably be removing the Element form (so the DOMs can be garbage collected and use less memory) so you would need to convert the Schemas in the schema collection to DOM's. That said, that's pretty easy with the newest XmlSchema release. Dan On Mon February 16 2009 4:30:46 pm Andrew Clegg

Re: CXF vs Apache 1.4

2009-02-20 Thread Andrew Clegg
It's in the FAQ :-) Unless you're using Provider services, in which case, see the other thread I just posted on. Andrew. On 20 Feb 2009, at 09:26, john.ba...@barclayscapital.com wrote: Hi, I think a nice end to this thread would be a couple lines of code telling me how to turn on schema

Re: Getting WSDL or schema of service from inside a JAX-WS Provider

2009-02-20 Thread Andrew Clegg
Sounds reasonable. I might try it Dan's pure-Java way first though as I don't tend to get on well with Spring though for some reason! Cheers, Andrew. On 19 Feb 2009, at 17:30, Ian Roberts i.robe...@dcs.shef.ac.uk wrote: Andrew Clegg wrote: At the moment that's done for me by CXF. So I

Re: What is a large SOAP message ?

2009-02-23 Thread Andrew Clegg
2009/2/23 nicolas de loof nico...@apache.org: Could you please tell me what is considered to be a large SOAP message ? I've found some benchmark comparison of stacks (I don't really care, I like CXF) and other best practices about XML message weight (

Re: CXF client program related question

2009-03-02 Thread Andrew Clegg
Do you mean like this? http://cwiki.apache.org/CXF20DOC/dynamic-clients.html Andrew. 2009/3/1 Avi Grossbard avi.grossb...@gmail.com: Hi, I'm looking for an easy way to create a client program that can invoke web service dynamically without compile time code generation. The expected web

Re: CXF client program related question

2009-03-02 Thread Andrew Clegg
? Avi. On Mon, Mar 2, 2009 at 1:02 PM, Andrew Clegg and...@nervechannel.comwrote: Do you mean like this? http://cwiki.apache.org/CXF20DOC/dynamic-clients.html Andrew. 2009/3/1 Avi Grossbard avi.grossb...@gmail.com: Hi, I'm looking for an easy way to create a client program that can

Re: OO - WS paradigm mismatch

2009-03-02 Thread Andrew Clegg
One other option (my preferred way), similar to your option C. Think in terms of services and messages, rather than objects, classes and methods. Get away from the services as a way of doing remote Java method invocation mindset. Design your services WSDL-first (if possible) for all the good

Re: CXF client program related question

2009-03-02 Thread Andrew Clegg
the WS-*  standards that Microsoft is supporting?   (for instance: WS-Addressing, WS-Security, WS-Transaction, *WS-*Reliability etc...) Avi On Mon, Mar 2, 2009 at 3:01 PM, Andrew Clegg and...@nervechannel.comwrote: Should be fine as long as everything is standards-compliant. Document/literal

MalformedURLException when trying to initialize local transport, and some questions

2009-03-02 Thread Andrew Clegg
Hi, I've started hacking around with the local transport mechanism as described here: http://cwiki.apache.org/CXF20DOC/local-transport.html However, when I try to bring it up endpoints listening on a local:// URL I get a MalformedURLException. The code looks like this: __endpoints[ 0 ] =

Re: NTML proxy from Linux machine

2009-03-03 Thread Andrew Clegg
Have you tried ntlmaps? http://ntlmaps.sourceforge.net/ I used to use this to allow a Linux laptop to get to the internet from a corporate LAN with an NTLM proxy. Sounds like you have the same problem. Andrew. 2009/3/3 Fendy Zhong fendyzh...@yahoo.com: Hi, I am developing a server process

Re: MalformedURLException when trying to initialize local transport, and some questions

2009-03-04 Thread Andrew Clegg
relevant. Thanks, Andrew. 2009/3/2 Andrew Clegg and...@nervechannel.com: Hi, I've started hacking around with the local transport mechanism as described here: http://cwiki.apache.org/CXF20DOC/local-transport.html However, when I try to bring it up endpoints listening on a local:// URL I

Re: MalformedURLException when trying to initialize local transport, and some questions

2009-03-06 Thread Andrew Clegg
No suggestions anyone? Has anybody got this to work, and if so, could they post a code example with a local:// URL? Or should I just file a bug report? Thanks, Andrew. 2009/3/4 Andrew Clegg and...@nervechannel.com: Update... Tried adding bindingUri=http://cxf.apache.org/transports/local

Re: Sending XML payload without encoding it

2009-03-10 Thread Andrew Clegg
I just found this message from last month... How did you get the SOAPAction header thing to work in the end? I have the same problem as you had -- I'm doing this in the code: rc.put( BindingProvider.SOAPACTION_URI_PROPERTY, string containing soap action ); rc.put(

Re: Sending XML payload without encoding it

2009-03-10 Thread Andrew Clegg
the right magic words were :-) Andrew. 2009/3/10 xbranko xbra...@netscape.net: Andrew Clegg-2 wrote: I just found this message from last month... How did you get the SOAPAction header thing to work in the end? I have I couldn't get the action to appear either, so finally this is what I

Re: Sending XML payload without encoding it

2009-03-10 Thread Andrew Clegg
( thread.local.request.context, false ); but it made no difference. Thanks, Andrew. 2009/3/10 Andrew Clegg and...@nervechannel.com: I don't get it... How does building the XML payload differently mean you get a SOAPAction header? Or do you mean, when you do it this way, you don't need a SOAPAction

Re: Sending XML payload without encoding it

2009-03-12 Thread Andrew Clegg
current todo list for early April, but subject to change. Dan On Tue March 10 2009 1:31:35 pm Andrew Clegg wrote: Branko, thanks for your help, I've got a theory about what might be causing this. CXF gurus -- I've noticed that the request context in BindingProviderImpl is stored

Re: Sending XML payload without encoding it

2009-03-12 Thread Andrew Clegg
Thanks for the very swift turnaround on this, Dan! Andrew. 2009/3/12 Daniel Kulp dk...@apache.org: On Thu March 12 2009 4:10:19 am Andrew Clegg wrote:  From my own POV this is non-urgent now - I've wrappered Dispatch in another class that forks a second thread to change the context AND do

  1   2   >