注册页面 reg.htm写数据库的时候我用的是一个 webservice 因为偶是要用一站通的 自己认为这样方便 其实是想学习下东西 文件名是 user_reg.asmx
webservice 中注册 的 webmethod 是 userreg_chk那么我在写 post地址的时候该怎么写?
User_Reg.asmx?op=UserReg_Chk 这样不对 那个大侠给菜鸟指点下
webservice 中注册 的 webmethod 是 userreg_chk那么我在写 post地址的时候该怎么写?
User_Reg.asmx?op=UserReg_Chk 这样不对 那个大侠给菜鸟指点下
HttpContext.Current.Request("Text1")?这样不
Host: hyperion
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://tempuri.org/UpdateVodType"<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<UpdateVodType xmlns="http://tempuri.org/">
<vodTypeId>int</vodTypeId>
<vodTypeName>string</vodTypeName>
<parentTypeId>int</parentTypeId>
<isValid>int</isValid>
</UpdateVodType>
</soap:Body>
</soap:Envelope>
post的目标应该asmx文件
方法名在soap:body中定义参数是消息体中定义好的,如<vodTypeId>int</vodTypeId>
不明白你要问这些干什么, .NET中写webservice还是很简单的事
要调用的话,生成引用类就可以了