> Essentially, I need to know what the server-side class would 
> look like.

This is very simple. Just use something like this:

import javax.activation.DataHandler;

public class AttachmentService {

  public void putXMLDocument(DataHandler document) {
        
  }
}

In the attachments samples of axis you can see how to use the
DataHandler class.

> what
> the WSDL would look like and what the WSDD would look like.
> 
> Also, will this interoperate with .NET?

Only when using DIME and the ms wsdk or the ms soap toolkit (which you
can probably also use from .NET I think). Axis also supports DIME. It
automaticly returns messages in DIME if they where sent in DIME, and if
you did not send a message in DIME but you want to return it in DIME
from the service you need to use the code below:

MessageContext context = AxisEngine.getCurrentMessageContext();
Message rspmsg = context.getResponseMessage();
rspmsg.getAttachmentsImpl().setSendType(org.apache.axis.attachments.Atta
chments.SEND_TYPE_DIME);

There is a difference between unreferenced and referenced attachments.
The referenced attachments are referenced from within the soap message,
and the unreferenced not. I never got the reverenced version working
(somethin about the soapmapper that couldn't map the attachment to
specified type (unknownbinarycontent). But I did get the unreferenced
attachments working.

Sample WSDL can be found in the WSDK or MS Soap toolkit (Unfortunalty
java2WSDL does not yet handle this for you).

referenced attachments are specified by using the
layout='http://schemas.xmlsoap.org/ws/2002/04/dime/closed-layout' on the
dime:message element in the WSDL.

unreferenced attachments are specified by using the
layout='http://schemas.xmlsoap.org/ws/2002/04/dime/open-layout' on the
dime:message element in the WSDL.

Kind regards,

Arno de Quaasteniet.

Reply via email to