Folks,

I originally used the method in the EchoAttachments
sample which did use MIME to send the attahcment --
but the WSDL identified the type as
"apachesoap:DataHandler" and didn't mention MIME in
the generated WSDL.  Intuitively, this didn't seem
very interoperative.  

Josh showed me how to add an attachment "manually" in
my code, but the Axis-generated WSDL still didn't
mention the MIME attachment.  Using the WSDL 1.1 Note
as a model, I modified my WSDL (file attached).  When
I tried to generate the client code with WSDL2Java I
got this error:

$ java org.apache.axis.wsdl.WSDL2Java Text2wav.wsdl
java.lang.NullPointerException
        at
org.apache.axis.wsdl.toJava.Utils.getNewQName(Utils.java:613)
        at
org.apache.axis.wsdl.toJava.JavaStubWriter.writeOperationMap(JavaStubWriter.java:384)
        at
org.apache.axis.wsdl.toJava.JavaStubWriter.writeFileBody(JavaStubWriter.java:153)
        at
org.apache.axis.wsdl.toJava.JavaWriter.generate(JavaWriter.java:151)
        at
org.apache.axis.wsdl.toJava.JavaBindingWriter.generate(JavaBindingWriter.java:145)
        at
org.apache.axis.wsdl.toJava.JavaGeneratorFactory$Writers.generate(JavaGeneratorFactory.java:290)
        at
org.apache.axis.wsdl.gen.Parser.generate(Parser.java:325)
        at
org.apache.axis.wsdl.gen.Parser.access$000(Parser.java:83)
        at
org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:247)
        at java.lang.Thread.run(Thread.java:536)
-----------------------

Is my hand-modified wsdl file bad, or does Axis not
deal well with wsdl that uses MIME stuff?

    Mark


--- Norris Merritt <[EMAIL PROTECTED]>
wrote:
> I've had success with the Axis 1.1 beta DIME support
> demonstrated in the
> echoAttachments sample (which also has a mode in
> which it uses MIME). Axis
> 1.1 beta DIME support interoperates both with gSOAP
> and .NET.  For my money
> DIME is the way to go, especially with attachments
> that would otherwise need
> to be Base-64 encoded. Its much more efficient than
> MIME.
> 
> -----Original Message-----
> From: Steve Loughran [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 28, 2003 9:17 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Interoperative attachments
> 
> 
> 
> ----- Original Message -----
> From: "Mark Mueller" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, January 28, 2003 08:18
> Subject: RE: Interoperative attachments
> 
> 
> > Josh,
> >
> > Yes, I am trying to develop the service that is
> > language and platform neutral, so I'm trying to
> find
> > the "right" way to handle attachments. 
> Unfortunately
> > I don't have other platforms to test on.
> 
> pocketsoap, MSSTK and .NET with the WSE all do
> attachments if you want to
> cross-test
> 
> >
> > The W3C WSDL 1.1 Note shows a MIME binding that
> > supports attachments, but poking around on the
> > Xmethods website, I didn't run across any WSDL
> that
> > shows the MIME binding.  If vender
> interoperability
> > for attachments just isn't there yet, that would
> be
> > good to know.
> 
> all uses of attachments I've seen have attachments
> attached and removed
> manually, with attachment details 'add three of
> them' in the service
> specification.


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

Attachment: Text2wav.wsdl
Description: Text2wav.wsdl

Reply via email to