If you examine the full error message I expect it would say something like this:
[...]
The document at the url
http://server/niku/wsdl/InvokeAction/Process was not recognized as a known document type.
The error message from each known type may help you fix the problem:
- Report from 'XML Schema' is 'The root element of a W3C XML Schema should be <schema> and its namespace should be '_http://www.w3.org/2001/XMLSchema'.'.
- Report from 'DISCO Document' is 'Discovery document at the URL
http://server/niku/wsdl/InvokeAction/Process could not be found.'.
- The document format is not recognized.
- Report from 'WSDL Document' is 'There is an error in XML document (25, 12).'.
- The element was not expected in this context: <xsd:element xmlns:xsd='_http://www.w3.org/2001/XMLSchema'>..</xsd:element>. Expected elements:
http://www.w3.org/2001/XMLSchema:annotation, http://www.w3.org/2001/XMLSchema:complexContent,
http://www.w3.org/2001/XMLSchema impleContent, http://www.w3.org/2001/XMLSchema:group,
http://www.w3.org/2001/XMLSchema equence, http://www.w3.org/2001/XMLSchema:choice,
http://www.w3.org/2001/XMLSchema:all, http://www.w3.org/2001/XMLSchema:attribute,
http://www.w3.org/2001/XMLSchema:attributeGroup, http://www.w3.org/2001/XMLSchema:anyAttribute.
Metadata contains a reference that cannot be resolved: 'http://server/niku/wsdl/InvokeAction/Process'.
The remote server returned an unexpected response: (405) HTTP method POST is not supported by this URL.
The remote server returned an error: (405) Method Not Allowed.
[...]
In this instance, please check this post for the change that needs to be made:
98177361
This is reported as a defect that needs to be corrected, having the ID / subject of: CLRT-64504 When adding a Service Reference in Visual Studio 2010 with the URL
https://server/niku/wsdl/InvokeAction/Process, it errors out
If you want to raise a support issue to indicate you have encountered the defect please include that reference.
The workaround you would be provided (to implement the same solution mentioned in the other communities post above) would be this:
File name: xog.xml
Path: \...\META-INF\xog\wmd\xog.xml
[...]
<response>
<xsd:element name="returnValue" type="xsd:boolean" minOccurs="1" maxOccurs="1"/>
</response>
[...]
It should be:
[...]
<response>
<xsd:sequence>
<xsd:element name="returnValue" type="xsd:boolean" minOccurs="1" maxOccurs="1"/>
</xsd:sequence>
</response>
[...]
-> modify xog.xml file
-> restart app service