Hi, i'm using "SOAP Request node" in WMBT 6.1, and i want to change the "web service url" property of the SOAP node dynamically in my JavaCompute Node. Can you give your suggestion on how to use it.
This topic has been locked.
5 replies Latest Post - 2013-01-16T08:09:35Z by fjb_saper
Pinned topic How to Set Webservice URL Dynamically from Java Compute Node
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2013-01-16T08:09:35Z at 2013-01-16T08:09:35Z by fjb_saper
Re: How to Set Webservice URL Dynamically from Java Compute Node2012-12-31T22:57:02Z in response to fjb_saperHi, Yes ! i would like to know if there is any way to override the variable so that i can get the URL some where from the property file. I found the solution for overriding the URL from ESQL in one of the threads but dont knw how to do it in Java Compute node. Thanks.
Re: How to Set Webservice URL Dynamically from Java Compute Node2013-01-15T16:52:00Z in response to PowerssCheck below. this is how we need to set the "Destination URL" for Webservice in Java compute Node.
destinationElement = localEnv.createElementAsLastChild(MbXMLNSC.FOLDER,"Destination",null);
MbElement soapElement = destinationElement.createElementAsLastChild(MbXMLNSC.FOLDER,"SOAP",null);
MbElement requestElement = soapElement.createElementAsLastChild(MbXMLNSC.FOLDER,"Request",null);
MbElement transportElement = requestElement.createElementAsLastChild(MbXMLNSC.FOLDER,"Transport",null);
MbElement httpElement = transportElement.createElementAsLastChild(MbXMLNSC.FOLDER,"HTTP",null);
MbElement WebServiceURLElement = httpElement.createElementAsLastChild(MbXMLNSC.FOLDER,"WebServiceURL",null);