axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rahul Rulz <ragul...@yahoo.com>
Subject RE: xsi:type
Date Fri, 12 Feb 2010 03:13:50 GMT
Hi Martin,
Thanks for your reply.. basically I want to include the XSi:type in the responses made from
my server..
This is the response I am getting from my server presently : 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">   </soapenv:Header>  
<soapenv:Body>      <ns4:PBSNR xmlns:ns4="bp:ProfileManagementService">  
      <PBSNRT>            <SNs>               <SLS>LINKED</SLS>  
            <SN>12Ea345</SN>               <SNStatus>ACTIVE</SNStatus>  
            <ST>MDN</ST>            </SNs>          
 <SNs>               <SLS>INITIAL</SLS>               <SN>12Ea345</SN>  
            <SNStatus>ACTIVE</SNStatus>               <ST>MDN</ST>  
         </SNs>            <user>               <ns7:userSegment
xmlns:ns7="http://user.prof.services.bp.com"/>               <username>email@bp.com</username>  
         </user>         </PBSNRT>      </ns4:PBSNR>  
 </soapenv:Body></soapenv:Envelope>
But I want to include the types in the message and it would look as
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">   </soapenv:Header>  
<soapenv:Body>      <ns4:PBSNR xmlns:ns4="bp:ProfileManagementService">  
      <PBSNRT>            <SNs>               <SLS>LINKED</SLS>  
            <SN xsi:type="ns1:ServiceTypeEnum">12</SN>            
  <SNStatus xsi:type="xsd:string">ACTIVE</SNStatus>               <ST
xsi:type="xsd:string">MDN</ST>            </SNs>            <SNs>  
            <SLS>INITIAL</SLS>               <SN xsi:type="ns1:ServiceTypeEnum">12</SN>  
            <SNStatus>ACTIVE</SNStatus>               <ST xsi:type="xsd:string">MDN</ST>  
         </SNs>            <user>               <ns7:userSegment
xmlns:ns7="http://user.prof.services.bp.com"/>        
       <username>email@bp.com</username>            </user>  
      </PBSNRT>      </ns4:PBSNR>   </soapenv:Body></soapenv:Envelope>
Please note that I have developed the service from the scratch without the WSDL.. 
It would be great if you can guide me.
Many Thanks,Raghav.    

--- On Fri, 2/12/10, Martin Gainty <mgainty@hotmail.com> wrote:

From: Martin Gainty <mgainty@hotmail.com>
Subject: RE: xsi:type
To: axis-user@ws.apache.org
Date: Friday, February 12, 2010, 7:39 AM





 
we would need to see the schema instance namespace declaration such as
<schema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance...>

Martin Gainty 
______________________________________________ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité

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.




Date: Thu, 11 Feb 2010 16:38:58 -0800
From: ragul_25@yahoo.com
Subject: Re: xsi:type
To: axis-user@ws.apache.org

Hi Users,
can anyone help me out please...
Thanks,Raghav.

     

--- On Thu, 2/11/10, Rahul Rulz <ragul_25@yahoo.com> wrote:

From: Rahul Rulz <ragul_25@yahoo.com>
Subject: xsi:type
To: axis-user@ws.apache.org
Date: Thursday, February 11, 2010, 11:03 AM

Hi All,
I am looking to include xsi:type in the responses from my server for a ling time :( .. Have
not done it till now..Could anyone pl. help me as to do it..I have created a service from
 scratch(not from WSDL generated java code) which uses message receivers and send the responses.
I am using axis2 1.5.1
Thanks for your help.
Regards,Raghav.

     


      
 		 	   		  
Hotmail: Trusted email with powerful SPAM protection. Sign up now. 



      
Mime
View raw message