Re: From proxy to ClientImpl

2009-07-16 Thread Ian Roberts
Benson Margulies wrote: > I'm having a dense morning. How do I get to the ClientImpl from the > proxy returned by the proxy factory? > > Object proxyObj = proxyFac.create(); > docClient = (IDocumentService)proxyObj; Client client = ClientProxy.getClient(proxyOb

Re: Reading bean from cxf/Spring context file

2009-07-14 Thread Ian Roberts
work - you don't "grab" beans from the context, the context injects them for you. Ian P.S. The @Autowired annotation will also work but for that you need to add to your XML (http://static.springsource.org/spring/docs/2.5.x/reference/beans.html#beans-annotation-config) in orde

Re: Reading bean from cxf/Spring context file

2009-07-14 Thread Ian Roberts
ight rather than having CXF create it by reflection. So now if you want a reference to myBean within your service class, you can do it in the normal Spring style - add a public void setSomething(MyBean b) method to the WebServiceImpl class and add inside the webServiceImpl defin

Re: Reading bean from cxf/Spring context file

2009-07-14 Thread Ian Roberts
d) Loading beans from applicationContext-ws.xml does not work. I tried: > > - similar code to that in (c) > - autowiring > - using the ServletContextAware interface (crazy idea of course - CXF is > not Spring MVC) > > Any help will be greatly welcome... I know this must be terr

Re: How to get servlet context at initialization time of a POJO

2009-06-23 Thread Ian Roberts
tContext), and from there you can get at your application beans and do whatever cleanup is necessary. Ian -- Ian Roberts | Department of Computer Science i.robe...@dcs.shef.ac.uk | University of Sheffield, UK

Re: ServletContext in an inherited class

2009-05-13 Thread Ian Roberts
e CXF infrastructure needing to be involved. Ian -- Ian Roberts | Department of Computer Science i.robe...@dcs.shef.ac.uk | University of Sheffield, UK

Re: debian tomcat org/springframework/core/NestedExceptionUtils - solution

2009-05-12 Thread Ian Roberts
and that will override the default setting in the script. Ian -- Ian Roberts | Department of Computer Science i.robe...@dcs.shef.ac.uk | University of Sheffield, UK

Re: get a Spring Bean from CXF, how to ?

2009-05-01 Thread Ian Roberts
g bean it can implement Spring-provided interfaces such as ApplicationContextAware or ServletContextAware in the usual way and the things you want will be injected automatically. Ian -- Ian Roberts | Department of Computer Science i.robe...@dcs.shef.ac.uk | University of Sheffield, UK

Re: Question about schema-validation-enabled

2009-04-27 Thread Ian Roberts
the case for your element: > Ian [1] http://www.w3.org/TR/xmlschema-0/#nsTable -- Ian Roberts | Department of Computer Science i.robe...@dcs.shef.ac.uk | University of Sheffield, UK

Re: Jax-RS & Authorization Models

2009-04-06 Thread Ian Roberts
x27;d need to create a Spring bean implementing org.springframework.aop.MethodBeforeAdvice and register that to be called before your JAX-RS service bean methods, something like this (not tested!): Ian -- Ian Roberts | Department of Computer Science i.robe...@dcs.shef.ac.uk | University of Sheffield, UK

Re: Custom Schema Validator

2009-04-06 Thread Ian Roberts
jp4 wrote: > I signed up for access to the CXF JIRA but I can't seem to create a new > issue. How do I go about creating a new issue? If you're logged into the JIRA there should be a "Create new issue" link in the bar at the top. Ian -- Ian Roberts

Re: Compiling JAX-WS service implementation classes on SoyLatte

2009-04-06 Thread Ian Roberts
te's lib/endorsed directory. Ian -- Ian Roberts | Department of Computer Science i.robe...@dcs.shef.ac.uk | University of Sheffield, UK

Re: Retrieving spring beans

2009-04-04 Thread Ian Roberts
lementation class and do dependency injection in the normal Spring way: ... Ian -- Ian Roberts | Department of Computer Science i.robe...@dcs.shef.ac.uk | University of Sheffield, UK

