WsdlBuilder and Messages without Parameters

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

WsdlBuilder and Messages without Parameters

Runar Jordahl
We use the 7.7.1 WSDL builder (WsdlBuilder) to build a WSDL from the
following method:

getAllContacts
        <documentation: #'Returns all contacts'>
        <operationName: #GetAllContacts>
        <result: #(#Collection #Contact)>
        <inputHeader: #AuthenticationProcessor>
(...)

Note that the operation does not contain any addParameter:type:
pragma. In the resulting WSDL, the following is created:

<message name="GetAllContactsSoapIn"/>

I am however being told that the entry should look like this:

<message name="GetAllContactsSoapIn">
    <part name="parameters" element="tns:GetAllContacts"/>
  </message>

In addition, the following element should have been added:

<element name ="GetAllContacts">
    <complexType/>
</element>


Is the lack of <part name="parameters" element="tns:GetAllContacts"/>
really a problem? Do I use WsdlBuilder incorrectly?

Kind regards
Runar
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: WsdlBuilder and Messages without Parameters

Kogan, Tamara
Hi Runar,

Use of wsdl:message elements with zero parts is permitted in Document
styles to permit operations that can send or receive envelopes with
empty soap:Bodys.
Use of wsdl:message elements with zero parts is permitted in RPC styles
to permit operations that have no (zero) parameters and/or a return
value.
[http://www.ws-i.org/Profiles/BasicProfile-1.1.html#Bindings_and_Parts ]


Have you tried to add the #addParameter:type: pragma with a type that
maps an empty GetAllContacts object?

Tamara


> -----Original Message-----
> From: [hidden email] [mailto:[hidden email]] On
> Behalf Of Runar Jordahl
> Sent: Friday, May 06, 2011 10:17 AM
> To: [hidden email]
> Subject: [vwnc] WsdlBuilder and Messages without Parameters
>
> We use the 7.7.1 WSDL builder (WsdlBuilder) to build a WSDL from the
> following method:
>
> getAllContacts
> <documentation: #'Returns all contacts'>
> <operationName: #GetAllContacts>
> <result: #(#Collection #Contact)>
> <inputHeader: #AuthenticationProcessor>
> (...)
>
> Note that the operation does not contain any addParameter:type:
> pragma. In the resulting WSDL, the following is created:
>
> <message name="GetAllContactsSoapIn"/>
>
> I am however being told that the entry should look like this:
>
> <message name="GetAllContactsSoapIn">
>     <part name="parameters" element="tns:GetAllContacts"/>
>   </message>
>
> In addition, the following element should have been added:
>
> <element name ="GetAllContacts">
>     <complexType/>
> </element>
>
>
> Is the lack of <part name="parameters" element="tns:GetAllContacts"/>
> really a problem? Do I use WsdlBuilder incorrectly?
>
> Kind regards
> Runar
> _______________________________________________
> vwnc mailing list
> [hidden email]
> http://lists.cs.uiuc.edu/mailman/listinfo/vwnc

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: WsdlBuilder and Messages without Parameters

Steven Kelly
In reply to this post by Runar Jordahl
Your WSDL looks fine to me. In WSDL 1.0 (which this must be since 2.0
replaced <message> with <element>), you can provide 0..N <part>
parameters per <message>. Of course if someone prefers they can always
define exactly one parameter, whose type is defined for each message to
be a complex type containing the "real" parameters (0..N).

To me, always having one parameter sounds like making all Smalltalk
methods take one argument, and creating a special argument-holding class
per method to pass the actual parameters. I wonder how many classes with
zero instance variables would be needed? :-)

Steve

> -----Original Message-----
> From: [hidden email] [mailto:[hidden email]] On
> Behalf Of Runar Jordahl
> Sent: 6. toukokuuta 2011 17:17
> To: [hidden email]
> Subject: [vwnc] WsdlBuilder and Messages without Parameters
>
> We use the 7.7.1 WSDL builder (WsdlBuilder) to build a WSDL from the
> following method:
>
> getAllContacts
> <documentation: #'Returns all contacts'>
> <operationName: #GetAllContacts>
> <result: #(#Collection #Contact)>
> <inputHeader: #AuthenticationProcessor>
> (...)
>
> Note that the operation does not contain any addParameter:type:
> pragma. In the resulting WSDL, the following is created:
>
> <message name="GetAllContactsSoapIn"/>
>
> I am however being told that the entry should look like this:
>
> <message name="GetAllContactsSoapIn">
>     <part name="parameters" element="tns:GetAllContacts"/>
>   </message>
>
> In addition, the following element should have been added:
>
> <element name ="GetAllContacts">
>     <complexType/>
> </element>
>
>
> Is the lack of <part name="parameters" element="tns:GetAllContacts"/>
> really a problem? Do I use WsdlBuilder incorrectly?
>
> Kind regards
> Runar
> _______________________________________________
> vwnc mailing list
> [hidden email]
> http://lists.cs.uiuc.edu/mailman/listinfo/vwnc

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc