cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X

Cannot Connect to Model Manager Web Services

aniccoli
1-Newbie

Cannot Connect to Model Manager Web Services

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);

            }

 

ScreenHunter_2161 Apr. 07 17.33.jpg

3 REPLIES 3

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)

Top Tags