|
Wendy,
As I said, your <part> definitions must
reference an <element> definition rather than a <complexType>
definition. When you are using Document style, you must define the actual
structure of the soap:body -- and you do that by defining a schema
<element>. When using RPC style, the SOAP runtime system dynamically
constructs the soap:body based on the method name and the types of the
parameters.
So let me give you an example:
Let's assume that you want to invoke operation
foobar with two parameters -- foo and bar.
When using Document style, your <message>
definition looks something like this:
<message name="foobar">
<part name="body"
element="foobar" />
</message>
where element="foobar" refers to an <element>
definition in the <types> section. There are multiple ways to define an
element, but here's an example:
<element name="foobar" type="foobarType"
/>
<complexType
name="foobarType">
<element name="foo"
type="string" />
<element name="bar"
type="string" />
</complexType>
To ensure that Axis produces a WRAPPED service, you
have to give the operation the same name as the input message:
<operation name="foobar"
...>
When using RPC style, your <message>
definition looks something like this:
<message name="foobar">
<part name="foo"
type="string" />
<part name="bar"
type="string" />
</message>
You define a different <part> for each
parameter, and you assign each parameter a type. Since you're using simple types, you don't need to define anything in the
<types> section.
Now, what's really interesting is that both of
these definitions will produce a SOAP message that looks like this:
<soap:body>
<foobar>
<foo>foo</foo>
<bar>bar</bar>
</foobar>
</soap:body>
So getting back to your WSDL file -- you must
define your <message> elements like this:
<message
name="SubscriptionRequest">
<part name="SubscriptionRequest" element="typens:SubscriptionAttributes" /> </message> <message name="SubscriptionResponse"> <part name="SubscriptionResponse" element="typens:ResponseInfo" /> </message> Anne
|
Title: RE: Need WSDL for this SOAP message
- Need WSDL for this SOAP message Wendy Smoak
- RE: Need WSDL for this SOAP message Hansen, Richard
- Re: Need WSDL for this SOAP message Anne Thomas Manes
- Re: Need WSDL for this SOAP message Anne Thomas Manes
- RE: Need WSDL for this SOAP message Wendy Smoak
- Re: Need WSDL for this SOAP message Jim Murphy
- RE: Need WSDL for this SOAP message Anne Thomas Manes
- RE: Need WSDL for this SOAP message Wendy Smoak
- RE: Need WSDL for this SOAP message Mike Perham
- RE: Need WSDL for this SOAP message Cory Wilkerson
- RE: Need WSDL for this SOAP message Wendy Smoak
- RE: Need WSDL for this SOAP message Wendy Smoak
- Re: Need WSDL for this SOAP message Anne Thomas Manes
- Re: Need WSDL for this SOAP message Anne Thomas Manes
- RE: Need WSDL for this SOAP message Wendy Smoak
- Re: Need WSDL for this SOAP message Anne Thomas Manes
- Correction regarding WRAPPED Anne Thomas Manes
