Method Community

 

When I call a web service I don't get any data back

Last post 11-19-2015 2:28 PM by vonwao. 6 replies.
Page 1 of 1 (7 items)
Sort Posts: Previous Next
  • 11-10-2015 12:43 PM

    • vonwao
    • Top 500 Contributor
    • Joined on 11-09-2015
    • Posts 6

    When I call a web service I don't get any data back

    When I call a web service I don't get any data back, I only get this response

    <string xmlns="http://tempuri.org/">
    <?xml version="1.0" encoding="windows-1252" ?><MethodAPI response = "Success" ><MethodIntegration /></MethodAPI>
    </string>

    What is thsi MethodIntegration tag and how do I get the data? 
  • 11-10-2015 3:02 PM In reply to

    Re: When I call a web service I don't get any data back

    Hi vonwao,

    Can you please provide more details as to which API endpoint you are calling?  That will help us compare the results being returned to what is expected.

    Cheers

    Jon

    Jonathan Gamble
    Product Manager
    Method Integration Inc.
    Local and overseas: 416.847.0400
    Toll Free: 1.888.925.6238
    Fax: 416.640.6027
    E-mail: j.gamble@method.me
  • 11-11-2015 8:04 AM In reply to

    • vonwao
    • Top 500 Contributor
    • Joined on 11-09-2015
    • Posts 6

    Re: When I call a web service I don't get any data back

    I'm calling the MethodAPITableListV2.

    Thanks,
    Otto 

  • 11-11-2015 9:51 AM In reply to

    Re: When I call a web service I don't get any data back

    Hi Otto,

    You should expect to see a list of tables in the response from MethodAPITableListV2.  Please verify the parameters being passed to the endpoint.  You can verify the required parameters and also perform a test from your browser HERE.  

    Jonathan Gamble
    Product Manager
    Method Integration Inc.
    Local and overseas: 416.847.0400
    Toll Free: 1.888.925.6238
    Fax: 416.640.6027
    E-mail: j.gamble@method.me
  • 11-16-2015 9:29 AM In reply to

    • vonwao
    • Top 500 Contributor
    • Joined on 11-09-2015
    • Posts 6

    Re: When I call a web service I don't get any data back

    I'm still getting an empty response, I don't know why.  Does this method only list custom tables?  Should I see tables like Customers, Invoices, etc.? 

  • 11-16-2015 4:59 PM In reply to

    Re: When I call a web service I don't get any data back

    The MethodAPITableListV2 endpoint will return a list of all tables within your account - including any new custom tables you've created, and standard QuickBooks tables like Customer and Inoivce.

    To verify - you tried using the tool available HERE and still did not receive a valid response?  You only need to input your Method company account name, login email, and password to receive a response. 

    If you send me an email with your Method account name, I can try running a request from my side to validate everything is working correctly.   


    Jonathan Gamble
    Product Manager
    Method Integration Inc.
    Local and overseas: 416.847.0400
    Toll Free: 1.888.925.6238
    Fax: 416.640.6027
    E-mail: j.gamble@method.me
  • 11-19-2015 2:28 PM In reply to

    • vonwao
    • Top 500 Contributor
    • Joined on 11-09-2015
    • Posts 6

    Re: When I call a web service I don't get any data back

    Thanks for your help.  I finally got it.  It turns out the method account I was using didn't have the right permissions, but for some reason I didn't get the right error message for this web service.  But now that the admin of my company gave me the right permissions, it works!

    It's still very unfortunate that you don't support returning JSON instead of XML, because parsing the XML will be a time-consuming process that is unnecessary.  JSON is the industry standard at this point and I know the .NET server you are using supports it! 

Page 1 of 1 (7 items)