xml - Java code for creating SOAP request from wsdl -
i have requirement of creating soap request xml 1 operation wsdl(using wsdl url). getting response web service call.i need take values response , add web service soap request , web service call again. in order add new value soap request need it's complete soap requst xml.so that's why asking how soap request xml wsdl.i cannot use soapui since it's dynamic everytime, need write java code.
i tried using similar below code:
wsdlproject project = new wsdlproject(); wsdlinterface[] wsdls = wsdlimporter.importwsdl(project, "<wsdl url>"); wsdlinterface wsdl = wsdls[0]; (operation operation : wsdl.getoperationlist()) { wsdloperation op = (wsdloperation) operation; system.out.println("op:"+op.getname()); system.out.println(op.createrequest(true)); system.out.println("response:"); system.out.println(op.createresponse(true)); }
but getting exception
java.lang.noclassdeffounderror: org/fife/ui/rtextarea/rtextarea" in line "wsdlproject project = new wsdlproject();
i imported latest jars (soapui-xmlbeans-4.5.0,wsdl-xmlbeans-1.1,soapui-4.5.0) still throwing exception. anybody"http://www.soapui.org/repository/eviware/" suggest how can rectify it? there other approach can take apart this?
try downloading rsyntaxtextarea-1.0.jar http://www.java2s.com/code/jar/r/downloadrsyntaxtextarea10jar.htm add build path. hope helps
Comments
Post a Comment