eclipse plugin - Write Client.java code for Axis2 generated code from wsdl -
i new axis2 wsdl client generation. able generate stub (configurationservicestub) , callback using axis2, eclipse , tomcat. how can generate or code should write client. java make soap request.
the request follows:
<soapenv:envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:con="http://schema.unitedtote.com/totelink/2008/06/configuration" xmlns:com="http://schema.unitedtote.com/totelink/2008/06/common"> <soapenv:header/> <soapenv:body> <con:getconfiguration> <!--optional:--> <con:configurationrequest> <com:source> <com:systemid>abcd</com:systemid> <com:sourceid>efg</com:sourceid> </com:source> </con:configurationrequest> </con:getconfiguration>
and java code follows:
=== junit tester following code generated: /** * auto generated test method */ public void teststartgetconfiguration() throws java.lang.exception{ com.unitedtote.configuration.configurationservicestub stub = new com.unitedtote.configuration.configurationservicestub(); com.unitedtote.configuration.configurationservicestub.getconfiguration getconfiguration8=(com.unitedtote.configuration.configurationservicestub.getconfiguration)gettestobject(com.unitedtote.configuration.configurationservicestub.getconfiguration.class); // todo : fill in getconfiguration8 here stub.startgetconfiguration( getconfiguration8, new tempcallbackn65548() ); public void testgetconfiguration() throws java.lang.exception{ com.unitedtote.configuration.configurationservicestub stub = new com.unitedtote.configuration.configurationservicestub();//the default implementation should point right endpoint com.unitedtote.configuration.configurationservicestub.getconfiguration getconfiguration8= (com.unitedtote.configuration.configurationservicestub.getconfiguration)gettestobject(com.unitedtote.configuration.configurationservicestub.getconfiguration.class); // todo : fill in getconfiguration8 here assertnotnull(stub.getconfiguration( getconfiguration8)); }
Comments
Post a Comment