Re: Specifying fields to include/exclude from return XML

2009-03-05 Thread Ian Roberts
essorType of the containing class. Ian -- Ian Roberts | Department of Computer Science i.robe...@dcs.shef.ac.uk | University of Sheffield, UK

Re: generating client stubs for all available services

2009-02-25 Thread Ian Roberts
s http://my.server:8080/app/services \ | grep '^A\W' \ | cut -f2 This will read the services list page from the server and output a list of the links it contains (i.e. the WSDLs). Ian -- Ian Roberts | Department of Computer Science i.robe...@dcs.shef.ac.uk | University of Sheffield, UK

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

2009-02-19 Thread Ian Roberts
Andrew Clegg wrote: > At the moment that's done for me by CXF. So I have an endpoint defined > in cxf-servlet.xml: > > implementor="info.cathdb.funcnet.impl.FrontEndServiceProviderFacade" > endpointName="funcnet:FrontEndPort" > serviceName="funcnet:FrontEndService" > ad

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

2009-02-12 Thread Ian Roberts
apache.org at the moment, I guess there's a problem with the web server. Ian -- Ian Roberts | Department of Computer Science i.robe...@dcs.shef.ac.uk | University of Sheffield, UK

Re: MessageBodyReader For UUID

2009-01-07 Thread Ian Roberts
ID MessageBodyReaders are only for reading the message body, they're not used for PathParams. PathParams can be any type with a constructor taking a String or with a valueOf(String) method - UUID has neither, so I guess your only option is to have a parameter of type String and do UUID.fromStri

Re: CXF query URL for schema-only?

2009-01-05 Thread Ian Roberts
hose types will be defined inline. Ian -- Ian Roberts | Department of Computer Science i.robe...@dcs.shef.ac.uk | University of Sheffield, UK

Re: session between a ws service and a client in cxf

2009-01-04 Thread Ian Roberts
a way to do it with the JAXRSServerFactoryBean, but like I say that shouldn't be necessary if your service object is thread safe. > 2) All the invoke process are to the same socket number ? Yes, that's perfectly normal for server sockets. Ian -- Ian Roberts |

Re: session between a ws service and a client in cxf

2009-01-04 Thread Ian Roberts
of http://cwiki.apache.org/CXF20DOC/jax-rs-jsr-311.html about Spring AOP for details of the potential pitfalls. Alternatively you could use the HttpSession directly by injecting a MessageContext into a singleton service bean and accessing the HttpServletRequest through that. Ian -- Ian

Re: session between a ws service and a client in cxf

2009-01-03 Thread Ian Roberts
BindingProvider)cxfStub).getRequestContext().put( BindingProvider.SESSION_MAINTAIN_PROPERTY, Boolean.TRUE); All JAX-WS client stub objects implement BindingProvider in addition to the service interface. Ian -- Ian Roberts | Department of Computer S

Re: wrong xs:dateTime converted to null ?

2008-12-18 Thread Ian Roberts
the property or field depends upon it's type. If the type is [...] 3. a reference (must be mapped to a simple type) - value is null. Ian -- Ian Roberts | Department of Computer Science i.robe...@dcs.shef.ac.uk | University of Sheffield, UK

Re: using cxf without spring ?

