soap 服务的 问题>?

RayZheng86 2007-10-15 11:24:25
我用的是 soap2.3.1 ,发布了一个 服务,
写了一个xml 文件
<?xml version="1.0" encoding="UTF-8" ?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SOAP-ENV:Body>
<ns1:sayHi xmlns:ns1="urn:HelloWorld_SOAPService" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">

<ourName xsi:type="xsd:string">esfdsfdfdasfdf</ourName>

</ns1:sayHi>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
提交后服务器返回正确信息,但是看到好多xml 文件中 不用加 xsi:type="xsd:string", 我试以下,去掉后,soap服务就不能正常工作了,返回错误信息,无法解析

请高手帮忙,是怎么回事 ???
...全文
81 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

67,513

社区成员

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

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