Re: problem serializing class hierarchy

2008-04-20 Thread Freeman Fang
Hi Rafael, Take a look at CXF-340-Support adding extra classes to JAXB context, which address your issue. [1] for more details [1]http://issues.apache.org/jira/browse/CXF-340 Regards Freeman Rafael Ribeiro wrote: Hi all, I have an webmethod that returns an arbitrary class. The problem i

Re: On the fly WSDL lacks namespace declarations

2008-04-18 Thread Freeman Fang
Hi, You see the wsdl from your brower, right? The brower will hide the namespace declarations. You can right click the page --> View Page Source, where you can see the "valid" WSDL with namespace declaration you want. Or you just save the page as a file to your disk, then open the file, you als

Re: CXF, WS-Policy and Spring

2008-04-16 Thread Freeman Fang
s case) is not supported at this stage so that's why I was suggesting to put them into an explicit WSDL document and then link to that wsdl document from a jaxws:endpoint definition Cheers, Sergey From: "Freeman Fang" <[EMAIL PROTECTED]> To: Sent: Wednesday, April 16, 20

Re: CXF, WS-Policy and Spring

2008-04-16 Thread Freeman Fang
Hi Gerhard, I'm not expert of ws-policy, but add spring configure to jaxws:endpoint per as below just works for me Also you need add namespace definition xmlns:wsp="http://www.w3.org/2006/07/ws-policy"; xmlns:wsrm="http

Re: CXF Spring client: getting the message´s XML payload

2008-04-16 Thread Freeman Fang
Hi Juanjo, I think you have several options option1. You can write an Interceptor which should be invoked after receive xml stream from the underlying transport, take a look at LoggingInInterceptor, your interceptor could be very similar with it. the key part in the interceptor looks like pu

Re: Can‘t find how to access the webserv ice when deployed into tomcat

2008-04-16 Thread Freeman Fang
p; best regards Jackey 在08-4-16,Mick Knutson <[EMAIL PROTECTED]> 写道: Just try http://localhost:8080/your-war-name/services/ You should get a list of all services deployed. 2008/4/15 Freeman Fang <[EMAIL PROTECTED]>: Hi, Which url you are using to access the the service? It sh

Re: Can‘t find how to access the webserv ice when deployed into tomcat

2008-04-15 Thread Freeman Fang
Hi, Which url you are using to access the the service? It should be http://localhost:8080/your-war-name/services/HelloWorld according to your configuration. And use http://localhost:8080/your-war-name/services/HelloWorld?wsdl to access the wsdl I assume your tomcat server use 8080 port. Regards Fre

Re: soap requests with no attributes or elements

2008-04-15 Thread Freeman Fang
Hi Fazle, Since the request has no input, how about change your wsdl a bit to make it compatible with doc/liter/wrapped so that the generated method timeSalesAllInstruments() has no input parameter. I will change your wsdl inline Regards Freeman Fazle Khan wrote: I am trying to use cxf to mak

Re: [CXF] Deployment errors

2008-04-03 Thread Freeman Fang
Hi, Looks like the url is incorrect. According to your configuration, the correct one should be http://localhost:8080/your-war-name/ordine?wsdl Regards Freeman Cencio wrote: Hi, i'm still unable to retrieve the wsdl from my service... i post all my info: web.xml:

Re: SoapWithAttachments

2008-04-03 Thread Freeman Fang
Hi Vijay, We have mtom demo in the kit, which shows how SOAP message with an attachment and XML-binary Optimized Packaging(mtom) work. Regards Freeman Vijay Allam wrote: I have a third part webservice that returns an attachment. How do I get the attachment with CXF client. Any example code i

Re: WSDL First Development Cycle - specifically wsdl:port address question

2008-04-01 Thread Freeman Fang
Hi, I think you can configure endpoint address by spring, you can change it in spring configure file according to different development cycle phase. [1] for more details [1]http://cwiki.apache.org/CXF20DOC/jax-ws-configuration.html Freeman bdm wrote: I'm looking for suggestions for a "best

Re: Client side plain SOAP invocation

