Jump to content

Is there a way to build a php SOAP call in which the XML request contains Arabic characters?


Dheepak875

Recommended Posts

I am trying to build a SOAP call in php which should make a request to a c#/asp.net based API.

  • The request is in the format of an XML. *XML contains Arabic Characters.
  • If the XML contains only English Characters everything works fine.
  • I also tried to hit the Webservice endpoint via a SOAPUI with Arabic characters and it works fine.So it confirms that the system accepts Soap calls with Arabic Characters. The code I use to hit the EndPoint is shown below.

 

$soapvar = new SoapVar($retrieveXYZRequest, XSD_ANYXML);
$this->client->__soapCall('RetrieveXYZ',array($soapvar));
 

 

 

  • $retrieveXYZRequest is the SOAP Request built in the form of Text(with Arabic characters in certain elements).
  • RetrieveXYZ is the method name that should be called.

Any kind of input will be much appreciated.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.