C# client talking to PHP webservice issues

Soldato
Joined
18 Oct 2002
Posts
7,139
Location
Ironing
I've got a webservice based on PHP and I'm building a client in c# .net that will talk to this. One of the methods I have needs to return an array, and this currently isn't working. The WSDL defines:

Code:
<types>
−
	<xsd:schema targetNamespace="urn:app">
<xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
<xsd:import namespace="http://schemas.xmlsoap.org/wsdl/"/>
−
	<xsd:complexType name="authenticateMereturn">
−
	<xsd:all>
<xsd:element name="controlid" type="xsd:string" returnvar="controlid"/>
<xsd:element name="sessionid" type="xsd:string" returnvar="sessionid"/>
</xsd:all>
</xsd:complexType>
</xsd:schema>
</types>

Then:

Code:
<message name="authenticateMeResponse">
<part name="return" type="xsd:authenticateMereturn"/>
</message>

After that:
Code:
<operation name="authenticateMe">
<input message="tns:authenticateMeRequest"/>
<output message="tns:authenticateMeResponse"/>
</operation>

For some reason, when I add the webservice in visual studio, the return type for the method is a System.String, and when I try to access the method, I get an "error in XML document" error with the innerexception being something like "I can't turn an XmlNode[] object into a String". Any ideas on how I can make this work?
 
Back
Top Bottom