Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X
Hello
I can't connect to MM Web services using Web Services using C#.
Does anyone ever done something like this and can give me an example?
I made ana attempt as follows but I have an exception:
QueryService.QueryServiceClient qrsc = new QueryService.QueryServiceClient("QueryService", "http://192.168.0.2:8580/QueryService");
qrsc.ClientCredentials.UserName.UserName = "medmgr";
qrsc.ClientCredentials.UserName.Password = "medmgr";
qrsc.Open();
try
{
QueryService.wsFile[] files2 = qrsc.getFiles("CWLUQZLTHXTZWI");
MessageBox.Show("OK");
}
catch(Exception ex){
MessageBox.Show("KO " + ex.Message);
}
Hi Alessandro
Here is some examples how I make such stuff. Maybe it helps.
Kurt
Thank you.
I tried to create a custom Web Service following customize.chm documentation, in particular in "Add a Reserve Web Service method" section.
But i can't query wsdl..... Can you help me? Documentation is correct?
Documentation is correct?
yes, it is (or should be )
But i can't query wsdl.
Do you use a correct URL? (ex. http://win38:8580/QueryService?wsdl)
Is a JettyServer running on the server? (check C:\Program Files (x86)\PTC\Creo Elements\Direct Manager Server 19.0\CustomServiceControllerConfig.xml or ServiceControllerConfig.xml)