Re: How to set soapAction header in Dispatch API?

2010-01-11 Thread chengy
thank you! I want to know is ws-security,ws-rm make effective while using Dispatch API?I have to make a framework to call webservice,users can config the call around wsdl description.While using static client model,It's possable to build a jar from wsdl,but I think mapping from wsdl to class name

Re: Why cxf use XMLBindingFactory,but not HttpBindingFactory?

2010-01-11 Thread chengy
dkulp,thank you very much. chengy wrote: > > Service > Description:http://www.webxml.com.cn/WebServices/RandomFontsWebService.asmx?wsdl > > My code like this: > > URL url = new > URL("http://www.webxml.com.cn/WebServices/RandomFontsWebService.asmx?wsdl";); > QName s = new QName("http://WebXml

Re: CXF & Spring & Custom Transport Setup

2010-01-11 Thread Daniel Kulp
On Mon January 11 2010 3:20:10 am Coder One wrote: > I went through the links provided and the JMS transport links below, but I > am still hazy on how in Spring do I choose to use my custom Conduit and > custom Destination. That is, where do I tell CXF to invoke my custom > transport factory to

Re: Why cannt get correct response?

2010-01-11 Thread Daniel Kulp
Use the SOAP binding.The HttpGet stuff is not really supported by CXF at all. Dan On Sat January 9 2010 7:49:11 am chengy wrote: > Service > Description:http://www.webxml.com.cn/WebServices/RandomFontsWebService.asmx > ?wsdl > > My code like this: > > URL url = new > URL("http://www.webx

Re: How to set soapAction header in Dispatch API?

2010-01-11 Thread Daniel Kulp
I'm pretty sure you would need to do: dispatch.getRequestContext().put( BindingProvider.SOAPACTION_URI_PROPERTY, "theAction") Dan On Mon January 11 2010 10:09:36 am chengy wrote: > Cxf set soapAction in SoapPreProtocolOutInterceptor: > BindingOperationInfo boi = > message.getExchange

SSL with DOSGi...

2010-01-11 Thread Gpinkham
Did a quick search thru the mailing list and didn't quite see the answer.. Forgive me if I missed it but.. We are using CXF DOSGi (1.0) and just last week started use SSL.. Our Flex front end is retrieving the WSDL from the server and it contains HTTP for the end point location.. Is there a w

Re: Large Resultsets

2010-01-11 Thread Daniel Kulp
On Fri January 8 2010 10:48:55 am Suneet Shah wrote: > Hello: > > How are people dealing with large resultsets that are returned by a > service operation? I am finding that calls timeout (between my spring > controller and cxf based service). > Is there something that needs to be changed in config

How to have a super class of the resource class use CXF annotations?

2010-01-11 Thread KARR, DAVID (ATTCINW)
That subject isn't worded quite right, but hopefully I can clear that up. I started out with a small handful of resource classes, each of which points to a separate portion of my domain classes. I realized that there are some HTTP headers that I'd like to get automatically, without specifying the

ClassCastException javax.xml.ws.spi.Provider

2010-01-11 Thread FrozenQ
Hi guys, I am trying to run a CXF DOSGi example in Eclipse Galileo but I am getting a ClassCastException when instantiating the Service Client. The relevant part of the stacktrace is: Caused by: java.lang.LinkageError: ClassCastException: attempting to castbundleresource://102.fwk15020296:12/ja

How to set soapAction header in Dispatch API?

2010-01-11 Thread chengy
Cxf set soapAction in SoapPreProtocolOutInterceptor: BindingOperationInfo boi = message.getExchange().get(BindingOperationInfo.class); but the default PhaseInterceptorChain doesn't put BindingOperationInfo anyway. If this header is not set,it throws exception when invoke some .NET service. Any s

Re: Integration Testing

2010-01-11 Thread James Carr
NVM, I figured it out. I'll blog about it when I get a chance! :) On Mon, Jan 11, 2010 at 8:23 AM, James Carr wrote: > Hi All, > > I'd like to write an integration test that calls a jaxws JMS based > client and verifies that the jaxws endpoint gets invoked... is there > an easy way to do this? >

Integration Testing

2010-01-11 Thread James Carr
Hi All, I'd like to write an integration test that calls a jaxws JMS based client and verifies that the jaxws endpoint gets invoked... is there an easy way to do this? Thanks, James

RE: Path Oddity with UriInfo

2010-01-11 Thread Sergey Beryozkin
This should be fixed now. There were a couple of issues to do with handling URIs matching the base address of a given endpoint (for ex, in your example, it would be http://host:9080/app/v1";. Example : @Path("/") public class Resource { @Context private UriInfo uriInfo; @Path("{pat

RE: How can I make WebClient in test return raw XML or JSON?

2010-01-11 Thread Sergey Beryozkin
Though using String.class will only work if the content type of the response is set to text/plain. It is possible to configure JAXB/JSON providers to recognize text/plain but perhaps it would be simpler to use say InputStream.class and then CXF IOUtils to easily copy it into String, for JSON at

Re: CXF & Spring & Custom Transport Setup

2010-01-11 Thread Coder One
I went through the links provided and the JMS transport links below, but I am still hazy on how in Spring do I choose to use my custom Conduit and custom Destination.  That is, where do I tell CXF to invoke my custom transport factory to grab my custom Conduit and Destination?  I probably need t