Connected Services Update

Peter Annandale 21 Reputation points
2022-03-01T01:28:47.743+00:00

Hi,
I am having an issue trying to update a connected service from our test system to production, I have carried out the following:

  1. Updated the ConnectedService.jason file to point at the production end point
  2. Opened the Connected Service inteface (see screenshot)
    178662-connserv.png
  3. Have selected the 3 dots and selected edit to go through the process of updating the Reference.cs file
  4. Once completed I opend the Reference.cs file and go to the bottom and the incorrect endpoint address is there (our test system), I also noted that the ConnectedServices.jason file has not been updated correcntly either, it only has the following information in it..

{
"ExtendedData": {
"inputs": [
"http://192.168.40.14:8101/DynamicsAx/Services/RRSalesOrderAIF"
],
"collectionTypes": [
"System.Array",
"System.Collections.Generic.Dictionary`2"
],
"namespaceMappings": [
"*, AXSalesOrder"
],
"targetFramework": "netcoreapp3.1",
"typeReuseMode": "All"
}
}

and nothing else, checking an old version of this file it has all the references and header information.

Any asistance in resolving this would be grealty appreciated.

Regards
Peter

Developer technologies | .NET | Other
{count} votes

3 answers

Sort by: Most helpful
  1. Peter Annandale 21 Reputation points
    2022-03-02T09:51:12.503+00:00

    Yes tried that as well and I could not add a new service reference for the given URI, it kept throwing an error about meta data??

    Regards
    Peter


  2. Peter Annandale 21 Reputation points
    2022-03-06T22:09:34.23+00:00

    Hi,
    Sorry for taking so long to get back, I have attached a screen shot of the error if I try to add a service reference (I removed the old service reference then tried to re-add it), the end point is working as we are using it in our current Web application (it connectes to the AIF service end point of our AX2012 R3 ERP system).
    I am trying to update the application project and re-deploy the site again, currently our developemnt application is point at our test system and I maq trying to update the service references to point to our production system.
    The second service reference seems to work fine and does change between Test and Production when we update the configuration and regenerate it.
    180456-intr-serviceref-error.png

    Hope this helps as I have been stuck for meore than a week on trying to get this to repoint to our production system.

    Regards
    Peter

    0 comments No comments

  3. Peter Annandale 21 Reputation points
    2022-03-06T23:08:48.083+00:00

    Hi,
    I have resolved the issue now, configuration setup was incorrect (I had selected use exisiting references, hence why it would not add or update).

    Regards
    Peter


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.