I’ll try it again. Maybe the headline was a bit misleading from https://developer.milestonesys.com/s/question/0D53X000067shGUSAY/generating-code-from-wsdl.
We have a Java application and implement the SOAP interface directly.
The following URLs work fine:
- https:///ManagementServer/ServerCommandService.svc (Basic)
- https:///ManagementServer/ConfigurationApiService.svc (Basic)
- http:///ServerAPI/ServerCommandService.asmx (AD)
- http://:7563/RecorderStatusService/RecorderStatusService2.asmx (Token)
- http://:7563/RecorderCommandService/RecorderCommandService.asmx (Token)
The following 2 URLs do not work:
- http:///ManagementServer/ServerCommandService.svc (AD)
- http:///ManagementServer/ConfigurationApiService.svc (AD)
The server responds there with an HTTP error 415 - “Cannot process the message because the content type ‘text/xml; charset=utf-8’ was not the expected type ‘application/soap+xml; charset=utf-8’”.
Why is there a difference between AD and Basic mode on same service ?
Can it be that the server expects SOAP 1.2?
The code generated from the WSDL is just SOAP 1.1.
Is it possible that the SOAP 1.2 declaration in the WSDL file is incorrect?
The Java library definitely supports SOAP 1.2.
Thomas