Re: wsdl2java not recognizing generics

2008-01-09 Thread James Mao
Interesting, haven't tried this, can you try it with Metro, see if you can get what you expected. I personally don't like generics been heavily used, just make the system more and more complex. I'm wondering if we Can we find an alternative way to the generics? James Hi, I am using CXF

Re: exposed methods with Aegis binding

2008-01-08 Thread James Mao
Basically, you can use the @WebMethod(exclude=true) to exclude the methods that you don't want it to be exposed. James Hi, Aegis Binding is a data binding , it will not effect which method will be export to the web service. If you are using JaxWs front end , you could use the annotation to

Re: Illegal characters in xml

2008-01-01 Thread James Mao
Probably, Mostly you need to filter all the illegal chars from your contents before feed them to the xml parser You need to filter all of them, not just 0x07 James Hi, Is there any way to translate illegal characters that are in the xml message? I'm receiving

Re: Wsdl2java package usage

2007-12-27 Thread James Mao
Hi Nathan, We currently don't have a plan to do that, However you probably could file a jira for that. Patches are welcome :) James Thanks to you both for the advice. Is there any plan to add a switch to allow for automatic merging of the ObjectFactory methods when executing wsdl2java

Re: JAX-WS handler attachment options within Apache CXF

2007-12-25 Thread James Mao
Probably this way is safer getBinding().getHandlerChain().add(YourHandler) James Glen, The answer is YES, you can do it programmatically Service side API Endpoint.getBinding().setHandlerChain(ListHandler) Client side API BindingProvider.getBinding().setHandlerChain(ListHandler)

Re: jaxws_dispatch_provider demo

2007-12-09 Thread James Mao
Haven't looked it deeper, but firstly you should check if the modified xml still well-formed, you can check that with a browser. Cheers, James I have playing with the jaxws_dispatch_provider demo sample after a recent svn checkout Then I tried to update the source files to try and understand

Re: SOAPAction

2007-12-09 Thread James Mao
I don't think that we have such an option, you can file a jira, patches are always welcome ;) Regards, James Hi, Is there a way to force CXF to generate WSDL having the SOAPAction set with the name of the Operation i.e. change wsdl:operation name=sayHi soap:operation soapAction=

Re: combile multiple classes in one wsdl

2007-12-06 Thread James Mao
One options is 'Merge the classes' :-P James Hi, I've 3 classes. Currently they are being exposed as 3 web services(wsdls). Is there anyway to merge them into one wsdl. Regards, Akhil Kodali

Re: Maven command to run wsdl2java...

2007-12-02 Thread James Mao
Am Freitag, den 30.11.2007, 11:17 +0800 schrieb James Mao: Glen, You have to do couple things in order to run codegen:wsdl2java under the folder which contains the pom.xml You can take a look at the /tools/jdee which is a maven plugin i did for generating the emacs jdee project How

Re: Cannot generate from wsdl with ws-*....

2007-11-29 Thread James Mao
Can not reproduce the error, you don't paste your xsd, what's the error message? James Can't generate code from ?xml version=1.0 encoding=UTF-8? definitions xmlns:wsu=http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd;

Re: Maven command to run wsdl2java...

2007-11-29 Thread James Mao
Glen, You have to do couple things in order to run codegen:wsdl2java under the folder which contains the pom.xml You can take a look at the /tools/jdee which is a maven plugin i did for generating the emacs jdee project How it works? 0. Look at the /tools/jdee/pom.xml, the group id is

Re: Relative WSDL Location

2007-11-27 Thread James Mao
This thread may help you http://www.nabble.com/jaxws%3Aendpoint-wsdlLocation-attributeform-for-class-path-reference--tf3684247.html#a10298620 James Is there a way to specify a relative location for the wsdl using the wsdlLocation attribute? Example:

Re: Date object input parameter 'argument type mismatch'

2007-11-20 Thread James Mao
BTW, the generated binding file should looks like [1] *Q: How to map xsd:dateTime to java.util.Date?* [1] this http://cwiki.apache.org/CXF20DOC/wsdl-to-java.html I have my services running almost perfectly now, just one weird thing happening now that used to work in a previous version; it

Re: Date object input parameter 'argument type mismatch'

