Webサービスを呼び出すと、そのURLに特定の値を渡します。
例:
https://website.com/webserviceName/login?userName=user&password=pass
ただし、値に「&」が含まれている場合はどうなりますか。「&」を含むアイテムを含むURLを作成すると、その時点でURLが壊れて障害コードが返されます。どうすればこの問題を克服できますか。
例:
https://website.com/webserviceName/login?userName=user&user&password=pass
このURLの問題は、最初の「&」で壊れることです。
この問題は、 http: //www.tutorialspoint.com/html/html_url_encoding.htmを使用して解決できます。URLEncoder.encode(urlXml)
みんなありがとう