Re: How to get HttpURLConnection of Dispatch client

2010-03-09 Thread Andrew Clegg
Eoghan Glynn-4 wrote: The HTTPURLConnection is retrieved on demand when the invocation is being prepared. So its not statically associated with the interceptor chain. However the HTTPConduit does cache the current connection in the HTTPConduit.KEY_HTTP_CONNECTION property (i.e.

How to get HttpURLConnection of Dispatch client

2010-03-09 Thread Andrew Clegg
Hi, Given a Dispatch that's been invoked asynchronously (or in another thread, manually) -- is it possible to get at the underlying HttpURLConnection that it's using? I can see how you get to the Conduit but then I get a bit stuck. Here's the reason I'm asking: I'm having trouble with a

Re: How to get HttpURLConnection of Dispatch client

2010-03-09 Thread Andrew Clegg
Eoghan Glynn-4 wrote: However the HTTPConduit does cache the current connection in the HTTPConduit.KEY_HTTP_CONNECTION property (i.e. http.connection) property on the message object, so you could experiment by writing an interceptor that retrieves the value of this property and

Re: How to get HttpURLConnection of Dispatch client

2010-03-09 Thread Andrew Clegg
Eoghan Glynn-4 wrote: Yes that exactly the sort of thing I had in mind. The exact phase isn't really that important in this case, as the real action occurs asynchronously, presumably a relatively long time after *all* the outbound phases have been traversed. (Assuming the timeout is

ServiceConstructionException when upgrading to 2.2.5

2009-11-20 Thread Andrew Clegg
Hi everyone, I just upgraded an old service that was running on 2.2.2 to 2.2.5, and it didn't start. I got the Tomcat error page appended to the bottom of this email. (At the bottom it says the full stacktrace is in the logs, but actually it isn't, it's all on that page.) Any idea what else I

Re: Example wsdl2java catalog file

2009-08-18 Thread Andrew Clegg
2009/8/18 Shannon Hastings shannon.hasti...@osumc.edu: I am looking for an example of the format of the wsdl2java catalog file.  I notice it has an option to take a catalog file and I am curious if this is a file where a list of namespace to package mapping can live and if so what is the

Re: Design questions CXF//my need

2009-08-13 Thread Andrew Clegg
I'm not sure about some of your questions as I've only worked in WSDL-first SOAP services. I'm sure others can help with these though. 2009/8/13 Live Nono liven...@gmail.com: - feeding the service with my own Guice managed objects Yes. There's no direct integration (CXF uses Spring for DI, not

Re: Asynchronous Invocation and connection keep alive on the TCP level

2009-08-06 Thread Andrew Clegg
2009/8/5 conficio kajkand...@conficio.com: My question is: Does the asynchronous Web service some active polling across the TCP connection to keep it alive? Is that the solution I'm looking for, Asynchronous invocation? I'm happy to be corrected if wrong, but I believe the actual TCP

Re: Error after turning on Schema Validation

2009-08-01 Thread Andrew Clegg
Well it *sounds* like the WSDL defines an element called arg0 in one of the operations that your SOAP message doesn't contain, but it's a bit hard to say more without seeing the WSDL and the SOAP message in question :-) Andrew. 2009/8/1 Suneet Shah suneetshah2...@gmail.com: Hello, I am

Re: Namespace problem in webservice response

2009-07-29 Thread Andrew Clegg
2009/7/29 amit_9b amit...@yahoo.com: So the soap response I desire is : DESIRED RESPONSE soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/;  soap:Body    models xmlns:ns2=http://prime.simplesoft.org/2009/xsd;      model active=true

Re: webservice with cxf, spring, hibernate: Application has thrown exception

2009-07-28 Thread Andrew Clegg
2009/7/28 homer84 erdingerst...@hotmail.com: The problem is with the webservice: I've been trying it with soapUI3.0 and I only get this error (without much details): org.apache.cxf.phase.PhaseInterceptorChain doIntercept INFO: Application has thrown exception, unwinding now

Re: Thanks to the Committers

2009-07-23 Thread Andrew Clegg
2009/7/22 Ron Grimes rgri...@sinclairoil.com: Dan, Benson, Sergey, et al, Just wanted to let you guys (the committers) know that you do a great job and all of your support is greatly appreciated. Hear hear! Out of all the open-source tools I use, CXF has by far the best community support, and

Re: begginer - java version

2009-07-16 Thread Andrew Clegg
Sorry, I meant what is the problem with Java 6? 2009/7/16 Andrew Clegg and...@nervechannel.com: 2009/7/15 Seba González zadigsinl...@gmail.com: I'm using for first CXF. When I tried the A simple JAX-WS service sample, I had to run it in java 5. Then I tried to implement something like

Re: Array out of bounds deep in JVM setting up endpoint?

2009-07-16 Thread Andrew Clegg
It's a long shot admittedly... I found an ArrayIndexOutOfBoundsException while publishing an endpoint once: https://issues.apache.org/jira/browse/CXF-1852 ... but the stracktrace does look very different. Andrew. 2009/7/15 Benson Margulies bimargul...@gmail.com: run webapp [Program]        

Re: CXF is WSI Basci Profile 1.1 compliant?

2009-07-14 Thread Andrew Clegg
2009/7/14 Kid_79 chicc...@hotmail.com: Hi all, Where I can to see if CXF is WSI Basci Profile 1.1 compliant? I try in internet but I have not found exactly the answer. It's not up to CXF to enforce WS-I BP compliance. You can build all kinds of web services with CXF, especially if you use

Re: Schema Validation in CXF

2009-07-06 Thread Andrew Clegg
This is a FAQ! http://cxf.apache.org/faq.html Andrew. 2009/7/6 Suneet Shah suneetshah2...@gmail.com: Hello I have service that I have created with CXF 2.2.1 / JAX-WS annotations and deployed it onto JBoss. However, none of the rules are being honored - ie. Elements in the wrong order are

Re: Internal server error

2009-07-02 Thread Andrew Clegg
These are all client-side errors. You need to tail the server's logfiles while you make a request in order to see what's happening on the server side. There's no way to tell what's going on from these alone. The client isn't actually doing anything wrong -- it's correctly failing to parse an HTML

Re: Internal server error

2009-06-30 Thread Andrew Clegg
2009/6/30 Naresh Tallapelli naresh.tallape...@gmail.com: pMore information about this error may be available in the server error log./p Are you writing the server, the client or both? Have you looked in the server's error log (or asked the server admin to do so)? There's no way to help

Re: Sending a void dateTime using SOAP

2009-06-29 Thread Andrew Clegg
2009/6/29 robertojimen...@terra.es robertojimen...@terra.es: I am using CXF SOAP to communicate to a system that seems to require an element when not sending a dateTime and it seems if I send null with CXF the element it is not sent. The method that wsdl2java generated uses a

Re: Does CXF web service can return HTTP exceptions?

2009-06-24 Thread Andrew Clegg
SOAP or REST? 2009/6/24 tutu tugdual.huer...@gmail.com: Hi all, Does anybody know if cxf web service can return HTTP exceptions with configurable messages? In other words, does a web service can return HTTP 500: application error/ database problem? thanks in advance, tugdual -- View

Re: Does CXF web service can return HTTP exceptions?

2009-06-24 Thread Andrew Clegg
I don't think so -- this is well outside normal SOAP behaviour. Errors should be reported as SOAP Faults sent back in a normal SOAP envelope, otherwise clients won't handle them correctly. There may be a way to hack this behaviour (someone from the CXF team might know) but I'd highly recommend

Re: IllegalAccessError: tried to access method org.apache.cxf.service.model.BindingOperationInfo.init ...

2009-06-23 Thread Andrew Clegg
constructs the service. Andrew. 2009/6/22 Andrew Clegg and...@nervechannel.com Evening all, I've just upgraded to CXF 2.2.2 from 2.1.4, and now I get the exception below when I try to deploy my application. It's a Provider service that also acts as a Dispatch client to another set

Re: How to return a Fault messgae

2009-06-19 Thread Andrew Clegg
Plus any unchecked exception you throw will get converted into a SOAP fault for you, with a faultcode of soap:Server and a faultstring equal to the message of the exception. Andrew. 2009/6/18 Daniel Kulp dk...@apache.org On Thu June 18 2009 3:25:14 am xinxinwang wrote: My service implements

Re: Source code to add to my dependency libraries

2009-06-04 Thread Andrew Clegg
2009/6/3 sortakool raymond.manal...@ubs.com: Hopefully this question makes sense. Is there a downloadable jar/zip file of the CXF source code to link to the CXF class binaries? It's all on http://cxf.apache.org/download.html . Or if you're using Maven, do mvn eclipse:eclipse

Re: Tracking WSDLToJava Error: Thrown by JAXB : Two declarations cause a collision

2009-05-27 Thread Andrew Clegg
2009/5/26 cmarshall cmarsh...@courseadvisor.com: I suspect this is likely to be an error in their wsdl but it is huge and has three imports in the schema.  What is the process that one should use to track down this error?  Hopefully something better than manually reading through the wsdl.

Re: Tracking WSDLToJava Error: Thrown by JAXB : Two declarations cause a collision

2009-05-27 Thread Andrew Clegg
2009/5/27 cmarshall cmarsh...@courseadvisor.com: The Eclipse plugin that launches wsdl2java includes the -validate and it is not producing anything intelligible.  The wsdl that produces the issue can be retrieved from:

Re: null values populated from non-null response

2009-05-23 Thread Andrew Clegg
2009/5/23 Timothy Waxland timothywaxl...@gmail.com: Hi thanks for responding. i turned on validation on the client side and it through an exception where i expected it to - so i'm pretty sure their response is not correct.  (i couldn't find the validate option in soapUI) It's in the right

