2 Replies Latest reply on Mar 5, 2006 12:50 PM by Thomas Diesler

    Problem With JBoss.net webservice

    Saikat Kanjilal Newbie

      I initially posted this to the other forum but I thought I'd post it here as well, I am trying to deploy a webservice using JBoss.net and axis, listed below are the details:

      JBoss Version:3.2.5
      Axis Version:1.1

      I created a web-service.xml by hand for my java class that serves as the webservice. However when I go to deploy my webservice I run into the following exception:

      java.lang.Exception: The OperationDesc for uploadTransmission was not synchronized to a method of com.adobe.esd.headlights.server.filecapture.webservice.FileCaptureService

      I am attaching the contents of my web-service.xml as well as my JavaWebService class.

      web-service.xml contents:
      !-- This file can be used to deploy the echoAttachments sample -->
      <!-- This deploys the echo attachment service. -->
      <deployment xmlns="http://xml.apache.org/axis/wsdd/" xmlns:java="http://xml.apache.org/axis/wsdd/providers/java" xmlns:ns1="urn:FileCaptureService" >

      qname="ns1:DataHandler" xmlns:ns1="http://java.sun.com/jax-rpc-ri/internal"
      type="java:javax.activation.DataHandler" serializer="org.apache.axis.encoding.ser.JAFDataHandlerSerializerFactory"

      Contents of my java class:
      package com.adobe.esd.headlights.server.filecapture.webservice;

      import java.io.File;
      import java.io.FileOutputStream;
      import java.util.Collection;
      import java.util.Iterator;

      import javax.activation.DataHandler;

      import org.apache.axis.Message;
      import org.apache.axis.MessageContext;
      import org.apache.axis.attachments.AttachmentPart;
      import org.apache.axis.attachments.Attachments;

      public class FileCaptureService {

      public boolean uploadTransmission(DataHandler dh)
      boolean retval = false;
      String fileDir = "/opt/usage";
      String name;
      if (dh!=null)
      dh.writeTo(new FileOutputStream(new File (fileDir+name)));
      catch( Exception e )
      return retval;

      Any help would be much appreciated, I have been struggling for a day or so on this and didnt see anything on the web regarding a solution.

      Thanks Again