You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Javier Leyba <xl...@gmail.com> on 2006/10/09 13:53:23 UTC

java2wsdl

Hi

I'm trying to generate wsdl file from my java code so I did:

-----------
<build>
		<plugins>
			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>axistools-maven-plugin</artifactId>
				<configuration>
					<sourceDirectory>
						src/main/resources/META-INF/wsdl
					</sourceDirectory>
					<testCases>true</testCases>
					<serverSide>false</serverSide>
					<implClass>						com.bs.proteo.notifications.service.NotificationsPortSoapBindingImpl
					</implClass>
					<location>http://dummy-url</location>
					<namespace>
						urn:com:bs:proteo:notifications
					</namespace>
					<typeMappingVersion>1.2</typeMappingVersion>
					<servicePortName>NotificationsPort</servicePortName>
					<filename>notifications.wsdl</filename>
				</configuration>
				<executions>
					<execution>
						<goals>
							<goal>wsdl2java</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
		</plugins>
	</build>
---------------

But when I run the task I got:

[INFO] [axistools:wsdl2java]
[INFO] about to add compile source root
[INFO] Nothing to generate. All WSDL files are up to date.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 8 seconds
[INFO] Finished at: Mon Oct 09 13:48:03 CEST 2006
[INFO] Final Memory: 3M/6M
[INFO] ------------------------------------------------------------------------

But no wsdl file was generated !!!

I noticed that parameters in docs are not explained so, may be I'm
asuming a parameter use in a wrong way.

I've no idea about how to use required parameters "filename" and
"project" and wich parameter allow me to say which is my webservice
interface.


Thanks in advance

J

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: java2wsdl

Posted by Javier Leyba <xl...@gmail.com>.
On 10/11/06, dan tran <da...@gmail.com> wrote:
> btw, did you give 1.1-snapshot a try? it has lots bug fixes since 1.0
>


Thanks for your help but I'm now testing Ivy. I found it more
flexible, documented and practical than Maven...by now... :)

J

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: java2wsdl

Posted by dan tran <da...@gmail.com>.
btw, did you give 1.1-snapshot a try? it has lots bug fixes since 1.0

On 10/11/06, Javier Leyba <xl...@gmail.com> wrote:
>
> On 10/11/06, dan tran <da...@gmail.com> wrote:
> > so you tried to generate a set of wsdl files from your  java source,
> > but you ran the wsdl2java instead. is it a miss typed?
> >
>
>
> Obviously, I've fixed this before sent my last post.
>
>
> J
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: java2wsdl

Posted by Javier Leyba <xl...@gmail.com>.
On 10/11/06, dan tran <da...@gmail.com> wrote:
> so you tried to generate a set of wsdl files from your  java source,
> but you ran the wsdl2java instead. is it a miss typed?
>


Obviously, I've fixed this before sent my last post.


J

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: java2wsdl

Posted by dan tran <da...@gmail.com>.
so you tried to generate a set of wsdl files from your  java source,
but you ran the wsdl2java instead. is it a miss typed?

-D
On 10/11/06, Javier Leyba <xl...@gmail.com> wrote:
>
> On 10/9/06, Marco Mistroni <mm...@gmail.com> wrote:
> > Hello,
> >    i see....
> > in my case, my wstools (jboss) can see the Java file from which generate
> the
> > wsdl because i am specifying it as an ant task, and i am specifying the
> > classpath.. that's why the tool sees my interface
> >
> > check on plugin docs if there is a way to specify classpath...
> >
>
>
> Thanks for the help but I give up. I've tried to clean my code and to
> place each parameter according to docs btu plugin docs are a joke.
>
> I can't lose more time with this.
>
>
> I guess I'll try to use ant tasks from maven..
>
> J
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: java2wsdl

Posted by Javier Leyba <xl...@gmail.com>.
On 10/9/06, Marco Mistroni <mm...@gmail.com> wrote:
> Hello,
>    i see....
> in my case, my wstools (jboss) can see the Java file from which generate the
> wsdl because i am specifying it as an ant task, and i am specifying the
> classpath.. that's why the tool sees my interface
>
> check on plugin docs if there is a way to specify classpath...
>


Thanks for the help but I give up. I've tried to clean my code and to
place each parameter according to docs btu plugin docs are a joke.

I can't lose more time with this.


I guess I'll try to use ant tasks from maven..

J

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: java2wsdl

Posted by Marco Mistroni <mm...@gmail.com>.
Hello,
   i see....