2007-11-20 Thread James Mao
If you have a java.util.Date in your SEI, the java2wsdl tool should generate a jaxws binding file for you along with the wsdl With the wsdl and binding files you can generate the types, and in the types code, it will include a jaxb annotation which convert the Date type You can try this

Re: Defining the parameter as part of the soap header using @Webparam

2007-11-14 Thread James Mao
If it's Mode.INOUT parameter, why it's not a Holder? If it's possible, you can use wsdl-first approach, see what you got James Hi I m using the 2.0.2 version, i m facing issue with wsdl generation to include response and request with parameter part of soap header. When i defined my service

Re: Difference between cxf.xml and cxf-servlet.xml?

2007-11-14 Thread James Mao
Glen, I would say +1 to reduce the number of configuration files, James Hello, I'm getting confused over the server-side configuration files for CXF. When deploying a web service in a WAR file, what is the difference between the cxf.xml config file and the cxf-servlet.xml config file? I

Re: Problem with data binding (XJC)

2007-11-13 Thread James Mao
Hi, I think firstly, you have to make sure that the wsdl is valid, from the error message, it clearly said that the Value is already defined. So I guess probably we have to check the schemas imported/included in the wsdl. I know there's no joy in reading the xml/schema :( Regards, James

Re: FileNotFoundException wsdl

