none
WSDL https://outlook.office365.com/EWS/services.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 outlook.office365.com/.../services.wsdl I am able to authenticate with my username and password, but get this exception when trying to instantiate the ExchangeWebService object:

    javax.xml.ws.WebServiceException: WSDL outlook.office365.com/.../services.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="...outlook.office365.com/EWS/exchange.asmx" />
    </wsdl:port>
    </wsdl:service>

    Monday, December 14, 2015 11:07 PM