Download FAQ History |  | API Search Feedback

> ## Using JAXR to Access the Registry Server

> You can access the Registry Server by using the sample programs in the `<``INSTALL``>/jwstutorial12/examples/jaxr/` directory. For details on how these examples work and how to run them, see Running the Client Examples.

> Before you compile the examples, you need to edit the file `JAXRExamples.properties` as follows.

> 1. If necessary, edit the following lines in the `JAXRExamples.properties` file to specify the Registry Server. The default registry is the Registry Server, so if you are using the examples for the first time you do not need to perform this step. The lines should look something like this:

> `## Uncomment one pair of query and publish URLs.
> ## IBM:
> #query.url=http://uddi.ibm.com/testregistry/inquiryapi
> #publish.url=https://uddi.ibm.com/testregistry/protect/publishapi
> ## Microsoft:
> #query.url=http://uddi.microsoft.com/inquire
> #publish.url=https://uddi.microsoft.com/publish
> ## Registry Server:
> query.url=http://localhost:8080/RegistryServer
> publish.url=http://localhost:8080/RegistryServer`

> If Tomcat is using a nondefault port, change `8080` to the correct value for your system.

> If the Registry Server is running on a system other than your own, specify the fully qualified host name instead of `localhost`. Do not use `https:` for the `publishURL`.

> 2. If necessary, edit the following lines in the `JAXRExamples.properties` file to specify the user name and password you will be using. The default is the Registry Server default password:

> `## Specify username and password if needed
> ## testuser/testuser are defaults for Registry Server
> registry.username=testuser
> registry.password=testuser`

> 3. You can leave the following lines in the `JAXRExamples.properties` file as they are. You do not use a proxy to access the Registry Server, so these values are not used. If you previously filled in the host values, you can leave them filled in.

> `## HTTP and HTTPS proxy host and port;
> ## ignored by Registry Server
> http.proxyHost=
> http.proxyPort=8080
> https.proxyHost=
> https.proxyPort=8080`

> 4. Feel free to change any of the organization data in the remainder of the file. This data is used by the publishing and postal address examples.

Download FAQ History |  | API Search Feedback

All of the material in The Java(TM) Web Services Tutorial is copyright-protected and may not be published in other works without express written permission from Sun Microsystems.