1.1 --- a/src/share/jaxws_classes/com/sun/xml/internal/ws/transport/http/server/HttpEndpoint.java Thu Apr 04 19:05:24 2013 -0700 1.2 +++ b/src/share/jaxws_classes/com/sun/xml/internal/ws/transport/http/server/HttpEndpoint.java Tue Apr 09 14:51:13 2013 +0100 1.3 @@ -1,5 +1,5 @@ 1.4 /* 1.5 - * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved. 1.6 + * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. 1.7 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1.8 * 1.9 * This code is free software; you can redistribute it and/or modify it 1.10 @@ -29,7 +29,6 @@ 1.11 import com.sun.xml.internal.ws.transport.http.HttpAdapter; 1.12 import com.sun.xml.internal.ws.transport.http.HttpAdapterList; 1.13 import com.sun.xml.internal.ws.server.ServerRtException; 1.14 -import com.sun.xml.internal.ws.server.WSEndpointImpl; 1.15 import com.sun.xml.internal.ws.resources.ServerMessages; 1.16 1.17 import javax.xml.ws.EndpointReference; 1.18 @@ -127,9 +126,8 @@ 1.19 } 1.20 1.21 public <T extends EndpointReference> T getEndpointReference(Class<T> clazz, Element...referenceParameters) { 1.22 - WSEndpointImpl endpointImpl = (WSEndpointImpl) adapter.getEndpoint(); 1.23 String eprAddress = getEPRAddress(); 1.24 - return clazz.cast(endpointImpl.getEndpointReference(clazz, eprAddress,eprAddress+"?wsdl", referenceParameters)); 1.25 + return clazz.cast(adapter.getEndpoint().getEndpointReference(clazz, eprAddress,eprAddress+"?wsdl", referenceParameters)); 1.26 } 1.27 1.28 }