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
    • Kevin van Haaren
      0 Offline Kevin van Haaren Mon, Jun 20 2022 1:18 PM

      That documentation is for Bentley's Web Services Gateway. For companies with on premises ProjectWise they'll have their own wsg. For a hosted service Bentley will have one running for you. The server name differs for every company.

      I assume the documentation was written that way since they couldn't know ahead of time what the server name is, or they intend the examples to be run from a browser on the machine the wsg is installed on, where they will work.

      If by "cloud environment" you mean you're hosted with Bentley hosting then you'll need to get the correct server name from them. If you mean "we run our own servers in the cloud" then you'll need to find out if you have your own wsg already, or set one up.

      The docs on setting up a WSG are here:

      Deploying the ProjectWise Plug-in for Bentley Web Services Gateway

       

      • Cancel
      • Vote Up 0 Vote Down
      • Sign in to reply
      • Verify Answer
      • Cancel
    Reply
    • Kevin van Haaren
      0 Offline Kevin van Haaren Mon, Jun 20 2022 1:18 PM

      That documentation is for Bentley's Web Services Gateway. For companies with on premises ProjectWise they'll have their own wsg. For a hosted service Bentley will have one running for you. The server name differs for every company.

      I assume the documentation was written that way since they couldn't know ahead of time what the server name is, or they intend the examples to be run from a browser on the machine the wsg is installed on, where they will work.

      If by "cloud environment" you mean you're hosted with Bentley hosting then you'll need to get the correct server name from them. If you mean "we run our own servers in the cloud" then you'll need to find out if you have your own wsg already, or set one up.

      The docs on setting up a WSG are here:

      Deploying the ProjectWise Plug-in for Bentley Web Services Gateway

       

      • 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