Skip to main content
1-Visitor
Apr 7, 2017 3:46 PM UTC
Question

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

12-Amethyst
May 2, 2017 10:03 AM UTC

Hi Alessandro

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

Kurt


Translate
aniccoli1-VisitorAuthor
1-Visitor
May 2, 2017 3:00 PM UTC

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?


Translate
12-Amethyst
May 4, 2017 7:43 AM UTC

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)

Translate