2014-07-16 3 views
0

누구든지 다음과 같은 예외가 어떤 의미인지 알 수 있습니까?AxiomSoapMessageCreationException : 알 수없는 콘텐츠 유형 'application/wsdl + xml'

프로젝트에서 어디서나 "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

그것은 서버 측에서 온다 :

AbstractWebServiceConnection.receive (AbstractWebServiceConnection.java:86) 당신이 서버 팀을 설득한다면

이상적으로는, 더 나은 것 WebServiceConnection 구현의 응답을 가로 채려 시도 할 수도 있지만 content-type 헤더를 변경하십시오.

하지만 잘못된 요청을 보낼 수 있습니다. 서비스 URL이 아니라 WSDL.

+0

아! 감사합니다. 서비스 URL이 아닌 WSDL URI에 요청을 보내는 것이 좋습니다. 어리석은 실수, 고마워! –