C#调用OFBiz的WebService

OFBize  WebService 跑起来了,用Soapui 測试正常。

在C# 中调用,

參考文章:http://blog.csdn.net/lorinzhang/article/details/6339380

相同使用其 http post 方法,返回的是失败报文。

迷惑中。使用rawcap 抓包分析,发现Soapui 的包

Content-Type: text/xml;charset=UTF-8

把參考的对应代码改为

request.ContentType = "text/xml;charset=UTF-8";

编译执行,这次返回了成功报文。哦也!

 

posted @ 2017-04-16 16:53  jzdwajue  阅读(81)  评论(0编辑  收藏  举报