1[size=1]// Instantiate the wsimport generated AXL API Service client --
2// see the wsimport comments in the class javadocs above
3AXLAPIService axlService = new AXLAPIService();
4AXLPort axlPort = axlService.getAXLPort();
5 6 7// Set the URL, user, and password on the JAX-WS client
8String validatorUrl = "https://172.16.3.143:8443/axl/"; 910 11((BindingProvider) axlPort).getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, validatorUrl);
12((BindingProvider) axlPort).getRequestContext().put(BindingProvider.USERNAME_PROPERTY, "admin");
13((BindingProvider) axlPort).getRequestContext().put(BindingProvider.PASSWORD_PROPERTY, "P@ssW0rd");
1415// Create a GetPhoneReq object to represent the getPhone request and set the name of the device
16//to name entered by user
17GetPhoneReq axlParams = new GetPhoneReq();
18axlParams.setName("SEPF02929E3CFB9");
1920//Make a call to the AXL Service and pass the getPhone request
21[color=#ff0000]GetPhoneRes getPhoneResponse = axlPort.getPhone(axlParams);[/color]
2223//display information returned in the response to the user
24this.jtaOutput.setText("Product=" + getPhoneResponse.getReturn().getPhone().getProduct() + "%n"+ getPhoneResponse.getReturn().getPhone().getLoadInformation().getValue() + "%n");[/size]