2008-02-13 Thread Freeman Fang
Hi, Yeah, what you need is dispatch/provider, you can find the example from the cxf kit. Freeman On Feb 13, 2008 9:04 PM, silithus <[EMAIL PROTECTED]> wrote: > > Hello, > > I was wondering if Cxf provides client side plain XML/SOAP invocation > capabilities. > > Ideal case would be to pass SOAP

Re: mvn archetype:create -DarchetypeGroupId=org.apache.cxf -DarchetypeArtifactId=cxf-http-basic

2007-12-18 Thread Freeman Fang
Ignore this email I make a big mistake, I thought this mail is for servicemix mailing list. Sorry for it Freeman On Dec 18, 2007 8:41 PM, Freeman Fang <[EMAIL PROTECTED]> wrote: > Hi, > Sure for create jira for -DgroupId issue. > About the test, I think we have some basic test

Re: mvn archetype:create -DarchetypeGroupId=org.apache.cxf -DarchetypeArtifactId=cxf-http-basic

2007-12-18 Thread Freeman Fang
Hi, Sure for create jira for -DgroupId issue. About the test, I think we have some basic test for servicemix archetype, [1] for more details [1] http://svn.apache.org/repos/asf/servicemix/smx3/trunk/archetypes/servicemix-archetypes-itests/src/test/java/org/apache/servicemix/tooling/ Best Regards F

Re: jsr181 annotations?

2007-12-18 Thread Freeman Fang
Hi, Try add org.apache.geronimo.specs geronimo-ws-metadata_2.0_spec 1.1.1 in your pom This dependency should have jsr181 Freeman On Dec 18, 2007 6:23 PM, Nino Saturnino Martinez Vazquez Wael < [EMAIL PROTECTED]> wrote: >

Re: Questions about CXF WS-RM sample

2007-11-27 Thread Freeman Fang
Hi Glen, IIRC, for ws-rm, the client will wait the ack message sent back from server in some certain time, so if client doesn't get the ack message, client assume the message sent out is lost, so do the resend, and the same thing happened on the resend message. Best Regards Freeman On Nov 27, 2

Re: MTOM and @XmlMimeType("application/octet-stream") annotation.

2007-10-16 Thread Freeman Fang
Hi, As per the discussion [1], you need use @RequestWrapper/@ResponseWrapper to point to your wrapper bean FicheroXML in your SEI class. [1] http://www.nabble.com/MTOM-sample-generated-WSDL-with-DataHandler-on-server-t4210895.html Best Regards Freeman imorales wrote: Hi all. I´m trying

Re: Logging small puzzle

2007-10-03 Thread Freeman Fang
cxf 2.0.2 release. Any ideas what went wrong ? > > Thanks in advance, > DM > > 2007/9/29, Freeman Fang <[EMAIL PROTECTED]>: > > > > Hi Benson, > > > > By default, cxf will use java.until.Logger. If you want to use log4j in > > cxf, you also n

Re: Spring, bus, confusion

2007-10-01 Thread Freeman Fang
Hi Benson, I assume you use mvn to run the test, so would you please check your configuration of maven-surefire-plugin, ensure that the property is "pertest". Best Regards Freeman On 10/1/07, Benson Margulies <[EMAIL PROTECTED]> wrote: > > The server's list of handlers still has the extra handl

RE: class not found error on 2.0.2 when trying to use log4j

2007-09-30 Thread Freeman Fang
ding the trunk blows up because it can't find some pieces of > spring 2.0.6 in the maven repos. > >> -Original Message- >> From: Freeman Fang [mailto:[EMAIL PROTECTED] >> Sent: Sunday, September 30, 2007 9:35 PM >> To: cxf-user@incubator.apache.org >&g

Re: class not found error on 2.0.2 when trying to use log4j