2007-11-12 Thread James Mao
Jax-ws spec allow you to do this: ((BindingProvider)port).getRequestContext().put( *BindingProvider.ENDPOINT_ADDRESS_PROPERY*, http://foo.com/blah;); See this thread: http://www.nabble.com/Why-does-a-JAX-WS-client-use-the-WSDL-at-run-time--tf3683059.html#a10315931 Regards, James I

Re: question about http://schemas.xmlsoap.org/soap/encoding/ and Dynamic Client

2007-11-11 Thread James Mao
We don't support rpc/encoded in CXF, but there's a work around http://www.jroller.com/gmazza/entry/national_weather_service_forecasting_web Hope this helps James Hi all, I noticed that the dynamic client can not handle objects of type belonging to

Re: JAXWS WS Policy

2007-11-08 Thread James Mao
I've not been an expert on ws-*, but i just look at the samples in the cxf distribution, we do have a sample of ws-policy And we have doc on http://cwiki.apache.org/CXF20DOC/ws-support.html Don't know if it's sufficient James Is there a way to configure WSPolicy in the jaxws definition of a

Re: Return direct XML

2007-11-06 Thread James Mao
XML is not a Java Type before Java7, it'll be at that time. Not sure what you really mean, do you mean a DOM or something else James Hi, What is the easiest way to return XML directly? For example, in my function, if I create XML, I want to be able to send that object directly back to

Re: Error accessing my newly develop services

2007-11-01 Thread James Mao
What's your version of tomcat and tomcat and cxf? Looks like a jdk version problem CXF require jdk5+ and tomcat 5.5+ Regards, James Hi, I got the below error when trying to access my service wsdl using this url: http://localhost:8080/my-services\services;. Any idea on this error are

Re: cannot compile wsdl

2007-10-29 Thread James Mao
Where's your attachment? you can log an issue in jira https://issues.apache.org/jira/browse/CXF Regards, James Please help compile the attached wsdl, I get this error: WSDLToJava Error : Thrown by JAXB : undefined element declaration 'xop:Include' thanks mtomserver.wsdl

Re: empty response object

2007-10-29 Thread James Mao
What Dan said is correct, But if you really want to consume/produce the rpc/enc foramt, here is a workaround, use the jaxws dispatch/provider api http://weblogs.java.net/blog/jitu/archive/2006/01/accessing_googl_1.html To be honest, I haven't tried by myself James This soap message is soap

Re: wsdl2java NPE for liberty-idff-wsdl-v1.1.wsdl

2007-10-25 Thread James Mao
Hi, I tested wsdl:imort for very simple schema, but it does not work at all in any case. As I said in the previous email, it should work, I tested it yesterday, there's no problem if you have a case which failed, then it's possibly a bug, please file an issue on jira

Re: wsdl2java NPE for liberty-idff-wsdl-v1.1.wsdl

2007-10-25 Thread James Mao
Here you go https://issues.apache.org/jira/browse/CXF-1140 Regards, James Hi, I tested wsdl:imort for very simple schema, but it does not work at all in any case. types/schema/import worked OK for simple schema and the absolute path also worked OK. But if XSD is complcated, it does not work,

Re: wsdl2java NPE for liberty-idff-wsdl-v1.1.wsdl

2007-10-24 Thread James Mao
wsdl2java bug or am I doing something wrong? Any way to get around this? Thanks hj James Mao wrote: If you want to import schema, you have to put the import inside the //types/schema node, e.g wsdl:types xsd:schema xsd:import namespace=http://apache.org/hello_world_soap_http

Re: how clients handle changing wsdls

2007-10-24 Thread James Mao
If you just add an operation, it will/should not failed the client, you can modify the hello_world demo in cxf samples, and give it a try (Before you run the client after you modify the wsdl, make sure to remove the depends=build in the client target, so it'll not generate the client code)

Re: Error with temporary files

2007-10-17 Thread James Mao
Hi, I guess it's been fixed by DanK recently , so you should try with the trunk in svn or the 2.0.3 snapshots, or wait the 2.0.3 final release Regards, James Hi, I got this error in some of my tests. I use version 2.0.1. The problem seems to relate more to Woodstox than CXF. Any idea?

Re: Disable access to wsdl in Servlet transport

2007-10-17 Thread James Mao
If you're working with a container, i think you can do this through configuration of the container, to redirect the ?wsdl to a more friendly page, say, please contact ... to get the wsdl, or list the service you have etc. I guess we don't have this function in a standalone service, do we?

Re: Get SOAPEnvelope as String

2007-10-17 Thread James Mao
encoding=utf-8? i have to manually remove it or there is some utility that do it for me? The getTextContent() work fine or should output what i expected? I would use saaj interface so future port to another saaj implementation is more easy... Thx for ur help James Mao wrote: Try

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

2007-10-16 Thread James Mao
Hi Dan, Is it fix the java2ws tools as well, or just the runtime? in the runtime the http header now should contain the application/octet-stream, right? But I tested with the java2ws, it's not working. the expectedContentTypes=image/png still missing in the schema James It's definitely a

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

2007-10-16 Thread James Mao
Sorry, False alarm, I'm testing against with the old distribution which not included Dan's fix The java2ws works perfect, I'll commit a test in java2ws soon Cheers, James Hi Dan, Is it fix the java2ws tools as well, or just the runtime? in the runtime the http header now should contain the

Re: Cannot run Maven java2wsdl goal

2007-10-11 Thread James Mao
What's the version of cxf are you using? it's been changed to java2ws http://cwiki.apache.org/CXF20DOC/java-to-ws.html James Hi, I've been trying to use the Maven plugin but I'm getting this error. [INFO] Scanning for projects... [INFO]

Re: Cannot run Maven java2wsdl goal

2007-10-11 Thread James Mao
/configuration goals goaljava2ws/goal /goals /execution /executions /plugin 2007/10/11, James Mao [EMAIL PROTECTED]: What's the version of cxf are you using? it's been changed to java2ws

Re: Preferred JDK Version?

2007-10-10 Thread James Mao
FYI, the JDK6 Update3 is the last update which contain the jaxws api 2.0 and jaxb api 2.0, the later release will contain the jaxws api 2.1 and jaxb api 2.1 http://weblogs.java.net/blog/ramapulavarthi/archive/2007/10/jaxws_21_in_jav.html And another difference this is license, we use Apache

Re: Using TCPMon with CXF

2007-10-09 Thread James Mao
It's the client port which defined in the wsdl, if you didn't change the way to specify the client port. James Hycel Taylor wrote: Hello, Using the simple server example, I would like to monitor web service request and responses using tcpmon. The tcpmon application needs to know three

Re: help in setting JaxWsProxyFactoryBean endpoint/url in CXF 2.0.2

2007-10-09 Thread James Mao
Jarada, Hussam wrote: Per finding info on setting client url from http://www.nabble.com/Client-question-tf4357978.html#a12419843 I changed my code as follows At which getServiceURL() return http://todev-mda09.tops.aol.com:8080/; MadcapService ss = new MadcapService(); MadcapPort

Re: cxf 2.1 snapshot

2007-10-08 Thread James Mao
Hi, I am using cxf eclipse plugin 2.1-SNAPSHOT, but with older creation date. Newest snapshots use jaxb 2.1. As runtime for SOA tools I use cxf 2.0.2-incubator (I installed this just yesterday, before that I had 2.0), and it works (nearly perfectly). I tried the 2.0.2 plugin, but when using

Re: wsdl2java generated code. No conduit initiator found

2007-09-26 Thread James Mao
Which version are u using? 2.0.2? Are u using ant run your project? You have to check if the following jars cxf-rt-bindings-soap cxf-rt-transports-http cxf-rt-transports-http-jetty are in your classpath? Regards, James Hi I am using web service client that i generated using wsdl2java. I am

Re: HashMap as parameter for web service call

2007-09-19 Thread James Mao
/xmladapter_in_j.html Follow the steps, you should get the HashMap James Great, at least there's some light at the end of the tunnel! Where would I plug it into a spring configuration - I'm using simple:server's? Thanks! Regards, Kaleb Inactive hide details for James Mao ---09/18/2007 11:23:14 PM---Jaxb

Re: cxf-codegen-plugin and catalogs

2007-09-19 Thread James Mao
I suggest you to work with command line tools first, and try a simple case, and also there's test under the tools, if you have the source code, just grep the 'catalog' James Hello, I am trying to reference another project that contains xjc generated code from xsd file. When I run the plugin

Re: HashMap as parameter for web service call

2007-09-18 Thread James Mao
Jaxb is quite plugable, you can use XmlTypeAdapter to marshal/unarshal to/from HashMap James HashMap is not supported by JAXB binding. More discussions about this can be found from http://www.nabble.com/DataBinding-problems-%28Timestamp-and-HashMap%29-using-JAXB-tf4283645.html#a12193877

Re: HashMap as parameter for web service call

2007-09-18 Thread James Mao
. But we don't support the java.sql.Timestamp yet. We can do the same for the HashMap as well. James FYI , this blog shows you how to use HashMap in the JAXB. http://weblogs.java.net/blog/kohsuke/archive/2005/04/xmladapter_in_j.html Willem. James Mao wrote: Jaxb is quite plugable, you can use

Re: Strange problem with wsdl2java

2007-09-18 Thread James Mao
Which version of cxf are you using? I would suggest try the 2.0.2 [1] If the problem still there, then, you should file an issue in jira, and mark the affected version as 2.0.2, and we will fix it for 2.1 Regards, James [1] http://people.apache.org/~dkulp/stage_cxf/2.0.2-incubator-take2/

Re: contract-first with only xsd

2007-09-18 Thread James Mao
moraleslos wrote: Hi-- Having gone through the Spring Web Services (SWS) manifesto about contract-first as well as their sample examples, I wonder how CXF matches up with SWS. I know that CXF allows contract-first development, but is it as simple as SWS? For example, with SWS, all I need to

Re: Support for @XmlSeeAlso

2007-09-12 Thread James Mao
-incubator-snapshot version of cxf-bundle and it seems like it's still using the JAXWS2.0 and JAXB2.0. If the upgrade of versions will be done in the 2.1 final release, can you suggest any workaround that I could do for now? Thanks, Cristina Malonzo James Mao wrote: If I remember correctly

Re: Adding headers to soap request

2007-09-11 Thread James Mao
Hi Ryan, I was able to get this to work now with my scaled down test wsdl, but not the full wsdl that I need it to work with, I'll do my best to help you with what I know about this. I did notice your thread that sounded familiar. Apparently if you add the -exsh true parameter to wsdl2java,

Re: Adding headers to soap request

2007-09-11 Thread James Mao
getting a small test case. On 9/11/07, James Mao [EMAIL PROTECTED] wrote: Hi Ryan, I was able to get this to work now with my scaled down test wsdl, but not the full wsdl that I need it to work with, I'll do my best to help you with what I know about this. I did

Re: Adding headers to soap request

2007-09-11 Thread James Mao
? Is it relatively safe to use 2.1 snapshots? On 9/11/07, James Mao [EMAIL PROTECTED] wrote: Great, That's definitely helpful. Thanks Ryan, James Sure, I'll see if I can somehow get my test case working that fails, though maybe it doesn't fail and the bug with the interceptor that I

Re: Inter-operation issue against WCF server.

2007-09-10 Thread James Mao
Jeff, Also post it to here http://forums.microsoft.com/MSDN/ShowForum.aspx?ForumID=118SiteID=1 See what they got Thanks, James Hi, These days I am doing the inter-operation with WCF , and I have found an issue about SOAP message that CXF did is different from what WCF did. For

Re: JAva First/WSDL-Contract First Pros and Cons

2007-09-10 Thread James Mao
to install it on top of Eclipse Europa (3.3) -- or are there other things I need to do in addition to that? (Or, is it already part of the Europa release? I'm not sure.) Thanks, Glen Am Freitag, den 07.09.2007, 22:08 +0800 schrieb James Mao: Hi Matt, STP stands for SOA Tools Platform, http

Re: Elements and parts seem to default to return - which upsets WSDL2X as return is generally a reserved word

2007-09-10 Thread James Mao
Hi Jon, Do you mind send us the complete wsdl, we do have the return element in our test, so this case should be covered already. Or you can log an issue in jira and attach your wsdl BTW, which CXF version are you using? Thanks, James Hi, I'm new to CXF, so forgive this newb question.

Re: Support for @XmlSeeAlso

2007-09-10 Thread James Mao
If I remember correctly, @XmlSeeAlso is defined in the JAXWS2.1 (JAXB2.1) spec, right? currently we only support JAXWS2.0 (JAXB2.0) And we will support JAXWS2.1 in the 2.1 final release Cheers, James Hi all, I just want to know if latest snapshot uses vesion 2.1 of both jaxb and jaxws.

Re: Referencing an external XSD not referenced in WSDL

2007-09-10 Thread James Mao
You can use CXF xsd2java maven plugin, or just use the JAXB xjc tools directly James I'm trying to generate some Java code for a WSDL that is paired with an XSD with the CXF with WSDL2Java, but doesn't actually reference the XSD from it (such as with an include). This isn't my wsdl but one

Re: JAva First/WSDL-Contract First Pros and Cons

2007-09-07 Thread James Mao
!) Thanks Matt James Mao wrote: The javaFirst approach is more productive than the wsdlFirst IMO, you type less but get more, and java code is more readable than the wsdl for a java programmer You're looking for STP project Take a look at the doc http://cwiki.apache.org/confluence/display

Re: JAva First/WSDL-Contract First Pros and Cons

2007-09-05 Thread James Mao
The javaFirst approach is more productive than the wsdlFirst IMO, you type less but get more, and java code is more readable than the wsdl for a java programmer You're looking for STP project Take a look at the doc http://cwiki.apache.org/confluence/display/CXF20DOC/Java+to+WSDL BTW, the

Re: Simple front end and JAB customization

2007-09-02 Thread James Mao
in advance, Jacob On 8/30/07, James Mao [EMAIL PROTECTED] wrote: 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

Re: Shared objects for clients generated from multiple WSDL's

2007-08-31 Thread James Mao
Hi, If you put the BasicSo in the same namespace, then it'll generate just one class You can abstract the common stuff in a wsdl, then use wsdl:import .../ to include the common wsdl in your multiple wsdls Will it solve your problem? James Hi, I'm currently generating 10 Java clients

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

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: wsdl2java NPE for liberty-idff-wsdl-v1.1.wsdl

2007-08-19 Thread James Mao
If you want to import schema, you have to put the import inside the //types/schema node, e.g wsdl:types xsd:schema xsd:import namespace=http://apache.org/hello_world_soap_http/types; schemaLocation=schema1.xsd/ /xsd:schema /wsdl:types Also, you can turn on the -validate

Re: deployment on eclipse {cxf newbie}

2007-08-16 Thread James Mao
Hi Guys, If it works for you, can you guys kindly update the wiki page, http://cwiki.apache.org/confluence/display/CXF20DOC/CXF+tools+in+Eclipse That's quite useful information. You can list all the requirement steps, if you feel it's necessary Thanks James I am sorry I forgot to mention

Re: Jaxb Complex type

2007-08-15 Thread James Mao
Hi, Is it the generics? I'm not sure about this, have not investigate into it, but can give you a quick answer, java2wsdl don't support Aegis yet. James Hi - I got a complex type as follows: @XmlType(name = PaginatedResult, namespace = ReactorWSConstants.RBX_MODEL_NS) public class

Re: How to pass options to java2wsdl in the maven codegen plugin?

2007-08-15 Thread James Mao
So, any other options you want to add in? Is it ok to close CXF-910? Cheers, James Interestingly, looking at the source code there, it does appear that a lot of the parameters are exposed as regular tags(none of which are documented here:

Re: How to pass options to java2wsdl in the maven codegen plugin?

2007-08-15 Thread James Mao
/CXF20DOC/java-to-wsdl.html)... Jason James Mao wrote: So, any other options you want to add in? Is it ok to close CXF-910? Cheers, James Interestingly, looking at the source code there, it does appear that a lot of the parameters are exposed as regular tags(none of which

Re: How to pass options to java2wsdl in the maven codegen plugin?

2007-08-15 Thread James Mao
sense.Is there any preliminary documentation for the java2ws tool? For what it's worth, I just logged a couple more bugs against the current java2wsdl goal for the codegen maven plugin, CXF-911 and CXF-912 Thanks, Jason James Mao wrote: Hi Jason, I happen to agree with you, but we

Re: DateTime format problem (was Re: Looking for suggestions on how to troubleshot this webservice error?)

2007-08-09 Thread James Mao
Phil James Mao wrote: Hi Phil, Here is an example, jaxws:bindings wsdlLocation=you wsdl location xmlns:jaxws=http://java.sun.com/xml/ns/jaxws; xmlns:xs=http://www.w3.org/2001/XMLSchema; xmlns:jxb=http://java.sun.com/xml/ns/jaxb; xmlns:wsdl=http

Re: DateTime format problem (was Re: Looking for suggestions on how to troubleshot this webservice error?)

2007-08-09 Thread James Mao
if this will clarify things or not. thanks Phil James Mao wrote: Strange, I can pass this without error, do you replace the wsdlLocation and the targetNamespace? What's the version of CXF are you using? what's the jdk version? Can you try with hello_world.wsdl in samples, just change one of the type

Re: Annotation names being ignored in wsdl generation...

2007-08-09 Thread James Mao
Hi Ray, Add @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) just after the @WebService, see if you can get the wsdl right James I am working from the following interface... @WebService(targetNamespace = CurrencyExchangeNamespace.URI, name = CurrencyExchange) public

Re: java2wsdl - wsdl2java lossy? (newbie alert!)

2007-08-09 Thread James Mao
clauses which apparently do not propogate through the WSDL to the generated java source. On the first issue, James Mao replied to Brett: --- Yes, There are two ways Put the customization section into your schema in the wsdl, xsd:annotation xsd:appinfo

Re: Generated WSDL in 2 parts with CXF (was only 1 file in XFire)

2007-08-08 Thread James Mao
Hi Jason, It was fixed in https://issues.apache.org/jira/browse/CXF-669, if the SEI and Impl have different targetNamespaces, we do generate two wsdls James I figured it out, it had to do with the 'targetNamespace' Apparently CXF requires both the interface and implementing classes to

Re: DateTime format problem (was Re: Looking for suggestions on how to troubleshot this webservice error?)

2007-08-08 Thread James Mao
What about use the java.util.Calendar or java.util.Date? will that make any difference? I have not tried your testcase, but you can try add a jaxws binding file when you do wsdl2java to map the xsd:dataTime to java.util.Calendar James Have discovered how to log with interceptors and this has

Re: DateTime format problem (was Re: Looking for suggestions on how to troubleshot this webservice error?)

2007-08-08 Thread James Mao
. thanks Phil James Mao wrote: What about use the java.util.Calendar or java.util.Date? will that make any difference? I have not tried your testcase, but you can try add a jaxws binding file when you do wsdl2java to map the xsd:dataTime to java.util.Calendar James

Re: Which dependecies in maven to use Classes generated by wsdl2java?

2007-08-07 Thread James Mao
Hi, wsdl2java is just a tool to generate the code, since you have your code generated, that means the code gen is successful. The question basically is you want to test the generated code with maven, right? Well, in case it's a jaxws soap application , you at least need the

Re: java2wsdl - wsdl2java lossy?

2007-07-31 Thread James Mao
Brett, It also seems like I have to run java2wsdl twice, or I end up with BARE type parameters. The first time seems required to generate the wrapper classes, and once they're compiled, the second time is required to generate the WSDL. Is this correct behavior? In wrapper style,

Re: Plain Old Xml over Http

2007-07-30 Thread James Mao
? On 7/30/07, James Mao [EMAIL PROTECTED] wrote: wsdl2java tools only support the jax-ws frontend, it does not support the RESTful service, at moment, but we're working on it. We have a XML binding in cxf, you can check out the samples hello_world_xml_bare and hello_world_xml_wrapped, Don't

Re: java2wsdl - wsdl2java lossy?

2007-07-30 Thread James Mao
); And this is the generated client-side signature: public ListJobMetadata getJobMetadataByGroup(String arg0) As you can see, it converted my array of JobMetadata objects into a List. Is there some way to avoid this? Thanks, Brett On 7/30/07 11:31 PM, James Mao [EMAIL PROTECTED] wrote: The reason it generate

Re: Cannot find the declaration of element 'wsdl:definitions'

2007-07-25 Thread James Mao
issue, I'm attaching the actual file (hoping the mailing list won't eat it). Also, I'm on a mac and java -version gives: java version 1.5.0_07 Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_07-164) Java HotSpot(TM) Client VM (build 1.5.0_07-87, mixed mode, sharing) 2007/7/25, James

