0
jaxwsクライアントを使用してWebサービスにアクセスしています。サービスは、ポートを作成するときに、私は次のことを試してみました、これは私のクライアントにJAX-WSクライアント - 'text/plain'レスポンスをどのように処理するのですか?
com.sun.xml.internal.ws.server.UnsupportedMediaException:
Unsupported Content-Type: text/plain Supported ones are: [text/xml]
を以下の例外を引き起こしている、代わりに「text/xmlで」のプレーンテキスト/ 'としてコンテンツタイプで応答を返すしているようだ
port.getRequestContext().put(MessageContext.HTTP_RESPONSE_HEADERS,
Collections.singletonMap("Content-Type",
Collections.singletonList("text/plain")));
しかし、これは何の効果もありません。