Ver Mensaje Individual
  #2 (permalink)  
Antiguo 14/08/2012, 09:42
rosillos
 
Fecha de Ingreso: marzo-2011
Ubicación: Barcelona
Mensajes: 9
Antigüedad: 13 años, 1 mes
Puntos: 1
Respuesta: Cliente WS-SOAP sobre HTTPS

Por cierto, os indico también el WSDL:

Código HTML:
<?xml version="1.0" encoding="utf-8"?>
<wsdl:definitions name="WCFServicioBonificacion" targetNamespace="http://ServicioBonificacion.Model/2012/ServicioBonificacion" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex" xmlns:wsa10="http://www.w3.org/2005/08/addressing" xmlns:tns="http://ServicioBonificacion.Model/2012/ServicioBonificacion" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsap="http://schemas.xmlsoap.org/ws/2004/08/addressing/policy" xmlns:msc="http://schemas.microsoft.com/ws/2005/12/wsdl/contract" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
  <wsp:Policy wsu:Id="EP_BasicHTTP_policy">
    <wsp:ExactlyOne>
      <wsp:All>
        <sp:TransportBinding xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
          <wsp:Policy>
            <sp:TransportToken>
              <wsp:Policy>
                <sp:HttpsToken RequireClientCertificate="false"/>
              </wsp:Policy>
            </sp:TransportToken>
            <sp:AlgorithmSuite>
              <wsp:Policy>
                <sp:Basic256/>
              </wsp:Policy>
            </sp:AlgorithmSuite>
            <sp:Layout>
              <wsp:Policy>
                <sp:Strict/>
              </wsp:Policy>
            </sp:Layout>
            <sp:IncludeTimestamp/>
          </wsp:Policy>
        </sp:TransportBinding>
        <sp:EndorsingSupportingTokens xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
          <wsp:Policy>
            <sp:SecureConversationToken sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient">
              <wsp:Policy>
                <sp:BootstrapPolicy>
                  <wsp:Policy>
                    <sp:SignedParts>
                      <sp:Body/>
                      <sp:Header Name="To" Namespace="http://www.w3.org/2005/08/addressing"/>
                      <sp:Header Name="From" Namespace="http://www.w3.org/2005/08/addressing"/>
                      <sp:Header Name="FaultTo" Namespace="http://www.w3.org/2005/08/addressing"/>
                      <sp:Header Name="ReplyTo" Namespace="http://www.w3.org/2005/08/addressing"/>
                      <sp:Header Name="MessageID" Namespace="http://www.w3.org/2005/08/addressing"/>
                      <sp:Header Name="RelatesTo" Namespace="http://www.w3.org/2005/08/addressing"/>
                      <sp:Header Name="Action" Namespace="http://www.w3.org/2005/08/addressing"/>
                    </sp:SignedParts>
                    <sp:EncryptedParts>
                      <sp:Body/>
                    </sp:EncryptedParts>
                    <sp:TransportBinding>
                      <wsp:Policy>
                        <sp:TransportToken>
                          <wsp:Policy>
                            <sp:HttpsToken RequireClientCertificate="false"/>
                          </wsp:Policy>
                        </sp:TransportToken>
                        <sp:AlgorithmSuite>
                          <wsp:Policy>
                            <sp:Basic256/>
                          </wsp:Policy>
                        </sp:AlgorithmSuite>
                        <sp:Layout>
                          <wsp:Policy>
                            <sp:Strict/>
                          </wsp:Policy>
                        </sp:Layout>
                        <sp:IncludeTimestamp/>
                      </wsp:Policy>
                    </sp:TransportBinding>
                    <sp:EndorsingSupportingTokens>
                      <wsp:Policy>
                        <sp:X509Token sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient">
                          <wsp:Policy>
                            <sp:RequireThumbprintReference/>
                            <sp:WssX509V3Token10/>
                          </wsp:Policy>
                        </sp:X509Token>
                        <sp:SignedParts>
                          <sp:Header Name="To" Namespace="http://www.w3.org/2005/08/addressing"/>
                        </sp:SignedParts>
                      </wsp:Policy>
                    </sp:EndorsingSupportingTokens>
                    <sp:Wss11>
                      <wsp:Policy>
                        <sp:MustSupportRefThumbprint/>
                      </wsp:Policy>
                    </sp:Wss11>
                    <sp:Trust10>
                      <wsp:Policy>
                        <sp:MustSupportIssuedTokens/>
                        <sp:RequireClientEntropy/>
                        <sp:RequireServerEntropy/>
                      </wsp:Policy>
                    </sp:Trust10>
                  </wsp:Policy>
                </sp:BootstrapPolicy>
              </wsp:Policy>
            </sp:SecureConversationToken>
          </wsp:Policy>
        </sp:EndorsingSupportingTokens>
        <sp:Wss11 xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
          <wsp:Policy/>
        </sp:Wss11>
        <sp:Trust10 xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
          <wsp:Policy>
            <sp:MustSupportIssuedTokens/>
            <sp:RequireClientEntropy/>
            <sp:RequireServerEntropy/>
          </wsp:Policy>
        </sp:Trust10>
        <wsaw:UsingAddressing/>
      </wsp:All>
    </wsp:ExactlyOne>
  </wsp:Policy>
  <wsdl:types>
    <xsd:schema targetNamespace="http://ServicioBonificacion.Model/2012/ServicioBonificacion/Imports">
      <xsd:import schemaLocation="https://prebonificaciontransporte.fomento.gob.es/EMFOM.ServicioBonificacion.WS/WCFServicioBonificacion.svc?xsd=xsd1" namespace="http://ServicioBonificacion.Model/2012/ServicioBonificacion"/>
      <xsd:import schemaLocation="https://prebonificaciontransporte.fomento.gob.es/EMFOM.ServicioBonificacion.WS/WCFServicioBonificacion.svc?xsd=xsd2" namespace="http://ServicioBonificacion.Model/2012/ServiceBonificacionFaultMessaje"/>
      <xsd:import schemaLocation="https://prebonificaciontransporte.fomento.gob.es/EMFOM.ServicioBonificacion.WS/WCFServicioBonificacion.svc?xsd=xsd0" namespace="http://schemas.microsoft.com/2003/10/Serialization/"/>
    </xsd:schema>
  </wsdl:types>
  <wsdl:message name="MessageRequest">
    <wsdl:part name="ServicioBonificacion" element="tns:ServicioBonificacion"/>
  </wsdl:message>
  <wsdl:message name="MessageResponse">
    <wsdl:part name="ServicioBonificacion" element="tns:ServicioBonificacion"/>
  </wsdl:message>
  <wsdl:message name="ServicioBonificacionServiceContract_CompruebaBonificacion_ServicioBonificacionFaultMessajeFault_FaultMessage">
    <wsdl:part name="detail" element="q1:ServicioBonificacionFaultMessaje" xmlns:q1="http://ServicioBonificacion.Model/2012/ServiceBonificacionFaultMessaje"/>
  </wsdl:message>
  <wsdl:portType name="ServicioBonificacionServiceContract">
    <wsdl:operation name="CompruebaBonificacion">
      <wsdl:input wsaw:Action="http://ServicioBonificacion.Model/2012/ServicioBonificacion/ServicioBonificacionServiceContract/CompruebaBonificacion" name="MessageRequest" message="tns:MessageRequest"/>
      <wsdl:output wsaw:Action="http://ServicioBonificacion.Model/2012/ServicioBonificacion/ServicioBonificacionServiceContract/CompruebaBonificacionResponse" name="MessageResponse" message="tns:MessageResponse"/>
      <wsdl:fault wsaw:Action="http://ServicioBonificacion.Model/2012/ServicioBonificacion/ServicioBonificacionServiceContract/CompruebaBonificacionServicioBonificacionFaultMessajeFault" name="ServicioBonificacionFaultMessajeFault" message="tns:ServicioBonificacionServiceContract_CompruebaBonificacion_ServicioBonificacionFaultMessajeFault_FaultMessage"/>
    </wsdl:operation>
  </wsdl:portType>
  <wsdl:binding name="EP_BasicHTTP" type="tns:ServicioBonificacionServiceContract">
    <wsp:PolicyReference URI="#EP_BasicHTTP_policy"/>
    <soap12:binding transport="http://schemas.xmlsoap.org/soap/http"/>
    <wsdl:operation name="CompruebaBonificacion">
      <soap12:operation soapAction="http://ServicioBonificacion.Model/2012/ServicioBonificacion/ServicioBonificacionServiceContract/CompruebaBonificacion" style="document"/>
      <wsdl:input name="MessageRequest">
        <soap12:body use="literal"/>
      </wsdl:input>
      <wsdl:output name="MessageResponse">
        <soap12:body use="literal"/>
      </wsdl:output>
      <wsdl:fault name="ServicioBonificacionFaultMessajeFault">
        <soap12:fault name="ServicioBonificacionFaultMessajeFault" use="literal"/>
      </wsdl:fault>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:service name="WCFServicioBonificacion">
    <wsdl:port name="EP_BasicHTTP" binding="tns:EP_BasicHTTP">
      <soap12:address location="https://prebonificaciontransporte.fomento.gob.es/EMFOM.ServicioBonificacion.WS/WCFServicioBonificacion.svc"/>
      <wsa10:EndpointReference>
        <wsa10:Address>https://prebonificaciontransporte.fomento.gob.es/EMFOM.ServicioBonificacion.WS/WCFServicioBonificacion.svc</wsa10:Address>
      </wsa10:EndpointReference>
    </wsdl:port>
  </wsdl:service>
</wsdl:definitions> 
Muchas Gracias.