Re: Multiple services from one WSDL... advice?
On Mon, Jun 23, 2008 at 2:59 PM, pierre betz <[EMAIL PROTECTED]> wrote: > Hi, talking about that, is there any still any way to have a wsdl2java > process that will build all ports and services in one time ? you can use -ap But here as you have noticed they should refer to same portType. thanks, Amila. > > I mean, my wsdl file had 1 service with lot of ports (with differents port > types, and I think that's why it was not well built)... > and now the only solutoin I had found is to make 1 service for each port > type. > > i thought I can make 1 service with multiple ports, so with differents > operations, like add, remove, edit user for example, > but it don't work because the binding and port type is different. > > So, I'm not sure, but I must make 1 service by operation in fact no ? could > you confirm that ? > > Thx :) > > Pierre Betz > -- Amila Suriarachchi, WSO2 Inc.
Re: Multiple services from one WSDL... advice?
Hi, talking about that, is there any still any way to have a wsdl2java process that will build all ports and services in one time ? I mean, my wsdl file had 1 service with lot of ports (with differents port types, and I think that's why it was not well built)... and now the only solutoin I had found is to make 1 service for each port type. i thought I can make 1 service with multiple ports, so with differents operations, like add, remove, edit user for example, but it don't work because the binding and port type is different. So, I'm not sure, but I must make 1 service by operation in fact no ? could you confirm that ? Thx :) Pierre Betz
Re: Multiple services from one WSDL... advice?
2008/6/22 Amila Suriarachchi <[EMAIL PROTECTED]>: >> So instead I'm planning on keeping them in separate services, and >> writing a custom Ant task that runs the code generator three times and >> deploys three separate services to the server. > > If you have three services you don't have to do this. Wsdl2java tool will > generate three skeltons and three services in service.xml. Wow, I had no idea that worked. I'd just been using the Eclipse plugin, which forces you to choose between the services in the WSDL. (At least it does in 1.3, is this changed in 1.4?) Thanks for the tip. One thing I've noticed though -- the generated WSDLs in the target resources directory are a little bit strange. Although each one contains just one service definition, they all contain all the bindings and port types for all of the services in the original WSDL, even the ones that aren't in use. I've attached one of mine for reference, in case anyone who is working on the codegen tools wants to have a look. I doubt it's a problem, but it's the kind of thing I could see badly-designed clients throwing errors over... Now to get it all working in Ant. Cheers, Andrew. http://ws.cathdb.info/Grid"; xmlns="http://ws.cathdb.info/Grid"; xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; xmlns:types="http://ws.cathdb.info/Types";> http://ws.cathdb.info/Types"; schemaLocation="xsd0.xsd"/> TODO. Check the status of a job: -1 = failure, 1 = complete, <1 = running. The higher the number, the closer to completion the job is. Scan a given protein sequence against the representative sequences (Sreps) for each of CATH's 35% sequence identity (S35) clusters, using BLASTP. Scan a given protein sequence against the representative sequences (Sreps) for each of CATH's 35% sequence identity (S35) clusters, using the Needleman-Wunsch algorithm. Scan a given protein sequence against CATH's library of HMMER profiles, with an e-value cutoff of 0.001. Scan a given protein sequence against CATH's library of HMMER profiles, then runs DomainFinder over the hits. TODO. TODO. http://schemas.xmlsoap.org/soap/http"/> http://ws.cathdb.info/Grid/MonitorJob"/> http://schemas.xmlsoap.org/soap/http"/> http://ws.cathdb.info/Grid/RetrieveJob"/> http://schemas.xmlsoap.org/soap/http"/> http://ws.cathdb.info/Grid/SubmitBlast"/> http://ws.cathdb.info/Grid/SubmitNw"/> http://ws.cathdb.info/Grid/SubmitHmmer"/> http://ws.cathdb.info/Grid/SubmitHmmerDf"/> http://ws.cathdb.info/Grid/SubmitSam"/> http://ws.cathdb.info/Grid/SubmitSamDf"/> This is the web service interface onto the CATH database, allowing various useful processing stages from the CATH production pipeline to be invoked individually. All jobs are run asynchronously on our server farm (FILL IN DETAILS). Each job is started via a Submit... operation which returns a JobID. This can be used to monitor the status of the job via MonitorJob, which returns a value between 0 and 1 representing (roughly) percentage complete, or -1 to indicate that the job has failed. After MonitorJob for a given job returns 1, the job is done, and its results can be retrieved via the corresponding Retrieve... operation. Please contact [EMAIL PROTECTED] with any comments or questions. http://ws.cathdb.info/Grid"/> - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Multiple services from one WSDL... advice?
On Fri, Jun 20, 2008 at 3:18 PM, Andrew Clegg <[EMAIL PROTECTED]> wrote: > Morning folks, a new Axis2 user here seeking some sage advice. > > I'm working on a new WS interface for a scientific compute farm, using > Axis2 to generate server classes from WSDLs. The WSDLs currently > define three services: Submit, Monitor and Retrieve. > > Submit offers various operations for submitting jobs of various kinds > to the farm for processing, each of which returns a JobID. Monitor > provides operations for checking the status of jobs, nodes etc. > Retrieve contains operations for getting the results of finished jobs > back in several different formats. > > Submit, Monitor and Retrieve are currently separate services but I > would be happy putting them in as separate ports within one service. > Ideally, I'd like to be able to run the code generator once on a > single master WSDL, and generate stubs for all three services/ports -- > but this isn't allowed. (At least in 1.3, which we are using -- has > this changed in 1.4?) > > So instead I'm planning on keeping them in separate services, and > writing a custom Ant task that runs the code generator three times and > deploys three separate services to the server. If you have three services you don't have to do this. Wsdl2java tool will generate three skeltons and three services in service.xml. Is it possible you to send a wsdl you have or a sample wsdl to show the problem you face? thanks, Amila. > Each of the three would > need separate directories for src, resources and bin, in order to > avoid clashes. We're working in Eclipse but don't want to set up > completely separate projects for the three services, because of (a) > the amount of back-end code that'll be shared between them and (b) the > fact that we want to keep them together in Subversion to simplify > versioning. > > In your experience, would this work, or can you think of a better way? > Are there any other 'gotchas' I should look out for? > > Thanks in advance, > > Andrew. > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Amila Suriarachchi, WSO2 Inc.
Re: Multiple services from one WSDL... advice?
2008/6/20 Willard, Jonathan <[EMAIL PROTECTED]>: > > > > > > > > > > > > > > > Great stuff, thanks for the example, I reckon I can get things working pretty similarly here. Cheers, Andrew. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Multiple services from one WSDL... advice?
I am very weak with ant but bundle my classes this way, so that my aar file contains all of the classes from all of the a-e services that I ship and the servcies.xml file in com/resources. As I build more servcies I'll probably want to make my include name a bit less specific. Since the generate.service depends on generate.wsdl phase, if the classes are out of date then I will run the wsdl generation first. My dir structure is basically: WebServcies/src/com/.../ws/a WebServcies/src/com/.../ws/b WebServcies/src/com/.../ws/c Etc Where a-e are different services that are grouped under my application group. I will not migrate to Eclipse exclusively because we have a lot of software (Java and C++) ... a build can take between 5-10 hours and is usually done overnight. However all of our java code directories support eclipse so when the build is done we have a 'parallel' build for eclipse development/debugging but recompiling for deployment is done via the legacy makefiles/ant and Eclipse does a parallel recompile into an eclipse only area. The Eclipse build/rebuild is significatly faster than the overnight full C++/Java initial build. Jon -Original Message- From: Andrew Clegg [mailto:[EMAIL PROTECTED] Sent: Friday, June 20, 2008 10:36 AM To: axis-user@ws.apache.org Subject: Re: Multiple services from one WSDL... advice? Hi Jon, thanks for the tips. I've stayed on-list for the benefit of future searchers... 2008/6/20 Willard, Jonathan <[EMAIL PROTECTED]>: > I am building multiple services that get bundled into one .aar file. I > have a servcies.xml file that uses this structure > > > > > It's good to know someone else is doing something similar. How do you bundle several services into a single aar? Could you post an ant or makefile example? I wasn't even sure if this was possible from my (admittedly brief) docs search. I've got my setup working a bit like this, but with a separate resources folder and services.xml for each. It would be nice to be able to package up all three services, plus the types derived from the shared XML Schema which are in a different location, so I can deploy them to the server together. > And a build system using legacy makefiles and ant to build each service > separately. I have directory that contains the services, each in a > separate package and a directory that contains the test clients, each in > a separate package. This works well for me. I can compile all the > services using java2wsdl and then compile all the clients using > wsdl2java. I use eclipse too and all the services are in one project > but the compiling is all done with the legacy makefiles/ant system on > the command line / cygwin shell. The only draw back to this is that > sometimes I have to refresh Eclipse to see the stub changes. Have you considered migrating the make bits into ant, and then kicking them off from Eclipse as custom project builders? That's what I'm aiming for when I get the manual build process working happily. Cheers, Andrew. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Multiple services from one WSDL... advice?
Hi Jon, thanks for the tips. I've stayed on-list for the benefit of future searchers... 2008/6/20 Willard, Jonathan <[EMAIL PROTECTED]>: > I am building multiple services that get bundled into one .aar file. I > have a servcies.xml file that uses this structure > > > > > It's good to know someone else is doing something similar. How do you bundle several services into a single aar? Could you post an ant or makefile example? I wasn't even sure if this was possible from my (admittedly brief) docs search. I've got my setup working a bit like this, but with a separate resources folder and services.xml for each. It would be nice to be able to package up all three services, plus the types derived from the shared XML Schema which are in a different location, so I can deploy them to the server together. > And a build system using legacy makefiles and ant to build each service > separately. I have directory that contains the services, each in a > separate package and a directory that contains the test clients, each in > a separate package. This works well for me. I can compile all the > services using java2wsdl and then compile all the clients using > wsdl2java. I use eclipse too and all the services are in one project > but the compiling is all done with the legacy makefiles/ant system on > the command line / cygwin shell. The only draw back to this is that > sometimes I have to refresh Eclipse to see the stub changes. Have you considered migrating the make bits into ant, and then kicking them off from Eclipse as custom project builders? That's what I'm aiming for when I get the manual build process working happily. Cheers, Andrew. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Multiple services from one WSDL... advice?
Hi Andrew, I am fairly new to Axis2 so I can offer non-Sage advice ... but some real experience information... I am building multiple services that get bundled into one .aar file. I have a servcies.xml file that uses this structure And a build system using legacy makefiles and ant to build each service separately. I have directory that contains the services, each in a separate package and a directory that contains the test clients, each in a separate package. This works well for me. I can compile all the services using java2wsdl and then compile all the clients using wsdl2java. I use eclipse too and all the services are in one project but the compiling is all done with the legacy makefiles/ant system on the command line / cygwin shell. The only draw back to this is that sometimes I have to refresh Eclipse to see the stub changes. I hope this helps ... if you have additional questions please feel free to contact me directly. Jon -Original Message- From: Andrew Clegg [mailto:[EMAIL PROTECTED] Sent: Friday, June 20, 2008 5:49 AM To: axis-user@ws.apache.org Subject: Multiple services from one WSDL... advice? Morning folks, a new Axis2 user here seeking some sage advice. I'm working on a new WS interface for a scientific compute farm, using Axis2 to generate server classes from WSDLs. The WSDLs currently define three services: Submit, Monitor and Retrieve. Submit offers various operations for submitting jobs of various kinds to the farm for processing, each of which returns a JobID. Monitor provides operations for checking the status of jobs, nodes etc. Retrieve contains operations for getting the results of finished jobs back in several different formats. Submit, Monitor and Retrieve are currently separate services but I would be happy putting them in as separate ports within one service. Ideally, I'd like to be able to run the code generator once on a single master WSDL, and generate stubs for all three services/ports -- but this isn't allowed. (At least in 1.3, which we are using -- has this changed in 1.4?) So instead I'm planning on keeping them in separate services, and writing a custom Ant task that runs the code generator three times and deploys three separate services to the server. Each of the three would need separate directories for src, resources and bin, in order to avoid clashes. We're working in Eclipse but don't want to set up completely separate projects for the three services, because of (a) the amount of back-end code that'll be shared between them and (b) the fact that we want to keep them together in Subversion to simplify versioning. In your experience, would this work, or can you think of a better way? Are there any other 'gotchas' I should look out for? Thanks in advance, Andrew. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]