Contributions
- 994Views0likes0Comments
Option to disable the logger !!!!!!
Hi, I need to turn the SoapUI logger off (using the SoapUI API) and not create the soapui.log and soapui-errors.log by default. I have integrated some SoapUI functions with the Google Web Toolkit and it just refuses to work with the logger (gives me a java.security.AccessControlException: access denied (java.io.FilePermission soapui-errors.log write) Please help ! Thank you Parmeet2.1KViews0likes3CommentsRe: Difference between the importWsdl() methods
1:48:23,765 INFO [SchemaUtils] Loading schema types from [http://192.168.0.153:8080/axis2/services/Calculator?wsdl] 11:48:23,765 INFO [SchemaUtils] Getting schema http://192.168.0.153:8080/axis2/service ... lator?wsdl 11:48:24,390 DEBUG [AbstractDefinitionContext] Loaded Definition: ok 11:48:24,390 INFO [WsdlImporter] Finding importer for {http://quickstart.calculator/}CalculatorSoap12Binding 11:48:24,406 INFO [WsdlImporter] Importing binding {http://quickstart.calculator/}CalculatorSoap12Binding 11:48:24,500 INFO [Soap12HttpBindingImporter] importing endpoint http://192.168.0.153:8080/axis2/service ... 12Endpoint 11:48:24,562 INFO [Soap12HttpBindingImporter] importing operation add 11:48:24,656 INFO [Soap12HttpBindingImporter] importing operation divide 11:48:24,656 INFO [Soap12HttpBindingImporter] importing operation multiply 11:48:24,656 INFO [Soap12HttpBindingImporter] importing operation subtract 11:48:24,781 INFO [WsdlImporter] Finding importer for {http://quickstart.calculator/}CalculatorHttpBinding 11:48:24,781 INFO [WsdlImporter] Missing importer for {http://quickstart.calculator/}CalculatorHttpBinding 11:48:24,781 INFO [WsdlImporter] Finding importer for {http://quickstart.calculator/}CalculatorSoap11Binding 11:48:24,781 INFO [WsdlImporter] Importing binding {http://quickstart.calculator/}CalculatorSoap11Binding 11:48:24,781 INFO [Soap11HttpBindingImporter] importing endpoint http://192.168.0.153:8080/axis2/service ... 11Endpoint 11:48:24,781 INFO [Soap11HttpBindingImporter] importing operation add 11:48:24,781 INFO [Soap11HttpBindingImporter] importing operation divide 11:48:24,796 INFO [Soap11HttpBindingImporter] importing operation multiply 11:48:24,796 INFO [Soap11HttpBindingImporter] importing operation subtract 11:48:24,796 INFO [WsdlImporter] Finding importer for {http://quickstart.calculator/}CalculatorHttpBinding 11:48:24,796 INFO [WsdlImporter] Missing importer for {http://quickstart.calculator/}CalculatorHttpBinding Ok what does Missing importer mean ?? How can it be fixed .. Somebody please help me with this Parmeet740Views0likes0CommentsRe: Code doesn't work
Hi, I finally got it to work .. Made some changes .. Here's the code import java.io.IOException; import com.eviware.soapui.impl.wsdl.WsdlProject; import com.eviware.soapui.impl.wsdl.WsdlInterface; import com.eviware.soapui.impl.WsdlInterfaceFactory; import com.eviware.soapui.impl.wsdl.WsdlOperation; import com.eviware.soapui.impl.wsdl.WsdlRequest; import com.eviware.soapui.impl.wsdl.WsdlSubmit; import com.eviware.soapui.impl.wsdl.WsdlSubmitContext; import org.apache.xmlbeans.XmlException; import org.junit.Assert; import com.eviware.soapui.impl.wsdl.submit.transports.http.support.attachments.WsdlSinglePartHttpResponse; import com.eviware.soapui.model.iface.Request.SubmitException; import com.eviware.soapui.support.SoapUIException; public class basic { public static void main(String[] args) throws SubmitException, XmlException, IOException, SoapUIException{ // create new project WsdlProject project = new WsdlProject(); // import service WsdlInterface iface = WsdlInterfaceFactory.importWsdl( project, "http://192.168.0.153:8080/axis2/services/Calculator?wsdl", true )[0]; // get "GetPage" operation WsdlOperation operation = (WsdlOperation) iface.getOperationByName( "add" ); // create a new empty request for that operation WsdlRequest request = operation.addNewRequest( "My request" ); // generate the request content from the schema request.setRequestContent(operation.createRequest(true)); // submit the request WsdlSubmit submit = (WsdlSubmit) request.submit( new WsdlSubmitContext(request), false ); // wait for the response WsdlSinglePartHttpResponse response = (WsdlSinglePartHttpResponse) submit.getResponse(); // print the response String content = response.getContentAsString(); System.out.println(content); Assert.assertNotNull(content); Assert.assertTrue(content.indexOf("404 Not Found") > 0); } } My question is :- Now what if i want to send parameters along with the request .. (the add operation takes 2 numbers) Help !!!!!!!!!!!!! Thank you !!681Views0likes0CommentsCode doesn't work
This code i found on the link http://www.soapui.org/architecture/integration.html // create new project WsdlProject project = new WsdlProject(); // import amazon wsdl WsdlInterface iface = project.importWsdl( "http://localhost:8082/soapui-tests/test1/TestService.wsdl", true )[0]; // get "GetPage" operation WsdlOperation operation = (WsdlOperation) iface.getOperationByName( "GetPage" ); // create a new empty request for that operation WsdlRequest request = operation.addNewRequest( "My request" ); // generate the request content from the schema request.setRequestContent( operation.createRequest( true ) ); // submit the request WsdlSubmit submit = (WsdlSubmit) request.submit( new WsdlSubmitContext(), false ); // wait for the response Response response = submit.getResponse(); // print the response String content = response.getContentAsString(); System.out.println( content ); assertNotNull( content ); assertTrue( content.indexOf( "404 Not Found" ) > 0 ); Its not updated is it ? Seems like public WsdlInterface[] importWsdl(java.lang.String url, boolean createRequests) has been deprecated .. Please help !!1.6KViews0likes1Comment