Community forum

Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


Matthew G
2013-11-15T21:31:49Z
I am attempting to add a new job with a Web Service task from the API. First I have added a working example through the client manually, and verified that it correctly calls the web service. Using the API, I have added the same job/task and both are shown in the client. When I compare the job/task screens for the API version and the manual version, they are seemingly identical.

However, when I run the job/task that was added thru the API, the call does not get made successfully. Can someone look at my VB code and tell me what I'm doing wrong? I'm attaching it as a png to this post. I have searched the documentation, the example c# code, the class library chm, and this forum for examples of working code that accomplishes this and have found nothing. If this documentation exists, please point me to it.

I have the server instance as a property named VisualCronServer, that should be the only context you need to make sense of my code.

Thanks,
Matt

Matthew G attached the following image(s):
Sponsor
Forum information
Support
2013-11-19T10:37:25Z
This is not very trivial and I am not sure it is possible. I have to do some investigation and if possible we will update the API sample project with this.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Matthew G
2013-11-19T17:33:57Z
After monkeying with it some more, I was able to get it to work by simply adding the following line:

_task.WebService.MethodInfo.WebMethod = True

I think it would most certainly be useful to include an example like this in the sample project. Making web service calls is a feature of your product we will be using heavily. Thanks,
Matt
Support
2013-11-19T18:17:26Z
Thanks for the feedback - we will definitely do that now.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top