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

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • ramarnath@gmail.com

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

    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($par ameters);
    if (!$err = $soap_proxy->getError()){
    echo($result["HelloChatResul t"]);
    }
    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.

Working...