2007-09-30 Thread Freeman Fang
Just try the latest trunk. We get it fixed after 2.0.2 release Best Regards Freeman bmargulies wrote: > > [junit] Testcase: > testEchoNoException(com.basistech.rnm.index.ws.EchoTest): Caused an > ERROR > > [junit] null > > [junit] java.lang.ExceptionInInitializerError > > [

Re: Servlet container question ?

2007-09-28 Thread Freeman Fang
Hi Guillaume, I just recall we programmatically publish endpoint in CXFServlet at very first version, but now we all delegate to spring to do it. You can refer to http://fisheye6.cenqua.com/browse/celtixfire/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/servlet/CXFServlet.java?r=44

Re: Logging small puzzle

2007-09-28 Thread Freeman Fang
Hi Benson, By default, cxf will use java.until.Logger. If you want to use log4j in cxf, you also need invoke LogUtils.setLoggerClass(Log4jLogger.class); at very first place to make sure Log4j logger is registered. You can get more details about how it works from https://svn.apache.org/repos/a

Re: CXF exception in running web service

2007-09-17 Thread Freeman Fang
.validateUser(Unknown Source) at com.geico.ibu.service.insite.common.authentication.EAuthClient.main(EAut hClient.java:40) Regards, Ramanand Singh Architecture Team GEICO IBU Service 301.986.2791 -Original Message- From: Freeman Fang [mailto:[EMAIL PROTECTED] Sent: Monday, September 17, 2007 4:56 AM To: cxf-user@incubator.apache.org Subject:

Re: CXF exception in running web service

2007-09-17 Thread Freeman Fang
Hi Ramanand, The error shows you are using incorrect saaj-api version. Would you please check the saaj-api version on your classpath, it should be 1.3. Btw, which version of cxf you are using? Best Regards Freeman Singh, Ramanand wrote: I am running into a problem with the following excepti

Re: Invoking a service based on service URL, not WSL URL

2007-09-13 Thread Freeman Fang
Hi Guy, Please refer to http://www.nabble.com/Client-question-tf4357978.html#a12419843, several options to set address dynamically on client side. Best Regards Freeman Guy Pardon wrote: Hi, How can I invoke a service whose address is only known at runtime (i.e., whose address is not in t

Re: newbie to MTOM with Aegis

2007-09-10 Thread Freeman Fang
ntercept( PhaseInterceptorChain.java:207) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:254) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:205) at groovyx.net.ws.WSClient.invokeMethod(WSClient.java:50) On 9/10/07, Freeman Fang <[EMAIL PROTECTED]>

Re: newbie to MTOM with Aegis

