The following wsdl definition:
<wsdl:service name="ProductService">
<wsdl:port name="Product-ServicePort"
binding="tns:Product-ServiceBinding">
<soap:address location="http://localhost:8192/product/" />
</wsdl:port>
</wsdl:service>
Generates a method name:
@WebEndpoint(name = "Product-ServicePort")
public weather.ProductServicePortType getProduct_ServicePort() {
return ((weather.ProductServicePortType)(this).getPort(new QName("urn:com:logicblaze:product", "Product-ServicePort"), ProductServicePortType));
}
when using JAXWSProfile.
The original code should have getProduct-ServicePort