IMPORTANT:
this is not a Support Forum! Experienced users might answer from time to time questions posted here. If you need a professional and reliable answer, or if you want to report a bug, please contact Altova Support instead.

Development of a Web Service for XML transformation Options · View
TiagoFranca
Posted: Wednesday, February 28, 2018 5:07:41 PM
Rank: Newbie

Joined: 2/28/2018
Posts: 1
Location: Braszil
I am exploring Altova products to create a simple standalone Web Service.

The main goal of this Web Service is to connect with another Server, receive a XML message from this Server, translate this message into two different XML messages and send to two different Servers.
As an example, Server A sends a XML message to MyWebService; MyWebService translate the XML file into two smaller XML files; than MyWebService sends both new files to Servers B and C.

Using Altova MapForce I was able to transform the initial XML file into two different XML files, and also export the code to XSLT and C#.

I used Altova XMLSpy to create a WSLD file that describes a couple of functions of Server A, and imported this function into Altova MapForce, but I was not able to fully configure Altova MapForce (.mfd file) to create MyWebService.

Knowing this, which tools should I use/have to create MyWebService and how should I proceed? Is there a user manual for this kind of application?

I appreciate your attention.
Tiago França
rasgeado
Posted: Thursday, March 1, 2018 4:51:59 PM
Rank: Member

Joined: 3/25/2015
Posts: 19
What you've described should be possible with the following tools (but you will need more than one "simple service" to achieve the goal):

- MapForce
- MapForce Server
- FlowForce Server

Here is my idea about the high-level configuration required:

A)
1. Create a MapForce mapping that calls Web service A and returns your XML file let's call it "a.xml". For more info, see http://manual.altova.com/Mapforce/mapforceenterprise/mffcalling_webservices.htm
2. Deploy the mapping to FlowForce Server and turn it into a job. For more info, see http://manual.altova.com/Mapforce/mapforceenterprise/mff_automate_deploy_to_flowforce.htm
3. In FlowForce, essentially, you can configure the job to fire either on demand or as a scheduled task. In either case, whenever the job is triggered, the Web service is called and your "a.xml" file is saved to some directory. For more info, see http://manual.altova.com/FlowForceServer/FlowForceServerAdvanced/fs_triggers.htm

B)
1. Create another mapping which takes "a.xml" as input and converts it into "b.xml" and "c.xml".
2. Deploy the mapping to FlowForce Server and turn it into a job.
3. In FlowForce, configure your job so that whenever "a.xml" is added to the directory, the mapping transformation should take place. As a result, you should end up with "b.xml" and "c.xml" in the same, or another directory. For a directory polling job example, see http://manual.altova.com/FlowForceServer/FlowForceServerAdvanced/fs_example_directory_polling.htm

C)
1. Create a mapping that takes "b.xml" and "c.xml" as input and calls Web Service B. I assume the Web service takes both files as parameters??
2. Once the mapping works and is tested, deploy it to FlowForce Server.
3. In FlowForce, configure your job to check for the existence of "b.xml" and "c.xml", see http://manual.altova.com/FlowForceServer/FlowForceServerAdvanced/fs_exp_path_example.htm. If both exist, fire the job (that is, send them to the Web service).

D) Repeat C) for Service C.
Users browsing this topic
guest

Forum Jump
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.

Use of the Altova User Forum(s) is governed by the Altova Terms of Use.