3 Replies Latest reply on Feb 5, 2008 6:26 AM by sidgod

    Attachments with SOAP

    sidgod

      Hi,

      I am kind of new to Web Services and this is what i am using right now :
      JBOSS AS 4.0.4.GA, JBoss WS 1.2 and jdk 1.5.12. I am trying to get SOAP with attachments working. I saw one MTOP example that comes with JBOSS WS 1.2 and was trying to do the same.

      I am taking DataHandler as one of the inputs to my method, i am not providing anything in configuration file to WSTools while building the application JAR.
      so API looks like:

      public void transferFile(String msg, WrappedBean handle) { }

      Can somebody please tell me why is this not working and whether anything else needs to be done or some other alternative to get Attachments working with SOAP ?

      Thanks in advance

        • 1. Re: Attachments with SOAP
          sidgod

          Hi i forgot to specify bean i am using, Wrapped Bean looks like:
          public class WrappedBean {
          private String name = null;
          private DataHandler legacyData = null;

          // getters and setters for name and legacyData
          }

          • 2. Re: Attachments with SOAP
            asoldano

            Could you give us some further details? Do you get any exception?
            Btw also consider upgrading at least to JBoss 4.0.5 in order to run the latest release of JBossWS, since the 1.2.1 is really old and your issue might have been already solved.

            • 3. Re: Attachments with SOAP
              sidgod

              I am getting following exception where building the webservice itself :
              org.jboss.ws.WSException: Cannot determine namespace, Class had no package