Re: Tools Error : Can not found wsdl plugin jms-javax.wsdl.Port for wsdl extension point interface javax.wsdl.Port

2007-07-24 Thread James Mao
Hi, Can you attach the whole stacktrace? My first impression is that you don't have the cxf-jms jar in your classpath, can you confirm that Also, let me know which version of cxf you are using Regards, James Hi there, Has anyone seen the following error with wsdl2service? Am trying to

Re: java2wsdl from ant

2007-07-17 Thread James Mao
java2wsdl/wsdl2java ant tasks was in the trunk, i checked in days ago, but you have to build by your own, it's in /trunk/tools/anttask Let me know if you have any problems with it. James I know that ant tasks are pending. Until then, I tried to roll my own. And I crashed with a complaint that

Re: Maven java2wsdl plugin error with jaxws

2007-07-12 Thread James Mao
/executions /plugin Thanks, Cam On 7/12/07, James Mao [EMAIL PROTECTED] wrote: You also need the simple frontend and soap bindings James. hi, i've been having some trouble getting the java2wsdl plugin to generate the wsdl from a java annotated service class, the error i'm

Re: Code generation on Eclipse 3.2 STP 0.6

2007-07-12 Thread James Mao
Hi, I see the problem, the problem is caused by that you have a service named Teste and also you have a portType named Teste According to the jaxws spec, we have a way to solve the naming collision, in command line tools we support the naming collision, you will get the following artifacts

