ヘッダparamsとフォームparamsを使ってREST WebサービスにPOSTリクエストを行う必要があります。私はウェブサービスの方法の説明を持っています:REST WebサービスPOSTメソッドヘッダとフォームのパラメータ
Method: POST/
Produces: application/json/
Consume: application/x-www-form-urlencoded/and etc.
と私が送る必要があるヘッダーとフォームパラメータのリスト。
誰でも生産と消費を明確にして、要求を形成する方法はありますか?
私はundestand: httpPost =新しいHttpPost(webServiceUrl + methodName);
httpPost.setHeader("headerParamName", headerParam);
entity = jsonObject.put(param.getKey(), param.getValue());//param - form param
httpPost.setEntity(entity);
httpPost.setHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF8"); //???
ご質問がダミーの場合は申し訳ありません。
私はいくつかの追加情報を追加すべきか? – user1074896