UDDI from MS Visual Studio

Figure 17. Add Web Reference Default Figure 18 shows how to browsesearch Oracle Service Registry via the Add Web Reference Wizard. Figure 18. Searching Oracle Service Registry via Web Reference Wizard Page 633

4.2. UDDI from MS Visual Studio

Figure 19. Add Web Reference - Found Web service If you find a WSDL file, the wizard shown in Figure 19 parses the WSDL file displaying Web service method. Then, you can click Add Reference button to add the reference to your project.

5. How to Debug

5.1. SOAPSpy Tool

When debugging, it can be useful to track communication between the client and server. SOAPSpy allows the inspection of messages that the client and server exchange. Messages, or more precisely, requests and responses, are coupled to calls. Figure 20 shows the SOAPSpy dialog box. Figure 20. SOAPSpy Tool Page 634

5.1. SOAPSpy Tool

SOAPSpy works as an HTTP proxy server. It accepts HTTP requests from clients and resends them to their final destinations, or to another HTTP proxy server. SOAPSpy can track not only SOAP and WSDL messages, but also any other documents HTML pages, binary data, etc.. However, the binary data is shown only schematically; all invalid text characters are translated into question mark ? characters. SOAPSpy can also work as an HTTP server client: you can make it contact another proxy server instead of connecting to the final destination.

5.1.1. Running SOAPSpy

This tool is placed in the bin subdirectory of your Oracle Service Registry server distribution. To start SOAPSpy, enter the command SoapSpy.bat on Windows platforms, or .SoapSpy.sh on UNIX machines. Figure 21. Start Spying Spying must be started first by selecting Start Spying from the Spy menu or by clicking the spy icon in the main panel, shown in Figure 21 . Figure 22. Status Line The lower part of the window contains a status bar, shown in Figure 22 , with information about the state of the tool. Once started, the status line displays the proxy host and port number. The following options can be used on the command line when activating SOAPSpy: • --port [PORT] Starts SOAPSpy at the given port • --help Shows the help screen on the console • --version shows the version of SOAPSpy on the console To make SOAPSpy contact another proxy server instead of making a direct connection to the destination, use the standard Java system properties for HTTP proxies: • -Dhttp.proxyHost=PROXY_HOST - The host name of the proxy server • -Dhttp.proxyPort=PROXY_PORT - The port of the proxy server There are two possible ways to load the tool: 1. .SoapSpy 2. .SoapSpy --port PROXY_PORT Page 635

5.1.1. Running SOAPSpy