2007-09-09 Thread Freeman Fang
Hi Guillaume, Try to use Object[] response = client.invoke(op, (Object[])objs, context) but not client.invoke(op, (Object[])objs, context, null) Since in Client.java, there is no api for client.invoke(op, (Object[])objs, context, null), so if you use client.invoke(op, (Object[])objs, context, n

Re: newbie to MTOM with Aegis

2007-09-07 Thread Freeman Fang
Comment inline tog wrote: Thanks freeman for the answer, You can do it with jaxb databing which is little tricky, by means of adding jaxb annotation @XmlMimeType("application/octet-stream") on DataHandler you can get more details from http://www.nabble.com/MTOM-sample-generated-WSDL-with-

Re: newbie to MTOM with Aegis

2007-09-06 Thread Freeman Fang
Hi Guillaume, For your first question, it is correct when you use aegis databinding. You can't generate wsdl having xmime:expectedContentTypes="application/octet-stream" with aegis databinding. You can do it with jaxb databing which is little tricky, by means of adding jaxb annotation @XmlM

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: SOAP Attachment question/problem

2007-08-29 Thread Freeman Fang
Hi Pawel, You can refer to the system test ClientServerSwaTest to get more details about how cxf support SWA. http://svn.apache.org/viewvc/incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/swa/ClientServerSwaTest.java?view=log Cheers Freeman Daniel Kulp wrote: We do support S

Re: Logging the received generated SOAP Messages

2007-08-24 Thread Freeman Fang
Hi Holger, Actually we have LoggingInInterceptor and LoggingOutInterceptor for that purpose. You can add it two your endpoint on server side EndpointImpl e = (EndpointImpl)Endpoint.publish(address, implementor); e.getServer().getEndpoint().getInInterceptors().add(new LoggingInInterceptor());

Re: Aegis Data Binding w/Spring

2007-08-21 Thread Freeman Fang
Hi Kaleb, For server side, if you are using jax-ws frontend, you should use sth like If you are using simple frontend, you should use sth like For client side, if you are using jax-ws frontend, you should use sth like

Re: Enforce complex type definition in WSDL

2007-08-21 Thread Freeman Fang
Hi Holger, I guess what you really need is an addtional class(Product) which is not defined in your SEI signature, if in this case, the discussion and solution for CXF-340 may be helpful. https://issues.apache.org/jira/browse/CXF-340 Best Regards Freeman Holger Stolzenberg wrote: Hi folks

Re: enable MTOM client

2007-08-21 Thread Freeman Fang
Hi Nuka, What's the package name of your SOAPBinding? It should be javax.xml.ws.soap.SOAPBinding, would you please check it? Regards Freeman nuka wrote: Client code: public static void main(String args[]) throws Exception { URL wsdlURL = new URL(endPoint);

Re: setting client temporary directory for MTOM attachments in CXF

2007-08-12 Thread Freeman Fang
Hi Jeff, I will take care of this patch Thanks Freeman Jeff.Yu wrote: Hi, I've just provided another patch for this issue, (the original patch broke the test, now I pass it against all tests), I've also added a unit test method for it. can someone help me review it. Thanks Jeff Willem

Re: date type binding

2007-08-06 Thread Freeman Fang
I think your jaxb namespace should be xmlns:jaxb="http://java.sun.com/xml/ns/jaxb";, but not jaxb="http://java.sun.com/xml/ns/jaxb";, you miss "xmlns" prefix before jaxb Best Regards Freeman lllgg wrote: in my project, i want to publish some webservice which has some datetime property. I ge

Re: tomcat deployment issues

2007-07-26 Thread Freeman Fang
Hi Davide, I just test your web.xml and services.xml, they all work well. I also write client which can work with the service deploy into servlet container well. Could you tell me how you launch your client side? Key point is that how you pass in wsdl to client side. In your case, it should

Re: IncompatibleClassChangeError when running wsdl2java service client...

2007-07-25 Thread Freeman Fang
Hi Brad, I have encountered same problem before. This error is caused by two version of wsdl4j (wsdl4j-1.5.1.jar and wsdl4j-1.6.1.jar in my case) are in classpath. Would you please cheack your classpath? Or tell me how you run cxf? Best regards Freeman Brad Harper wrote: seems similar to o

Re: Configuring interceptors using annotations

2007-07-25 Thread Freeman Fang
Thanks Jeff I will take care of this patch Freeman Jeff.Yu wrote: Hi, Freeman Thanks, I've re-uploaded it. Thanks Jeff Yu Freeman Fang wrote: Hi Jeff, Would you please re-upload this patch ensure that "Grant license to ASF for inclusion in ASF works" is selected?

Re: Configuring interceptors using annotations

2007-07-24 Thread Freeman Fang
Hi Jeff, Would you please re-upload this patch ensure that "Grant license to ASF for inclusion in ASF works" is selected? Thanks Freeman Jeff.Yu wrote: Hi, I've submitted a patch for this JIRA, can someone help me review it and apply it if it is ok. Thanks Jeff Yu Zarar Siddiqi wrote:

Re: "No conduit initiator was found" when calling a WebService from a CXF WebService

2007-07-24 Thread Freeman Fang
Hi Matthias, Ensure that cxf-rt-transports-http-2.1-incubator-SNAPSHOT.jar and cxf-rt-transports-http-jetty-2.1-incubator-SNAPSHOT.jar is on your servlet container classpath. Best Regards Freeman [EMAIL PROTECTED] wrote: Hello I developed a simple CXF Web Service which is deployed as a WAR-F

Re: http:endpoint

2007-07-23 Thread Freeman Fang
Hi Sam, Seems your beans.xml is servicemix style configuration which deploy endpoint into servicemix http binding component, this configuration is not recognized in cxf. If you want to deploy your service into servlet container with spring, you should follow this wiki page. http://cwiki.apach

Re: Back to a really basic question: using CXF+Spring to deploy a JAX-WS+Aegis service behind a servlet container.

2007-07-19 Thread Freeman Fang
Hi Benson, FYI, I just know Willem update this wiki page today. So what I see may not same as you saw. Best Regards Freeman Freeman Fang wrote: Hi Benson, I think you should follow spring_http sample. The doc from wiki might out of date, but the working demo is more believable. :-) Btw

