java - Talend Open Studio exporting job as a webservice and calling it without URL parameters -


i working talend first time. have created talend job , exported axis webservice war file. have deployed on tomcat container.

now in order call webservice, passing values context parameters, need build url values set on it.

for example url might similar this:

http://localhost:10080/standardparcellor_0.1/services/standardparcellor?method=runjob&arg1=--context_param%20deliveryparcelmetadatafilelocation=c:\dev\temp\dms\b2345678-2234-1234-1234-123456789123\a2345678-2234-1234-1234-123456789123\metadata.xml&arg2=--context_param%20workingpath=c:\dev\temp&arg3=--context_param%20deliveryparcelid=db604807-8606-4107-8d3e-aff08c95db1c&arg4=--context_param%20packageworkingfolder=c:\dev\temp\dms\b2345678-2234-1234-1234-123456789123\a2345678-2234-1234-1234-123456789123 

if notice url awfully long , there characters in url need encoded properly. causing me lot of grief. if works now, break later on either on basis of length of url or encoding doing right.

i wondering , hoping since web service call, soap call, can't set these parameters in xml? create soap envelope , pass webservice? generate classes can use wsdl , call webservice right way, opposed horrible looking url.

unfortunately there isn't way have generated war callable prettier url far know.

an alternative option stick web server in front of redirects build necessary url.


Popular posts from this blog