Google Groups Home
Help | Sign in
Java First(java2wsdl) 不能生成代码
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
denight  
View profile
 More options Jun 27, 4:34 am
From: denight <wangzeju...@gmail.com>
Date: Fri, 27 Jun 2008 01:34:23 -0700 (PDT)
Local: Fri, Jun 27 2008 4:34 am
Subject: Java First(java2wsdl) 不能生成代码
我是用 Eclipse Ganymede 的STP 插件, 然后用Java First的方法生成 Web Service的代理方法和wsdl文
件, 如果接口中用String, Integer等比较常见的类型,Eclipse 能够正确的生成Web Service的代理方法和wsdl文
件。 但是如果用自己自己定义的类作为传入参数,就什么也不会生成,

有人知道怎么 解决吗? 谢谢!

public Interface IStockService{

      public String getMyAccount(Stock stock);

}

public class Stock {

        private String name;

        public Stock(String name) {
                super();
                this.name = name;
        }


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
denight  
View profile
 More options Jul 2, 6:02 am
From: denight <wangzeju...@gmail.com>
Date: Wed, 2 Jul 2008 03:02:23 -0700 (PDT)
Local: Wed, Jul 2 2008 6:02 am
Subject: Re: Java First(java2wsdl) 不能生成代码
需要添加一个 缺省的构造器,比较低级的错误,呵呵。

On Jun 27, 4:34 pm, denight <wangzeju...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
steve  
View profile
 More options Jul 2, 10:10 am
From: steve <samw...@gmail.com>
Date: Wed, 2 Jul 2008 07:10:38 -0700 (PDT)
Local: Wed, Jul 2 2008 10:10 am
Subject: Re: Java First(java2wsdl) 不能生成代码
我也不能生成代码,但我是一个简单的例子。
前面我已经生成了wsdl文件,然后在项目上点右键,jax-ws tools->generate code,
正常应该是生成了实现文件,客户端文件和服务器端的java文件,而我没有得到这些文件,只有原来的接口文件。
能指点一下是什么原因吗?
我的eclipse是version 3.4.0,cxf是2.1.1,stp是all in one 0.7.0版本。

On Jul 2, 6:02 pm, denight <wangzeju...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
denight  
View profile
 More options Jul 3, 1:07 am
From: denight <wangzeju...@gmail.com>
Date: Wed, 2 Jul 2008 22:07:08 -0700 (PDT)
Local: Thurs, Jul 3 2008 1:07 am
Subject: Re: Java First(java2wsdl) 不能生成代码
你把CXF的Jar文件放到你的项目的classpat里试一下。

另外如果你用eclipse是version 3.4.0的话,你的STP可以升级一下 www.eclipse.org/stp

On Jul 2, 10:10 pm, steve <samw...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
宇纣  
View profile
 More options Jul 22, 2:13 am
From: 宇纣 <smart...@gmail.com>
Date: Mon, 21 Jul 2008 23:13:46 -0700 (PDT)
Local: Tues, Jul 22 2008 2:13 am
Subject: Re: Java First(java2wsdl) 不能生成代码
Hi,steve:
开始我也遇到了和你一样的问题,后来在定义接口的上一行加上一个annotations:@WebService,再执行就能生成各个java文件了。
这是我从之前看的JAXWS例子里得到的灵感,也说不清为什么~
我是新手,嘿嘿。

On 7月2日, 下午10时10分, steve <samw...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
steve  
View profile
 More options Jul 30, 1:43 am
From: steve <samw...@gmail.com>
Date: Tue, 29 Jul 2008 22:43:16 -0700 (PDT)
Local: Wed, Jul 30 2008 1:43 am
Subject: Re: Java First(java2wsdl) 不能生成代码
嗯,好的,我也是新手,共同学习吧。

On Jul 22, 2:13 pm, 宇纣 <smart...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google