社区
Web 应用
帖子详情
pb12.5 开发webservice 总是自动添加
塑料勺
2020-05-29 12:07:16
pb12.5 开发webservice 总是自动添加<string xmlns="http://tempurl.org"> </string> 怎么能去掉呢
这个借口是需要其他程序调用的 加上这个其他程序无法调用
...全文
574
6
打赏
收藏
pb12.5 开发webservice 总是自动添加<string xmlns="http://tempurl.org">
pb12.5 开发webservice 总是自动添加 怎么能去掉呢 这个借口是需要其他程序调用的 加上这个其他程序无法调用
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
6 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
yccf
2021-07-06
打赏
举报
回复
用C#写个web服务,返回数据截断处理就可以了。
WMERP
2020-06-18
打赏
举报
回复
你试下用ref 参数返回结果,而不是用return 返回
塑料勺
2020-06-16
打赏
举报
回复
不想用外部插件,PB本身不能解决这个问题吗
pcwe2002
2020-06-04
打赏
举报
回复
用satrda内容可以随意添加 ls_data = '<?xml version="1.0" encoding="utf-8"?><root><name>姓名</name><id>001</id></root>' lb_body = n_api.of_toutf8(as_json) n_api.ResponseWrite(al_context,lb_body,len(lb_body)) 参考
https://blog.csdn.net/pcwe2002/article/details/53287965
塑料勺
2020-05-29
打赏
举报
回复
给其他程序员调用,其他人用的是C# 给我的接口文档就是 他们要调用我的webservice 而且人家只认
<?xml version="1.0" encoding="utf-8"?>
<root>
<name>姓名</name>
<id>001</id>
</root>
人家不认
<?xml version="1.0" encoding="utf-8"?>
<string xmlns="http://tempurl.org">
<root>
<name>姓名</name>
<id>001</id>
</root>
</string>
说我返回的数据有问题,求各路大神帮忙。
我这个<string xmlns="http://tempurl.org"> 只要一return 就自动加上了。
WMERP
2020-05-29
打赏
举报
回复
你是哪里调用?可以写个字符串截取就可以了,如果是java调用可以用XML2listbean直接转换就行。
调用pb
开发
的webserver(SOAP 1.2)
调用pb
开发
的webserver(SOAP 1.2) /* POST /
webservice
/n_
webservice
.asmx
HTTP
/1.1 Host: localhost Content-Type: application/soap+
xml
; charset=utf-8 Content-Length: length
xml
version="1.0" encoding="utf-8"?>
xml
ns
:xsi="
http
://www.w3.
org
/2001/
XML
Schema-i
ns
tance"
xml
ns
:xsd="
http
://www.w3.
org
/2001/
XML
Schema"
xml
ns
:soap12="
http
://www.w3.
org
/2003/05/soap-envelope">
xml
ns
="
http
://webi.
org
">
string
string
调用pb
开发
的webserver(SOAP 1.1)
调用pb
开发
的webserver(SOAP 1.1) /* POST /
webservice
/n_
webservice
.asmx
HTTP
/1.1 Host: localhost Content-Type: application/soap+
xml
; charset=utf-8 Content-Length: length
xml
version="1.0" encoding="utf-8"?>
xml
ns
:xsi="
http
://www.w3.
org
/2001/
XML
Schema-i
ns
tance"
xml
ns
:xsd="
http
://www.w3.
org
/2001/
XML
Schema"
xml
ns
:soap12="
http
://www.w3.
org
/2003/05/soap-envelope">
xml
ns
="
http
://webi.
org
">
string
string
webService
序列化
xml
以及去掉删除<
string
xml
ns
=“
http
://
temp
uri.
org
/”>
/// <summary> /// 过车信息查询 /// </summary> /// <param name="FetchId">索引ID值</param> /// <param name="FetchCount">获取的数据条数</param> /// <retur
ns
></retur
ns
> [Web...
webService
序列化
xml
以及去掉删除<
string
xml
ns
=“
http
://
temp
uri.
org
/”>
/// /// 过车信息查询 /// /// 索引ID值 /// 获取的数据条数 /// [WebMethod] public void GetInCar(int FetchId, int FetchCount) { I
xsi:type="xs:
string
"
xml
ns
:xs="
http
://www.w3.
org
/2001/
XML
Schema"
xml
ns
:xsi="
http
://www.w3.
org
/2001/
WebService
返回报文出错 <S:Envelope
xml
ns
:S="
http
://schemas.
xml
soap.
org
/soap/envelope/"> <S:Body> <
ns
2:bestPayPresentInfoRespo
ns
e
xml
ns
:
ns
2="
http
://ws.bestPayPresent.ibs.ffcs.com/"&g...
Web 应用
662
社区成员
2,333
社区内容
发帖
与我相关
我的任务
Web 应用
PowerBuilder Web 应用
复制链接
扫一扫
分享
社区描述
PowerBuilder Web 应用
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章