Código XML:
Ver original<wsdl:message name="getPolicySoapIn">
<wsdl:part name="parameters" element="tns:getPolicy"/>
</wsdl:message>
<wsdl:message name="getPolicySoapOut">
<wsdl:part name="parameters" element="tns:getPolicyResponse"/>
</wsdl:message>
<wsdl:message name="getVoluntaryPolicySoapIn">
<wsdl:part name="parameters" element="tns:getVoluntaryPolicy"/>
</wsdl:message>
<wsdl:message name="getVoluntaryPolicySoapOut">
<wsdl:part name="parameters" element="tns:getVoluntaryPolicyResponse"/>
</wsdl:message>
<wsdl:message name="GetpolicyUrlSoapIn">
<wsdl:part name="parameters" element="tns:GetpolicyUrl"/>
</wsdl:message>
<wsdl:message name="GetpolicyUrlSoapOut">
<wsdl:part name="parameters" element="tns:GetpolicyUrlResponse"/>
</wsdl:message>
<wsdl:portType name="AceSeguMovilActivatePolicySoap">
<wsdl:operation name="getPolicy">
<wsdl:input message="tns:getPolicySoapIn"/>
<wsdl:output message="tns:getPolicySoapOut"/>
</wsdl:operation>
<wsdl:operation name="getVoluntaryPolicy">
<wsdl:input message="tns:getVoluntaryPolicySoapIn"/>
<wsdl:output message="tns:getVoluntaryPolicySoapOut"/>
</wsdl:operation>
<wsdl:operation name="GetpolicyUrl">
<wsdl:input message="tns:GetpolicyUrlSoapIn"/>
<wsdl:output message="tns:GetpolicyUrlSoapOut"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="AceSeguMovilActivatePolicySoap" type="tns:AceSeguMovilActivatePolicySoap">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="getPolicy">
<soap:operation soapAction="http://hola.com/getPolicy" style="document"/>
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="getVoluntaryPolicy">
<soap:operation soapAction="http://hola.com/getVoluntaryPolicy" style="document"/>
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="GetpolicyUrl">
<soap:operation soapAction="http://hola.com/GetpolicyUrl" style="document"/>
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:binding name="AceSeguMovilActivatePolicySoap12" type="tns:AceSeguMovilActivatePolicySoap">
<soap12:binding transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="getPolicy">
<soap12:operation soapAction="http://hola.com/getPolicy" style="document"/>
<wsdl:input>
<soap12:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap12:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="getVoluntaryPolicy">
<soap12:operation soapAction="http://hola.com/getVoluntaryPolicy" style="document"/>
<wsdl:input>
<soap12:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap12:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="GetpolicyUrl">
<soap12:operation soapAction="http://hola.com/GetpolicyUrl" style="document"/>
<wsdl:input>
<soap12:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap12:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="AceSeguMovilActivatePolicy">
<wsdl:port name="AceSeguMovilActivatePolicySoap" binding="tns:AceSeguMovilActivatePolicySoap">
<soap:address location="http://hola/AceSeguMovilActivatePolicy.asmx"/>
</wsdl:port>
<wsdl:port name="AceSeguMovilActivatePolicySoap12" binding="tns:AceSeguMovilActivatePolicySoap12">
<soap12:address location="http://hola/AceSeguMovilActivatePolicy.asmx"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
Y mi estructura en php es la siguiente:
Código PHP:
Ver original$param=array("policyInfo"=>array("user"=>"demo","password"=>"demo","partnerId"=>"9999","saleDate"=>"2011-12-22T12:00:00","saleID"=>"XCDI-9876","salePoint"=>"P. venta x","authorizationNumber"=>"74AD1400","Client"=>array( "street"=>"20 Nov.","number"=>374,"neighborhood"=>"Centro","city"=>"Detroit","state"=>"Michigan","zip"=>91999
)
"value"=>1999.99,"make"=>"Sony Ericsson","model"=>"W580","ID"=>"012345678901234568","number"=>"0442281818181"
)
));
En el wsdl, no veo por ningún lado el saleType, ni como entrada ni como salida, y me da el mismo error con cualquier método que quiera llamar, ya sea el getVoluntaryPolicy o el getPolicy
Lo peor del caso es que antes de que hicieran el cambio de la dirección en meses por el numero de autorización funcionó perfectamente las pruebas que hice.
Y según los que me atendieron de la aseguradora sólo saben ASP, nada de php.