任何人都知道以下异常可能意味着什么?
我在项目的任何地方找不到“wsdl + xml”,不知道它来自哪里?
org.springframework.ws.soap.axiom.AxiomSoapMessageCreationException: Unknown content type 'application/wsdl+xml'
at org.springframework.ws.soap.axiom.AxiomSoapMessageFactory.getSoapEnvelopeNamespace(AxiomSoapMessageFactory.java:287)
at org.springframework.ws.soap.axiom.AxiomSoapMessageFactory.createAxiomSoapMessage(AxiomSoapMessageFactory.java:247)
at org.springframework.ws.soap.axiom.AxiomSoapMessageFactory.createWebServiceMessage(AxiomSoapMessageFactory.java:218)
at org.springframework.ws.transport.AbstractWebServiceConnection.receive(AbstractWebServiceConnection.java:86)
at org.springframework.ws.client.core.WebServiceTemplate.doSendAndReceive(WebServiceTemplate.java:553)
at org.springframework.ws.client.core.WebServiceTemplate.sendAndReceive(WebServiceTemplate.java:502)
at org.springframework.ws.client.core.WebServiceTemplate.marshalSendAndReceive(WebServiceTemplate.java:351)
at org.springframework.ws.client.core.WebServiceTemplate.marshalSendAndReceive(WebServiceTemplate.java:341)
答案 0 :(得分:1)
它来自服务器端:
AbstractWebServiceConnection.receive(AbstractWebServiceConnection.java:86)
理想情况下,如果您说服服务器团队更改content-type
标头会更好,尽管您可能会尝试拦截WebServiceConnection
实施的响应。
但是,您可能会发送错误的请求,例如不是服务URL,而是WSDL。