Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » wsgen failing on ScenarioType
wsgen failing on ScenarioType [message #187634] Wed, 07 February 2007 02:37 Go to next message
Eclipse User
Originally posted by: dtinney.shaw.ca

Hi,

I'm trying to generate a Web Service Proxy client from a .WSDL file and I
can't get around wsgen failing with a "cannot determine scenario type"
error. Here are the files involved in the configuration:

wsgen.xml
<?xml version="1.0"?>


<project default="main" basedir=".">


<echo message="pulling in property files"/>

<property file ="axisclient.properties"/>

<echo message="${ScenarioType}"/>


<echo message="calling the web services generation ant task: wsgen"/>


<target name="main" >

<wsgen/>

</target>


</project>

axisclient.properties

!--ScenarioType REQUIRED. Differentiates from "service" scenario. See
axisservice.properties.

ScenarioType=client


!--InitialSelection REQUIRED. Workspace relative URI to the input WSDL or
Java.

!InitialSelection=/dynamicWebProjectName/WebContent/wsdl/myS ervice.wsdl

InitialSelection=/AboutTime.wsdl

and here is the output:

Buildfile: D:\Documents and Settings\Derek Tinney\My Eclipse
Workspaces\Projects\Scratch\wsgen.xml

[echo] pulling in property files

[echo] D:\Documents and Settings\Derek Tinney\My Eclipse
Workspaces\Projects\Scratch

[echo] client

[echo] calling the web services generation ant task: wsgen


main:

[wsgen] Cannot determine scenario type. Please ensure ScenarioType Ant
property is set.

BUILD SUCCESSFUL

Total time: 181 milliseconds

Despite the output message, the build is clearly not successful and the
${ScenarioType} is set in the current context, does anyone have any pointers
for what I can do to remedy this?

Cheers, Derek.
Re: wsgen failing on ScenarioType [message #187731 is a reply to message #187634] Wed, 07 February 2007 18:09 Go to previous messageGo to next message
Mark Hutchinson is currently offline Mark Hutchinson
Messages: 53
Registered: July 2009
Member
When I use the ant tasks to create web services or clients I have
initial selection in the properties file set to something like:

InitialSelection=/dynamicWebProjectName/WebContent/wsdl/mySe rvice.wsdl

In your properties file you don't have a project name in the path to
your initial selection. Is there a reason for this? There is a
tutorial about the web services Ant tasks at
http://www.eclipse.org/webtools/jst/components/ws/1.0/tutori als/WebServiceAntTask/WebServiceAntTask.html
that might be helpful

Another way of creating a client client without using these ant files is
to right click on the WSDL and select Web Services > Generate Client.
The Tutorial at
http://www.eclipse.org/webtools/jst/components/ws/1.5/tutori als/WebServiceClient/WebServiceClient.html
shows how to create a Web Service Client from a WSDL.

Hope this helps,
Mark

Derek Tinney wrote:
> Hi,
>
> I'm trying to generate a Web Service Proxy client from a .WSDL file and I
> can't get around wsgen failing with a "cannot determine scenario type"
> error. Here are the files involved in the configuration:
>
> wsgen.xml
> <?xml version="1.0"?>
>
>
> <project default="main" basedir=".">
>
>
> <echo message="pulling in property files"/>
>
> <property file ="axisclient.properties"/>
>
> <echo message="${ScenarioType}"/>
>
>
> <echo message="calling the web services generation ant task: wsgen"/>
>
>
> <target name="main" >
>
> <wsgen/>
>
> </target>
>
>
> </project>
>
> axisclient.properties
>
> !--ScenarioType REQUIRED. Differentiates from "service" scenario. See
> axisservice.properties.
>
> ScenarioType=client
>
>
> !--InitialSelection REQUIRED. Workspace relative URI to the input WSDL or
> Java.
>
> !InitialSelection=/dynamicWebProjectName/WebContent/wsdl/myS ervice.wsdl
>
> InitialSelection=/AboutTime.wsdl
>
> and here is the output:
>
> Buildfile: D:\Documents and Settings\Derek Tinney\My Eclipse
> Workspaces\Projects\Scratch\wsgen.xml
>
> [echo] pulling in property files
>
> [echo] D:\Documents and Settings\Derek Tinney\My Eclipse
> Workspaces\Projects\Scratch
>
> [echo] client
>
> [echo] calling the web services generation ant task: wsgen
>
>
> main:
>
> [wsgen] Cannot determine scenario type. Please ensure ScenarioType Ant
> property is set.
>
> BUILD SUCCESSFUL
>
> Total time: 181 milliseconds
>
> Despite the output message, the build is clearly not successful and the
> ${ScenarioType} is set in the current context, does anyone have any pointers
> for what I can do to remedy this?
>
> Cheers, Derek.
>
>
Re: wsgen failing on ScenarioType [message #187864 is a reply to message #187731] Fri, 09 February 2007 08:39 Go to previous messageGo to next message
Eclipse User
Originally posted by: dtinney.shaw.ca

Thanks, I was working from that article, I updated my Eclipse Web Tools and
got the option you referred to. I was working from the referenced article
but was struggling with adapting that workflow to my situation where I'm
working to an external .NET Web Service that I don't control and can't
deploy.

I"m now contacting that WS but can't authenticate, but that's another post.

Cheers,
Derek.


"Mark Hutchinson" <mahutch@ca.ibm.com> wrote in message
news:eqd4k8$c4o$1@utils.eclipse.org...
> When I use the ant tasks to create web services or clients I have initial
> selection in the properties file set to something like:
>
> InitialSelection=/dynamicWebProjectName/WebContent/wsdl/mySe rvice.wsdl
>
> In your properties file you don't have a project name in the path to your
> initial selection. Is there a reason for this? There is a tutorial about
> the web services Ant tasks at
> http://www.eclipse.org/webtools/jst/components/ws/1.0/tutori als/WebServiceAntTask/WebServiceAntTask.html
> that might be helpful
>
> Another way of creating a client client without using these ant files is
> to right click on the WSDL and select Web Services > Generate Client. The
> Tutorial at
> http://www.eclipse.org/webtools/jst/components/ws/1.5/tutori als/WebServiceClient/WebServiceClient.html
> shows how to create a Web Service Client from a WSDL.
>
> Hope this helps,
> Mark
>
> Derek Tinney wrote:
>> Hi,
>>
>> I'm trying to generate a Web Service Proxy client from a .WSDL file and I
>> can't get around wsgen failing with a "cannot determine scenario type"
>> error. Here are the files involved in the configuration:
>>
>> wsgen.xml
>> <?xml version="1.0"?>
>>
>>
>> <project default="main" basedir=".">
>>
>>
>> <echo message="pulling in property files"/>
>>
>> <property file ="axisclient.properties"/>
>>
>> <echo message="${ScenarioType}"/>
>>
>>
>> <echo message="calling the web services generation ant task: wsgen"/>
>>
>>
>> <target name="main" >
>>
>> <wsgen/>
>>
>> </target>
>>
>>
>> </project>
>>
>> axisclient.properties
>>
>> !--ScenarioType REQUIRED. Differentiates from "service" scenario. See
>> axisservice.properties.
>>
>> ScenarioType=client
>>
>>
>> !--InitialSelection REQUIRED. Workspace relative URI to the input WSDL or
>> Java.
>>
>> !InitialSelection=/dynamicWebProjectName/WebContent/wsdl/myS ervice.wsdl
>>
>> InitialSelection=/AboutTime.wsdl
>>
>> and here is the output:
>>
>> Buildfile: D:\Documents and Settings\Derek Tinney\My Eclipse
>> Workspaces\Projects\Scratch\wsgen.xml
>>
>> [echo] pulling in property files
>>
>> [echo] D:\Documents and Settings\Derek Tinney\My Eclipse
>> Workspaces\Projects\Scratch
>>
>> [echo] client
>>
>> [echo] calling the web services generation ant task: wsgen
>>
>>
>> main:
>>
>> [wsgen] Cannot determine scenario type. Please ensure ScenarioType Ant
>> property is set.
>>
>> BUILD SUCCESSFUL
>>
>> Total time: 181 milliseconds
>>
>> Despite the output message, the build is clearly not successful and the
>> ${ScenarioType} is set in the current context, does anyone have any
>> pointers for what I can do to remedy this?
>>
>> Cheers, Derek.
>>
Re: wsgen failing on ScenarioType [message #189537 is a reply to message #187731] Fri, 09 March 2007 23:36 Go to previous message
Eclipse User
Originally posted by: srinivas.sampige.directv.com

Mark

Have you tried using the CustomizeClientMappings property? The minute I
uncomment it (even with a value of false) the wsgen build fails with an
"argument type mismatch" error. I am running Eclipse3.2.2 with WTP1.5.2

thanks
Srini

"Mark Hutchinson" <mahutch@ca.ibm.com> wrote in message
news:eqd4k8$c4o$1@utils.eclipse.org...
> When I use the ant tasks to create web services or clients I have initial
> selection in the properties file set to something like:
>
> InitialSelection=/dynamicWebProjectName/WebContent/wsdl/mySe rvice.wsdl
>
> In your properties file you don't have a project name in the path to your
> initial selection. Is there a reason for this? There is a tutorial about
> the web services Ant tasks at
> http://www.eclipse.org/webtools/jst/components/ws/1.0/tutori als/WebServiceAntTask/WebServiceAntTask.html
> that might be helpful
>
> Another way of creating a client client without using these ant files is
> to right click on the WSDL and select Web Services > Generate Client. The
> Tutorial at
> http://www.eclipse.org/webtools/jst/components/ws/1.5/tutori als/WebServiceClient/WebServiceClient.html
> shows how to create a Web Service Client from a WSDL.
>
> Hope this helps,
> Mark
>
> Derek Tinney wrote:
>> Hi,
>>
>> I'm trying to generate a Web Service Proxy client from a .WSDL file and I
>> can't get around wsgen failing with a "cannot determine scenario type"
>> error. Here are the files involved in the configuration:
>>
>> wsgen.xml
>> <?xml version="1.0"?>
>>
>>
>> <project default="main" basedir=".">
>>
>>
>> <echo message="pulling in property files"/>
>>
>> <property file ="axisclient.properties"/>
>>
>> <echo message="${ScenarioType}"/>
>>
>>
>> <echo message="calling the web services generation ant task: wsgen"/>
>>
>>
>> <target name="main" >
>>
>> <wsgen/>
>>
>> </target>
>>
>>
>> </project>
>>
>> axisclient.properties
>>
>> !--ScenarioType REQUIRED. Differentiates from "service" scenario. See
>> axisservice.properties.
>>
>> ScenarioType=client
>>
>>
>> !--InitialSelection REQUIRED. Workspace relative URI to the input WSDL or
>> Java.
>>
>> !InitialSelection=/dynamicWebProjectName/WebContent/wsdl/myS ervice.wsdl
>>
>> InitialSelection=/AboutTime.wsdl
>>
>> and here is the output:
>>
>> Buildfile: D:\Documents and Settings\Derek Tinney\My Eclipse
>> Workspaces\Projects\Scratch\wsgen.xml
>>
>> [echo] pulling in property files
>>
>> [echo] D:\Documents and Settings\Derek Tinney\My Eclipse
>> Workspaces\Projects\Scratch
>>
>> [echo] client
>>
>> [echo] calling the web services generation ant task: wsgen
>>
>>
>> main:
>>
>> [wsgen] Cannot determine scenario type. Please ensure ScenarioType Ant
>> property is set.
>>
>> BUILD SUCCESSFUL
>>
>> Total time: 181 milliseconds
>>
>> Despite the output message, the build is clearly not successful and the
>> ${ScenarioType} is set in the current context, does anyone have any
>> pointers for what I can do to remedy this?
>>
>> Cheers, Derek.
>>
Previous Topic:WTP, Axis and Tomcat
Next Topic:Dependency trees
Goto Forum:
  


Current Time: Wed Oct 01 06:17:19 GMT 2014

Powered by FUDForum. Page generated in 0.01924 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software