php getting data from XML file -
I am making a soap call and get data in XML. Return to XML is a markup, from which I do not know how to run. Only give me all the & lt; Web_get_debiteuren & gt; Required.
I thought php to use SimpleXMLElement (). But I am not able to do something like this:
$ xml = new simple assemment ($ result); Echo $ xml- & gt; soap;
I get the results from XML results for See XML below: & lt; Web_get_debiteuren & gt; How can I get a part?
& lt ;? XML version = "1.0" encoding = "window-1250"? & Gt; & Lt; Soap: Envelope xmlns: Soap = "http://schemas.xmlsoap.org/soap/envelope/" xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" xmlns: xsd = "http : //www.w3.org/2001/XMLSchema "& gt; & Lt; Soaps: Body & gt; & Lt; Getdatawithoptionsresponse xmlns = "vault: officer prof.te. services" & gt; & Lt; Getdatawithoptionsresult & gt; & Lt; AfasGetConnector & gt; & Lt; Xs: schema xmlns: xs = "http://www.w3.org/2001/XMLSchema" & gt; & Lt; Xs: element name = "afasgetconnector" & gt; & Lt; XS: complexType & gt; & Lt; Xs: likes maxOccurs = "unbounded" & gt; & Lt; Xs: element name = "web_gate_debiterain" & gt; & Lt; XS: complexType & gt; & Lt; XS: Sequence & gt; & Lt; Xs: element name = "nimer_debiter" type = "xs: string" minOccurs = "0" /> & Lt; Xs: element name = "name_coditor" type = "xs: string" minOccurs = "0" /> & Lt; Xs: element name = "e-mail_work" type = "xs: string" minOccurs = "0" /> & Lt; Xs: element name = "voranam" type = "xs: string" minOccurs = "0" /> & Lt; Xs: element name = "achantham" type = "xs: string" minOccurs = "0" /> & Lt; / XS: sequence & gt; & Lt; / XS: complexType & gt; & Lt; / XS: element & gt; & Lt; / XS: Options & gt; & Lt; / XS: complexType & gt; & Lt; / XS: element & gt; & Lt; / XS: Schema & gt; & Lt; Web_get_debiteuren & gt; & Lt; Nummer_debiteur & gt; 10000 & lt; / Nummer_debiteur & gt; & Lt; Name_debiteur & gt; Test & lt; /name_debiteur & gt; & Lt; Voornaam & gt; Swan & lt; / Voornaam & gt; & Lt; Achternaam & gt; Klok & lt; / Achternaam & gt; & Lt; / Web_get_debiteuren & gt; & Lt; Web_get_debiteuren & gt; & Lt; Nummer_debiteur & gt; 11000 & lt; / Nummer_debiteur & gt; & Lt; Name_debiteur & gt; Sven & lt; /name_debiteur & gt; & Lt; E-mail_werk & gt; E@mail.com< / E mail_werk & gt; & Lt; Voornaam & gt; Sven & lt; / Voornaam & gt; & Lt; Achternaam & gt; Kramer & lt; / Achternaam & gt; & Lt; / Web_get_debiteuren & gt; & Lt; Web_get_debiteuren & gt; & Lt; Nummer_debiteur & gt; 11001 & lt; / Nummer_debiteur & gt; & Lt; Name_debiteur & gt; Ireen & lt; /name_debiteur & gt; & Lt; E-mail_werk & gt; I@reen.nl< / E mail_werk & gt; & Lt; Voornaam & gt; Ireen & lt; / Voornaam & gt; & Lt; Achternaam & gt; Wust & lt; / Achternaam & gt; & Lt; / Web_get_debiteuren & gt; & Lt; / AfasGetConnector & gt; & Lt; / Getdatawithoptionsresult> & Lt; / Getdatawithoptionsresponse & gt; & Lt; / Soap: Body & gt; & Lt; / Soap: Envelope & gt;
You can use samples of potential problems:
But I think, if possible, you should use the SOAP client.
Comments
Post a Comment