WebService wsdl没有types的问题

刚学WebService就遇到一个问题,按视屏敲的代码,它生成的wsdl页面与自己的不一样,我的没有types,结构完全不同了

This XML file does not appear to have any style information associated with it. The document tree is shown below.






























百度了一下也有人遇到了这个问题,找了一会,终于找到了答案,原来接口实现类与接口必须要在一个包下面,否则就会出现这种情况,我的目录结构

WebService wsdl没有types的问题_第1张图片

改成

WebService wsdl没有types的问题_第2张图片

再重新发布就可以了!

This XML file does not appear to have any style information associated with it. The document tree is shown below.

























































你可能感兴趣的:(WebService wsdl没有types的问题)