Title: RE: WSDL descriptors
Let me decribe it more deeply.
 
I have a SOAP server Apache SOAP 2.2, and a SOAP service. Service has 1 method:
public void uploadFile(javax.activation.DataHandler dh)
This method expects a DataHandler as parameter, that is, it expects an empty SOAP envelope with attachment (Apache SOAP will process this attachment and pass it to the method as a DataHandler).
 
Now I need to create a WSDL file that would decribe this service.
 
Suppose I want to use either GLUE java2wsdl or similar tool from IBM WSTK. This tool creates huge "type" structure for this single DataHandler object instead of simply including <mime:multipartRelated> binding into binding operation. This structure is very complex since it reflects the entire guts of DataHandler class. Even worse, the client who will call my service using this WSDL, will send out data as a complex structure inside the envelope, instead of sending out an empty envelope with outside attachment. Such invocation will fail since service expects attachment.
Invocation of service which accepts nothing and returns a DataHandler will also fail for the same reason.
 
As you can see, command-line WSDL generating utilities are useless here, I have to use raw WSDL API or even compose WSDL documents from scratch. And I wonder if anybody else has expirienced such a problem and if they could share their thoughts with SOAP community.
 
Best regrads,
 
Alex

 -----Original Message-----
From: graham glass [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 16, 2001 15:23
To: [EMAIL PROTECTED]
Subject: RE: WSDL descriptors

hi alex,
 
GLUE has exactly what you're looking for, with full support for SOAP attachments
and bidirectional translation between java methods and WSDL using the wsdl2java
and java2wsdl utilities.
 
cheers,
graham
 
download GLUE free from: http://www.themindelectric.com
-----Original Message-----
From: Podlipski, Alex (GXS, Staffing Alternatives) [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 16, 2001 2:54 PM
To: '[EMAIL PROTECTED]'
Subject: RE: WSDL descriptors


But there is no way to create an interface that would indicate some method will produce an attachment, is there?
Therefore, there is no way to create such WSDL descriptor from an interface, using existing generators found in toolkits like WSTK 2.41 etc.

Please correct me if I'm wrong.

Alex

-----Original Message-----
From: Sanjay bahal [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 16, 2001 06:03
To: [EMAIL PROTECTED]
Subject: RE: WSDL descriptors


You can use the web developers toolkit from IBM
wstk2.4
to create the wsdl from an interface.
Sanjay

--- PJ Murray <[EMAIL PROTECTED]> wrote:
> Hello Alex,

> I'm not sure if this will help, but there's a case
> study about using SOAP
> with Attachments at this address.

> http://www.capeclear.com/customers/rsco.shtml
> <http://www.capeclear.com/customers/rsco.shtml>

> Click on the link for the case study - it a full,
> live deployment of SOAP
> 1.1 that uses SwA to send .pdf files.

> /PJ Murray

> -----Original Message-----
> From: Podlipski, Alex (GXS, Staffing Alternatives)
> [mailto:[EMAIL PROTECTED]]
> Sent: 16 November 2001 01:04
> To: '[EMAIL PROTECTED]'
> Subject: WSDL descriptors


> I'm trying to generate a WSDL descriptor for SOAP
> service that returns an
> attachment. If anybody has expirience in creating
> such descriptors, or maybe
> even some real-life examples, please let me know.
> WSDL 1.1 specification is
> way too abstract to make something that really
> works.
> Any advice would be greatly appreciated.
> Thanks,
> Alex
>


__________________________________________________
Do You Yahoo!?
Find the one for you at Yahoo! Personals
http://personals.yahoo.com

Reply via email to