Retrieving ItemLevelQuery using EasyLink API using C#
Hello Everyone,
Currently I am working on retrieving Item level query using EasyLink API.
This is the WSDL I am using:-
http://ws.easylink.com/ItemLevelQuery/2011/01?WSDL
This is the code I am trying:-
Here is the error I am receiving:-
System.InvalidOperationException: Client found response content type of 'text/html', but expected 'text/xml'.
I really appreciate all your help to resolve this issue.
Currently I am working on retrieving Item level query using EasyLink API.
This is the WSDL I am using:-
http://ws.easylink.com/ItemLevelQuery/2011/01?WSDL
This is the code I am trying:-
RequestAuthentication auth = new RequestAuthentication();
XDDSAuthType xddsAuth = new XDDSAuthType();
UIDType uidType = new UIDType();
uidType.Value = "****";
uidType.aliasType = "m2f";
xddsAuth.RequesterID = uidType;
xddsAuth.Password = "****";
//Create the Request Header
Request requestAuth = new Request();
auth.Item = xddsAuth;
requestAuth.Authentication = auth;
ItemLevelQueryService client = new ItemLevelQueryService();
client.RequestValue = requestAuth;
ItemLevelQueryRequest requestItemLevelQueryResult = new ItemLevelQueryRequest();
requestItemLevelQueryResult.NumToRetrieve = 50;
ItemLevelQueryResult responseItemLevelQueryRequest = new ItemLevelQueryResult();
responseItemLevelQueryRequest = client.ItemLevelQuery(requestItemLevelQueryResult);
//This is the URL I am using in WSDL which I generated.
this.Url = "http://ws.easylink.com/";
System.InvalidOperationException: Client found response content type of 'text/html', but expected 'text/xml'.
I really appreciate all your help to resolve this issue.
0
Categories
- All Categories
- 108 Developer Announcements
- 53 Articles
- 106 General Questions
- 144 IM Services
- 43 OpenText Hackathon
- 32 Developer Tools
- 20.6K Analytics
- 4.1K AppWorks
- 8.9K Extended ECM
- 899 Cloud Fax and Notifications
- 77 Digital Asset Management
- 9.3K Documentum
- 29 eDOCS
- 120 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management