Page History
...
To inform our clients (consumers) how to connect to and consume our secure services.
...
Prerequisites
- Install caGrid v1.3 locally, http://cagrid.org/display/downloads/caGrid+1.3+Installation+Quick+Start
- Obtain a grid credential (or Dorian User Account) for the grid trust fabric needed, e.g. Training Grid. (developers working locally should use the Training Grid) See http://cagrid.org/display/cagrid13tutorials/Create+User+Account for instructions.Request a Host Cert to be used locally, http://cagrid.org/display/knowledgebase/Request+a+Host+Certificate. You should specify your local machine's hostname. For example, locally I use
steve-matyass-macbook-pro-2.localCode Block - Record your grid credential (aka Grid Identity) for later use. For example, mine is
Code Block /O=caBIG/OU=caGrid/OU=Training/OU=Dorian/CN=matyass
- Add your own Grid Identity to PO to authenticate.
- Add your own Grid Identity to PA to authenticate.
Tip |
---|
Each day before you start using coding and testing locally, you'll want to Login to Dorian using the GAARDS UI to extend your local grid identity certificates. Roughly ever 24 hours they expire. |
- Lauch GAARDS-UI and login using your CN (matyass) from your Grid Identity (e.g. /O=caBIG/OU=caGrid/OU=Training/OU=Dorian/CN=matyass)
Code Block title Launch GAARDS-UI (ant security) steve-matyass-macbook-pro-2:cagrid smatyas$ pwd /Users/smatyas/dev/cagrid/caGrid
...
steve-matyass-macbook-pro-2:caGrid smatyas$ ant security ...
- Click Login button and specify the following:
Code Block title Specify Login Credentials Credential Provider: Training Organization: Training Username: matyass Password: *********
- Click Login button and specify the following:
- Proceed to consuming PO or PA services as normal now
Consuming Unsecured Services
Note |
---|
Secure Unsecure Services were introduced in available prior to v3.1 of PO & PA |
If you just want to call the services, you can use a tool like SoapUI to generate XML from the WSDLs listed below (which is what QA does). To get more involved, you can use the sample java code in coppa/code/po-grid/src/gov/nih/nci/coppa/services/entities /ServiceName/client/ServiceNameClient.java. There are similar clients for PA under coppa/code/pa-grid.
...