Re: XSD level validations for CXF incoming SOAP requests

2009-05-22 Thread Andrew Clegg
http://cxf.apache.org/faq.html See the bit about schema validation. You can do this at either/both of the client and/or server sides I believe. Andrew. 2009/5/22 vimalaharan vimal030...@gmail.com: Hi, I have converted the WSDLs to java classes and using it in both the Server side and the

Re: Apache CXF for SOAP over HTTPS

2009-05-13 Thread Andrew Clegg
2009/5/13 hezjing hezj...@gmail.com: Hi I have a project that requires us to develop a client/server which send request/response (over HTTPS) in the following format: ... There is no WSDL. Can we use Apache CXF to develop this type of client/server? You can use Dispatch clients [1] and

Re: CXF with own Classloader

2009-05-09 Thread Andrew Clegg
2009/5/8 ladidaaa g-...@gmx.li: Is there a way to use CXF with its own classloader which has own versions of Jars ? I came across this project yesterday, would this help? http://www.pomstrap.techlab.smk.fr/en/ Andrew. -- :: http://biotext.org.uk/ ::

Question about SOAP Faults on the client side

2009-04-29 Thread Andrew Clegg
Evening all, Is it correct to say that if I see an exception like this in a CXF client: org.apache.cxf.binding.soap.SoapFault: Bad file descriptor at org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.unmarshalFault(Soap11FaultInInterceptor.java :75) at

