Re: [U] RE: No Service found

2007-08-30 Thread FrankieHuang
Hi Willem, I got the "No service was found." at url "http://localhost/website2/ws/HelloWorld/services"; and "http://localhost/website2/ws/services";. and I try to access this service via a client code, I got a "Fault":

Re: [U] RE: No Service found

2007-08-30 Thread Willem Jiang
Hi Frankie Current CXF does not support to get the service list with the "?serviceList", I think you can get the service list with this url http://localhost/website2/ws/HelloWorld/services Willem. FrankieHuang wrote: Hi Willem2, I got the similar question, but can not resolve it accordd

Re: [U] RE: No Service found

2007-08-30 Thread FrankieHuang
Hi Willem2, I got the similar question, but can not resolve it accordding at the answer above. I saw the info in Tomcat 6.0 console: 2007-8-31 12:10:32 org.apache.cxf.service.factory.ReflectionServiceFactoryBean buildServiceFromClass Info: Creating Service {http://ws.accounts.hiany.com/}Hello

Re: Client question

2007-08-30 Thread Willem Jiang
Hi, If you use JAXWS API , you can using the add port to add the other port for your client to access. URL wsdlURL = MyService.class.getClassLoader.getResource("service2.wsdl"); QName serviceName = new QName("urn:service2", "MyService"); QName portName = new QName("urn:service2", "ServicePort

Re: Simple front end and JAB customization

2007-08-30 Thread James Mao
Yes, through jaxb customization http://cwiki.apache.org/confluence/display/CXF20DOC/Tools James Jacob Marcus wrote: Hi, Is there any way to customize JAXB type mapping when using the simple front end? I would like to have the java.util.Date for the xsd:dateTime. Thanks, Jacob

Re: Client question

2007-08-30 Thread Freeman Fang
Hi Joe, You can create client from JaxWsProxyFactoryBean and set a random url, the code is as follows JaxWsProxyFactoryBean proxyFactory = new JaxWsProxyFactoryBean(); poxyFactory.setServiceClass(ServicePort.class); proxyFactory.setAddress("theUrlyouwant"); ServicePor

Re: Obtaining source address and operation name

2007-08-30 Thread Willem Jiang
Hi , I just answer the get source(IP) address question, because Jervis has showed your the code how to get the wsdl operation. You can get the client request object from the message context. Then you can get the client address from the request. Here are the code snaps HttpServletRequest req

Re: wsdl2java and faults

2007-08-30 Thread Jim Ma
Hi Benson , This class is generated as per Jaxws spec 2.5 . I think the string message in constructor is useful if there is no message in X to tell us what the fault is or where throw this fault . The below is the sample we use the message to indicate where cause this error : thro

Client question

2007-08-30 Thread Joe Sunday
Sorry if this one is easy, but I can't seem to find it... I've got an interface I generated from a local wsdl, and the wsdl files are both available on my classpath: http://schemas.xmlsoap.org/wsdl/"; xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; xmlns:interface="urn:service2">

RE: wsdl2java and faults

2007-08-30 Thread Benson Margulies
I was hoping for one more constructor on the exception object FaultException(FaultObject, Throwable); If that's not consistent with the standard, then I won't waste everyone's time with a JIRA. It would never be something important. > -Original Message- > From: James Mao [mailto:[EMAIL

Re: wsdl2java and faults

2007-08-30 Thread James Mao
Hi, The artifacts generated by wsdl2java is JAX-WS 2.0 compliant, so everything generated by the tool is defined in the spec. Not really know the exact request here. Do you mind send your sample wsdl, and tell us what kind of artifacts you're looking for If there's bug to fix or improvements

RE: Obtaining source address and operation name

2007-08-30 Thread Liu, Jervis
these properties are stored in Exchange, not in Message. following should work for you: Object operation = message.getExchange().get( Message.WSDL_OPERATION ); Object port = message.getExchange().get( Message.WSDL_PORT ); Object service = message.getExchange().get( Message.WSDL_SERVICE ); Object

followup on threads

2007-08-30 Thread Benson Margulies
This is perhaps really a spring question, but the readers of this list must have hit this before. SEI classes are reentrant. CXF services are frequently deployed in Spring and constructed with Spring-managed beans. Spring doesn't seem to offer much in the multithreading department.

Re: Null Pointer in WSDLServiceFactory

2007-08-30 Thread Willem Jiang
Hi , It looks like the WSDLServiceFactory can 't get the WSDLManager from the bus when you try to create a service model for the client. public WSDLServiceFactory(Bus b, String url, QName sn) { setBus(b); try { // use wsdl manager to parse wsdl or get cached definitio

Re: Obtaining source address and operation name

2007-08-30 Thread James Royalty
Hi Jervis, As I test, I was doing: Object operation = message.get( Message.WSDL_OPERATION ); Object port = message.get( Message.WSDL_PORT ); Object service = message.get( Message.WSDL_SERVICE ); Object context = message.get( Message.INVOCATION_CONTEXT ); Object endpointAddress = message.get( Mes

RE: Obtaining source address and operation name

2007-08-30 Thread Liu, Jervis
Hi What code did you use to retrieve WSDL_OPERATION, WSDL_PORT etc? Thanks, Jervis > -Original Message- > From: James Royalty [mailto:[EMAIL PROTECTED] > Sent: 2007?8?31? 8:28 > To: cxf-user@incubator.apache.org > Subject: Obtaining source address and operation name > > > Hi, > > I'm t

Obtaining source address and operation name

2007-08-30 Thread James Royalty
Hi, I'm trying to write an "in" interceptor, using org.apache.cxf.interceptor.LoggingInInterceptor as a starting point. I'm trying to log - the source (IP) address that originate the (SOAP) Message; - the SOAP operation that was invoked. Any hints on how I can obtain either of these? I've

Null Pointer in WSDLServiceFactory

2007-08-30 Thread green804
I have this code working in my development environment, but when I employ to our test environment I'm getting a null pointer. I'm not sure why this is happening. Can someone give me any pointers? I'm really desperate to find a solution. java.lang.NullPointerException at org.apache.cxf.

basic auth question

2007-08-30 Thread Chris Campbell
On client I have: java.util.Map context = ((javax.xml.ws.BindingProvider)client).getRequestContext(); context.put("username", "chris"); context.put("password", "foobar"); How do I access that context on the server side in my interceptor? I cannot seem to find where it is in the Message ob

wsdl2java and faults

2007-08-30 Thread Benson Margulies
The objects generated by wsdl2java for faults seem unnecessarily clumsy. I get a POJO + annotations that corresponds to the fault type. Call it 'X'. Then I get XFault. To construct an XFault over a Throwable, I need to provide a message --- (String message, X x, Throwable cause)

basic auth with JaxWsProxyFactoryBean

2007-08-30 Thread Chris Campbell
I want to setup basic auth, using an AuthInterceptor on the server side, as discussed in another thread. I am using JaxWsProxyFactoryBean on client side, simple frontend style, but it is unclear to me how to put the AuthorizationPolicy object into the request.

RE: Method level authentication?

2007-08-30 Thread Van Nguyen
Thanks Dan. I noticed that I was putting in the password twice... but upon changing it.. AuthorizationPolicy is still null (the opName is working using your workaround). Here is a tcpdump: POST /prototype_web/services/ProductSearchWebService HTTP/1.1 Content-Type: text/xml; charset=UTF-8 Authori

Re: SOAPBinding Use.ENCODED ?

2007-08-30 Thread Chris Campbell
I followed the user guide, my implementation is pretty simple so far, but it does what I need. http://cwiki.apache.org/CXF20DOC/mtom.html Skip down to the java first part. I found that I got errors if I used the JAXB annotations on the payload class, but found they were not necessary. Otherwise,

Re: How to specify serviceName and portName in jaxws:endpoint

2007-08-30 Thread Andrew Dinn
Thanks very much. That worked a treat. regards, Andrew Dinn --- JBoss, a Division of Red Hat Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in UK and Wales under Company Registration No. 3798903 Direc

Re: Schema for namespace 'http://localhost/Service already contains type 'foo

2007-08-30 Thread Joe Sunday
As an update to this after spending some more time trying to unwind it... It appears the problem was actually due to a method in one of my interfaces: Foo foo(...) JAXB would collide the Foo type and the foo method. Setting up an Aegis binding instead seems to have cleared it up. --Joe

Simple front end and JAB customization

2007-08-30 Thread Jacob Marcus
Hi, Is there any way to customize JAXB type mapping when using the simple front end? I would like to have the java.util.Date for the xsd:dateTime. Thanks, Jacob

RE: thread safety

2007-08-30 Thread Jiang, Ning \(Willem\)
Yes , now the all implementor class need to be reentrant. CXF does not support the thread safe call for implementor method. Willem. -Original Message- From: Benson Margulies [mailto:[EMAIL PROTECTED] Sent: Thu 8/30/2007 19:45 To: cxf-user@incubator.apache.org Subject: thread safety The

RE: How to specify serviceName and portName in jaxws:endpoint

2007-08-30 Thread Jiang, Ning \(Willem\)
Hi If you want to specify a QName in the spring, you could do it like this. http://localhost:8080/test"; xmlns:e="http://service.jaxws.cxf.apache.org/endpoint"; xmlns:s="http://service.jaxws.cxf.apache.org/service"/> Cheers, Willem. -Original Message- From: Andrew Dinn [mailt

Re: Problems with DI and CXF

2007-08-30 Thread Willem2
Hi, If you use the 's implementor attribute to describe the implementor which just a ref bean, you need to use the # as the prefix of the bean's name. So in your case, the should look like this. or Willem. Dominique.Ronde wrote: > > Dear all, > > At the moment I havew m

RE: WSS4JInInterceptor configuration

2007-08-30 Thread dmadunic
Colm thx, this solves problem of PasswordCallback - but what about users? How do i specify 2 users, one for Signature and another for UsernameToken action? This can happen in scenario where SOAP client is signing all of the requests, but information sent in UsernameToken should belong to the user

Re: Schema-First Development with CXF

2007-08-30 Thread Eric Miles
Any feedback on this question? On Tue, 2007-08-28 at 10:02 -0400, Eric Miles wrote: > Dan, > > On the heels of the trouble I'm having with the suggestion below, I > decided to give the 2.1 snapshot version a try with the fixed Spring > namespace support. This actually does register my service a

RE: WS-Security and CXF

2007-08-30 Thread dmadunic
Colm thx for the code snippet: > Map properties = ... > properties.put(WSHandlerConstants.PW_CALLBACK_REF, > callbackHandlerObject); > WSS4JInInterceptor inHandler = new WSS4JInInterceptor(properties); now i managed to configure it through spring with no problem at all, here is an example for al

RE: WSS4JInInterceptor configuration

2007-08-30 Thread O hEigeartaigh, Colm
Hi, > The problem is because it seems to me that i need to configure to users - > one for UsernameToken and another to be used as alias for Signing and also > two PasswordCallback classes? You could use a single PasswordCallback class, and retrieve the appropriate password by examining the getUs

RE: WS-Security and CXF

2007-08-30 Thread O hEigeartaigh, Colm
Hi, Some comments on your comments... > So, first, what do you think would be proper behavioure of CallbackHandler > in case of authentication failure? In the case of authentication failure, I guess you could throw a org.apache.ws.security.WSSecurityException in the handle method of your Callba

Re: WSS4JInInterceptor configuration

2007-08-30 Thread dmadunic
Thx a lot, so far i have managed to successfully configure both Signature and UsernameToken action, both combined with timestamp. Following are my beans: 1) UsernameToken Timestamp combination:

How to specify serviceName and portName in jaxws:endpoint

2007-08-30 Thread Andrew Dinn
Hi, In the cxf documentation 'Configuring an endpoint' it is stated that the endpoint servicename can be specified using (what appears to be) a QName literal: serviceName The service name this service is implementing. In the format of "{NAMESPACE}SERVICE_NAME". So I tried inserting s

thread safety

2007-08-30 Thread Benson Margulies
The question about thread pools leads me to ask a dumb question: definitionally, are SEI classes required to be reentrant? It seems from this thread that the default behavior includes entry in multiple jetty threads.

Re: WSS4JInInterceptor configuration

2007-08-30 Thread Fred Dushin
See yesterday's post to this forum on this subject for an example of multiple actions: http://tinyurl.com/253phq For signing, you need to add the Signature action, along with a specification of the key material you need. See the CXF WS-Security system test for an example, e.g., http://t

Problems with DI and CXF

2007-08-30 Thread Dominique.Ronde
Dear all, At the moment I havew my first try with CXF. Until now In just work with Xfire. I wrote a simple Serverapplication in a Spring context. There is a Interface-Class and a Implementation of this Interface-class. For the methods in the implementation I need somd injected depencies out of the

Re: SOAPBinding Use.ENCODED ?

2007-08-30 Thread trichter
Hi Chris and others, thanks for the bunch of replies. I read up the WS-I document on http://www.ws-i.org/Profiles/BasicProfile-1.0-2004-04-16.html a bit, and found R1007-R1007 stating that encoded is not the preferred way (anymore). @Chris As for using MTOM, what were the other parameters (style