Re: Maven java2wsdl plugin error with jaxws

2007-07-11 Thread James Mao
You also need the simple frontend and soap bindings James. hi, i've been having some trouble getting the java2wsdl plugin to generate the wsdl from a java annotated service class, the error i'm getting is: Error : Can not find the ServiceBulider for style: Jaxws Here's the config in my pom:

Re: Issues resolving remote schemas

2007-07-05 Thread James Mao
Hi Darren, Yes, i also noticed this issue, actually we do include the ws-addr.xsd in your common-xsd.jar, and i think we should use the we had in your jars instead of access the xsd from the remote site. Some site maybe block your access from the program (not from the browser) or it might

Re: wsdl2java ant task

2007-07-03 Thread James Mao
Hi Guy, We don't have the ant tasks for wsdl2java and java2wsdl, as Eoghan said, we do have a ant macro for this. But I do plan to add ant tasks for tools, mostly for wsdl2java and java2wsdl. James See distribution/src/main/release/samples/common_build.xml /Eoghan -Original

Re: Question regarding WSDL2Java

2007-06-27 Thread James Mao
Hi, We delegate the types generation to JAXB2, and in the generated types, they don't generate the setter for the List types You can do the following in Java getChoice().add(new ChoiceType()) James Hi guys, I'm fairly new to CXF and I've got a question regarding the WSDL2Java tool: I

