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

    Problem With JBoss.net webservice

    Saikat Kanjilal Newbie

      Hi:
      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
      JDK:1.4.2

      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" >







      <typeMapping
      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"
      deserializer="org.apache.axis.encoding.ser.JAFDataHandlerDeserializerFactory"
      encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>




      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;
      try
      {
      if (dh!=null)
      {
      name=dh.getName();
      dh.writeTo(new FileOutputStream(new File (fileDir+name)));
      }
      }
      catch( Exception e )
      {
      e.printStackTrace();
      }
      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