EventDay / Infusionsoft.net

A C# Wrapper around the Infusionsoft.com API
15 stars 22 forks source link

Issue calling FileService.UploadFile #44

Open fitzglitz opened 7 years ago

fitzglitz commented 7 years ago

I'm receiving the following error when calling UploadFile.

InfusionSoft.InfusionSoftException: Server returned a fault exception: [0] No method matching arguments: java.lang.String, java.lang.String, java.lang.String, java.lang.Integer

Can you please check to see if this method still works for you?

fitzglitz commented 7 years ago

Here is the issue.

    [XmlRpcMethod("FileService.uploadFile")]
    object UploadFile(string apiKey, string fileName, string base64EncodedData, int contactId);

The XML service is expecting: string privateKey, int contactID, string fileName, string base64EncodedData

fitzglitz commented 7 years ago

Looks like there are other FileService methods that have parameters out of order.

scottcate commented 7 years ago

It's very possible, as the documentation says, these were auto generated when the service was created. But as the months and years go by the methods change. Especially the rarely used methods are hard to find because well ... they're rarely used :)

Feel free to pull the project and build locally to get a working copy. If what you fix is helpful, submit a pull request and we'll get it back into the package.

fitzglitz commented 7 years ago

I’m getting the following error when trying to commit changes in my branch to github. Please advise.

[cid:image001.png@01D222FF.1389F9A0]

From: scottcate [mailto:notifications@github.com] Sent: Monday, October 10, 2016 10:17 AM To: EventDay/Infusionsoft.net Infusionsoft.net@noreply.github.com Cc: Mike FitzPatrick Mike.Fitzpatrick@swyftmobile.com; Author author@noreply.github.com Subject: Re: [EventDay/Infusionsoft.net] Issue calling FileService.UploadFile (#44)

It's very possible, as the documentation says, these were auto generated when the service was created. But as the months and years go by the methods change. Especially the rarely used methods are hard to find because well ... they're rarely used :)

Feel free to pull the project and build locally to get a working copy. If what you fix is helpful, submit a pull request and we'll get it back into the package.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/EventDay/Infusionsoft.net/issues/44#issuecomment-252683117, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AGw9s4nH2DRQSVClj123MY-jcpMDR9bpks5qynL5gaJpZM4KPByO.

scottcate commented 7 years ago

no image attachment came through. maybe use the webui to upload your image?

https://github.com/EventDay/Infusionsoft.net/issues/44#issuecomment-252745776

fitzglitz commented 7 years ago

image

scottcate commented 7 years ago

you can't commit directly to the repo, you need to fork the code, and then issue a pull request.

https://help.github.com/articles/about-pull-requests/

Scott Cate

EventDay.com Sales: (888) EVENTDAY Desk: (415) 320-6338 Ext:770 _Mobile: (602) 418-0770 E-Mail_: scott.cate@eventday.com https://www.EventDay.com

Download my Business Card into your Contact List http://evn.tc/scott-cate

On Mon, Oct 10, 2016 at 2:07 PM, Mike FitzPatrick notifications@github.com wrote:

[image: image] https://cloud.githubusercontent.com/assets/7093683/19251157/cc83b9b4-8ef2-11e6-9b21-613863495a47.png

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/EventDay/Infusionsoft.net/issues/44#issuecomment-252746513, or mute the thread https://github.com/notifications/unsubscribe-auth/AAlscg2CyaREJ6aKgx6nVd2ZtigN4Uemks5qyqj5gaJpZM4KPByO .

fitzglitz commented 7 years ago

I think I have it handled now. Can you see the pull request?

Appreciate your patience.