第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問題,去搜搜看,總會有你想問的

webservice調(diào)用時(shí)怎么傳參數(shù)

webservice調(diào)用時(shí)怎么傳參數(shù)

皈依舞 2018-07-24 11:14:45
<?xml version="1.0" encoding="UTF-8"?>---xsd:schema/xsd:schema----------下面是我的調(diào)用代碼: Service service = new Service();         Call call = (Call) service.createCall();         String url = "http://192.1.1.64:8082/Service/ServiceHello?wsdl";         call.setTargetEndpointAddress(url);         call.setOperationName(new QName("http://webservice_302/", "getValue"));         call.addParameter(new QName("http://webservice_302/", "name"), org.apache.axis.encoding.XMLType.XSD_STRING,                 javax.xml.rpc.ParameterMode.IN);         call.setReturnType(org.apache.axis.encoding.XMLType.XSD_STRING);         String result = (String) call.invoke(new String[] { "11" });         System.out.println(result);下面是接口的方法點(diǎn): public String getValue(String name){         return "歡迎你! "+name;     }可以成功調(diào)用,返回結(jié)果是:歡迎你! null說明參數(shù)沒有傳進(jìn)去,請問這里我應(yīng)該怎么寫呢?
查看完整描述

1 回答

?
慕的地10843

TA貢獻(xiàn)1785條經(jīng)驗(yàn) 獲得超8個(gè)贊

入?yún)㈩愋蛻?yīng)該是org.apache.axis.Constants.XSD_STRING,不認(rèn)為是org.apache.axis.encoding.XMLType.XSD_STRING


查看完整回答
反對 回復(fù) 2018-08-10
  • 1 回答
  • 0 關(guān)注
  • 3007 瀏覽

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號