Tema: WSDL y php
Ver Mensaje Individual
  #2  
Antiguo 02-08-2007
halizia halizia is offline
Miembro
 
Registrado: abr 2006
Posts: 116
Reputación: 19
halizia Va por buen camino
he estado mirando documentacion y para hacer funcionar un servicio wsdl hay que usar las funciones soap, pero no me funciona, le paso un archivo xml con la siguiente sintaxis:

<definitions name="IEMailServiceservice" targetNamespace="http://tempuri.org/">

<message name="SendMail0Request">
<part name="ToAddress" type="xs:string"/>
<part name="FromAddress" type="xs:string"/>
<part name="ASubject" type="xs:string"/>
<part name="MsgBody" type="xs:string"/>
</message>

<message name="SendMail0Response">
<part name="return" type="xs:int"/>
</message>

<portType name="IEMailService">

<operation name="SendMail">
<input message="tns:SendMail0Request"/>
<output message="tns:SendMail0Response"/>
</operation>
</portType>

<binding name="IEMailServicebinding" type="tns:IEMailService">
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>

<operation name="SendMail">
<soapperation soapAction="urn:EMailServiceIntf-IEMailService#SendMail" style="rpc"/>

<input message="tns:SendMail0Request">
<soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:EMailServiceIntf-IEMailService"/>
</input>

<output message="tns:SendMail0Response">
<soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:EMailServiceIntf-IEMailService"/>
</output>
</operation>
</binding>

<service name="IEMailServiceservice">
<port name="IEMailServicePort" binding="tns:IEMailServicebinding">
<soap:address location="http://localhost/cgi-bin/project1.exe/soap/IEMailService"/>
</port>
</service>
</definitions>

me da error en el xml dice q no encuentra el tag <definitions>

el codigo php es el siguiente:
Código PHP:
 $cliente1 = new soapclient("C:\...\mail.xml", array(true)); 
Saludos!
Responder Con Cita