Skip to main content
1-Visitor
April 7, 2017
Question

Cannot Connect to Model Manager Web Services

  • April 7, 2017
  • 1 reply
  • 2136 views

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

1 reply

12-Amethyst
May 2, 2017

Hi Alessandro

Here is some examples how I make such stuff. Maybe it helps.

Kurt


aniccoli1-VisitorAuthor
1-Visitor
May 2, 2017

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?


12-Amethyst
May 4, 2017

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)