where can i find info about Axis2 prefix? i find nothing about it in
documentation ....
thanks!
Am Mittwoch 15 März 2006 06:16 schrieb Saminda Abeyruwan:
> Forwarded with Axis2 prefix;
>
> Filipp Akinfiev wrote:
> > Hi all,
> > in my client class i have function like :
> > public TFileSendResponse storeFile(int type, String fileName, String
> > pathToFile) {
> > TFileSendResponse response = null;
> > try {
> > response =
> > FileSend.response(makeCall(FileSend.request(new
> > TFileSend("", "", type, fileName, pathToFile)), "storeFile"));
> > } catch (Exception e) {
> > e.printStackTrace();
> > }
> > return response;
> > }
> >
> > it's call function makeCall:
> >
> > private MessageContext makeCall(MessageContext requestContext, String
> > action) {
> > ServiceClient client;
> > MessageContext result = null;
> > try {
> > // creating the Service
> > AxisService service = new AxisService("IXMLWS2");
> >
> > // creating the operations
> > AxisOperation operation = new OutInAxisOperation();
> > operation.setName(new
> > javax.xml.namespace.QName("urn:XMLWSIntf-IXMLWS", action));
> > service.addOperation(operation);
> > client = new ServiceClient(new
> > ConfigurationContextFactory().createConfigurationContextFromFileSystem(AX
> >IS2_HOME), service);
> > client.getOptions().setTo(targetEPR);
> >
> > client.getOptions().setSoapAction("urn:XMLWSIntf2-IXMLWS2#" +
> > action); client.getOptions().setExceptionToBeThrownOnSOAPFault(true);
> > client.getOptions().setTransportInProtocol(Constants.TRANSPORT_TCP);
> >
> > client.getOptions().setProperty(org.apache.axis2.context.MessageContextCo
> >nstants.CHUNKED,org.apache.axis2.Constants.VALUE_FALSE);
> > client.getOptions().setProperty(Constants.Configuration.ENABLE_MTOM,
> > Constants.VALUE_TRUE);
> >
> > OperationClient opClient = client.createClient(new
> > javax.xml.namespace.QName("urn:XMLWSIntf-IXMLWS", action));
> >
> > opClient.addMessageContext(requestContext);
> > opClient.execute(true);
> >
> > return
> > opClient.getMessageContext(WSDLConstants.MESSAGE_LABEL_IN_VALUE); } catch
> > (AxisFault e) {
> > e.printStackTrace();
> > }
> > return result;
> > }
> >
> > after execute, i have open connection to axis server, how can i terminate
> > it ?
> >
> > thanks in advance!