Tengo un servicio web hecho en Java al cual se le agregó dos headers para que los clientes se autentiquen antes de poder consumirlos. Sucede que mi cliente desde .NET con referencia a este servicio no se conecta porque no logro poner los headers correctamente. Alguien me podría dar una luz para ayudarme a resolver esto por favor.
Código XML:
Ver original
<!-- Published by JAX-WS RI (http://jax-ws.java.net). RI's version is Metro/2.3.1-b419 (branches/2.3.1.x-7937; 2014-08-04T08:11:03+0000) JAXWS-RI/2.2.10-b140803.1500 JAXWS-API/2.2.11 JAXB-RI/2.2.10-b140802.1033 JAXB-API/2.2.12-b140109.1041 svn-revision#unknown. --> <!-- Generated by JAX-WS RI (http://jax-ws.java.net). RI's version is Metro/2.3.1-b419 (branches/2.3.1.x-7937; 2014-08-04T08:11:03+0000) JAXWS-RI/2.2.10-b140803.1500 JAXWS-API/2.2.11 JAXB-RI/2.2.10-b140802.1033 JAXB-API/2.2.12-b140109.1041 svn-revision#unknown. --> <definitions xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:wsp="http://www.w3.org/ns/ws-policy" xmlns:wsp1_2="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://impl.pe.hoscanoa.com/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://impl.pe.hoscanoa.com/" name="WsAuthImplService"> <import namespace="http://pe.hoscanoa.com/" location="http://localhost:8080/ServicioWeb/WsAuthImplService?wsdl=1"/> <binding xmlns:ns1="http://pe.hoscanoa.com/" name="WsAuthImplPortBinding" type="ns1:WsAuth"> <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/> <operation name="authTest"> <soap:operation soapAction=""/> <input> <soap:body use="literal"/> </input> <output> <soap:body use="literal"/> </output> </operation> </binding> <service name="WsAuthImplService"> <port name="WsAuthImplPort" binding="tns:WsAuthImplPortBinding"> <soap:address location="http://localhost:8080/ServicioWeb/WsAuthImplService"/> </port> </service> </definitions>