WSDL contains no service definition. RRS feed

  • Question

  • I am trying to access EWS from an Office 365 Exchange environment using JAVA. When trying to create a Port with EWS URL I am able to authenticate with my username and password, but get this exception when trying to instantiate the ExchangeWebService object: WSDL contains no service definition.

    Why is there no service definition in the WSDL?

    I got around this by hosting my own copy of the WSDL and adding the service definition myself: 
    <wsdl:service name="ExchangeWebService">
    <wsdl:port name="ExchangeWebPort" binding="tns:ExchangeServiceBinding">
          <soap:address location="" />

    Monday, December 14, 2015 11:07 PM