Implementation of Oracle Agile PLM Web Services

Source: Internet
Author: User

Oracle's Agile PLM product has many built-in Web Services. Other systems can access the resources of Agile PLM system through Web Servcies. To quickly learn how to use it, go to the Oracle official website to download a Sample Code project. By running examples in this project, you can easily implement Web Services

1 Access

Http://www.oracle.com/technetwork/indexes/samplecode/agileplm-sample-520945.html

 

2. Download the project

 

 

 

3. After the download, use Eclipse or Intellij IDEA to create a project and introduce all jar packages to be used.

 

4. Configure the ANT environment on the PC (not detailed, not Google)

 

5. open the file before running ANT.Custom. properties

Ws-base-url = http: // 10.177.146.23: 8877/core/services
Username = admin
Password = agile
Dfs-fileserver-url = http: // 10.177.146.23: 8877/webfs/services/FileServer
WEB_URL = http: // 10.177.146.23: 8877/web
Ws-Time Out = 150000

Change all 10.177.146.23 to your host address.

Change "8877" to the port of the Agile PLM server on your host (the default ports of the Agile PLM server are: 7777 and 7001, which are usually the ports of the Solaris or Weblogic Server)

Change core to CoreService (this is the most annoying place, so it has been a few days). Not only has it been wrong in the sample code, but it has even been wrong in the official documentation.

In all classes, all the places where the above parameters need to be used must be modified according to the above method.

Change username and password to your own account and password

 

6. You can first test in the browser whether the URL address you want to access is correct and then compile the project. Otherwise, it will be too busy for a long time. If the URL is correct, the returned result is as follows:

If the error occurs:

 

Select the host address you want to access.

 

7. If the URL is correct, you can use ANT to compile the entire project.

If the compilation is successful, two ws_samples.jar and ws_stubs.jar files are generated under JavaWebserviceSamples \ build \ built.

Many classes dynamically generated through Axis are packaged into these two packages. At this time, these two packages can be introduced in the project. Some classes that cannot be compiled can be compiled at this time.

The main function is basically written for each test class. You can run all the classes one by one, or run all the classes one by one through the class RunAllSamples. Of course, make sure that the parameters in each class are modified correctly.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.