Hi Martin,
I have been trying to get this working for months but was not successful . I 
would like to know if it can be done..Please reply.
Thanks,Raghav.     

--- On Fri, 2/12/10, Rahul Rulz <[email protected]> wrote:

From: Rahul Rulz <[email protected]>
Subject: RE: xsi:type
To: [email protected]
Date: Friday, February 12, 2010, 8:43 AM

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 protected]</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 protected]</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 <[email protected]> wrote:

From: Martin Gainty <[email protected]>
Subject: RE: xsi:type
To: [email protected]
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: [email protected]
Subject: Re: xsi:type
To: [email protected]

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

     

--- On Thu, 2/11/10, Rahul Rulz
 <[email protected]> wrote:

From: Rahul Rulz <[email protected]>
Subject: xsi:type
To: [email protected]
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. 





      


      

Reply via email to