2008-12-17 Thread Ian Roberts
of the whole Spring framework scare you off. The core inversion of control container (which is all you'll need in many cases) is only a small part of the whole framework and is well worth, if not mastering, then at least learning the basics. I'm sorry, it's late, I'll sto

Re: Runtime CXF configuration WITHOUT using Spring

2008-12-12 Thread Ian Roberts
er with config.properties at all then you could just use: Ian -- Ian Roberts | Department of Computer Science i.robe...@dcs.shef.ac.uk | University of Sheffield, UK

Re: Exception after inclusion of inside the

2008-12-03 Thread Ian Roberts
ysahuly wrote: > Hi All, > i have included the below bolded piece of code in my cxf.xml...After that > inclusion i got the below exception while deploying doesn't accept a dataBinding element but does. Try using instead of and see if that works. Ian -

Re: Grr. Maven.

2008-12-02 Thread Ian Roberts
would only use a subset of the classes in each CXF module. Ian -- Ian Roberts | Department of Computer Science [EMAIL PROTECTED] | University of Sheffield, UK

Re: configuring the WSDL generator at serviceUrl?wsdl

2008-11-28 Thread Ian Roberts
re: > > xx.service.web : service interface > xx.service.web.impl : service implementation > xx.dto : data types > xx.dto.sub : more data types What is probably happening is that your WSDL has an of something like ?xsd=1, and your types are defined in this imported xsd file. Ian -- Ian

Re: configuring the WSDL generator at serviceUrl?wsdl

2008-11-28 Thread Ian Roberts
so in the list archive, I'm sure it's been mentioned before). Is that what you're after? > and for curiosity, what tool is running when i invoke serviceName?wsdl ? org.apache.cxf.transport.http.WSDLQueryHandler (in rt/core). Ian -- Ian Roberts | Department of Comput

Re: Resolution of xsi:schemaLocations

2008-11-27 Thread Ian Roberts
example, is > "http://cxf.apache.org/jaxws"; located in the CXF JARs? See META-INF/spring.schemas (inside the various JAR files). Spring uses these definitions to map schema location URIs to classpath resources. Ian -- Ian Roberts | Department of Computer

Re: cannot compile wsdl2java genrated classes on jdk1.6

2008-11-24 Thread Ian Roberts
nicolas de loof wrote: > Anything cleaner ? Upgrade to JDK 1.6 update 4 or later, which includes the 2.1 versions of the JAX-WS and JAXB APIs instead of the 2.0 ones. Ian -- Ian Roberts | Department of Computer Science [EMAIL PROTECTED] | University of Sheffield, UK

Re: 2.1-incubator not found

2008-11-17 Thread Ian Roberts
lasspath for CXF without conflicts. Somebody who knows more Maven than me will be able to tell you the magic incantation to get the right dependencies. Ian -- Ian Roberts | Department of Computer Science [EMAIL PROTECTED] | University of Sheffield, UK

Re: Creating CXF war file... how to get proper dependencies??

2008-11-12 Thread Ian Roberts
Brad O'Hearne wrote: > enumerations (supported in 1.6 but not in 1.5) I'm sure I've used enumerations in 1.5...? Ian -- Ian Roberts | Department of Computer Science [EMAIL PROTECTED] | University of Sheffield, UK

Re: dependency on asm-2.2.3.jar

2008-11-11 Thread Ian Roberts
Vi Da wrote: > I am running into an issue where I have to use a legacy library which uses > cglib-full-2.0.2.jar and comes in conflict with asm-2.2.3.jar. If you can use cglib-nodep instead then you will be able to include asm 2.2.3 and it will all work. Ian

Re: New to CXF, Can't return simple DTO, hitting run time exception :-(

