Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4541388
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T15:13:41+00:00 2026-05-21T15:13:41+00:00

I have the following SOAP response: <?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>

  • 0

I have the following SOAP response:

<?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>
<ABRSearchByABNResponse xmlns="http://abr.business.gov.au/ABRXMLSearch/">
<ABRPayloadSearchResults>
<request>
    <identifierSearchRequest>
        <identifierType>ABN</identifierType>
        <identifierValue>79 142 357 604</identifierValue>
    </identifierSearchRequest>
</request>
<response>
    <dateRegisterLastUpdated>2011-04-26</dateRegisterLastUpdated>
    <dateTimeRetrieved>2011-04-26T14:10:17.8169921+10:00</dateTimeRetrieved>
    <businessEntity>
        <recordLastUpdatedDate>2010-03-05</recordLastUpdatedDate>
        <ABN>
            <identifierValue>79142357604</identifierValue>
            <isCurrentIndicator>Y</isCurrentIndicator>
            <replacedIdentifierValue xsi:nil="true" />
            <replacedFrom>0001-01-01</replacedFrom>
        </ABN>
        <entityStatus>
            <effectiveTo>0001-01-01</effectiveTo>
        </entityStatus>         
        <entityType>
            <entityTypeCode>PUB</entityTypeCode>
        </entityType>
        <mainBusinessPhysicalAddress>
            <stateCode>NSW</stateCode>
            <postcode>2000</postcode>
        </mainBusinessPhysicalAddress>
        </businessEntity>
</response>
</ABRPayloadSearchResults>
</ABRSearchByABNResponse>
</soap:Body>
</soap:Envelope>

What I am trying to get is the entityTypeCode but I have no success. I tried with

XmlDocument xDoc = new XmlDocument();
xDoc.LoadXml(searchPayload);


XmlNamespaceManager nsmgr = new XmlNamespaceManager(xDoc.NameTable);
nsmgr.AddNamespace("c", "http://abr.business.gov.au/ABRXMLSearch/");

XmlNode entityTypeCode = xDoc.SelectSingleNode("//entityTypeCode", nsmgr);

and various xpath expressions but it the xmlnode entityTypeCode is always null.

Suggestions?

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T15:13:42+00:00Added an answer on May 21, 2026 at 3:13 pm

    use XmlNode entityTypeCode = xDoc.SelectSingleNode("//c:entityTypeCode", nsmgr); as you have added the namespace of the element as c prefix in the namespace manager.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following XML : <s:Envelope xmlns:s=http://schemas.xmlsoap.org/soap/envelope/> <s:Body> <GetCustomerCentreDetailsResponse xmlns=http://tempuri.org/> <GetCustomerCentreDetailsResult xmlns:i=http://www.w3.org/2001/XMLSchema-instance xmlns:a=http://schemas.datacontract.org/2004/07/*****>
I have the following xml; <env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'> <env:Header> <mm7:TransactionID xmlns:mm7='http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/REL-6-MM7-1-4' env:mustUnderstand='1'>6797324d</mm7:TransactionID> </env:Header> <env:Body> <DeliveryReportReq
I have an XML/Soap file that looks like this: <?xml version=1.0 encoding=utf-8?> <soap:Envelope xmlns:soap=http://www.w3.org/2003/05/soap-envelope
I have an SOAP response that looks similar to this: <?xml version=1.0 encoding=UTF-8?> <soapenv:Envelope
I have the following string loaded to an XML document: <?xml version='1.0' encoding='utf-8'?> <soapenv:Envelope
I have the following code: $body = <SOAP-ENV:Envelope>.$data.</SOAP-ENV:Envelope>; $ch = curl_init($FD_Add); curl_setopt($ch, CURLOPT_POST, 1);
I need to generate the following XML with SOAP: ... <InternationalShippingServiceOption> <ShippingService>StandardInternational</ShippingService> <ShippingServiceCost currencyID=USD>39.99</ShippingServiceCost>
I am trying to generate the following XML in my SOAP call: <CResponse> <ID>int</ID>
I have the following PHP example code: $client = new SoapClient("http://example.com/example.wsdl"); $h = Array();
I have make a soap-call with Savon. This works fine and give the following

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.