On Saturday, April 21, 2012 01:13:29 AM imiten wrote:
> Hi,
> 
> I have written jax-ws webservice using Provider<SOAPMessage>.  Using maven
> now I suppose next steps are to generate wsdl and then client.  can one
> point me to example/article.

If using a Provider, there really is no point in generating a WSDL.   It 
would be extremely generic and really provide very little value as it's just 
an "invoke" method that would take anything.  

If you are going to use the Dispatch API's there really isn't a need for the 
WSDL.   Create the Service object, add the port (addPort(....)), and then 
createDispatch(...)

Dan



> I have wsdl and client in this
> http://cxf.547215.n5.nabble.com/webservice-client-marshal-exception-tp5654
> 848p5654848.html post  generated using pom snippet:
> <plugin>
>         <groupId>org.apache.cxf</groupId>
>         <artifactId>cxf-java2ws-plugin</artifactId>
>         <version>${cxf.version}</version>
>         <executions>
>            <execution>
> 
>             <id>process-classes</id>
>             <phase>process-classes</phase>
>             <configuration>
>              
> <className>com.mkyong.webservice.ProductWebService</className>
> <genWsdl>true</genWsdl>
> 
> 
> <outputFile>${project.build.directory}/${project.build.finalName}/wsdl/Pro
> ductWebService.wsdl</outputFile>
> 
>               <genServer>true</genServer>
> 
>             <verbose>true</verbose>
>             </configuration>
>             <goals>
>               <goal>java2ws</goal>
>             </goals>
>           </execution>
>         </executions>
>    </plugin>
> 
> The doubt if this is right as the client is supposed to be Dispatch API
> based.  If I use eclipse m2e plugin it generates client correctly.  Please
> guide how to get going with maven.
> 
> Regards,
> 
> Miten.
> 
> --
> View this message in context:
> http://cxf.547215.n5.nabble.com/generate-wsdl-and-client-Dispatch-for-jax
> -ws-Provider-tp5655967p5655967.html Sent from the cxf-user mailing list
> archive at Nabble.com.
-- 
Daniel Kulp
[email protected] - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com

Reply via email to