By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,770 Members | 1,285 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,770 IT Pros & Developers. It's quick & easy.

Php Client / .Net Webservice / chat datatype problem - Plz!

P: n/a
Problem in sending char format to the .net webservice from php.
description follows.

I've created a .net webservice.

..Net Webservice:

<WebMethod()> _
Public Function HelloChat(ByVal mychar As Char) As String
Return mychar & mychar
End Function

Php Client:

$parameters['mychar'] = "c";
$soap_proxy = $s->getProxy();
$result = $soap_proxy->HelloChat($parameters);
if (!$err = $soap_proxy->getError()){
echo($result["HelloChatResult"]);
}
else{
echo 'Error: ' . $err . "\n";
}

When i execute above, i received following errors.

"Error: soap:Client: Server was unable to read request. --> There is an
error in XML document (1, 906). --> Input string was not in a correct
format. "

How to send char format data to the webservice from php. For
String, Numbers above code works well.

Thankz.

Jul 17 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.