Hi: I am building a webservice using the following: Version: JBoss 3.2.5 Module: JBoss.net Axis Version Being Used: 1.1
I created a .wsr file as well as a .ear file and inside the .wsr file I put in my webservice class as well as my web-service.xml When I go to deploy my application though I get the followign error: java.lang.Exception: The OperationDesc for uploadTransmission was not synchronized to a method of com.adobe.esd.headlights.server.filecapture.webservice.FileCaptureService I have researched the web heavily but didnt see a solution anywhere on this. Listed below are my web-service.xml file and my java webservice class. contents of web-service.xml <!-- This deploys the file 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 FileCaptureService.java 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 stuck on this for a day or so now and dont see anything obvious. Thanks Again View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3927641#3927641 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3927641 ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ JBoss-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-user
