The Source for Java Technology Collaboration

Home » java.net Forums » GlassFish » Metro and JAXB

Thread: Multiple WSDLs using Maven Plugin (wsimport)

Welcome, Guest Help
Login Login
Guest Settings Guest Settings
Reply to this Thread Reply to this Thread Search Forum Search Forum Back to Thread List Back to Thread List

Permlink Replies: 3 - Last Post: Aug 6, 2008 8:43 AM by: Felipe Gaúcho
Sebastian Gomez
Multiple WSDLs using Maven Plugin (wsimport)
Posted: Aug 6, 2008 2:43 AM
  Click to reply to this thread Reply

Hi everyone.

I'm new to this mailing list, so I'm not 100% sure if this has been
talked about already. I've had a look through the mail archive (both
this one and the old one) and I haven't found any answers, so I hope
someone can help me out here.

Up until now, I've been using the wsimport goal to generate Java code
from a WSDL. Now I've decided to break the WSDL into two, but I can't
find the way to make it work using the plugin. First I tried listing
both files in the wsdlFiles tag, but it didn't work. After that I've
read about using multiple executions for the plugin, but it only
executes the first one listed in the pom. I've tried a few more
things, but always without success. I'm out of ideas now, and I guess
someone else must have had to come up with this issue, and luckily
already found some solution to it.

Hope someone can help me out, because the plugin works perfectly with
just one WSDL!

Thanks in advance.

Sebastian Gomez.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@metro.dev.java.net
For additional commands, e-mail: users-help@metro.dev.java.net


Felipe Gaúcho
Re: Multiple WSDLs using Maven Plugin (wsimport)
Posted: Aug 6, 2008 2:49 AM   in response to: Sebastian Gomez
  Click to reply to this thread Reply

I have a partial finished blog I plan to publish as soon I have time..
about multiple documents WSDL-first JAXWS, etc...

meanwhile, you can check out my open source code from the svn:
https://cejug-classifieds.dev.java.net/source/browse/cejug-classifieds/


checkout the module "cejug-classifieds-server"

it is based on ANT tasks (so supopse you can adapt later as Maven plugin)..

I have 2 web-services produce with WSDL-first approach, and the wsdls
are composed by several XSD schemas and other wsdls.. (yes, I am
importing WSDLs, XSD and trying to reuse the messages and metadata
more I can)

I hope that helps.. my worse chalenges was about namespaces and also
the mistake to use package attribute in the ant task...


On Wed, Aug 6, 2008 at 11:43 AM, Sebastian Gomez <sage.es@gmail.com> wrote:
> Hi everyone.
>
> I'm new to this mailing list, so I'm not 100% sure if this has been
> talked about already. I've had a look through the mail archive (both
> this one and the old one) and I haven't found any answers, so I hope
> someone can help me out here.
>
> Up until now, I've been using the wsimport goal to generate Java code
> from a WSDL. Now I've decided to break the WSDL into two, but I can't
> find the way to make it work using the plugin. First I tried listing
> both files in the wsdlFiles tag, but it didn't work. After that I've
> read about using multiple executions for the plugin, but it only
> executes the first one listed in the pom. I've tried a few more
> things, but always without success. I'm out of ideas now, and I guess
> someone else must have had to come up with this issue, and luckily
> already found some solution to it.
>
> Hope someone can help me out, because the plugin works perfectly with
> just one WSDL!
>
> Thanks in advance.
>
> Sebastian Gomez.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@metro.dev.java.net
> For additional commands, e-mail: users-help@metro.dev.java.net
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@metro.dev.java.net
For additional commands, e-mail: users-help@metro.dev.java.net


Sebastian Gomez
Re: Multiple WSDLs using Maven Plugin (wsimport)
Posted: Aug 6, 2008 8:24 AM   in response to: Felipe Gaúcho
  Click to reply to this thread Reply

Hi. Thanks for such a quick answer. I'll have a look at your project
ASAP. When do you plan to release it? Have you got a deadline to
publish your blog? I'm willing to see it.

>From your answer I understand that the jaxws plugin will not support
more than one wsdl anyhow, and that I'll have to add something to the
project to make it work, is this true?

Sebastian Gomez.


On Wed, Aug 6, 2008 at 11:49 AM, Felipe Gaúcho <fgaucho@gmail.com> wrote:
> I have a partial finished blog I plan to publish as soon I have time..
> about multiple documents WSDL-first JAXWS, etc...
>
> meanwhile, you can check out my open source code from the svn:
> https://cejug-classifieds.dev.java.net/source/browse/cejug-classifieds/
>
>
> checkout the module "cejug-classifieds-server"
>
> it is based on ANT tasks (so supopse you can adapt later as Maven plugin)..
>
> I have 2 web-services produce with WSDL-first approach, and the wsdls
> are composed by several XSD schemas and other wsdls.. (yes, I am
> importing WSDLs, XSD and trying to reuse the messages and metadata
> more I can)
>
> I hope that helps.. my worse chalenges was about namespaces and also
> the mistake to use package attribute in the ant task...
>
>
> On Wed, Aug 6, 2008 at 11:43 AM, Sebastian Gomez <sage.es@gmail.com> wrote:
>> Hi everyone.
>>
>> I'm new to this mailing list, so I'm not 100% sure if this has been
>> talked about already. I've had a look through the mail archive (both
>> this one and the old one) and I haven't found any answers, so I hope
>> someone can help me out here.
>>
>> Up until now, I've been using the wsimport goal to generate Java code
>> from a WSDL. Now I've decided to break the WSDL into two, but I can't
>> find the way to make it work using the plugin. First I tried listing
>> both files in the wsdlFiles tag, but it didn't work. After that I've
>> read about using multiple executions for the plugin, but it only
>> executes the first one listed in the pom. I've tried a few more
>> things, but always without success. I'm out of ideas now, and I guess
>> someone else must have had to come up with this issue, and luckily
>> already found some solution to it.
>>
>> Hope someone can help me out, because the plugin works perfectly with
>> just one WSDL!
>>
>> Thanks in advance.
>>
>> Sebastian Gomez.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@metro.dev.java.net
>> For additional commands, e-mail: users-help@metro.dev.java.net
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@metro.dev.java.net
> For additional commands, e-mail: users-help@metro.dev.java.net
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@metro.dev.java.net
For additional commands, e-mail: users-help@metro.dev.java.net


Felipe Gaúcho
Re: Multiple WSDLs using Maven Plugin (wsimport)
Posted: Aug 6, 2008 8:43 AM   in response to: Sebastian Gomez
  Click to reply to this thread Reply

> project to make it work, is this true?

No, in my project I compile two different WSDLs in the same ANT
task... the Maven plugin should be able to do the same... I just
cannot test it because I am using ant :(

* My blog is on of my hobbies, but I plan to publish it until the
weekend at java.net
* My project's release milestone is December 2008, meanwhile I have a
demo EAR here: https://cejug-classifieds.dev.java.net/files/documents/8128/97920/cejug-classifieds-server.ear
(only works on Glassfish for now)

keep trying and asking... I learn a lot helping other people here :)

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@metro.dev.java.net
For additional commands, e-mail: users-help@metro.dev.java.net





 XML java.net RSS