hello,<br /><br />i trying simple command line test program invoke adobe form server 7.0's adobefsservice , generate pdf. <br /><br />the following method code<br /><br />private static byte[] getpdf(byte[] inxml)throws renderformexception, ioexception {<br /> byte[] ccontent =null;<br /> <br />// create soapclient object<br /> soapclient formserver = new soapclient();<br /> string sendpointurl="http://adobeformserver:8080/jboss-net/services/adobefsservice";<br />// set soap end point<br /> formserver.setsoapendpoint(sendpointurl);<br />// declare , populate local variables pass renderform<br /> string sformquery = "test.xdp"; //defines form design render<br /> string sformpreference = "pdf"; //defines preference option<br /> string scontentrooturi = "http://adobeformserver:8080/myapp/forms/xdp";<br /> string stargeturl = "http://<appserver>:<appport/loanapp>/handledata";<br /> string sapplicationwebroot = "http://<appserver:<appport>/loanapp";<br /> <br /> <br /> try{<br />// call renderform<br /> ioutputcontext myoutputcontext = formserver.renderform(<br /> sformquery, //sformquery<br /> sformpreference, //sformpreference<br /> inxml, //cdata,<br /> "cacheenabled=false",//soptions<br /> null,//suseragent,<br /> null, //sapplicationwebroot<br /> null, //stargeturl<br /> scontentrooturi, //scontentrooturi<br /> null //sbaseurl<br /> );<br /><br /> <br /><br />// create byte array. call ioutputcontext interface's<br />// getoutputcontext method<br /> ccontent = myoutputcontext.getoutputcontent();<br /><br /> <br /> }<br /> catch(renderformexception rf){<br /> system.out.println("renderformexception error is: " + rf.getmessage());<br /> }<br />// catch thrown exception<br /> catch (exception ioex)<br /> {<br /> system.out.println("exception error is: " +ioex.getmessage());<br /> }<br /><br /> return ccontent;<br /> }<br /><br />i can generate wsdl correctly when hit adobefsservice,<br />but when run program, error <br /><br />renderformexception error is: operation style: "rpc" not supported<br /><br />can please give me insight or suggestions<br /><br />thanks,<br />kevin
got work, there problem libs used in classpath.
i changed use libraries jboss 3.2.5's jaxrpc,saaj,..., jars in client dir, , axis 1.4's libs
works charm.
i changed use libraries jboss 3.2.5's jaxrpc,saaj,..., jars in client dir, , axis 1.4's libs
works charm.
More discussions in LiveCycle pre-ES (6.x and 7.x) discussions
adobe
Comments
Post a Comment