You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Josh <ge...@gmail.com> on 2007/03/26 19:24:14 UTC

JIBX Mapping Question - Void response message?

All,

I am having difficulting dealing with an existing WSDL which declares a
"void" response message.  I have the following in my wsdl:

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

   <wsdl:message name="updateResponse">
      <wsdl:part element="impl:updateResponse" name="parameters"/>
   </wsdl:message>

Because this is really a void return, how would I map this using JiBX?

Regards,

Joshua

Re: JIBX Mapping Question - Void response message?

Posted by Dennis Sosnoski <dm...@sosnoski.com>.
Yes, the class has to exist (though it can be just an empty "public 
class UpdateResponse {}" - where I capitalized according to Java naming 
conventions, which means that class="updateResponse" I used in the last 
email should really be class="UpdateResponse"). Wrapped requires a 
separate class for each operation's input and output.

  - Dennis

Josh wrote:
> Dennis,
>  
> To be clear, does this "marker" class need to physically exist?
>  
> Josh
>
>  
> On 3/26/07, *Dennis Sosnoski* <dms@sosnoski.com 
> <ma...@sosnoski.com>> wrote:
>
>     Hi Josh,
>
>     If you're using unwrapped you shouldn't need to map this at all. If
>     you're using wrapped handling you'd just have a "marker" class
>     with an
>     empty mapping:
>
>     <mapping class="updateResponse" name="updateResponse"/>
>
>     You can see an example of the unwrapped handling for this at
>     http://www.sosnoski.com/jibx-wiki/space/axis2-jibx/example (with the
>     WSDL and code at
>     http://www.sosnoski.com/jibx-wiki/space/axis2-jibx/example/library-service
>     <http://www.sosnoski.com/jibx-wiki/space/axis2-jibx/example/library-service>).
>
>     - Dennis
>
>     Dennis M. Sosnoski
>     SOA and Web Services in Java
>     Training and Consulting
>     http://www.sosnoski.com - http://www.sosnoski.co.nz
>     <http://www.sosnoski.co.nz>
>     Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117
>
>
>
>     Josh wrote:
>     > All,
>     >
>     > I am having difficulting dealing with an existing WSDL which
>     declares
>     > a "void" response message.  I have the following in my wsdl:
>     >
>     >    <element name="updateResponse">
>     >     <complexType/>
>     >    </element>
>     >
>     >    <wsdl:message name="updateResponse">
>     >       <wsdl:part element="impl:updateResponse" name="parameters"/>
>     >    </wsdl:message>
>     >
>     > Because this is really a void return, how would I map this using
>     JiBX?
>     >
>     > Regards,
>     >
>     > Joshua
>
>     ---------------------------------------------------------------------
>     To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>     <ma...@ws.apache.org>
>     For additional commands, e-mail: axis-user-help@ws.apache.org
>     <ma...@ws.apache.org>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: JIBX Mapping Question - Void response message?

Posted by Josh <ge...@gmail.com>.
Dennis,

To be clear, does this "marker" class need to physically exist?

Josh


On 3/26/07, Dennis Sosnoski <dm...@sosnoski.com> wrote:
>
> Hi Josh,
>
> If you're using unwrapped you shouldn't need to map this at all. If
> you're using wrapped handling you'd just have a "marker" class with an
> empty mapping:
>
> <mapping class="updateResponse" name="updateResponse"/>
>
> You can see an example of the unwrapped handling for this at
> http://www.sosnoski.com/jibx-wiki/space/axis2-jibx/example (with the
> WSDL and code at
> http://www.sosnoski.com/jibx-wiki/space/axis2-jibx/example/library-service
> ).
>
> - Dennis
>
> Dennis M. Sosnoski
> SOA and Web Services in Java
> Training and Consulting
> http://www.sosnoski.com - http://www.sosnoski.co.nz
> Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117
>
>
>
> Josh wrote:
> > All,
> >
> > I am having difficulting dealing with an existing WSDL which declares
> > a "void" response message.  I have the following in my wsdl:
> >
> >    <element name="updateResponse">
> >     <complexType/>
> >    </element>
> >
> >    <wsdl:message name="updateResponse">
> >       <wsdl:part element="impl:updateResponse" name="parameters"/>
> >    </wsdl:message>
> >
> > Because this is really a void return, how would I map this using JiBX?
> >
> > Regards,
> >
> > Joshua
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>

Re: JIBX Mapping Question - Void response message?

Posted by Dennis Sosnoski <dm...@sosnoski.com>.
Hi Josh,

If you're using unwrapped you shouldn't need to map this at all. If 
you're using wrapped handling you'd just have a "marker" class with an 
empty mapping:

  <mapping class="updateResponse" name="updateResponse"/>

You can see an example of the unwrapped handling for this at 
http://www.sosnoski.com/jibx-wiki/space/axis2-jibx/example (with the 
WSDL and code at 
http://www.sosnoski.com/jibx-wiki/space/axis2-jibx/example/library-service).

  - Dennis

Dennis M. Sosnoski
SOA and Web Services in Java
Training and Consulting
http://www.sosnoski.com - http://www.sosnoski.co.nz
Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117



Josh wrote:
> All,
>  
> I am having difficulting dealing with an existing WSDL which declares 
> a "void" response message.  I have the following in my wsdl:
>  
>    <element name="updateResponse">
>     <complexType/>
>    </element>
>   
>    <wsdl:message name="updateResponse">
>       <wsdl:part element="impl:updateResponse" name="parameters"/>
>    </wsdl:message>
>  
> Because this is really a void return, how would I map this using JiBX?
>  
> Regards,
>  
> Joshua

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org