Re: Problem with enabling Schema Validation

2009-04-25 Thread Andrew Clegg
        Activering            accountReferentie?/accountReferentie         /Activering      /gat:activeren   /soapenv:Body /soapenv:Envelope Andrew Clegg-2 wrote: 2009/4/24 venuireddy venuire...@gmail.com: Is there anybody who can explain this behavior or point me into a direction on how to fix

Re: packaging question

2009-04-24 Thread Andrew Clegg
2009/4/24 Glen Mazza glen.ma...@gmail.com: It would defeat one of the main purposes of Maven if you used a different directory layout with that tool. +1 for this -- if you use Maven, stick with the Maven, layout otherwise other plugins won't know where to look for things and it'll be a

Re: Problem with enabling Schema Validation

2009-04-24 Thread Andrew Clegg
2009/4/24 venuireddy venuire...@gmail.com: Is there anybody who can explain this behavior or point me into a direction on how to fix it ? It's a bit difficult if you don't post your WSDL or an example message that causes the error :-) Andrew. -- :: http://biotext.org.uk/ ::

Re: Create a Service Using CXF Using Https Protocol

2009-04-22 Thread Andrew Clegg
There's a wsdl_first_https example service in the $CXF_HOME/samples directory... 2009/4/22 Bazaj, Taru (IDEAS) taru.ba...@morganstanley.com: Hi, I am trying to use CXF to write a web service that would talk to a WCF client over HTTPS. However, I am having issues with parsing the incoming

CXF tutorial (was Re: How to add Stylesheet to XML returned from server?)

2009-04-08 Thread Andrew Clegg
2009/4/8 sridhar veerappan sriasa...@gmail.com: Hi, I am new To CXF, Can you anyone help me how to build the application with minimal setup with Jboss or Tomcat,Java,eclipse,Ant/Maven,Web service with a sample application to test. Like this?

Compiling JAX-WS service implementation classes on SoyLatte

2009-04-06 Thread Andrew Clegg
Hi, I'm trying to get a CXF project built on Linux JDK 6 to compile on OS X Tiger under SoyLatte (a port of BSD Java 6). It's almost all gone pretty seamlessly, but in the service implementation classes generated by the Maven wsdl2java goal have a problem with one of the getPort methods:

Re: Compiling JAX-WS service implementation classes on SoyLatte

