xpath - XMLSQLQuery queried by PHP -


when 1 makes search xmlsqlquery on stack overflow, 0 results found. hope can help.

i have link wsdl file supports xmlxpathquery (i'm not experienced in using wsdl files, , never done xmlsqlquery before, standard soap calls standard php soapclient)

i have username , password , database name.

in theory can run xmlsqlquery looks this: "select lastname users statusflag = 1 xml auto"

but how connect (with username, password , dbname) wsdl file supports xmlsqlquery , how run query, in php.

well, other looking, looks wsdl file has main call-functions like:

<s:element name="stringxpathquery"> <s:complextype> <s:sequence> <s:element minoccurs="0" maxoccurs="1" name="xpathexpression" type="s:string"/> <s:element minoccurs="0" maxoccurs="1" name="username" type="s:string"/> <s:element minoccurs="0" maxoccurs="1" name="password" type="s:string"/> <s:element minoccurs="0" maxoccurs="1" name="dbname" type="s:string"/> </s:sequence> </s:complextype> </s:element> 

(correctly positioned not here)

so 1 can use soapclient in php. fields not in wsdl file, 1 can guess or try documentation that.

example:

$client = new soapclient("some wsdl url"); $user = $client->stringxpathquery(array(     'xpathexpression' => 'user[@lastname="hans"]',     'username' => 'some username',     'password' => 'some password',     'dbname' => 'some db name'   )); 

Comments