WEBServiceClient (PHP)-& gt; Server (JAVA) is currently developing WEBService. on my side, it is a request client that requests the WEBService made by JAVA. The question is as follows, $ ViewProjectNumber ['project'] & nbsp ;=& nbsp; '& lt; numbe WEBService Client (PHP)-> Server (JAVA)
Recently, I am working on WEBService development. I am working on the request side to request the JAVA WEBService. The question is as follows,
$ ViewProjectNumber ['project'] =' 1 ';
$ Encodded = new SoapVar ($ ViewProjectNumber, SOAP_ENC_OBJECT );
$ Result = $ client-> oaProjectRequest ($ encodded );
What values does the Server receive from $ encodded ?? 1 ? Escaped. how can this problem be solved?
? Share To: Server (JAVA)] I recently developed WEBService. I am working on a request side to request the JAVA WEBService. The question is as follows: $ ViewProjectNumber ['project']? =? '
------ Solution --------------------
print_r($encodded);
SoapVar Object
(
[Enc_type] => 301
[Enc_value] => Array
(
[Project] => 1
)
)
Apparently it is not escaped on the client.
However, if it is used as the xml node data, it is correct to be escaped, otherwise it will be treated as a node.
You may want to use CDATA