Hi i am trying to connect to a web service that is written in AXIS.
Hi there, this is an AXIS service!
Perhaps there will be a form for invoking the service here...
This is the WSDL...
<?xml version="1.0" encoding="UTF-8" ?>
- <wsdl:definitions targetNamespace="https://www.pmi.com.mx/ws/ServicioCrudo.jws" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:impl="https://www.pmi.com.mx/ws/ServicioCrudo.jws-impl" xmlns:intf="https://www.pmi.com.mx/ws/ServicioCrudo.jws" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
- <types>
- <schema targetNamespace="https://www.pmi.com.mx/ws/ServicioCrudo.jws" xmlns="http://www.w3.org/2001/XMLSchema">
- <complexType name="ArrayOf_xsd_string">
- <complexContent>
- <restriction base="SOAP-ENC:Array">
<attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="xsd:string[]" />
</restriction>
</complexContent>
</complexType>
<element name="ArrayOf_xsd_string" nillable="true" type="intf:ArrayOf_xsd_string" />
</schema>
</types>
- <wsdl:message name="recibeInformacionRequest">
<wsdl:part name="Orden" type="xsd:string" />
<wsdl:part name="Producto" type="xsd:string" />
<wsdl:part name="Fecha" type="xsd:string" />
<wsdl:part name="Volumen" type="xsd:float" />
<wsdl:part name="Calidades" type="intf:ArrayOf_xsd_string" />
<wsdl:part name="NumeroActual" type="xsd:int" />
<wsdl:part name="NumeroTotal" type="xsd:int" />
</wsdl:message>
- <wsdl:message name="recibeInformacionResponse">
<wsdl:part name="return" type="xsd:string" />
</wsdl:message>
- <wsdl:portType name="ServicioCrudo">
- <wsdl:operation name="recibeInformacion" parameterOrder="Orden Producto Fecha Volumen Calidades NumeroActual NumeroTotal">
<wsdl:input message="intf:recibeInformacionRequest" />
<wsdl:output message="intf:recibeInformacionResponse" />
</wsdl:operation>
</wsdl:portType>
- <wsdl:binding name="ServicioCrudoSoapBinding" type="intf:ServicioCrudo">
<wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" />
- <wsdl:operation name="recibeInformacion">
<wsdlsoap:operation soapAction="" />
- <wsdl:input>
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="recibeInformacion" use="encoded" />
</wsdl:input>
- <wsdl:output>
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="https://www.pmi.com.mx/ws/ServicioCrudo.jws" use="encoded" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
- <wsdl:service name="ServicioCrudoService">
- <wsdl:port binding="intf:ServicioCrudoSoapBinding" name="ServicioCrudo">
<wsdlsoap:address location="https://www.pmi.com.mx/ws/ServicioCrudo.jws" />
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
This is my code
require_once 'SOAP/Client.php';
$proxy = array('proxy_user'=>'XXX','proxy_pass'=>'XXXX');
$WSDL = new SOAP_WSDL("http://www.pmi.com.mx/ws/ServicioCrudo",$proxy);
echo ( $WSDL->generateProxyCode() );
This is the error I get:
Warning: reset(): Passed variable is not an array or object in C:\php4\pear\SOAP\WSDL.php on line 439
Warning: current(): Passed variable is not an array or object in C:\php4\pear\SOAP\WSDL.php on line 440