java webservice 报错

问题描述

java webservice 报错
Exception in thread "main" javax.xml.ws.WebServiceException: WSDL file:/C:/Workspaces/MyEclipse%208.6/08-SOA/WebRoot/WEB-INF/classes/META-INF/wsdl/user.wsdl has the following services [{http://service.ok.com.cn}UserService] but not {http://service.ok.com.cn/}UserService. Maybe you forgot to specify a serviceName and/or targetNamespace in @WebService/@WebServiceProvider?
    at com.sun.xml.internal.ws.server.EndpointFactory.verifyPrimaryWSDL(EndpointFactory.java:466)
    at com.sun.xml.internal.ws.server.EndpointFactory.createEndpoint(EndpointFactory.java:144)
    at com.sun.xml.internal.ws.api.server.WSEndpoint.create(WSEndpoint.java:498)
    at com.sun.xml.internal.ws.transport.http.server.EndpointImpl.createEndpoint(EndpointImpl.java:246)
    at com.sun.xml.internal.ws.transport.http.server.EndpointImpl.publish(EndpointImpl.java:170)
    at com.sun.xml.internal.ws.spi.ProviderImpl.createAndPublishEndpoint(ProviderImpl.java:113)
    at javax.xml.ws.Endpoint.publish(Endpoint.java:240)
    at cn.com.ok.service.MyServer.main(MyServer.java:12)

解决方案

http://service.ok.com.cn/
后面多了个 '/' ?

时间: 2024-10-28 16:32:19

java webservice 报错的相关文章

web service-android通过ksoap2连接webservice报错

问题描述 android通过ksoap2连接webservice报错 SoapFault - faultcode: 'Receiver' faultstring: 'Layout does not exist LayoutID = 0' faultactor: 'null' detail: nullat org.ksoap2.serialization.SoapSerializationEnvelope.parseBody(SoapSerializationEnvelope.java:137)哪

ocket xception-android开发,调用webservice报错,求指导一下,感激不尽

问题描述 android开发,调用webservice报错,求指导一下,感激不尽 java.net.SocketException: sendto failed: ECONNRESET (Connection reset by peer) 解决方案 网络问题,检查下通讯,ip端口等等.

webservice websphere-websphere6.0下发布webservice报错,tomcat下正常

问题描述 websphere6.0下发布webservice报错,tomcat下正常 错误信息如下: Fault - ; nested exception is: WSDLException: faultCode=PARSER_ERROR: Problem parsing '- WSDL Document -'.: can't declare any more prefixes in this context: java.lang.IllegalStateException: can't dec

wsdl-掉用webservice报错,,大家帮忙看看啊

问题描述 掉用webservice报错,,大家帮忙看看啊 五月 11, 2015 5:16:50 下午 org.apache.cxf.service.factory.ReflectionServiceFactoryBean buildServiceFromWSDL 信息: Creating Service {http://impl.webservice.platform.hotent.com/}UserDetailsServiceImplService from WSDL: http://loc

tamcat发布webservice报错(jaxws)

问题描述 各位大侠们:tamcat发布webservice报错(jaxws),帮帮忙呢!纠结了好几天的严重:Exceptionsendingcontextinitializedeventtolistenerinstanceofclasscom.sun.xml.ws.transport.http.servlet.WSServletContextListenercom.sun.xml.ws.transport.http.servlet.WSServletException:WSSERVLET11:无

android-Android调用webservice报错空指针异常

问题描述 Android调用webservice报错空指针异常 #test2(String name) 输入一个String类型 返回hello+name的Demo

树形 递归-java 递归报错 求大神帮忙

问题描述 java 递归报错 求大神帮忙 private List<Post> getPostLower(List<Post> PostTops){ List<Post> postAll=new ArrayList<Post>(); // 上级 for(Post post:PostTops){ //查询到下级 List<Post> posts=basService.queryPostByParentId(post.getPostId()); //

java程序报错,求大神找bug

问题描述 java程序报错,求大神找bug package arraysofobjects; import java.util.Scanner; public class arraysofobjects { public static void main(String[] args) { Scanner input=new Scanner(System.in); students[] stu=new students[4]; String name; int grade; for(int i=0

jsp-大神帮帮我啊,java web报错,谢谢了

问题描述 大神帮帮我啊,java web报错,谢谢了 2015-6-2 12:09:06 org.apache.catalina.core.StandardWrapperValve invoke 严重: Servlet.service() for servlet jsp threw exception java.lang.NullPointerException at com.mr.tool.JDBConnection.executeQuery(JDBConnection.java:35) at