The string coming back is an XML string I would like to use the token value to create another request to the web service where I have to incorporate this value again in XML string before sending it.
The WSDL file for service looks like this, this defines the way of dealing with the web service.
I do have a schema file for the login input for example. Is there a way that Stylus Studio is able to cope with this scenario or do I have to create my XML files manually all the time?
Subject:Web Service response with XML string Author:(Deleted User) Date:15 Nov 2005 01:12 PM
Christian,
Stylus will not automatically put the login token into the next web service message. You will have to do that yourself.
Please tell us your environment, are you running these web service requests manually inside Stylus? In a separate .java program? etc?
You should be able to write an .xslt which gets the token from the first response, and then inserts it into the 2nd .wscc file, creating a 3rd .wscc file which you would use once, and then throw away.
Subject:Web Service response with XML string Author:Christian Haug Date:16 Nov 2005 05:34 AM
Hello Clyde,
thanks for your answer. I didn't excpect Stylus Studio to do it by itself but I wan't to find a solution within Stylus. At the moment I am running these requests manually but the idea is to run a cascade of requests automatically where you need the output from one request as input for the next one.
My problem is that because of the way the Web service is implemented I get the answer back in an XML string in one node (here Loginresult) in the Soap envelope. I then need to map this string to an XML schema to split it up. I attach a screenshot of how it looks in the Stylus Mapper.
So I think your idea is right but I can't see how it would work by writing an .xslt since the Stylus doesn't know that Loginresult node is another XML string with several notes in it. So if you have an idea how the mapping could work it would be great.
I am running Stylus on a Windows XP system connecting to a Web Service running on a remote Windows 2003 server.