in my case, my wstools (jboss) can see the Java file from which generate the
wsdl because i am specifying it as an ant task, and i am specifying the
classpath.. that's why the tool sees my interface

check on plugin docs if there is a way to specify classpath...

hth
 marco



On 10/9/06, Javier Leyba <xl...@gmail.com> wrote:
>
> On 10/9/06, Marco Mistroni <mm...@gmail.com> wrote:
> > hi,
> >  i have never used axistools plugin.. but for other code-generation
> plugins,
> > normally sourceDirectory is the source of your java files which are
> supposed
> > to go thru the code-generation tool
> >
>
>
> Ok, but java2wsdl use to need to know wich is the interface. It needed
> from command line and use to need it from ant.
>
> I couldn´t imagine how it will know wich is my interface with only the
> path to source code.
>
>
> Thanks
>
> J
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: java2wsdl

Posted by dan tran <da...@gmail.com>.
I think you specified the wrong goal.



On 10/9/06, Javier Leyba <xl...@gmail.com> wrote:
>
> On 10/9/06, Marco Mistroni <mm...@gmail.com> wrote:
> > hi,
> >  i have never used axistools plugin.. but for other code-generation
> plugins,
> > normally sourceDirectory is the source of your java files which are
> supposed
> > to go thru the code-generation tool
> >
>
>
> Ok, but java2wsdl use to need to know wich is the interface. It needed
> from command line and use to need it from ant.
>
> I couldn´t imagine how it will know wich is my interface with only the
> path to source code.
>
>
> Thanks
>
> J
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: java2wsdl

Posted by Javier Leyba <xl...@gmail.com>.
On 10/9/06, Marco Mistroni <mm...@gmail.com> wrote:
> hi,
>  i have never used axistools plugin.. but for other code-generation plugins,
> normally sourceDirectory is the source of your java files which are supposed
> to go thru the code-generation tool
>


Ok, but java2wsdl use to need to know wich is the interface. It needed
from command line and use to need it from ant.

I couldn´t imagine how it will know wich is my interface with only the
path to source code.


Thanks

J

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: java2wsdl

Posted by Marco Mistroni <mm...@gmail.com>.
hi,
 i have never used axistools plugin.. but for other code-generation plugins,
normally sourceDirectory is the source of your java files which are supposed
to go thru the code-generation tool

hth
 marco

On 10/9/06, Javier Leyba <xl...@gmail.com> wrote:
>
> Hi
>
> I'm trying to generate wsdl file from my java code so I did:
>
> -----------
> <build>
>                 <plugins>
>                         <plugin>
>                                 <groupId>org.codehaus.mojo</groupId>
>
>                                 <artifactId>axistools-maven-plugin</artifactId>
>                                 <configuration>
>                                         <sourceDirectory>
>
>                                                 src/main/resources/META-INF/wsdl
>                                         </sourceDirectory>
>                                         <testCases>true</testCases>
>                                         <serverSide>false</serverSide>
>                                         <implClass>
> com.bs.proteo.notifications.service.NotificationsPortSoapBindingImpl
>                                         </implClass>
>                                         <location>http://dummy-url
> </location>
>                                         <namespace>
>
>                                                 urn:com:bs:proteo:notifications
>                                         </namespace>
>                                         <typeMappingVersion>1.2
> </typeMappingVersion>
>
>                                         <servicePortName>NotificationsPort</servicePortName>
>                                         <filename>notifications.wsdl
> </filename>
>                                 </configuration>
>                                 <executions>
>                                         <execution>
>                                                 <goals>
>
>                                                         <goal>wsdl2java</goal>
>                                                 </goals>
>                                         </execution>
>                                 </executions>
>                         </plugin>
>                 </plugins>
>         </build>
> ---------------
>
> But when I run the task I got:
>
> [INFO] [axistools:wsdl2java]
> [INFO] about to add compile source root
> [INFO] Nothing to generate. All WSDL files are up to date.
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD SUCCESSFUL
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 8 seconds
> [INFO] Finished at: Mon Oct 09 13:48:03 CEST 2006
> [INFO] Final Memory: 3M/6M
> [INFO]
> ------------------------------------------------------------------------
>
> But no wsdl file was generated !!!
>
> I noticed that parameters in docs are not explained so, may be I'm
> asuming a parameter use in a wrong way.
>
> I've no idea about how to use required parameters "filename" and
> "project" and wich parameter allow me to say which is my webservice
> interface.
>
>
> Thanks in advance
>
> J
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>