2009-04-06 Thread Andrew Clegg
Sorry, I meant JAX-WS API 2.1 jar. 2009/4/6 Andrew Clegg and...@nervechannel.com: Hi, I'm trying to get a CXF project built on Linux JDK 6 to compile on OS X Tiger under SoyLatte (a port of BSD Java 6). It's almost all gone pretty seamlessly, but in the service implementation classes

Re: Compiling JAX-WS service implementation classes on SoyLatte

2009-04-06 Thread Andrew Clegg
2009/4/6 Ian Roberts i.robe...@dcs.shef.ac.uk: Andrew Clegg wrote: The problem is that SoyLatte's version of javax.xml.ws.Service doesn't seem to have this method, just the Class and QName, Class versions of getPort, like in Java 5. To override this you'll need to put the 2.1 API jar

Re: Recommended way to have a web method stream results back to client?

2009-04-03 Thread Andrew Clegg
2009/4/2 Joe-D Morrison joe-d.morri...@db.com: Earlier I asked about customizing XML serialization in CXF and got some helpful suggestions, but I left out an important detail. I need to write a streaming SOAP service that returns an enormous amount of XML without storing the entire response

Re: Using DataHandler for attachments

2009-04-01 Thread Andrew Clegg
For clients that don't support attachments properly, you can always save the file to a temporary static location on your webserver with a non-guessable name, and send a URL instead. Then have a scheduled task that removes such files older than a certain age. I believe we've done this before with

Re: WS stops responding after a while

2009-03-26 Thread Andrew Clegg
Would debugging into the service with Eclipse (or equivalent) remote debugging help? You could set some breakpoints in your service and see if any of them get hit when you send a request. Or just hit Suspend while the client's waiting for a response, and see where the service is waiting. Andrew.

Re: Soap Schema Validation CXF?

2009-03-25 Thread Andrew Clegg
This is a VFAQ: http://cxf.apache.org/faq.html 2009/3/25 dave sinclair dsincl...@chariotsolutions.com: Can it be done programatically on the server side? The problem is the client doesn't want Spring, they are an ATG shop. So I need to enable validation without using the spring config.

Re: wsdl2java -- Resolving imported schemas with relative paths

2009-03-24 Thread Andrew Clegg
, it cannot reference anything outside of itself.   There should be an import in there. Dan On Mon March 23 2009 3:40:22 pm Andrew Clegg wrote: Actually, I think my previous suspicion about the cause of the problem may be a red herring. I've downloaded all three files: http

wsdl2java -- Resolving imported schemas with relative paths

2009-03-23 Thread Andrew Clegg
Hi, I'm trying to write a JAXB/JAXWS client for this service: http://www.cbs.dtu.dk/ws/SpindleP/ws_spindlep_2_0_ws0.xsd Just using wsdl2java on that URL with no extra parameters gives this error: WSDLToJava Error: Thrown by JAXB : undefined simple or complex type 'spindlep:seqlookup' ...

Re: wsdl2java -- Resolving imported schemas with relative paths

2009-03-23 Thread Andrew Clegg
greatly appreciated! Andrew. 2009/3/23 Andrew Clegg and...@nervechannel.com: Hi, I'm trying to write a JAXB/JAXWS client for this service: http://www.cbs.dtu.dk/ws/SpindleP/ws_spindlep_2_0_ws0.xsd Just using wsdl2java on that URL with no extra parameters gives this error: WSDLToJava Error

Re: Maven2 not including dependent jars

2009-03-19 Thread Andrew Clegg
Try something like this in your plugins section: plugin !-- This produces a monolithic runnable jar with no external dependencies: service-monitor-${project.version}-jar-with-dependencies.jar -- artifactIdmaven-assembly-plugin/artifactId configuration descriptorRefs

Re: Maven2 not including dependent jars

2009-03-19 Thread Andrew Clegg
2009/3/19 Daniel Kulp dk...@apache.org: On Thu March 19 2009 10:28:17 am john.ba...@barclayscapital.com wrote: Hi, It's a jar. I guess I'm too used to the atlassian confluence plugin architype (?) which generates a jar with all the dependencies.  Is there some sample assembly plugin code to

Re: Tacking messages across several SOAP Request

2009-03-17 Thread Andrew Clegg
2009/3/17 jeffrey.constan...@cox.com: a.      Is this the right thing to do? 3.      Is there an easier way to track a SOAP request across multiple calls? I've built a system with a very similar topology to this without using WS-Addressing: http://funcnet.eu/ When the front-end server

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

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: 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: 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: 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: 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: 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: 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: 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: [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

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/ ::

[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/ ::

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)

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: 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

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: 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: 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: 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: 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: 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: 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

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: 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

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: 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...

  1   2   >