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 8439049
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T07:53:52+00:00 2026-06-10T07:53:52+00:00

I have been struggling trying to figure out this mindbody API for a while

  • 0

I have been struggling trying to figure out this mindbody API for a while now and was hoping someone here had a solution. Because I am going to be working on a clients site, I need to get an activation link to give them. According to the little documentation they have, I need to send a SOAP xml request with a sourcename,password and siteid and it will return an xml statement with the info I need. I have not used SOAP much and have read everything I can find on it. Below is the code I am trying now ( I ahve tried others including using curl). This is very basic but its the best place to start.

$sourceCredentials = array('SourceName'=>'mysourcename', 'Password'=>"mypassword", 'SiteIDs'=>array('12345'));
    $client = new SoapClient("https://api.mindbodyonline.com/0_5/SiteService.asmx?WSDL"); 
    $result = $client->__soapCall("GetActivationCode", ($sourceCredentials));  
    echo "<pre>"; print_r($result); echo "</pre>";

The error I keep getting is

System.NullReferenceException: Object reference not set to an instance of an object. at mb.API._0_5.SiteService.GetActivationCode(GetActivationCodeRequest Request)

I have tried to use Githubs sources as well but have nto been able to find what I need.

Any help is appreciated.

  • 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-06-10T07:53:54+00:00Added an answer on June 10, 2026 at 7:53 am

    If you’re still having trouble I’m working on writing an article on getting started with the MINDBODY API in under 30 minutes also here’s a link to a tool I created that should get the activation code for you

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

Sidebar

Related Questions

I have been struggling with this for a while now. given a set of
I've been struggling for a week now trying to figure out how to generate
I've been struggling for several hours trying to figure out how to get this
I have been struggling trying to figure out how to conditionally include Flex libraries
I've been struggling to figure this out for several days now and though I
I have been struggling for a few days trying to find out how come
I have been struggling with this question for awhile now, and I haven't reached
I have been struggling with this problem for a few days now and I
I've been struggling for hours trying to figure out how to use resources in
Have been struggling all day trying to make this simple example work using socket.io.

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.