Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Searching xml documents with Xpath
Hi,
I am attempting to call a webservice from a suitelet within netsuite to return back a list of addresses. I have got as far as getting the SOAP response which is as follows
<?xml version="1.0" encoding="utf-8"?> <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"> <soap:Body> <GetAvailableAddressesResponse xmlns="https://webservices.opalonline.co.uk/AddressMatchingService"> <GetAvailableAddressesResult>Success</GetAvailableAddressesResult> <AddressResults> <Address> <SubBuilding>Unit G9</SubBuilding> <BuildingName>Genesis Centre</BuildingName> <Street>Garret Field</Street> <Locality>Birchwood</Locality> <PostTown>Warrington</PostTown> <PostCode>WA3 7BH</PostCode> <ALK>A00030924125</ALK> <CSSDistrictCode>LV</CSSDistrictCode> <Qualifier>Gold</Qualifier> </Address> <Address> <BuildingName>Y7 Genesis Centre</BuildingName> <Street>Garrett Field</Street> <Locality>Birchwood</Locality> <PostTown>Warrington</PostTown> <County>Cheshire</County> <PostCode>WA3 7BH</PostCode> <Qualifier>Silver</Qualifier> </Address> <Address> <OrganisationName>CAMPAIGN FOR LEARNING</OrganisationName> <BuildingName>Genesis Centre</BuildingName> <Street>Garrett Field</Street> <Locality>Birchwood</Locality> <PostTown>Warrington</PostTown> <County>Cheshire</County> <PostCode>WA3 7BH</PostCode> <Qualifier>Silver</Qualifier> </Address> </AddressResults> </GetAvailableAddressesResponse> </soap:Body> </soap:Envelope>
0