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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.