简体   繁体   English

Wsdl没有内容类型webservice Exception

[英]Wsdl had no content type webservice Exception

A Message.wsdl and corresponding datatypes.xsd are deployed in webresources folder (location from which images like logo.png is displayed) of a server so that it can be accessed like http://localhost:8080/cc/resources/test/Message.wsdl Then created a WSC file for consuming a perticular service of this wsdl. Message.wsdl和相应的datatypes.xsd部署在服务器的webresources文件夹(显示logo.png等图像的位置)中,以便可以像http:// localhost:8080 / cc / resources / test /一样访问它Message.wsdl然后创建了一个WSC文件,用于使用此wsdl的特定服务。 When i am trying to consume this service getting an exception which is given below. 当我尝试使用此服务获取下面给出的异常时。

gw.xml.ws.WebServiceException: SOAP response envelope from http://localhost:8080/cc/resources/test/Message.wsdl had no content type

As of my knowledge this can occur due to 2 reasons, 据我所知,这可能由于两个原因而发生,

  1. Your wsdl file does not contain a binding or necessary info wont be there in that binding 您的wsdl文件不包含该绑定中不存在的绑定或必要信息
  2. When using multiple bindings. 使用多个绑定时。

Share ur class code and wsdl file here. 在这里分享你的类代码和wsdl文件。 Will check that and update u. 将检查并更新你。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM