lundi 30 mars 2015

how I can browse this arborescene to extract infor using zend framework 1.11

I have web service client and the file php consume this web service i want to user the file to stock the data in mysql with zend framework 1.11 ,can you tell me how can i extract this info about this arborescence on zend framework i do that $data['code']=$param->ThirdParty->Identification->Thirdpartycode on ClientController it's correct? this structure of web service :



<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://ift.tt/ra1lAU" xmlns:xsd="http://ift.tt/tphNwY" xmlns:soap="http://ift.tt/sVJIaE">
<soap:Body>
<GetThirdPartyInfoResponse xmlns="http://ift.tt/19zfraZ">
<GetThirdPartyInfoResult>
<ThirdParty>
<Company>string</Company>
<Establishment>string</Establishment>
<Identification>
<Seq>int</Seq>
<ThirdPartyCode>string</ThirdPartyCode>
<KeyWord>string</KeyWord>
<Name>string</Name>
<Name_>string</Name_>
<Address>string</Address>
<Address_>string</Address_>
<Zip>string</Zip>
<City>string</City>
<ProvinceSeq>int</ProvinceSeq>
<Province>string</Province>
<Country>string</Country>
<Tel>string</Tel>
<Fax>string</Fax>
<Mail>string</Mail>
<Contact>string</Contact>
<Rep>string</Rep>
<Color>string</Color>
<Language>string</Language>
<Notes>string</Notes>
<Type>CUSTOMER or SUPPLIER or PROSPECT</Type>
</Identification>
<Invoicing>
<SalesTaxNb>string</SalesTaxNb>
<TaxCode>int</TaxCode>
<TaxType>int</TaxType>
<Currency>string</Currency>
<Factoring>NOT_ENABLED or ENABLED</Factoring>
<Copies>int</Copies>
<InvoiceNote>string</InvoiceNote>
<PaymentMethod>ON_RECEIPT_OF_INVOICE or ON_RECEIPT_OF_STATEMENT</PaymentMethod>
<PaymentMode>CHEQUE or BANK_DRAFT or BANK_TRANSFER or PROMISSORY_NOTE or OTHER or CHEQUE_BY_ORDER</PaymentMode>
<PaymentExpiry>int</PaymentExpiry>
<PayDay>int</PayDay>
<InvoiceDiscount>double</InvoiceDiscount>
<InternalIncrementReduction>double</InternalIncrementReduction>
<PaymentDiscount>double</PaymentDiscount>
<PayBefore>int</PayBefore>
<GeneralAccount>string</GeneralAccount>
<CreditLimit>long</CreditLimit>
<Bank>string</Bank>
<Position>string</Position>
<Account>string</Account>
<Key>string</Key>
<Branch>string</Branch>
<Branch_>string</Branch_>
<CompanyNo>string</CompanyNo>
</Invoicing>
<Other>
<Type>string</Type>
<SalesArea>string</SalesArea>
<Staff>string</Staff>
<Turnover>int</Turnover>
<CompanyLegalStatus>UNKNOWN or TRADER or LIBERAL_PROFESSION or FARMER or SALES_AGENT or OTHER_ENTITY or COOPERATIVE or GENERAL_PARTNERSHIP or LIMITED_LIABILITY_COMPANY or LIMITED_COMPANY or ECONOMIC_INTEREST_GROUP or CIVIL_PARTNERSHIP or PUBLIC_SERVICES or TERRITORIAL_COMMUNITY or ENTERPRISE_COMMITTEE or ASSOCIATION or OTHER</CompanyLegalStatus>
<EstimateCreditCheckAction>NO_CONTROL or WARNING or BLOCKING</EstimateCreditCheckAction>
<OrderCreditCheckAction>NO_CONTROL or WARNING or BLOCKING</OrderCreditCheckAction>
<DeliveryCreditCheckAction>NO_CONTROL or WARNING or BLOCKING</DeliveryCreditCheckAction>
<Manufacturer>string</Manufacturer>
<isCustStockView>boolean</isCustStockView>
<MarginCode>int</MarginCode>
<LabourMup>double</LabourMup>
<MaterialUp>double</MaterialUp>
<OutsourceUp>double</OutsourceUp>
<Creation>dateTime</Creation>
<LastEstimate>dateTime</LastEstimate>
<LastInvoice>dateTime</LastInvoice>
<Target>string</Target>
<ContactMode>int</ContactMode>
<EstimateCreationBlocked>boolean</EstimateCreationBlocked>
<JobCreationBlocked>boolean</JobCreationBlocked>
<DeliveryCreationBlocked>boolean</DeliveryCreationBlocked>
</Other>
</ThirdParty>
<Contacts>
<Contact>
<ThirdPartyCode>string</ThirdPartyCode>
<Seq>int</Seq>
<Title>MR or MRS or MISS or OTHER</Title>
<LastName>string</LastName>
<FirstName>string</FirstName>
<Position>string</Position>
<Address>string</Address>
<Address_>string</Address_>
<City>string</City>
<Zip>string</Zip>
<ProvinceSeq>int</ProvinceSeq>
<Province>string</Province>
<Country>string</Country>
<Tel>string</Tel>
<Tel_Extension>string</Tel_Extension>
<Portable>string</Portable>
<Fax>string</Fax>
<Mail>string</Mail>
<IsFirst>boolean</IsFirst>
<Note>string</Note>
<Company>string</Company>
<Establishment>string</Establishment>
</Contact>




Aucun commentaire:

Enregistrer un commentaire