PB调用java写的webservice,服务器端接收的参数为null值.
PB调用java写的webservice,调用成功,但服务器端接收的参数为null值,而用java调用则正常,参数类型为String,调用代码如下,请问要如何解决?
long ll_ret , ll_row
string str_proxy_name = "test_isendstatussoap11port_http"
string err
soapconnection lsc_conn
test_isendstatussoap11port_http test_ws
try
lsc_conn = create soapconnection
catch (RUNtimeerror e11)
err = '创建soapconnection 出现错误,错误消息是: ' + e11.getMessage()
messagebox('',err)
return
end try
try
lsc_conn.SetOptions("SoapLog=~"C:\soaplog.txt~"")
catch (RUNtimeerror e12)
err = 'soapconnection 调用函数SetOptions 出现错误,错误消息是: ' + e12.getMessage()
messagebox('',err)
return
end try
try
ll_ret = lsc_conn.createInstance(test_ws,str_proxy_name,"http://10.10.0.4:9080/uapws/service/ldxy")
catch (RUNtimeerror e13)
err = 'soapconnection 创建实例(函数createInstance)失败,错误消息是: ' + e13.getMessage()
messagebox('',err)
return
end try
if ll_ret <> 0 then
err = '创建实例失败,请检查代理对象是否正确,错误代码'
messagebox('',err)
return
end if
String ls_1,ls_2
ls_1 = "2012-08-20 11:01:30"
ls_2 = "2012-08-20 11:07:30"
String ls_rtn
ls_rtn = test_ws.sendStatus(ls_1,ls_2)
messagebox("2",ls_rtn)
[解决办法]
函数问题吗,webservice程序改过之后,pb中需要重新deploy一下
[解决办法]
参数发过来,帮你测一下