Support Forum

Ask questions and get help from MobileTogether experts.
MobileTogether Product Information
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
View
Go to last post Go to first unread
mckelvj  
#1 Posted : Friday, January 22, 2016 8:00:10 PM(UTC)
mckelvj

Rank: Newbie

Groups: Registered
Joined: 1/21/2016(UTC)
Posts: 2
United States
Location: Arizona

Guys, come on. I scoured the help file but I find scant information about how to implement a HTTP SOAP REQUEST (POST) or RESTful API Request (POST) tying the POST to fields on the page. The videos provide no help either. And there is nothing on the user forms.

This is a new product. Developers cannot develop if we don't have atleast the inkling of information how to use the tool.

In my case I have a WCF service (which works - tested!), and I can create the $HTTP1 Page Source but the fields on the Page need to be tied to the POST and that is where I am lost. Everything I have tried has failed. For a SOAP Request I tried tying the Parameters/Value to the $PERSISTENT values I linked to the fieldson the form using the XPath statement in the SOAP Request Value.

I tried setting up the WCF service as a RESTful API and tried to tie those parameters to a JSON value linked to the fields.

Nothing works. Do you have any kind of example we can use? We are ready to abandon MobileTogether.

Sincerely,
John McKelvey
File Attachment(s):
muver.zip (6kb) downloaded 65 time(s).
bbv  
#2 Posted : Monday, January 25, 2016 12:53:39 PM(UTC)
bbv

Rank: Administration

Groups: Registered, Administrators
Joined: 7/21/2014(UTC)
Posts: 495

Was thanked: 87 time(s) in 87 post(s)
Hi,

first of all - sorry for confusion - by seeing your sample we've realized how a first-time user can go in a wrong direction - we will update our documentation with more samples on how to call SOAP/REST web services.

What you need to do - remove the $HTTP1 tree (you don't need it) and instead of using Save to HTTP/FTP command, use (what we thought self-evident till yet) the Execute SOAP Request command. SOAP requests are automatically sent as POST. When you select the SOAP function you wanted to use you will see then a list of parameters which you can then bind to $PERSISTENT tree - the way you already did it once.

I would love to change a sample for you to show exactly what I mean, but unfortuntely you didn't attach the schema files which accompany your WSDL file, therefore creating a sample with your WSDL is impossible.

Let us know if something is still unclear.

P.S. do not leave $HTTP1 tree before using the Execute SOAP Request command. You have configured it in your sample with "Load on first use", which means it already sends a wrong request to your server by the time when the page is opened first. Remove $HTTP1 to avoid any side effects.


Altova MobileTogether Experts
mckelvj  
#3 Posted : Tuesday, February 2, 2016 7:58:45 PM(UTC)
mckelvj

Rank: Newbie

Groups: Registered
Joined: 1/21/2016(UTC)
Posts: 2
United States
Location: Arizona

Thanks for the response. I tried your suggestions with no success. The issue is that I do not know how to construct the settings.

I changed the service to a restful WCF service. But I am still struggling with setting up the REST request settings.

As I mentioned above a simple example would be great. For example:

If I had a PUT request service: AddPerson(string profile, string location}

and, a Persistent data source which is tied to fields on my page and defined below:

-root
-profile
- fName
- lName
-location
- street
- city
- state

How would I setup the REST request settings?

Thanks Again


bbv  
#4 Posted : Wednesday, February 3, 2016 11:14:29 AM(UTC)
bbv

Rank: Administration

Groups: Registered, Administrators
Joined: 7/21/2014(UTC)
Posts: 495

Was thanked: 87 time(s) in 87 post(s)
There are too many different uses for web services - if we provide a sample for something it might be still not what you are looking for. Therefore we've tried to make a sample for your case which you will need to modify with real URL. We had to guess, because we have no details of your server. Hope this helps
File Attachment(s):
RESTExample.mtd (9kb) downloaded 69 time(s).
bbv  
#5 Posted : Wednesday, February 3, 2016 11:25:35 AM(UTC)
bbv

Rank: Administration

Groups: Registered, Administrators
Joined: 7/21/2014(UTC)
Posts: 495

Was thanked: 87 time(s) in 87 post(s)
And here comes a sample with our own SOAP web service, which is not exactly what you are looking for, but we were at least able to test, because it runs on our public server
File Attachment(s):
CityTimes.zip (6kb) downloaded 63 time(s).
Users browsing this topic
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.