få varibler ud af en soap evelope
Jeg har dette lille stykke kode.Dim myObj
Set myobj = Server.CreateObject("MSXML2.DomDocument.4.0")
Set myObj = GetTeleByTn("64811144")
' Udskriv resultatet som rå xml
Response.Write myobj.xml
virker fint men istædet for at få denne siden
<?xml version="1.0" ?>
- <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>
- <GetTeleByTnResponse xmlns="http://webservice.krak.dk/">
- <GetTeleByTnResult>
- <Tele>
- <ContactInfo>
<TelephoneNumber>64811144</TelephoneNumber>
<MobileTelephoneNumber>22189898</MobileTelephoneNumber>
<FaxNumber />
<EmailAddress />
<URL />
</ContactInfo>
<CompanyName>TD Of Scandinavia A/S</CompanyName>
<FirstName />
<LastName />
<KrakTeleRegistrationNumber>2297336</KrakTeleRegistrationNumber>
<KrakNumber>238751</KrakNumber>
- <Address>
<RoadName>Vestre Havnevej</RoadName>
<RoadNumber>898856</RoadNumber>
<PlaceName />
<PostalCode>5400</PostalCode>
<PostalDistrict>Bogense</PostalDistrict>
<HouseNumberNumericFrom>9</HouseNumberNumericFrom>
<HouseNumberCharacterFrom />
<Floor />
<Door />
<MunicipalityCode>423</MunicipalityCode>
<CountyCode>42</CountyCode>
</Address>
</Tele>
</GetTeleByTnResult>
</GetTeleByTnResponse>
</soap:Body>
</soap:Envelope>
vile jeg gerne have sådan noget som company name ind i en asp variabel.