Confused about "enableAsyncMapping" and namespaces

2010-11-05 Thread KARR, DAVID (ATTSI)
I have a bindings file that's working fine for generating synchronous calls. I now need to configure one that I can call async. I looked up the doc page that describes how to do this, and I found some issues with namespaces to be confusing. The errors I get when I run it confirm that I'm confuse

Re: DynamicClient: Trouble getting Classobjects for Parameters using document/literal wrapped Webservices

2010-11-05 Thread Martin Loeffelholz
You are right. It seems I got a little bit to entangled in the complicated ways of the webservice I'm using as testcase. Their name for the parameter got me into thinking it was the wrapper and not already the parameter. Anyway, your comment made also other things clearer. Thanks very much. Am

Gmail...

2010-11-05 Thread Robert Liguori
For those of you who aren't aware of the new feature in GMail... the mail program groups together mail message from the same thread. This is a reallly nice feature, especially with mailing lists. -- Robert

Re: Authentication in cxf and getting the full DN into the Principal

2010-11-05 Thread Jason Pell
Hi, To test your approach I overrode the protected SecurityContext createSecurityContext(final Principal p, final Subject subject) { in my interceptor that extends AbstractUsernameTokenInInterceptor @Override protected SecurityContext createSecurityContext(final Principal p, final Subjec

also

2010-11-05 Thread Christopher Richmond
I forgot to mention, I am not and cannot use Spring at all. Thanks

CXF annotations for other data formats

2010-11-05 Thread Christopher Richmond
Is it possible via CXF and it’s associated tools, to create one service interface class with one implementation class and simply annotate that interface so that it can be accessed via standard SOAP/WSDl as well as REST(XML/JSON) all by just annotating the same interface class? Thanks…

Re: Why does LoggingOutInterceptor use callback, but LoggingInInterceptor does not?

2010-11-05 Thread Jason Pell
Hi, My understanding of this is that you have to get in early in the Out interceptor chain before any other interceptor has started writing to the OuputStream. You swap the original output stream with a cached one and none of the other interceptors are the wiser. You then come back in the callba

Re: Authentication in cxf and getting the full DN into the Principal

2010-11-05 Thread Jason Pell
Also since subject.getPrincipals returns a set, would have to do something like: List principals = new ArrayList(subject.getPrincipals()); On Sat, Nov 6, 2010 at 8:48 AM, Jason Pell wrote: > Hi, > > I think that sounds ok.  My experience is that often the final > principal will differ from the

Re: Authentication in cxf and getting the full DN into the Principal

2010-11-05 Thread Jason Pell
Hi, I think that sounds ok.  My experience is that often the final principal will differ from the original which is why ldap has a user dn search attribute to find the actual user principal based on the initial one. Also while I have your attention.  I was confused as to why the changes to WSS4JI

Envelope has xmlns attributes for EVERY schema defined in WSDL, even if not referenced

2010-11-05 Thread KARR, DAVID (ATTSI)
I have an existing service client that uses JAXB, with an ad hoc Soap infrastructure. When I marshal the envelope in the existing code, I get xmlns attributes for all the namespaces that are actually used in the envelope, which isn't many. It only produces one application-specific one. Our WSDL

Re: org.apache.cxf.BusException: No DestinationFactory was found

2010-11-05 Thread firasarabo
anybody else has an idea? -- View this message in context: http://cxf.547215.n5.nabble.com/org-apache-cxf-BusException-No-DestinationFactory-was-found-tp3252224p3252362.html Sent from the cxf-user mailing list archive at Nabble.com.

Re: org.apache.cxf.BusException: No DestinationFactory was found

2010-11-05 Thread Sergey Beryozkin
I haven't done custom extensions but I'm just seeing in the source tree that extensions located in META-INF/cxf have matching cxf.extension files pointing to these extensions cheers, Sergey On Fri, Nov 5, 2010 at 6:40 PM, firasarabo wrote: > > Hi, > > not sure what do you mean, I already ha

Re: org.apache.cxf.BusException: No DestinationFactory was found

2010-11-05 Thread firasarabo
Hi, not sure what do you mean, I already have service-spring-context.xml in the application bundle which contains , teh applicatio is able to see and read cxf-extension-interact.xml file. Thanks, Firas -- View this message in context: http://cxf.547215.n5.nabble.com/org-apache-cxf-BusException

Re: org.apache.cxf.BusException: No DestinationFactory was found

2010-11-05 Thread Sergey Beryozkin
May be you also need to add a cxf.extension file to your application jar/bundle which would contain the line META-INF/cxf/cxf-extension-interact.xml cheers, Sergey On Fri, Nov 5, 2010 at 5:59 PM, firasarabo wrote: > > not sure why my post didn't show the xml files so I am posting them again >

Re: Authentication in cxf and getting the full DN into the Principal

2010-11-05 Thread Sergey Beryozkin
Hi On Fri, Nov 5, 2010 at 2:21 PM, Jason Pell wrote: > Hi, > > I am struggling with configuring CXF and spring security. I am running the > 2.3.1-SNAPSHOT which has some improvements to the WSS4JInInterceptor. So > basically what I have is a JAX-WS service using ws-security to authenticate > u

Re: REST to WS

2010-11-05 Thread Sergey Beryozkin
Hi On Fri, Nov 5, 2010 at 12:40 PM, Kazi, Iftekhar wrote: > Hi, > > I need to create a Web Service Gateway, that converts calls from an > existing REST WS to a SOAP WS. Also, need the ability to transform the XML > using XSLT. Any thoughts/ideas ? Thanks > While Camel can definitely be used,

Re: how to turn on schema validation for NON SPRING CXF

2010-11-05 Thread Sergey Beryozkin
Hi On Fri, Nov 5, 2010 at 10:08 AM, jherry wrote: > > I'm implementing the vCloud API so there is multiple XML formats. Each > service can return and accept a specific XML format. > My project is a bit complex to post it here, i need to work on a smaller > (minimalist) one to understand how ever

Re: org.apache.cxf.BusException: No DestinationFactory was found

2010-11-05 Thread firasarabo
not sure why my post didn't show the xml files so I am posting them again here 1- cxf-extension-interact.xml http://www.springframework.org/schema/beans"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:foo="http://cxf.apache.org/configuration/foo"; xsi:schem

Re: [newbie question] CXFNonSpringServlet and ws-security

2010-11-05 Thread Bayu Anggorojati
Hi Dan, Thank you for your highlight. I checked the applicationContext.xml, and there is these lines of codes for configuring CXF web service: implementor="#queryOperationsWebService" address="/" /> implementor="#queryOperationsWebService" address="local://query" /> lazy-init="false"

Re: HTTP POST in restful_http_binding on the client side

2010-11-05 Thread Sergey Beryozkin
Hi On Fri, Nov 5, 2010 at 10:02 AM, fristaila wrote: > > I've walked through the restful_http_binding CXF example. > On the client side there is an example on how to fire the GET on the server > side. > WHat can I do to invoke the methods for the other HTTP methods? > Do I have to rely upon an H

Why does LoggingOutInterceptor use callback, but LoggingInInterceptor does not?

2010-11-05 Thread KARR, DAVID (ATTSI)
I've concluded that writing a custom logging interceptor requires writing it from scratch, as opposed to trying to use the Logging{Out,In}Interceptor as a base class or assuming it was executed previously in the chain. I've tried both of those approaches, and they reach dead ends. So, I'm startin

Re: Can an endpoint return/create other "endpoints", of some sort?

2010-11-05 Thread Daniel Kulp
Kind of yes, kind of no. The "web service" way to do this is to have the method return a javax.xml.ws.wsaddressing.W3CEndpointReference from the service and then pass that into the appropriate getPort calls for the XManagerService object or similar. In the kits, there is the corba/bank_ws_a

Re: [newbie question] CXFNonSpringServlet and ws-security

2010-11-05 Thread Daniel Kulp
Well, the main issue is: > [org.apache.cxf.transport.local.LocalTransportFactory:106] - Creating > destination for address / All the destinations that are being created are on the LocalTransport, not the http stuff. Thus, it wouldn't be available on the servlet stuff. I would check the conf

Re: Obtain MessageContext in OSGi environment

2010-11-05 Thread Raughan
That's is strange. Well thanks for the help. -- View this message in context: http://cxf.547215.n5.nabble.com/Obtain-MessageContext-in-OSGi-environment-tp3250459p3252119.html Sent from the cxf-user mailing list archive at Nabble.com.

Re: Obtain MessageContext in OSGi environment

2010-11-05 Thread Daniel Kulp
On Friday 05 November 2010 11:29:21 am Raughan wrote: > Thanks Daniel, PhaseInterceptorChain worked. > > You mentioned "in theory" below. Are there any pitfalls I should be aware > of? No. I'm jsut surprised one works and the other doesn't. They are both implemented via ThreadLocal's, so if O

Re: HTTP binding

2010-11-05 Thread Sergey Beryozkin
Hi On Thu, Nov 4, 2010 at 8:28 PM, Christopher Richmond < crichm...@referentia.com> wrote: > Hello, > > > > I noticed that there is a note on the project site stating that HTTP > binding > will be removed from CXF at some point in the future. Is this required to > employ REST style web services

Re: Corruption of HashMap with CXF when multiple requests in parallel?

2010-11-05 Thread Daniel Kulp
Honestly, I'm surprised this works at all. HashMap is not a type supported by JAX-WS/JAXB really at all. If you grabthe wsdl (?wsdl on the endpoint), you would see that for those types, they are empty sequences and thus should not have any ability to transfer data. If you use a very recent

Re: Obtain MessageContext in OSGi environment

2010-11-05 Thread Raughan
Thanks Daniel, PhaseInterceptorChain worked. You mentioned "in theory" below. Are there any pitfalls I should be aware of? -- View this message in context: http://cxf.547215.n5.nabble.com/Obtain-MessageContext-in-OSGi-environment-tp3250459p3251999.html Sent from the cxf-user mailing list archiv

Authentication in cxf and getting the full DN into the Principal

2010-11-05 Thread Jason Pell
Hi, I am struggling with configuring CXF and spring security. I am running the 2.3.1-SNAPSHOT which has some improvements to the WSS4JInInterceptor. So basically what I have is a JAX-WS service using ws-security to authenticate using username password token. The username is the uid= of the DN o

Re: [newbie question] CXFNonSpringServlet and ws-security

2010-11-05 Thread Bayu Anggorojati
Hi Dan, I just want to add my previous post. I found somewhere in this forum, almost the same problem but in different context. Someone said that there might be jax-ws conflict. I don't really know what might caused the conflict, but from the previous log that I sent out, I found the followin

Re: REST to WS

2010-11-05 Thread Bruno Dusausoy
On Fri, 5 Nov 2010 09:12:45 -0400, Benson Margulies wrote: > Only the obvious: write the code. You could see if, I dunno, Mule ESB > or ServiceMix has some trickery for this. > I don't know if that's an option but maybe you could look at Apache Camel[1]: after reading what you need it *could* be

Re: REST to WS

2010-11-05 Thread Benson Margulies
Only the obvious: write the code. You could see if, I dunno, Mule ESB or ServiceMix has some trickery for this. On Fri, Nov 5, 2010 at 8:40 AM, Kazi, Iftekhar wrote: > Hi, > >   I need to create a Web Service Gateway, that converts calls from an > existing REST WS to a SOAP WS. Also, need the ab

REST to WS

2010-11-05 Thread Kazi, Iftekhar
Hi, I need to create a Web Service Gateway, that converts calls from an existing REST WS to a SOAP WS. Also, need the ability to transform the XML using XSLT. Any thoughts/ideas ? Thanks

Re: Not schema generated for object.

2010-11-05 Thread Daniel Kulp
On Friday 05 November 2010 4:13:59 am Fernando Avalos García wrote: > Hi Daniel, > > Thanks for your response, actually I found the problem but I have a > question. > > Why those urls get different files? > > This doesn't have the schema. > http://localhost:8080/pstWar/EmployeeService?wsd > > T

Re: [newbie question] CXFNonSpringServlet and ws-security

2010-11-05 Thread Bayu Anggorojati
Hi Dan, Here is the log at the start up, but it is very huge: ### INFO (2010-11-05 11:51:36,153 [org.fosstrak.epcis.repository.RepositoryContextListener:76] - Starting Fosstrak EPCIS Repository application INFO (2010-11-

Re: how to turn on schema validation for NON SPRING CXF

2010-11-05 Thread jherry
I'm implementing the vCloud API so there is multiple XML formats. Each service can return and accept a specific XML format. My project is a bit complex to post it here, i need to work on a smaller (minimalist) one to understand how everything work. Thank you for your help, i will come back to this

HTTP POST in restful_http_binding on the client side

2010-11-05 Thread fristaila
I've walked through the restful_http_binding CXF example. On the client side there is an example on how to fire the GET on the server side. WHat can I do to invoke the methods for the other HTTP methods? Do I have to rely upon an HTTP client to do it (for example Apache HTTP client) or there is so

RE: Not schema generated for object.

2010-11-05 Thread Fernando Avalos García
Hi Daniel, Thanks for your response, actually I found the problem but I have a question. Why those urls get different files? This doesn't have the schema. http://localhost:8080/pstWar/EmployeeService?wsd This one has the schema on it. http://localhost:8080/pstWar/EmployeeService?wsdl=EmployeeS

Can an endpoint return/create other "endpoints", of some sort?

2010-11-05 Thread Jimi Hullegård
Hi, I guess my subject doesn't make much sence, but I'm not sure how to describe what I want in common webservice/CXF terms, so I guess I just try to describe what I want in more layman terms: If I have a service class of some sort, that implements the interface MySimpleManager, that has just