users@jax-ws.java.net

Absolute URL path in generated Service class

From: Vijesh A.V. <vijesh.av_at_emirates.com>
Date: Mon, 2 Oct 2006 09:51:27 +0400

Hi all,

Please check the URL creation below. Why is it in absolution path? Is it
expected, if not how can I correct it.
I am using top-down approach.



/**
 * This class was generated by the JAXWS SI.
 * JAX-WS RI 2.1-09/25/2006 04:59 PM(vivek)-EA1
 * Generated source version: 2.0
 *
 */
@WebServiceClient(name = "GuideLineService", targetNamespace =
"http://www.test003.com/GuideLine", wsdlLocation =
"etc/GuideLineService.wsdl")
public class GuideLineService
    extends Service
{

    private final static URL GUIDELINESERVICE_WSDL_LOCATION;

    static {
        URL url = null;
        try {
            url = new
URL("file:/D:/Work/WebServices/jax-ws/jaxws-ri/samples/tariffguideline/e
tc/GuideLineService.wsdl");
        } catch (MalformedURLException e) {
            e.printStackTrace();
        }
        GUIDELINESERVICE_WSDL_LOCATION = url;
    }