Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.basic.visual.misc > #732

SOAP & XML parsing

From AEJ45 <AllenJ@restons.co.uk>
Newsgroups comp.lang.basic.visual.misc
Subject SOAP & XML parsing
Date 2012-02-02 02:37 -0800
Organization http://groups.google.com
Message-ID <3770c896-dec9-4645-9861-8ad7154ee0d7@eb6g2000vbb.googlegroups.com> (permalink)

Show all headers | View raw


Hello. I have the following SOAP Response document:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/
envelope/">

  <soapenv:Body>
    <ns3:performTitleKnownSearchResponse xmlns:ns1="http://
www.oscre.org/ns/eReg-Final/2011/RequestTitleKnownOfficialCopyV2_0"
    xmlns:ns3="http://officialcopyv2_0.ws.bg.lr.gov/"
    xmlns:ns4="http://www.oscre.org/ns/eReg-Final/2011/
ResponseTitleKnownOfficialCopyV2_0">

      <return>
        <ns4:GatewayResponse>
          <ns4:TypeCode>30</ns4:TypeCode>
          <ns4:Results>
            <ns4:ExternalReference>
              <ns4:Reference>c</ns4:Reference>
            </ns4:ExternalReference>
            <ns4:ActualPrice>
              <ns4:GrossPriceAmount>4.00</ns4:GrossPriceAmount>
            </ns4:ActualPrice>
            <ns4:Attachment>
              <ns4:EmbeddedFileBinaryObject ns4:format="PDF">
                      This tag contains Base64 Encoded Binary Data for
a pdf file.
              </ns4:EmbeddedFileBinaryObject>
            </ns4:Attachment>
            <ns4:ResultTypeCode>10</ns4:ResultTypeCode>
            <ns4:HMLRReference>
              <ns4:Reference>8CBBDVB</ns4:Reference>
            </ns4:HMLRReference>
          </ns4:Results>
        </ns4:GatewayResponse>
      </return>
    </ns3:performTitleKnownSearchResponse>
  </soapenv:Body>
</soapenv:Envelope>

I have tried many methods of reading the data but every time I try to
read an individual node I get an Object or With Block not set.

I need to read through the document, extract the Base64 Binary and
save it to a pdf file. Any help would be appreciated.

Thanks

Back to comp.lang.basic.visual.misc | Previous | NextNext in thread | Find similar


Thread

SOAP & XML parsing AEJ45 <AllenJ@restons.co.uk> - 2012-02-02 02:37 -0800
  Re: SOAP & XML parsing Deanna Earley <dee.earley@icode.co.uk> - 2012-02-02 12:11 +0000

csiph-web