none
PHP SOAP Webservice to c# windows forms application. What is the problem? I got errors when try to add this service! RRS feed

  • Question

  • <?xml version='1.0' encoding='UTF-8' ?> <definitions name='llkcws' targetNamespace='urn:llkcws' xmlns:tns='urn:llkcws' xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/' xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:soapenc='http://schemas.xmlsoap.org/soap/encoding/' xmlns:wsdl='http://schemas.xmlsoap.org/wsdl/' xmlns='http://schemas.xmlsoap.org/wsdl/'> <message name='checkUserRequest'> <part name='email' type='xsd:string'/> </message> <message name='checkUserResponse'> <part name='Result' type='tns:string'/> </message> <message name='adAuthRequest'> <part name='email' type='xsd:string'/> <part name='passw' type='xsd:string'/> </message> <message name='adAuthResponse'> <part name='Result' type='tns:int'/> </message> <message name='getUserDataRequest'> <part name='id_or_email' type='xsd:string'/> <part name='date' type='xsd:string'/> <part name='atvalinajumi' type='xsd:string'/> </message> <message name='getUserDataResponse'> <part name='Result' type='tns:UserDataArray'/> </message> <message name='getStrukturaRequest'> <part name='root' type='xsd:int'/> <part name='statuss' type='xsd:int'/> </message> <message name='getStrukturaResponse'> <part name='Result' type='tns:StrukturaArray'/> </message> <message name='getKlasifikatoriRequest'> <part name='kods' type='xsd:int'/> <part name='statuss' type='xsd:int'/> </message> <message name='getKlasifikatoriResponse'> <part name='Result' type='tns:KlasifikatoriArray'/> </message> <portType name='llkcwsPortType'> <operation name='checkUser'> <input message='tns:checkUserRequest'/> <output message='tns:checkUserResponse'/> </operation> <operation name='adAuth'> <input message='tns:adAuthRequest'/> <output message='tns:adAuthResponse'/> </operation> <operation name='getUserData'> <input message='tns:getUserDataRequest'/> <output message='tns:getUserDataResponse'/> </operation> <operation name='getStruktura'> <input message='tns:getStrukturaRequest'/> <output message='tns:getStrukturaResponse'/> </operation> <operation name='getKlasifikatori'> <input message='tns:getKlasifikatoriRequest'/> <output message='tns:getKlasifikatoriResponse'/> </operation> </portType> <binding name='llkcwsPortType' type='tns:llkcwsPortType'> <soap:binding style='rpc' transport='http://schemas.xmlsoap.org/soap/http'/> <operation name='checkUser'> <soap:operation soapAction='urn:xmethods-delayed-quotes#checkUser'/> <input> <soap:body use='encoded' namespace='urn:xmethods-delayed-quotes' encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/> </input> <output> <soap:body use='encoded' namespace='urn:xmethods-delayed-quotes' encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/> </output> </operation> <operation name='adAuth'> <soap:operation soapAction='urn:xmethods-delayed-quotes#adAuth'/> <input> <soap:body use='encoded' namespace='urn:xmethods-delayed-quotes' encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/> </input> <output> <soap:body use='encoded' namespace='urn:xmethods-delayed-quotes' encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/> </output> </operation> <operation name='getUserData'> <soap:operation soapAction='urn:xmethods-delayed-quotes#getUserData'/> <input> <soap:body use='encoded' namespace='urn:xmethods-delayed-quotes' encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/> </input> <output> <soap:body use='encoded' namespace='urn:xmethods-delayed-quotes' encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/> </output> </operation> <operation name='getStruktura'> <soap:operation soapAction='urn:xmethods-delayed-quotes#getStruktura'/> <input> <soap:body use='encoded' namespace='urn:xmethods-delayed-quotes' encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/> </input> <output> <soap:body use='encoded' namespace='urn:xmethods-delayed-quotes' encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/> </output> </operation> <operation name='getKlasifikatori'> <soap:operation soapAction='urn:xmethods-delayed-quotes#getKlasifikatori'/> <input> <soap:body use='encoded' namespace='urn:xmethods-delayed-quotes' encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/> </input> <output> <soap:body use='encoded' namespace='urn:xmethods-delayed-quotes' encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/> </output> </operation> </binding> <types> <xsd:complexType name="checkuserdata"> <xsd:sequence> <xsd:element name='checkUser' type='xsd:string'/> </xsd:sequence> </xsd:complexType> <xsd:complexType name="adAuthData"> <xsd:sequence> <xsd:element name='adAuth' type='xsd:int'/> </xsd:sequence> </xsd:complexType> <xsd:complexType name="UserDataArray"> <xsd:complexContent> <xsd:restriction base="SOAP-ENC:Array"> <xsd:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="tns:UserDataArray[]"/> </xsd:restriction> </xsd:complexContent> </xsd:complexType> <xsd:complexType name="StrukturaArray"> <xsd:complexContent> <xsd:restriction base="SOAP-ENC:Array"> <xsd:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="tns:StrukturaArray[]"/> </xsd:restriction> </xsd:complexContent> </xsd:complexType> <xsd:complexType name="KlasifikatoriArray"> <xsd:complexContent> <xsd:restriction base="SOAP-ENC:Array"> <xsd:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="tns:KlasifikatoriArray[]"/> </xsd:restriction> </xsd:complexContent> </xsd:complexType> </types> <service name='llkcwsService'> <port name='llkcwsPortType' binding='tns:llkcwsPortType'>

    .........her is address .....//removed fror now </port> </service> </definitions>


    Thursday, April 10, 2014 12:12 PM

Answers

  • Hi,

    The PHP5 SOAP extension does not support auto-generating WSDL as the .Net Framework does. But it does support a non-WSDL mode. That creates an issue though, because Visual Studio relies on WSDL files in order to create the client reference. So in order to solve this problem, please try to check this article:
    #Calling PHP SOAP Server from C#/.NET Client :
    http://www.nilzorblog.com/2010/05/calling-php-soap-server-from-cnet.html .


    Best Regards,
    Amy Peng

    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Friday, April 11, 2014 2:56 AM
    Moderator