Re:

2007-06-25 Thread James Mao
Also, hope this helps http://cwiki.apache.org/confluence/display/CXF20DOC/CXF+tools+in+Eclipse STP team is updating their document, i'll update the page to add their links after they finished their instructions. James You can search the results here

Re: Maven Java2WSDL Plugin

2007-06-20 Thread James Mao
/plugin /plugins /build -Joel -Original Message- From: James Mao [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 20, 2007 2:18 AM To: cxf-user@incubator.apache.org Subject: Re: Maven Java2WSDL Plugin Forgot to tell you the reason, We treat the frontend as a plugin in java2wsdl

Re: Skipping some layers in the interceptor chain

2007-06-11 Thread James Mao
CXF's wsdl2java tool does not appear to support the Provider/Dispatch style code generation to support document handling. If i pick up only the invoke then I am required to hand code (for instance) the distinction between the 4 operations of the service. SWDP's RESTful tooling supports a

Re: multiple params

2007-05-16 Thread James Mao
Yes, we do. If you want to use simple GET to retrieve the document from service, you can do it with: * .../customers/FirstName/{first_name}/LastName/{last_name} Or * .../customers/?FirstName={first_name}LastName={last_name} FirstName/LastName is the name attribute of the WebParam annotation

Re: client for rest

2007-05-14 Thread James Mao
haven't noticed a binding that converts my operation parameters into get parameters instead of post data. Is that a clearer question ? Probably not ! Richard Shaw From: James Mao [mailto:[EMAIL PROTECTED] Sent: Mon 5/14/2007 4:59 AM To: cxf-user

Re: about cxf-2.0-incubator-RC-src

2007-05-13 Thread James Mao
Hi Feng, I guess what it mean is the binary distribution, not the source distribution. If you download the source distribution[1] you should be able to find the jars. [1] http://cwiki.apache.org/CXF/download.html James James: Another thing, you mentioned You can add

Re: Problems creating service for a given wsdl (RPC/encoded)...

2007-05-10 Thread James Mao
First you have to change the soap binding to rpc/lit or doc-lit, you can do it manually, or use the cxf tool wsdltosoap Then you can use the cxf tool wsdl2java to generate the interface/service/client/server, then add your own impl class But before you try your wsdl, you can take a look at the

Re: wsdlLocation removed from demo's impl code?

2007-04-24 Thread James Mao
Add the wsdlLocation attribute into the annotation, is the easiest way to fix the problem. However we can raise two issues: * Why in jaxws case, the buildFromWsdl and buildFromClass generate two different results * Besides jaxws annotation, is there another way to select specifically from

Re: How To Get Object From SOAP Header?

2007-04-23 Thread James Mao
Hi, Yea, i think we should take this seriously now, i would like to collect the requirement here, if this is most of our users want, We must create jira issues asap. Recently a co-worker of mine called me, asked the same thing, he has bunch of idl, and converted to wsdl, and he used the cxf

Re: Importing XSDs in a WSDL

2007-04-16 Thread James Mao
Hi, Hello, I would prefer to keep my schema types in a separate XSD file rather than define them inside the WSDL file. So, I use an xsd:import to accomplish this. This appears to work well in CXF with one exception: When I view the wsdl at http://localhost:8080/myapp/services/MyService?wsdl

Re: CXF Eclipse Plugin

2007-04-15 Thread James Mao
/2.0-incubator-RC-SNAPSHOT/cxf-eclipse-plugin-2.0-incubator-RC-20070306.200920-7.zip James STP is what I was trying to install. It would not because of the dependancy on the CXF plugin. Thanks Tom James Mao wrote: Hi Tom, Currently the Eclipse plugin are only used by Eclipse STP project

Re: CXF Eclipse Plugin

2007-04-15 Thread James Mao
-incubator-RC-20070306.200920-7.zip James STP is what I was trying to install. It would not because of the dependancy on the CXF plugin. Thanks Tom James Mao wrote: Hi Tom, Currently the Eclipse plugin are only used by Eclipse STP project, and it's a bundle of CXF tools (wsdltojava