Amigos, estou precisando alterar um endpoint que está sendo gerado por http e não por https.
Estou utilizando JAX-WS 2.2.10
URL: https://teste.aplicacao.com.br/teste/services/WSTeste?wsdl
Ao colocar a url https://teste.aplicacao.com.br/teste/services/WSTeste?wsdl no SoapUI, está sendo gerado o endpoint para http://teste.aplicacao.com.br:80/teste/services/WSTeste?wsdl
Meu WS tem que gerar o endpoint exatamente igual a chamada da URL que estou fazendo: https://teste.aplicacao.com.br/teste/services/WSTeste?wsdl
WSTeste.wsdl
`<?xml version='1.0' encoding='UTF-8'?>
<types>
<xsd:schema>
<xsd:import namespace="http://webservices.teste.com.br/"
schemaLocation="https://teste.aplicacao.com.br/teste/services/WSTeste?xsd=1" />
</xsd:schema>
</types>
<message name="registrarTeste">
<part name="parameters" element="tns:registrarTeste" />
</message>
<message name="registrarTesteResponse">
<part name="parameters" element="tns:registrarTesteResponse" />
</message>
<portType name="WSTeste">
<operation name="registrarTeste">
<input
wsam:Action="http://webservices.teste.com.br/WSTeste/registrarTesteRequest"
message="tns:registrarTeste" />
<output
wsam:Action="http://webservices.teste.com.br/WSTeste/registrarTesteResponse"
message="tns:registrarTesteResponse" />
</operation>
</portType>
<binding name="WSTesteImplPortBinding" type="tns:WSTeste">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http"
style="document" />
<operation name="registrarTeste">
<soap:operation soapAction="" />
<input>
<soap:body use="literal" />
</input>
<output>
<soap:body use="literal" />
</output>
</operation>
</binding>
<service name="WSTesteImpl">
<port name="WSTesteImplPort" binding="tns:WSTesteImplPortBinding">
<soap:address
location="https://teste.aplicacao.com.br/teste/services/WSTeste" />
</port>
</service>
`
WSTesteImpl
@WebService(serviceName=“WSTesteImpl”, endpointInterface=“br.com.teste.webservices.WSTeste”, wsdlLocation = “/WEB-INF/wsdl/WSTeste.wsdl”)
public class WSTesteImpl implements WSTeste{
//Code…
}
Alguém consegue me ajudar?
Muito obrigado.