Hi Sreekanth,
1. First you need to save the WSDL file in your local machine.
open 10.xx.xx.xxxx/.../GetPDFDetails and save the xml as .wsdl extension.
2. Not sure what is your calling method - plugin , WCF service, windows service . You can add the WSDL file by right click your visual studio solution and click add service reference. You need to choose the save WSDL in your local machine .
3. Once you add the proxy you need to write some custom code to consume the TIBCO service like below . I have written for -
document[] documentArray = null;
//Get the details from WCF configuration file
string getPDFEndpoint = (ConfigurationManager.AppSettings["TIBCOServiceURL"] != null) ? ConfigurationManager.AppSettings["TIBCOServiceURL"] : "";
string svcUsername = (ConfigurationManager.AppSettings["TibcoSvcUserName"] != null) ? ConfigurationManager.AppSettings["TibcoSvcUserName"] : "";
string svcPassword = (ConfigurationManager.AppSettings["TibcoSvcPassword"] != null) ? ConfigurationManager.AppSettings["TibcoSvcPassword"] : "";
string getpdfDocumentidentifier = (ConfigurationManager.AppSettings["SearchDocumentidentifier"] != null) ? ConfigurationManager.AppSettings["SearchDocumentidentifier"] : "";
string getpdfDocumenttoken = (ConfigurationManager.AppSettings["SearchDocumenttoken"] != null) ? ConfigurationManager.AppSettings["SearchDocumenttoken"] : "";
var binding = new BasicHttpBinding();
binding.MaxBufferPoolSize = 2147483647;
binding.MaxReceivedMessageSize = 2147483647;
var ServiceEndpoint = new EndpointAddress(new Uri(getPDFEndpoint));
Document1Client _client = new Document1Client(binding, ServiceEndpoint);
_client.ClientCredentials.UserName.UserName = svcUsername;
_client.ClientCredentials.UserName.Password = svcPassword;
var httpRequestProperty = new HttpRequestMessageProperty();
httpRequestProperty.Headers[HttpRequestHeader.Authorization] = "Basic " + Convert.ToBase64String(Encoding.ASCII.GetBytes(svcUsername + ":" + svcPassword));
headerType hdrType = new headerType();
authentication _auth = new authentication();
_auth.identifier = getpdfDocumentidentifier;
_auth.token = getpdfDocumenttoken;
document objs = new document();
using (OperationContextScope scope = new OperationContextScope(_client.InnerChannel))
{
documentArray = _client.getpdfDocuments(hdrType, _auth, getpdfDocumentRequest.userAs, getpdfDocumentRequest.baseName, getpdfDocumentRequest.request);
}
4. getpdfDocumentRequest is nothing but your request class where you can assign the request value.
Please note that I have tried to write a sample code for your requirement . So I hope it will help for your issue .
Please mark this as answer if its helps.
Thanks
Goutam