2008-11-10 Thread Ian Roberts
rapperHelper.java:276) > ... 19 more You need to add a no-argument constructor to your DTO class (which could be in addition to the two-arg one, it doesn't have to be either/or). Ian -- Ian Roberts | Department of Computer Science [EMAIL PROTECTED] | University of Sheffield, UK

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

2008-10-30 Thread Ian Roberts
igure it separately for every endpoint? Try adding the feature to the bus instead of the client? Ian -- Ian Roberts | Department of Computer Science [EMAIL PROTECTED] | University of Sheffield, UK

Re: Bundling ASM in CXF

2008-10-30 Thread Ian Roberts
om some file in META-INF, and then replacing that file in the shaded version of the JAR, but that seems messier to me than just using the shaded ASM in the first place. I'll stop going on about this now, honest ;-) Ian -- Ian Roberts | Department of Computer Science [EMAIL PROTECTED] | University of Sheffield, UK

Re: Bundling ASM in CXF

2008-10-29 Thread Ian Roberts
o? For reference the ASM licence is http://asm.objectweb.org/license.html. Ian -- Ian Roberts | Department of Computer Science [EMAIL PROTECTED] | University of Sheffield, UK

Re: [JAX-RS]integration with spring+Tomcat

2008-10-29 Thread Ian Roberts
cxf.xml files from your WEB-INF, they don't need to be there as the classpath: URLs will load them directly from inside the relevant JAR files. You don't need to import the http-binding extension, just the jaxrs one. Ian -- Ian Roberts | Department of Computer Science [EMAIL PROTECTED] | University of Sheffield, UK

Re: Bundling ASM in CXF

2008-10-28 Thread Ian Roberts
e jarjar rules file to process the ASM jar as you used for the cxf one. Ian -- Ian Roberts | Department of Computer Science [EMAIL PROTECTED] | University of Sheffield, UK

Re: Bundling ASM in CXF

2008-10-28 Thread Ian Roberts
des of other classes to point to the new locations, I've used it successfully to repackage ASM itself into a different namespace for one of my own projects. Ian -- Ian Roberts | Department of Computer Science [EMAIL PROTECTED] | University of Sheffield, UK

Re: CXF WebServiceContext question

2008-10-22 Thread Ian Roberts
call get() on the Message with the same key you put() into the WSC message context. Ian -- Ian Roberts | Department of Computer Science [EMAIL PROTECTED] | University of Sheffield, UK

Re: jaxws:endpoint vs. jaxws;server

2008-10-17 Thread Ian Roberts
it might now, but it didn't in the version I was using at the time). Ian -- Ian Roberts | Department of Computer Science [EMAIL PROTECTED] | University of Sheffield, UK

Re: Injection error while using both SOAP and RESTful services

2008-10-16 Thread Ian Roberts
meter, not very nice, but it's an option nonetheless... Or just do it through Spring. Either have your impl class implement ServletContextAware or if you don't want to tie it to a Spring interfacen then remove the @Context from the setServletContext method and add a to your RestAmin

Re: is it possible to use CXF without annotations?

2008-10-13 Thread Ian Roberts
ad. Just an aside - you say you're deploying on Java 6, which means you don't have any dependency on CXF jar files. All the annotations you need to make JAX-WS work are in javax.jws and javax.xml.ws/javax.xml.bind, which are included in the Java 6 core. Ian -- Ian Roberts

Re: Fwd: POJO Types not creating in WSDL

2008-10-08 Thread Ian Roberts
" or something like that) with a different targetNamespace containing the port type, messages, schema types, etc. If the POJOs are in yet another namespace then you might end up with the interface WSDL importing a separate xsd file defining those types. If you resolve all the im

Re: Custom HTTP Headers

2008-10-02 Thread Ian Roberts
ll pass your cookie with each request Ian -- Ian Roberts | Department of Computer Science [EMAIL PROTECTED] | University of Sheffield, UK

Re: Custom HTTP Headers

2008-10-02 Thread Ian Roberts
wsdl2java. > > Any help would be appreciated. http://weblogs.java.net/blog/ramapulavarthi/archive/2006/06/maintaining_ses.html explains how to maintain the session in JAX-WS. The blog is written for Glassfish Metro (the Sun RI) but the same approach with the SESSION_MAINTAIN_PROPERTY wo

Re: StreamInterceptor in configuration_interceptor

2008-10-02 Thread Ian Roberts
ture requests. By putting the original stream back at the end the connection could remain open to be re-used by the client. Ian -- Ian Roberts | Department of Computer Science [EMAIL PROTECTED] | University of Sheffield, UK

Re: No bean named 'org.apache.cxf.bus.CXFBusImpl' is defined

2008-10-02 Thread Ian Roberts
ke to migrate to > newer versions of cxf to keep current. That looks like it's expecting the bus="..." to contain the bean name rather than the type. It ought to work without a bus attribute at all, but if it doesn't, try "cxf" (the default name of the Bus bean).

Re: StreamInterceptor in configuration_interceptor

2008-09-30 Thread Ian Roberts
g processedMsg = transform(processingMsg); > > ByteArrayOutputStream encOutput = new ByteArrayOutputStream(); > byte[] date = encryptedMessage.getBytes(); Be very, very careful about character encodings if you're doing this kind of thing... Ian -- Ian Roberts

Re: Supplying contextual information to JAX-WS provider services

2008-09-24 Thread Ian Roberts
ed by CXF, not from Spring. Ian -- Ian Roberts | Department of Computer Science [EMAIL PROTECTED] | University of Sheffield, UK

Re: Supplying contextual information to JAX-WS provider services

2008-09-24 Thread Ian Roberts
ffect? You can inject the WebServiceContext and get the PATH_INFO or the HttpServletRequest out of that. Ian -- Ian Roberts | Department of Computer Science [EMAIL PROTECTED] | University of Sheffield, UK

Re: Deploy non spring CXF servlet on tomcat.

2008-09-23 Thread Ian Roberts
java.lang.NoClassDefFoundError: > javax/xml/ws/soap/MTOM That class (annotation type, actually) is in the JAX-WS API. My guess is that you have a 2.0 version of the API jar rather than the 2.1 version. Ian -- Ian Roberts | Department of Computer Science [EMAIL PROTECTED] | University of Sheffield, UK

Re: Multi instance service.

2008-09-22 Thread Ian Roberts
o scope="request". http://www.nabble.com/Re%3A-Share-object-in-request-scope-on-ws-server-p14674619.html You also need to add the Spring RequestContextListener to your web.xml http://static.springframework.org/spring/docs/2.0.x/reference/beans.html#beans-factory-scopes-other-web-c

Re: Need clarification on cxf-servlet.xml config file.

2008-09-21 Thread Ian Roberts
in web.xml, the results should be identical. contextConfigLocation classpath:META-INF/cxf/cxf.xml classpath:META-INF/cxf/cxf-extension-soap.xml classpath:META-INF/cxf/cxf-servlet.xml WEB-INF/ws-beans.xml Ian -- Ian Roberts | Department of

Re: "Around" interceptor

2008-09-21 Thread Ian Roberts
you might be better off just keeping the start and stop interceptors separate and creating a "feature" (see LoggingFeature for an example) to group them together. That way it's still a single configuration operation to add both interceptors - just add the feature to the bus, server

Re: "Around" interceptor

2008-09-21 Thread Ian Roberts
r { handleMessage(Message m) { Exchange ex = m.getExchange(); long startTime = ex.get("startTime"); // ... } } } You only need to add the TimingInterceptor to your input chain and it will manage the rest for you. Ian -- Ian Roberts | Depart

Re: Shared Interceptors causing error - Broken Encapsulation?

2008-09-11 Thread Ian Roberts
use separate JaxWsProxyFactoryBeans to create the two clients. Ian -- Ian Roberts | Department of Computer Science [EMAIL PROTECTED] | University of Sheffield, UK

Re: Adding JAXB classes in 2.0.x

2008-09-10 Thread Ian Roberts
ypes, only as return types. I don't know if that makes any difference. Ian -- Ian Roberts | Department of Computer Science [EMAIL PROTECTED] | University of Sheffield, UK

Re: Adding JAXB classes in 2.0.x

2008-09-09 Thread Ian Roberts
Class[], so Spring handles the type conversion from the value without needing a FactoryBean to do the work. Note this doesn't work with , but has exactly the same effect, it just works slightly differently under the covers. Ian -- Ian Roberts | Department of Computer S

Re: accessing ServletContext from within @WebMethod

2008-09-09 Thread Ian Roberts
y of your WS methods have been called, use ServletContextAware). @Resource private WebServiceContext ctx; public String webServiceOperation() { ServletContext sctx = ctx.getMessageContext().get(MessageContext.SERVLET_CONTEXT); ... } Ian -- Ian Roberts | Department

Re: Problem with Calendar using Aegis

2008-09-08 Thread Ian Roberts
Ale wrote: > I don't know how to post to JIRA, if you explain me I could post it. https://issues.apache.org/jira/browse/CXF, you need to sign up for an account, log in and then select "create new issue". Ian -- Ian Roberts | Department of Computer Scienc

Re: Beans.xml and SEVERE: Error listenerStart

2008-08-26 Thread Ian Roberts
otLogger line with these two lines, which will make Spring log at debug level and everything else at info level: log4j.rootLogger=INFO, stdout log4j.logger.org.springframework=DEBUG Ian -- Ian Roberts | Department of Computer Science [EMAIL PROTECTED] | University of Sheffield, UK

Re: Using document/literal and rpc/encoded in same web service

2008-08-20 Thread Ian Roberts
quot;shouldUseRpcEncoded", Boolean.TRUE); and in your "out" interceptor: if(Boolean.TRUE.equals(message.getExchange().get("shouldUseRpcEncoded"))) { ... } Ian -- Ian Roberts | Department of Computer Science [EMAIL PROTECTED] | University of Sheffield, UK

Re: Dealing with non-UTF-8 messages

2008-08-20 Thread Ian Roberts
tent type like application/xml then it would be the XML declaration that determines the encoding used. Ian -- Ian Roberts | Department of Computer Science [EMAIL PROTECTED] | University of Sheffield, UK

Re: CXF newbie questions

2008-08-19 Thread Ian Roberts
adapter" to map the interface into a concrete class that JAXB can work with. The java_first_jaxws sample in the latest CXF has an example of how this works. Ian -- Ian Roberts | Department of Computer Science [EMAIL PROTECTED] | University of Sheffield, UK

Re: CXF newbie questions

2008-08-19 Thread Ian Roberts
S implementation built into the 1.6 JRE (which I believe is some version of Glassfish Metro, and uses the Sun HTTP server). Ian -- Ian Roberts | Department of Computer Science [EMAIL PROTECTED] | University of Sheffield, UK

Re: CXF newbie questions

2008-08-19 Thread Ian Roberts
ws-service.html Once you've got the right annotations on your classes it really is as simple as: public static void main(String[] argv) { MyServiceImpl impl = new MyServiceImpl(); Endpoint.publish("http://localhost:9000/MyService";, impl); } Ian -- Ian Roberts |

Re: CXF newbie questions

2008-08-19 Thread Ian Roberts
#x27;re using the simple Endpoint.publish() approach then you probably need to use something like http://commons.apache.org/daemon or http://wrapper.tanukisoftware.org/, though you may be able to get away with just "kill -INT" (maybe registering a shutdown hook if you need to so any processing

Re: Need code check -- JUnit test cases using endpoint.publish()

2008-08-11 Thread Ian Roberts
numbers", resp.toString(), "20"); } @Test public void doubleItWorksForNegativeNumbers() { BigInteger resp = port.doubleIt(new BigInteger("-10")); assertEquals("Double-It not doubling negative numbers", resp.toStr

Re: Logging CXF with Programmatically Created Java Loggers

2008-08-08 Thread Ian Roberts
Shinkan wrote: It's really annoying that it talks about "JDK14LoggerAdapter" ??! I use JDK and JRE 1.5. "JDK14" just means "the java.util.logging infrastructure that was introduced in Java 1.4", it's not saying that you are running 1

Re: http-conf:conduit problem - [Virus checked]

2008-08-08 Thread Ian Roberts
TTPConduit) { HTTPClientPolicy policy = ((HTTPConduit)conduit).getClient(); if(policy == null) { policy = new HTTPClientPolicy(); ((HTTPConduit)conduit).setClient(policy); } // disable chunking policy.setAllowChunking(false); } Ian -- I

Re: Re : Asynchronous Request Reply MEP - nobody interested ?

2008-08-05 Thread Ian Roberts
, which are both doable in the Spring configuration (note I haven't tried this myself). Ian -- Ian Roberts | Department of Computer Science [EMAIL PROTECTED] | University of Sheffield, UK

Re: Just to be sure about Gzip

2008-08-04 Thread Ian Roberts
han the interceptors, but for the client side CXF needs to do the zipping and setting of all the relevant HTTP headers itself. Before I upgraded the interceptors to work on the server side as well as the client I used to use http://sourceforge.net/projects/pjl-comp-filter in my web.xml.

Re: Somewhat OT: Data binding recommendations

2008-08-04 Thread Ian Roberts
r someone jump in to argue the case for JAXB though. JAXB supports the schema-first style as well. CXF uses this capability for some of the Spring configuration classes (e.g. HTTPClientPolicy) which are generated from the schemas at build time. Ian -- Ian Roberts | Department o

Re: Just to be sure about Gzip

2008-08-01 Thread Ian Roberts
st be able to apply the patch from the JIRA issue directly onto the 2.0.x source code (I originally wrote the patch against the 2.0 branch as that's what I use). Ian -- Ian Roberts | Department of Computer Science [EMAIL PROTECTED] | University of Sheffield, UK

Re: Resource injection fails for an AOP scoped proxy bean

2008-07-24 Thread Ian Roberts
pass it as a parameter to the methods of xyzSessionState? Somewhat ugly, I admit... Ian -- Ian Roberts | Department of Computer Science [EMAIL PROTECTED] | University of Sheffield, UK

Re: Resource injection fails for an AOP scoped proxy bean

2008-07-24 Thread Ian Roberts
appreciated Rather than session-scoping the service bean, an alternative would be to move the data that needs to be scoped at the session level out into another class and keep your service bean singleton, i.e.: scope="session"> Ian -- Ian Roberts | Departmen

Re: Hibernate Session during CXF call

2008-07-19 Thread Ian Roberts
picks up the Session opened by the Interceptor? As long as your HibernateTemplate isn't set up to alwaysUseNewSession then yes, the template will pick up the interceptor's session. Ian -- Ian Roberts | Department of Computer Science [EMAIL PROTECTED] | University of Sheffield, UK

Re: Hibernate Session during CXF call

2008-07-18 Thread Ian Roberts
Ian Roberts wrote: class="org.springframework.orm.hibernate.HibernateInterceptor"> Sorry, that probably wants to be orm.hibernate3 instead of orm.hibernate... Ian -- Ian Roberts | Department of Computer Science [EMAIL PROTECTED] | University of Sheffield, UK

Re: Hibernate Session during CXF call

2008-07-18 Thread Ian Roberts
implement? Spring's HibernateInterceptor should do what you're after: class="org.springframework.orm.hibernate.HibernateInterceptor"> ... implementorClass="my.service.Impl" ... /> Ian -- Ian Roberts | D

Re: getting the ip address in the action method

2008-07-16 Thread Ian Roberts
"my.package.ClientIP", ipAddress); In your implementation class, add a @Resource private WebServiceContext wsCtx; and you should then be able to access the message property through that: wsCtx.getMessageContext().get("my.package.ClientIP") Ian -- Ian Roberts | Departm

Re: Best practice for paused operations

2008-07-14 Thread Ian Roberts
hen it has finished. There's a CXF sample showing this too: http://svn.apache.org/viewvc/cxf/trunk/distribution/src/main/release/samples/ws_addressing/ Ian -- Ian Roberts | Department of Computer Science [EMAIL PROTECTED] | University of Sheffield, UK

Re: AW: AW: AW: Error after upgrading to jdk 1.6.0_06

2008-07-08 Thread Ian Roberts
that GATE (and in particular my class above) is released under the LGPL, so I don't know what's the legal position on merging code based on it into an Apache project? Someone else starting from the Tomcat codebase rather than mine wouldn't have that problem. Ian

Re: JAX-WS - multiple services in separate jars

2008-07-08 Thread Ian Roberts
directly into applicationContext.xml. Ian -- Ian Roberts | Department of Computer Science [EMAIL PROTECTED] | University of Sheffield, UK

Re: View SOAP Messages

2008-06-13 Thread Ian Roberts
8999 (e.g. with system properties http.proxyHost=localhost and http.proxyPort=8999). That way you don't have to chang the target URL that the client is calling. Ian -- Ian Roberts | Department of Computer Science [EMAIL PROTECTED] | University of Sheffield, UK

Re: WSDLToJava Error : Non unique body parts! In a port, operations must have unique operation signaure

2008-06-10 Thread Ian Roberts
For WS-I BP, the element names have to be different for each operation - CXF only has the element name and namespace to decide which operation to invoke. But you could define a named complexType and share it between all the elements: etc. etc. Ian -- Ian Roberts

Re: Does MTOM keep filename?

2008-06-10 Thread Ian Roberts
, in which case there's nowhere to put a file name. The other end shouldn't see any difference at the infoset level whether the item is transferred inline or via a MIME part. Ian -- Ian Roberts | Department of Computer Science [EMAIL PROTECTED] | University of Sheffield, UK

Re: JAX-RS specifying multiple values in a pathparam

2008-06-09 Thread Ian Roberts
keeping @Path("/{id}") mapping to a String parameter. However, a path of /123;456 resulted in the string id beging set to "123" only. Something is slicing up the id at ";". Probably the servlet container. I know tomcat uses a ; for session cookies (http://

Re: Marshalling arrays:

2008-06-04 Thread Ian Roberts
e adapter to use your wrapper object in place of String[]. Neither option is particularly elegant :-( Ian -- Ian Roberts | Department of Computer Science [EMAIL PROTECTED] | University of Sheffield, UK

Re: CXF delivers transformed WSDL on ?wsdl Request

2008-06-03 Thread Ian Roberts
Maurer Uwe wrote: Maybe the path is case sensitive - try WEB-INF instead of Web-inf? Ian -- Ian Roberts | Department of Computer Science [EMAIL PROTECTED] | University of Sheffield, UK

Re: Did something change in the spring configuration options for jaxws:endpoint ?

2008-05-30 Thread Ian Roberts
r, so the bus definition (in one of the imported files) needs to be processed before the jaxws:endpoint. I've been meaning to submit a JIRA about this but never got around to it, this may be the prod I needed... https://issues.apache.org/jira/browse/CXF-1619 Ian -- I

Re: Did something change in the spring configuration options for jaxws:endpoint ?

2008-05-29 Thread Ian Roberts
cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd";> http://localhost:8080/HelloWorld"; /> -- Ian Roberts | Department of Computer Science [EMAIL PROTECTED] | University of Sheffield, UK

Re: Using AOP in CXF service impl

2008-05-25 Thread Ian Roberts
le instance of MyServiceImpl you could always store the impl object in a field of the AuthenticationChecker, then you can always get at the "real" object even if Spring passes a proxy to the before method. Ian -- Ian Roberts | Department of Computer Science [EMAIL PROTECTED] | University of Sheffield, UK

Bundling ASM in CXF

2008-05-08 Thread Ian Roberts
) why CXF couldn't do this? It would solve the dependency hell at a stroke. If the consensus is that it would be legal then I'm happy to try working on a patch. [1] http://asm.objectweb.org/doc/faq.html#Q15 [2] http://asm.objectweb.org/license.html Ian -- Ian Roberts

Re: cxf and abstract object transformation

2008-05-06 Thread Ian Roberts
er or return types, you need to tell the JAXB context about the subclasses explicitly. http://www.nabble.com/problem-serializing-class-hierarchy-tt16795656.html With CXF 2.1 you can just use @XmlSeeAlso, but it's a bit more complicated with 2.0.x. Ian -- Ian Roberts | Dep

Re: Using CXF In Existing Spring Context

2008-05-04 Thread Ian Roberts
http://static.springframework.org/spring/docs/2.0.x/reference/beans.html#context-create Also, do you have the required imports in your Spring context file? Ian -- Ian Roberts | Department of Computer Science [EMAIL PROTECTED] | University of Sheffield, UK

Re: overloaded operation names in JAX-WS

2008-05-01 Thread Ian Roberts
o generate code from the WSDL you would get public Groups getGroupsByPattern(String arg0), of course. -- Ian Roberts | Department of Computer Science [EMAIL PROTECTED] | University of Sheffield, UK

Re: Returning an array of errors

2008-04-30 Thread Ian Roberts
of simple type values - that's why it's splitting your string on whitespace. Ian -- Ian Roberts | Department of Computer Science [EMAIL PROTECTED] | University of Sheffield, UK

  1   2   >