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 "Yashwanth Rajaram -X (yrajaram - ZENSAR TECHNOLOGIES INC at Cisco)" <yr...@cisco.com> on 2011/10/28 01:47:18 UTC

How to indicate in WSDL that the SOAP body in response is optional?

Hi All:

 

We are sending response back from our Axis2 based Webservice both in
SOAP header and in SOAP body. However we are not able to mark in WSDL
that the SOAP Body is optional - SOAP header somehow is being marked as
optional. We have tried setting minOccurs='0" for the response that
would comeback in SOAP body but that doesn't seem to help. So would
appreciate if anyone could tell how to indicate in WSDL that the SOAP
body in response is optional.

 

thanks,

--

Yashwanth

 


RE: How to indicate in WSDL that the SOAP body in response is optional?

Posted by Martin Gainty <mg...@hotmail.com>.
that *should* work..

what is mustUnnderstand attribute set to

Martin Gainty 
______________________________________________ 
Jogi és Bizalmassági kinyilatkoztatás/Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 Ez az
üzenet bizalmas.  Ha nem ön az akinek szánva volt, akkor kérjük, hogy
jelentse azt nekünk vissza. Semmiféle továbbítása vagy másolatának
készítése nem megengedett.  Ez az üzenet csak ismeret cserét szolgál és
semmiféle jogi alkalmazhatósága sincs.  Mivel az electronikus üzenetek
könnyen megváltoztathatóak, ezért minket semmi felelöség nem terhelhet
ezen üzenet tartalma miatt.

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.

 Subject: How to indicate in WSDL that the SOAP body in response is optional?
Date: Thu, 27 Oct 2011 16:47:18 -0700
From: yrajaram@cisco.com
To: axis-user@ws.apache.org
















Hi All:

 

We are sending response back from our Axis2 based Webservice
both in SOAP header and in SOAP body. However we are not able to mark in WSDL
that the SOAP Body is optional – SOAP header somehow is being marked as
optional. We have tried setting minOccurs=’0” for the response that
would comeback in SOAP body but that doesn’t seem to help. So would
appreciate if anyone could tell how to indicate in WSDL that the SOAP body in
response is optional.

 

thanks,

--

Yashwanth

 

 		 	   		  

Re: How to indicate in WSDL that the SOAP body in response is optional?

Posted by pymz <py...@gmail.com>.
Did you try this option : < nillable="true" >

Regards,

Yashwanth Rajaram -X (yrajaram - Zensar at Cisco) wrote:
> 
> Hi All:
> 
>  
> 
> We are sending response back from our Axis2 based Webservice both in
> SOAP header and in SOAP body. However we are not able to mark in WSDL
> that the SOAP Body is optional - SOAP header somehow is being marked as
> optional. We have tried setting minOccurs='0" for the response that
> would comeback in SOAP body but that doesn't seem to help. So would
> appreciate if anyone could tell how to indicate in WSDL that the SOAP
> body in response is optional.
> 
>  
> 
> thanks,
> 
> --
> 
> Yashwanth
> 
>  
> 
> 
> 

-- 
View this message in context: http://old.nabble.com/How-to-indicate-in-WSDL-that-the-SOAP-body-in-response-is-optional--tp32735171p32750686.html
Sent from the Axis - User mailing list archive at Nabble.com.


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