axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rodrigo Ruiz <>
Subject [Axis 1] Does Axis 1.x WSDL2Java tool support MTOM?
Date Tue, 23 May 2006 10:44:46 GMT
Hi all,

I am trying to generate an "MTOM request" like the ones shown as 
examples in the "Attachments Profile 1.0".

I want to generate a request like the following:

Content-Type: application/xop+xml; charset=utf-8; type="text/xml; 
Content-Id: <1214EF60AA198A197784D42933A320AF>
<?xml version="1.0" encoding="UTF-8"?>
<env:Envelope xmlns:env=""
     <upload xmlns="">
Content-Type: content/unknown
binaryContent-Id: <5ABC2608829F6B1D0204C075AD19305F>
Lorem ipsum ...

But instead of this, I get this other envelope:

     <upload xmlns="">
       <content xmlns="">
         <xop:Include href="cid:5ABC2608829F6B1D0204C075AD19305F" />

Is there any way to make the attachment reference to appear into the 
request "content" field?

My original service had no WSDL. It was RPC/encoded and had a signature 

void upload(String name, DataHandler handler);

But now, the generated code translates the swaRef field into an URI 
parameter, and the upload() method forces me to pass an UploadRequest 
instance, and a separated DataHandler instance. I have found no way to 
link the URI within UploadRequest with the DataHandler passed to the method.

Would it be possible to get a syntax like the following?

DataHandler handler = new DataHandler("file:/test.txt");
UploadRequest request = new UploadRequest("test.txt", handler);

I attach a simplified version of my current WSDL.

Thanks in advance,
Rodrigo Ruiz
GRIDSYSTEMS                    Rodrigo Ruiz Aguayo
Parc Bit - Son Espanyol
07120 Palma de Mallorca
Baleares - EspaƱa              Tel:+34-971435085 Fax:+34-971435082

View raw message