Re: Back to a really basic question: using CXF+Spring to deploy a JAX-WS+Aegis service behind a servlet container.

2007-07-19 Thread Freeman Fang
Hi Benson, I think you should follow spring_http sample. The doc from wiki might out of date, but the working demo is more believable. :-) Btw, I roughly check this wiki page and spring_http sample, they are pretty much match with each other. Would you please mark what kind of macros define

Re: java2wsdl rejects class that is acceptable to the aegis universe

2007-07-18 Thread Freeman Fang
ch.rnm.index.ws.NameIndexService", targetNamespace="urn:com.basistech.rnm.index.ws") public class NameIndexServiceImpl extends NameIndexServiceCommon implements NameIndexService { -Original Message- From: Freeman Fang [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 17, 2007 11:35 PM To: cxf-us

Re: java2wsdl rejects class that is acceptable to the aegis universe

2007-07-17 Thread Freeman Fang
Hi Benson, Would you please append your java class? From the exception, it seems your class method are bare mode so that java2wsdl load jaxb to process your method parameter type class, but unfortunately, this type class has two properties with same name, which is illegal for jaxb. As you said

Re: How to enable mtom on the embedded server?

2007-07-17 Thread Freeman Fang
Hi Samuel, javax.xml.ws.soap.SOAPBinding is class from jax-ws api, so you need make your service jaxws compatible add jaxws BindingType annotation into your TestServiceImpl @BindingType (value = SoapBinding.SOAP11HTTP_MTOM_BINDING) And use JaxWsServerFactoryBean instead of ServerFactoryBean to c

Re: http://schemas.xmlsoap.org/soap/http

2007-07-13 Thread Freeman Fang
g the webapp folder / web.xml? I would like to define the hole behaviour of the server in the test itself without a reference other files. Regards, Marc Original-Nachricht Datum: Fri, 13 Jul 2007 16:18:58 +0800 Von: Freeman Fang <[EMAIL PROTECTED]> A

Re:

2007-07-13 Thread Freeman Fang
are using code first way, so HelloWorldImpl may not have all annotations as we need. Hm, why not let the user config if he wants let cfx get information from the annotations like xfire? Regards, Marc Original-Nachricht Datum: Fri, 13 Jul 2007 17:47:03 +0800 Von: Fr

Re:

2007-07-13 Thread Freeman Fang
tion as in my other mail :-) Regards, Marc Original-Nachricht Datum: Fri, 13 Jul 2007 16:24:57 +0800 Von: Freeman Fang <[EMAIL PROTECTED]> An: cxf-user@incubator.apache.org Betreff: Re: Hi Marc, You can do it like http://www.springframework.org/schema/beans";

Re:

2007-07-13 Thread Freeman Fang
Hi Marc, You can do it like http://www.springframework.org/schema/beans"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:jaxws="http://cxf.apache.org/jaxws"; xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/sche

Re: http://schemas.xmlsoap.org/soap/http

2007-07-13 Thread Freeman Fang

Re: http://schemas.xmlsoap.org/soap/http

2007-07-12 Thread Freeman Fang
Hi Marc, For setup the CXF servlet in a junit test, you can get more details from trunk/systests/src/test/java/org/apache/cxf/systest/servlet/SpringServletTest.java and it's superclass trunk/systests/src/test/java/org/apache/cxf/systest/servlet/AbstractServletTest.java Best Regards Freeman Mar

Re: wsdl2java: velocity engin write errors (NPE)

2007-07-11 Thread Freeman Fang
Hi Christian, Maybe you need create a jira issue and append your attachment on jira website. You attachment is filtered again in this email. :-) Best Regards Freeman Christian Vest Hansen wrote: It *is* in the same directory and I *did* attach the schema... I dunno why it didn't get through

Re: How dependent is CXF with Spring?

2007-07-09 Thread Freeman Fang
Hi Joshua, I believe you can use cxf without spring, at least without being aware of using spring(By default, we ship spring bean configuration file with cxf module and used when init bus, you are no need to write any spring bean definition). And all spring based configuration can be replaced

