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

  • Home
  • SEARCH
  • 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 79441
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T21:08:47+00:00 2026-05-10T21:08:47+00:00

Please advise if you can. I am building an SMS web service API that

  • 0

Please advise if you can.

I am building an SMS web service API that will allow people to send SMS to their desired cellphone numbers. A request will be sent to the interface, we then process that request based on the account details provided and credits available on their account.

We have two proposed XML structures for the interface request and I would like you to advise which one is better as we are going at each others throats about it.

Interface A

print('<?xml version = '1.0' encoding='UTF-8' standalone='yes'?>         <Message version='1.0'>             <ClientID>11111</ClientID>             <PassPhrase>shjfkh</PassPhrase>             <Request Type='sms' Refno='10' ToAddress='27732687745332'>                 <Content>                       hello world                 </Content>             </Request>         </Message> '); 

Interface B

 print('<?xml version = '1.0' encoding='UTF-8' standalone='yes'?>     <Message>         <mmtag name='Version'>1.0</mmtag>         <mmtag name='ClientID'>1001</mmtag>         <mmtag name='RefNO'>120</mmtag>         <mmtag name='Encoding'>base64</mmtag>         <mmtag name='Type'>SMS</mmtag>         <mmtag name='Content'>hello world</mmtag>         <mmtag name='MSISDN'>27781010102</mmtag>             </Message>'); 

Now, looking at the two examples, which do you think would be best-suited for our API interface, regardless of the technology in the back end. Please support your answer should you pick one.

  • 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. 2026-05-10T21:08:47+00:00Added an answer on May 10, 2026 at 9:08 pm

    Interface A.

    Interface B is essentially just a list of key/values, where as Interface A takes advantage of the structured nature of XML and provides meaning through the structure.

    For example: ClientId is an attribute of the Message, not the Request itself. This is clear from looking at A, but not from B.

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

Sidebar

Related Questions

Can somebody please advise a very advanced book on the architecture of the web
Please advise me a jQuery carousel plugin that can make a carousel like the
Can anyone advise please? I'd like to have the default page for visitors to
Hi Can anyone please advise me on how to host an asmx webservice build
Can someone please advise a good approach to this problem: On page load, an
Can anyone please advise the syntax for passing a table FROM a SAS library
Hi Can you advise please any solution? I have a SiteMapPath control and instead
Hi guys can somebody please advise how to cure the memory leaks in the
Could anybody please advise how I can add a splash screen to my HTML5
Please advise how to scrape AJAX pages.

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.