江湖救急:关于axis2发布的Fault Service问题!!!

钟奎 2007-02-08 07:15:13
发布arr文件报:Fault Service
java源代码:
-----------------------
package org.guoxin;

import org.apache.axiom.om.OMAbstractFactory;
import org.apache.axiom.om.OMElement;
import org.apache.axiom.om.OMFactory;
import org.apache.axiom.om.OMNamespace;

public class AnimalServiceClass {
public String queryOwner(String Aname)
{
System.out.println("Animal name:" + Aname);
return "Animal " + Aname + "of Owner: rocket";
}

public void setAttribute(OMElement info)
{
System.out.println(info.getText());
}

public OMElement getAttribute(OMElement info)
{
OMFactory fac = OMAbstractFactory.getOMFactory();
OMNamespace omNs = fac.createOMNamespace("http://animals.guoxin.net","Animal");
OMElement resp = fac.createOMElement("getAttribute",omNs);
resp.setText("animal 1");
return resp;
}
}


services.xml
----------------------------
<service name="AnimalsService">
<parameter name="ServiceClass" locked="false">org.guoxin.AnimalServiceClass</parameter>
<operation name="queryOwner">
<messageReceiver class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
</operation>

<operation name="setAttribute">
<messageReceiver class="org.apache.axis2.rpc.receivers.RawXMLINOnlyMessageReceiver"/>
<actionMapping>urn:setAttribute</actionMapping>
</operation>
<operation name="getAttribute">
<messageReceiver class="org.apache.axis2.rpc.receivers.RawXMLINOutMessageReceiver"/>
<actionMapping>urn:getAttribute</actionMapping>
</operation>
</service>
...全文
980 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
钟奎 2007-02-09
  • 打赏
  • 举报
回复
问题解决了!!!
高兴中...
钟奎 2007-02-09
  • 打赏
  • 举报
回复
出现新问题,在访问wsdl时:
<error>
<description>Unable to generate WSDL for this service</description>
<reason>
Either user has not dropped the wsdl into META-INF or operations use message receivers other than RPC.
</reason>
</error>

高手指点。。。。
钟奎 2007-02-08
  • 打赏
  • 举报
回复
如果单申明queryOwner没有错误!不知道是不是RawXMLINOnlyMessageReceiver的问题?
高手请旨点....
YOLO系列是基于深度学习的端到端实时目标检测方法。 PyTorch版的YOLOv5轻量而性能高,更加灵活和易用,当前非常流行。 本课程将手把手地教大家使用labelImg标注和使用YOLOv5训练自己的数据集。课程实战分为两个项目:单目标检测(足球目标检测)和多目标检测(足球和梅西同时检测)。 本课程的YOLOv5使用ultralytics/yolov5,在Ubuntu系统上做项目演示。包括:安装YOLOv5、标注自己的数据集、准备自己的数据集、修改配置文件、训练自己的数据集、测试训练出的网络模型和性能统计。 希望学习在Windows系统上演示的学员,请前往《YOLOv5(PyTorch)实战:训练自己的数据集(Windows)》课程链接:https://edu.csdn.net/course/detail/30923本人推出了有关YOLOv5目标检测的系列课程。请持续关注该系列的其它视频课程,包括:《YOLOv5(PyTorch)目标检测实战:训练自己的数据集》Ubuntu系统 https://edu.csdn.net/course/detail/30793Windows系统 https://edu.csdn.net/course/detail/30923《YOLOv5(PyTorch)目标检测:原理与源码解析》课程链接:https://edu.csdn.net/course/detail/31428《YOLOv5目标检测实战:Flask Web部署》课程链接:https://edu.csdn.net/course/detail/31087《YOLOv5(PyTorch)目标检测实战:TensorRT加速部署》课程链接:https://edu.csdn.net/course/detail/32303《YOLOv5目标检测实战:Jetson Nano部署》课程链接:https://edu.csdn.net/course/detail/32451《YOLOv5+DeepSORT多目标跟踪与计数精讲》课程链接:https://edu.csdn.net/course/detail/32669《YOLOv5实战口罩佩戴检测》课程链接:https://edu.csdn.net/course/detail/32744《YOLOv5实战中国交通标志识别》课程链接:https://edu.csdn.net/course/detail/35209 《YOLOv5实战垃圾分类目标检测》课程链接:https://edu.csdn.net/course/detail/35284  

67,513

社区成员

发帖
与我相关
我的任务
社区描述
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
社区管理员
  • Java EE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