Re: CXF with Maven Modules

2007-07-09 Thread Freeman Fang
Hi Cam, From here you can get info how wsdl2java and java2wsdl used in maven plugin http://cwiki.apache.org/CXF20DOC/maven-integration-and-plugin.html Cheers Freeman Cameron Jones wrote: Hi CXF'ers, I've just gotton started on CXF today as i've been using xfire up to now and i was wondering if

Re: validation error; missing schema

2007-07-09 Thread Freeman Fang
Hi Christian, Would you please append your spring configuration file? CXF spring schema namespace changed recently You can get more details about this topic from cxf-dev mailing list which title is "Schema namespaces and public URIs" And build kit from latest trunk to see how latest samples use t

Re: Question regarding WSDL2Java

2007-06-27 Thread Freeman Fang
Hi Ken, It's intended result for list type by JAXB. You can add item in list but can not set a totally new list. You should see comment like * For example, to add a new item, do as follows: * *getChoice().add(newItem); * Thanks very much Freeman Ken Gallo wrote: Hi guys,

Re: marshalling error

2007-06-26 Thread Freeman Fang
Hi Jan, Since Authentication is an interface, so your real message response should have an object(let's say it's instance of AuthenticationImpl) which implement Authentication, right? You need add AuthenticationImpl(which is an extra class for jaxb since we cann't get this class when build serv

Re: marshalling error

2007-06-26 Thread Freeman Fang
Hi Jan, Would you please append your whole testcase? Is Authentication class defined as para or return type for your SEI? Thanks very much Freeman Jan Kriesten wrote: hi, i'm trying to get warm with cxf, but i run into mor problems. i'm trying to set up a remote authentication service usin

Re: soap && callbacks

2007-06-25 Thread Freeman Fang
Hi Jan, Yes, you can register client side EPR(endpoint reference) to server for callback. Actually, we have a sample callback in the kit to show how typical callback works. You can get concrete idea from this sample. Thanks very much Freeman Jan Kriesten wrote: hi, i'm not yet that familia

Re: service ok, client not...

2007-06-25 Thread Freeman Fang
Hi Jan, Would you please fill a jira for us to track this issue and append your test code? Thanks very much Freeman Jan Kriesten wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 hi freeman, I notice you still use 2.0-incubator-RC, we fix several bugs since that version. i

Re: service ok, client not...

2007-06-25 Thread Freeman Fang
Hi Jan, I notice you still use 2.0-incubator-RC, we fix several bugs since that version. Would you please try the latest trunk? Thanks very much Freeman Jan Kriesten wrote: hi, Would you please check cxf-rt-transports-http-2.1-incubator-SNAPSHOT.jar and cxf-rt-transports-http-jetty-2.

Re: service ok, client not...

2007-06-24 Thread Freeman Fang
Hi Jan, Would you please check cxf-rt-transports-http-2.1-incubator-SNAPSHOT.jar and cxf-rt-transports-http-jetty-2.1-incubator-SNAPSHOT.jar is on your client side classpath? And Would you please provide the client side classpath ? Thanks very much Freeman Jan Kriesten wrote: hi! i'm try

Re: cannot implement service using Provider

2007-06-20 Thread Freeman Fang
Hi Conrad, It is working now. Cheers Freeman Freeman Fang wrote: Hi Conrad, I will take care of this issue. Cheers Freeman Conrad O'Dea wrote: Howdy, I'm trying to create a service with Provider which is published using XML/HTTP. I can publish the endpoint without problem but i

Re: cannot implement service using Provider

2007-06-20 Thread Freeman Fang
Hi Conrad, I will take care of this issue. Cheers Freeman Conrad O'Dea wrote: Howdy, I'm trying to create a service with Provider which is published using XML/HTTP. I can publish the endpoint without problem but invoking on the service does not work. My Provider is declared as follows: @We

Re: REST & XPath

2007-06-19 Thread Freeman Fang
Hi Richard, Yes, you can do it with rest binding. First you need a service interface, some thing like @WebService public interface BookService { @Get @HttpResource(location = "/dataaccess/{query}") Book getQuery(@WebParam(name = "GetQuery") GetQuery query) throws

Re: Logging SOAP Messages

2007-06-15 Thread Freeman Fang
n file which I put inside my WAR. On 6/15/2007 12:28 PM,User Freeman Fang wrote: Hi Krystian, When you publish your server, you can add log intercepor for your endponint. Some thing like Object implementor = new RemedyTsExtractImpl(); String address

Re: Logging SOAP Messages

2007-06-15 Thread Freeman Fang
Hi Krystian, When you publish your server, you can add log intercepor for your endponint. Some thing like Object implementor = new RemedyTsExtractImpl(); String address = "http://localhost:1";; EndpointImpl e = (EndpointImpl)Endpoint.publish(address, implemen

Re: WG: Custom serializer / deserializer in cxf?

2007-06-10 Thread Freeman Fang
size) to created the message directly in the needed format. Actually I would only need to override the default serialization for the content property... Regards from Munich, Andreas P.S. Keep in mind that I can not change the expected message format since the client is a third party tool,

Re: Skipping some layers in the interceptor chain

2007-06-05 Thread Freeman Fang
Hi Richard, Comment inline Shaw, Richard A wrote: If I use the dispatch interface does CXF still pass it through the binding and transport layers ? It only skip mashall/unmashall for binding layer, but can not skip the transport layer, anyway, you need deliver message to remote process The

Re: .net remoting

2007-06-05 Thread Freeman Fang
Hi Richard, Actually, we have some interoperability tests between CXF(as client side) and .net (WCF testcase as server side). What we do is get wsdl published by .net service, and build cxf client from the wsdl. It's unnecessary to create transport or binding to talk to .net remote objects. Y

Re: Aegis binding

2007-05-31 Thread Freeman Fang
Thanks Tog, I will fix it ASAP. Cheers Freeman tog wrote: Hi Freeman, Here it is https://issues.apache.org/jira/browse/CXF-697 The test case is included. Cheers Tog On 5/30/07, Freeman Fang <[EMAIL PROTECTED]> wrote: Hi Tog, Would you please fill a jira issue and append your test c

Re: Problem matching URI templates with RESTful binding

2007-05-31 Thread Freeman Fang
Hi Adrian, It's weird, I can't reproduce your problem. Your code seems correct to me. What's your Contacts.java and Contact.java looks like. Please send me your entire testcase if possible. Thanks very much Freeman Trenaman, Adrian wrote: Hi there, Does anyone know if there's some problem

Re: JaxWsServiceConfiguration ... proxied classes?

2007-05-30 Thread Freeman Fang
Hi Brice, How is your proxied class looks like? Would you please send it to us? Thanks very much Freeman Brice Ruth wrote: I can't seem to pass in a proxied class as my serviceBean for the jaxws endpoint. When the processing hits line 488 of JaxWsServiceConfiguration, it invokes getPackageN

Re: soap:address location

2007-05-30 Thread Freeman Fang
Hi John, If you want a dynamic server location/path in wsdl, you need deploy your service into servlet container. If you start standalone server, you need specify address for jaxws:endpoint(like http://localhost:9000/hello_wold) in your spring configuration file. Would you please send us you

Re: Aegis binding

2007-05-29 Thread Freeman Fang
Hi Tog, Would you please fill a jira issue and append your test case. I saw this ClassCastException several times in different mailthread these days. We need fix it up. Thanks very much Freeman tog wrote: Hiya I would like to know if there have been some changes regarding the Aegis binding

Re: XmlSchemaComplexType exception

2007-05-25 Thread Freeman Fang
ion . I do not think this is an issue or unsupported. Jaxb need this annotation to generate the appropriate schema. [1] JAXB spec 8.7.2 [2] http://weblogs.java.net/blog/kohsuke/archive/2006/03/why_does_jaxb_p.html Cheers Jim Freeman Fang wrote: > Hi Tog, > > Class defined as method i

Re: helloworld sample simpleType restriction not working

2007-05-24 Thread Freeman Fang
Hi Feng, Brice is correct, generated stub can't do the schema validation. But if you run client from ant client, you will see we do this schema validation since by this way, we pass in wsdl to the client, so the client can build service model from wsdl, which include the schema restriction. In

Re: XmlSchemaComplexType exception

2007-05-24 Thread Freeman Fang
ss GetBook { @XmlElement long id } On 5/24/07, Freeman Fang <[EMAIL PROTECTED]> wrote: Hi Tog, I believe you remove @XmlRootElement(name = "GetBook") from you GetBook.java, right? I can reproduce your problem by means of removing @XmlRootElement(name = "GetBook")

Re: XmlSchemaComplexType exception

2007-05-23 Thread Freeman Fang
Hi Tog, I believe you remove @XmlRootElement(name = "GetBook") from you GetBook.java, right? I can reproduce your problem by means of removing @XmlRootElement(name = "GetBook") I think we should support your scenario. Other guys, any thought? I fill a jira to track it https://issues.apache.

Re: Publish the implemented service using WSDL first

2007-05-22 Thread Freeman Fang
Hi Feng, We mentioned how to acceess the wsdl in samples README, see the part how to launch client by java command line , or UNIX: java -Djava.util.logging.config.file=$CXF_HOME/etc/logging.properties demo.hw.client.Client http://localhost:#/helloworld/services/hello_world?wsdl

Re: AW: AW: Custom serializer / deserializer in cxf?

2007-05-21 Thread Freeman Fang
= (new ByteBuffer(result.getSize())).read(current); break; } } while(!streams.isReadyToGetNextStream()) { current.read(buffer, 0, ByteBuffer.MIN_BUFFER_SIZE); } } . } catch (Exception e) { throw new SAXException(e)

Re: Problems with String[] and List in Java-First Service

2007-05-16 Thread Freeman Fang
rowse/CXF-655 Thanks for your help! -Chris -Original Message- From: Freeman Fang [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 16, 2007 4:01 AM To: cxf-user@incubator.apache.org Subject: Re: Problems with String[] and List in Java-First Service Hi Chris, Yes, String[] as input/output

Re: Problems with String[] and List in Java-First Service

2007-05-16 Thread Freeman Fang
Hi Chris, Yes, String[] as input/output paras both has problem if use Doc/Lit of code first way. I fill a jira to track it. https://issues.apache.org/jira/browse/CXF-655 And we will fix it asap. Would you please try code first with rpc/lit mode if input or return is String[] before we fix CXF-6

Re: AW: Custom serializer / deserializer in cxf?

2007-05-15 Thread Freeman Fang
t so I can include my own Serializer/Deserialzer, correct? Thanks in advance from Munich, Andreas -Ursprüngliche Nachricht- Von: Freeman Fang [mailto:[EMAIL PROTECTED] Gesendet: Montag, 14. Mai 2007 04:03 An: cxf-user@incubator.apache.org Betreff: Re: Custom serializer / deserializer i

Re: Unmarshalling error

2007-05-13 Thread Freeman Fang
). getSample().get(0).getChannelData().get(0).getChannelNamespace()); and the result is what I want traffic 1 0400-01-01T00:00:00 11 journeyTime Thanks very much Freeman Freeman Fang wrote: Hi Richard, We do support choice in wsdl now. I test your wsdl with latest cxf. It works perfectly. The

Re: Unmarshalling error

2007-05-13 Thread Freeman Fang
Hi Richard, We do support choice in wsdl now. I test your wsdl with latest cxf. It works perfectly. The client code like DataAccessService ss = new DataAccessService(wsdl, serviceName); DataAccessI port = ss.getDataAccessPort(); SetData data = new SetData(); data.setSource

Re: Custom serializer / deserializer in cxf?

2007-05-13 Thread Freeman Fang
Hi Andreas, I believe you can use jax-ws soap protocol handler to do your attachment serializer. The client could use a SOAP protocol handler(SWAClientHandler) which reads several attachments from file or just like your code shows, from the data source, and appends them to the outbound SOAP r

Re: WSDL location

2007-05-11 Thread Freeman Fang
Hi Richard, It's not always compulsory that you put wsdlLocation in your WebService annotation of Impl class now in CXF. Try remove wsdlLocation in your WebService annotation and CXF will build service from class but not build service from wsdl . If it still doesn't work(doc/bare now have some