使用inet控件post xml参数遇到问题
需要向 指定地址post数据参数 之前用inet的geturl方法正常调用,现在需要使用post方法传参 部分代码如下
gir_msgbox = CREATE n_ir_msgbox
ls_args='xml=<?xml version="1.0" encoding="GBK"?>'+&
'<Root>'+&
'<Auth UserLoginID="'+ls_yjuser+'" FirstPassword="'+ls_yjpassword+'" UserSecondID="'+ls_ejuser+'" SecondPassword="'+ls_ejpassword+'"/>'+&
'<Operation action="Send">'+&
'<serialID>'+string(ll_id)+'</serialID>'+&
'<SumTime></SumTime>'+&
'<SumToNumber></SumToNumber>'+&
'</Operation>'+&
'</Root>'
ls_url='http://www.hb-mas.cn/web/service/ExternalService?'
lblb_args = Blob(ls_args)
ll_length = Len( lblb_args )
ls_header = " Content-Type: application/x-www-form-urlencoded~n Content-Length: " + String( ll_length ) + "~n~n"
li_rc = GetContextService( "Internet", ginet_base )
if li_rc=1 then
li_rc = ginet_base.PostURL( ls_url, lblb_args, ls_header, gir_msgbox )
end if
因为现在要post xml参数的值 也就是这个xml格式 然后就是始终识别不出来 参数
有明白的高手帮忙看一下