Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
ProjectWise
  • Product Communities
ProjectWise
ProjectWise Design Integration Forum Web API integration
    • Sign In

    • State Not Answered
    • +2 person also asked this people also asked this
    • Replies 2 replies
    • Subscribers 63 subscribers
    • Views 696 views
    • Users 0 members are here
    • API
    • Web
    • get

    Web API integration

    Walid Megdiche
    Offline Walid Megdiche over 1 year ago

    Hi,

    we are using Project wise for most our project and at same time we are using a custom EDM.

    we try to integrate the project wise API to push some document to project wise from our EDM system.

    Our projectwise environement is cloud based.

    I did refer to the following to get some instruction : https://ctdot-ws.projectwiseonline.com/ws/Pages/documentation/main_part.html

    But there is something that makes me real confuse. why all examples are refering to localhost ? (example: GET https://localhost/ws/v2.5/Repositories/Bentley.PW--PW/PW_WSG/Document/e899a390-d4c1-4904-8147-4d281139e516)

    how to do in my situation as it is cloudbased PW ? Should i replace by "https://projectwise365.bentley.com/" ?

    So for now i query as GET the following :

    headers :

    'Authorization: Basic xxxxxxxxxx=='

    'mas-server: Bentley-WSG/02.06.08.09'
    'mas-server: Bentley-WebAPI/2.8'
    'server: Bentley-WSG/02.06.08.09'
    'server: Bentley-WebAPI/2.8'

    (Do I need other header ?)

    URL

    https://seas-pwm.bentley.com/ws/v2.8/repositories/Bentley.PW--PWIC-Prod-SEA-DB003/PW_WSG/Document!poly/

    URL Parameters

    $filter=(PW_WSG.DocumentParent-forward-PW_WSG.Project.$id+eq+%27[Project ID]%27)&$select=*

    Regarding the [Project ID] can confirm this is the id in the project URL after "https://projectwise365.bentley.com/" when accessing the project via the browser interface ?

    Also, in order to not mess with the ongoing project, I did create a trial account. can confirm that a trial account can log via the web API ?

    Thanks

    • Sign in to reply
    • Cancel
    Parents
    • Arnold Cloony
      0 Offline Arnold Cloony Thu, Aug 17 2023 9:24 AM

      When considering the intricacies of B2B data integration, it's essential to address potential sources of confusion. The usage of "localhost" in the provided examples can indeed be perplexing, primarily because these examples are intended for execution within a local development environment. However, given your engagement with a cloud-based ProjectWise environment in the context of B2B data integration, it becomes imperative to make the necessary adjustments.

      In your specific scenario of B2B data integration, if your ProjectWise environment is hosted at the URL "https://projectwise365.bentley.com/", the recommended course of action is to replace instances of "https://localhost" within the API URLs with the accurate base URL of your cloud instance, which in this case is "https://projectwise365.bentley.com/". By adopting this approach, you align your data integration efforts seamlessly with your cloud-based B2B environment, ensuring that the data flows efficiently and accurately between systems. This meticulous attention to detail in adapting API URLs underscores the significance of harmonizing B2B data integration practices with the specifics of your cloud-hosted ProjectWise environment.

      • Cancel
      • Vote Up 0 Vote Down
      • Sign in to reply
      • Verify Answer
      • Cancel
    Reply
    • Arnold Cloony
      0 Offline Arnold Cloony Thu, Aug 17 2023 9:24 AM

      When considering the intricacies of B2B data integration, it's essential to address potential sources of confusion. The usage of "localhost" in the provided examples can indeed be perplexing, primarily because these examples are intended for execution within a local development environment. However, given your engagement with a cloud-based ProjectWise environment in the context of B2B data integration, it becomes imperative to make the necessary adjustments.

      In your specific scenario of B2B data integration, if your ProjectWise environment is hosted at the URL "https://projectwise365.bentley.com/", the recommended course of action is to replace instances of "https://localhost" within the API URLs with the accurate base URL of your cloud instance, which in this case is "https://projectwise365.bentley.com/". By adopting this approach, you align your data integration efforts seamlessly with your cloud-based B2B environment, ensuring that the data flows efficiently and accurately between systems. This meticulous attention to detail in adapting API URLs underscores the significance of harmonizing B2B data integration practices with the specifics of your cloud-hosted ProjectWise environment.

      • Cancel
      • Vote Up 0 Vote Down
      • Sign in to reply
      • Verify Answer
      • Cancel
    Children
    No Data

    Communities
    • Home
    • Getting Started
    • Community Central
    • Products
    • Support
    • Secure File Upload
    • Feedback
    Support and Services
    • Home
    • Product Support
    • Downloads
    • Subscription Services Portal
    Training and Learning
    • Home
    • About Bentley Institute
    • My Learning History
    • Reference Books
    Social Media
    •    LinkedIn
    •    Facebook
    •    Twitter
    •    YouTube
    •    RSS Feed
    •    Email

    © 2023 Bentley Systems, Incorporated  |  Contact Us  |  Privacy |  Terms of Use  |  Cookies