`

web Service请求是报There must be a method name element错误

阅读更多
今天写了个测试web Service客户端的程序报如下错误,查了半天的。原来是请求的地址后面带了"?wsdl",最后去掉了,一切正常
Exception in thread "main" org.codehaus.xfire.XFireRuntimeException: Could not invoke service.. Nested exception is org.codehaus.xfire.fault.XFireFault: There must be a method name element.
org.codehaus.xfire.fault.XFireFault: There must be a method name element.
at org.codehaus.xfire.service.binding.WrappedBinding.readMessage(WrappedBinding.java:32)
at org.codehaus.xfire.soap.handler.SoapBodyHandler.invoke(SoapBodyHandler.java:42)
at org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
at org.codehaus.xfire.client.Client.onReceive(Client.java:406)
at org.codehaus.xfire.transport.http.HttpChannel.sendViaClient(HttpChannel.java:139)
at org.codehaus.xfire.transport.http.HttpChannel.send(HttpChannel.java:48)
at org.codehaus.xfire.handler.OutMessageSender.invoke(OutMessageSender.java:26)
at org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:79)
at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:114)
at org.codehaus.xfire.client.Client.invoke(Client.java:336)
at org.codehaus.xfire.client.XFireProxy.handleRequest(XFireProxy.java:77)
at org.codehaus.xfire.client.XFireProxy.invoke(XFireProxy.java:57)
at $Proxy0.example(Unknown Source)
at clica.Test.main(Test.java:23)
分享到:
评论

相关推荐

    There-be句型专项练习及答案.pdf

    5. 当There be句型与表示“数量”的短语如"a lot of", "some", "many", "few"等结合时,be动词的选择依然遵循"就近原则"。例如: - (C) There is a lot of traffic at this time of day. (这个时间段交通很繁忙。...

    XML Web Service开发

    4. **使用XML Web Service**:开发者通过SOAP请求与服务交互,这些请求通常由编程语言中的库或框架(如.NET Framework的ASMX或WCF服务)生成和处理。 5. **部署和发布XML Web Service**:服务发布到Web服务器上,...

    there be句型用法微课 PPT教案.pptx

    例如:"There is a teacher and many pupils in the classroom." 这里be动词is是根据"a teacher"来确定的,即使"many pupils"是复数。 此外,there be句型的运用还包括: - **否定句**:在其be动词后加上not构成...

    小学Therebe句型PPT学习教案.pptx

    例如:"There is a dog sleeping now."(现在有一只狗在睡觉),"There was a party last night."(昨晚有个聚会),以及"There will be a meeting at 3 pm."(下午三点将有一个会议)。 5. **就近原则**:当There ...

    小学四年级 there be句型PPT学习教案.pptx

    例如:"There is a cat"的否定形式是"There isn't a cat","There are two dogs"的否定形式是"There aren't two dogs"。 3. **否定句**:"There is not"缩写为"There isn't","There are not"缩写为"There aren't...

    小学初中少儿英语课堂游戏-there be句型.docx

    "小学初中少儿英语课堂游戏-there be句型.docx"是一个教学资源,专注于帮助孩子们理解和掌握英语中的"There be"句型。此句型是英语基础语法的重要组成部分,用于表示某处存在某物,通常用于介绍环境或场景。下面将...

    初中therebe句型与have的各种形式的区别与配套练习.doc

    还可以用there must be ,there can’t be, there used to be 等。 例如: * --- There _____ ? * There is a book on the table. → There was a book on the table. → There will be a book on the table. → ...

    六年级毕业复习There be 句型讲解Therebe句型讲解PPT学习教案.pptx

    当There be句型中出现"a/an + 单数可数名词 + and + 多数可数名词"的情况,be动词取决于"a/an + 单数可数名词",如:"There is a cat and two dogs under the tree." (树下有一只猫和两只狗)。 7. **不可数名词与...

    there-be(练习题).docx

    4. "There be"句型与情态动词:在"There be"句型中可以与情态动词如"may", "might", "must"等结合,表达可能性或推测。例如:"There may be something wrong with your watch." 5. "There be"句型与否定词"no":当...

    Therebe句型与数量的表达~A.doc

    【There be 句型与数量的表达】 在英语语法中,There be 句型是一种非常常见且重要的结构,主要用于表达“某地存在某人或某物”。这个句型的主语通常是物,而不是人,强调的是存在的事实。下面将详细阐述There be...

    Sortable前端框架

    fallbackClass: "sortable-fallback", // Class name for the cloned DOM Element when using forceFallback fallbackOnBody: false, // Appends the cloned DOM Element into the Document's Body ...

    六年级毕业复习Therebe句型讲解Therebe句型讲解PPT学习教案.pptx

    【There Be句型详解】 There be句型是英语中一种常见的表达存在、有的句式,尤其在描述事物或人的数量和位置时极为常见。在六年级的英语学习中,掌握There be句型对于孩子们的语法基础至关重要。这个句型遵循特定的...

    10强化训练:therebe结构专练.ppt

    4. "There will be a football match between China and South Korea in Shanghai Stadium this evening." "There will be" 展望将来,预示着一场足球比赛即将发生。 5. "There have been many writers who used ...

    优秀资料(2021-2022年收藏)小学therebe用法和练习.doc

    4. **时态**:`There be`结构可以用于不同的时态,包括一般现在时、一般过去时、一般将来时等,并能与助动词或情态动词结合,如"There will be a new film show on Monday."表示将来存在的情况,而"There must have ...

    object-oriented nonlieanr finite element method

    This work can be considered as an extension of the original FEM_Object environment dealing with linear elasticity [1] and nonlinearity [2]. Mainly the static aspects are discussed in this paper. ...

    一个struts2的例子:彻底解决STRUTS2 错误There is no Action mapped for namespace / and action name login

    前几天在网上下载一个struts2的helloword的例子,那个作者也真够缺德的,搞个错误的程序,害得我查了一天的程序错误。 最后发现竟然是struts.xml被写成啦sturts.xml。 碰见这样的问题先鄙视下提供例子的作者, 再...

    Therebe句型专项练习.pdf

    3. There will be a class meeting tomorrow, and there will be a film the day after tomorrow. 4. Are there several football matches next month? 5. How many pairs of shoes do you have? 7. There is a book...

    There_be_句型课件.ppt

    【There be 句型详解】 There be 句型是英语中最基本且常见的句型之一,用于表示在某个地方存在某物或某人。这个句型的结构为 "There is/are + 名词 + 地点",其中 "There" 是引导词,"is" 或 "are" 根据后面的名词...

Global site tag (gtag.js) - Google Analytics