On Thu, Nov 12, 2009 at 2:30 AM, Rahul Rulz <ragul...@yahoo.com> wrote:
> Hi Axis2 Users, > > If anyone has included MULTIREF in the responses from the server,kindly let > me know the procedures to do the same...I have created a SimpleInOut > MessageReceiver and have created the service from scratch(not used WSDL2Java > to create stubs).. > > Any suggestions/codes would be of great help. > > Thanks, > Raghav. > > > > --- On *Wed, 11/11/09, Rahul Rulz <ragul...@yahoo.com>* wrote: > > > From: Rahul Rulz <ragul...@yahoo.com> > Subject: Re: [Axis2] Reg. parsing of MULTIREF and including MULTIREF in > server responses > > To: axis-user@ws.apache.org > Date: Wednesday, November 11, 2009, 10:53 AM > > Hi Deepal, > > Thanks for the link. Unfortunately I was not able to get it working.. :( > > I just found some Axis2 api's such inside axis2.apache.databinding.utils - > Multirefhelper and was able to get the href,attribute values from the > incoming requests . Now I want to send the response processing the above > values and it looks like the following > > <?xml version="1.0" encoding="UTF-8"?> > <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:Response soapenv:encodingStyle=" > http://schemas.xmlsoap.org/soap/encoding/" > xmlns:ns4="Myservice:Response"><responseServer href="#id0"/> > </ns4:Response> > <multiRef id="id0" soapenc:root="0" soapenv:encodingStyle=" > http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns5:Profile" > xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns5=" > http://Myservice.services.myservice.com"> > <serviceNumbers soapenc:arrayType="ns5:ServiceNumber[2]" > xsi:type="soapenc:Array"> > <serviceNumbers href="#id1"/> > <serviceNumbers href="#id2"/> > </serviceNumbers><user href="#id3"/> > </multiRef> > <multiRef id="id3" soapenc:root="0" soapenv:encodingStyle=" > http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns6:User" xmlns:ns6=" > http://dto.domain.raa.services.myservice.com" xmlns:soapenc=" > http://schemas.xmlsoap.org/soap/encoding/"><userSegment > xsi:type="ns7:UserSegmentEnum" xsi:nil="true" xmlns:ns7=" > http://Myservice.services.myservice.com"/> > <username xsi:type="xsd:string">rag...@test.com</username> > </multiRef> > <multiRef id="id1" soapenc:root="0" soapenv:encodingStyle=" > http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns8:ServiceNumber" > xmlns:ns8="http://Myservice.services.myservice.com" xmlns:soapenc=" > http://schemas.xmlsoap.org/soap/encoding/"><serviceLinkStatus > href="#id4"/><serviceNumber > xsi:type="xsd:string">0000000000</serviceNumber><serviceNumberStatus > href="#id5"/><serviceType href="#id6"/></multiRef> > <multiRef id="id2" soapenc:root="0" soapenv:encodingStyle=" > http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns9:ServiceNumber" > xmlns:ns9="http://Myservice.services.myservice.com" xmlns:soapenc=" > http://schemas.xmlsoap.org/soap/encoding/"><serviceLinkStatus > href="#id7"/><serviceNumber > xsi:type="xsd:string">0000000001</serviceNumber><serviceNumberStatus > href="#id5"/><serviceType href="#id6"/></multiRef> > <multiRef id="id5" soapenc:root="0" soapenv:encodingStyle=" > http://schemas.xmlsoap.org/soap/encoding/" > xsi:type="ns10:ServiceNumberStatusEnum" xmlns:ns10=" > http://Myservice.services.myservice.com" xmlns:soapenc=" > http://schemas.xmlsoap.org/soap/encoding/">TEST_ACTIVE</multiRef> > <multiRef id="id4" soapenc:root="0" soapenv:encodingStyle=" > http://schemas.xmlsoap.org/soap/encoding/" > xsi:type="ns11:ServiceLinkStatusEnum" xmlns:ns11=" > http://Myservice.services.myservice.com" xmlns:soapenc=" > http://schemas.xmlsoap.org/soap/encoding/">TEST_LINKED</multiRef> > <multiRef id="id7" soapenc:root="0" soapenv:encodingStyle=" > http://schemas.xmlsoap.org/soap/encoding/" > xsi:type="ns12:ServiceLinkStatusEnum" xmlns:ns12=" > http://Myservice.services.myservice.com" xmlns:soapenc=" > http://schemas.xmlsoap.org/soap/encoding/">TEST_INITIAL</multiRef> > <multiRef id="id6" soapenc:root="0" soapenv:encodingStyle=" > http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns13:ServiceTypeEnum" > xmlns:ns13="http://Myservice.services.myservice.com" xmlns:soapenc=" > http://schemas.xmlsoap.org/soap/encoding/">TEST_MSISDN</multiRef> > </soapenv:Body> > </soapenv:Envelope> > > I just wanted to know whether are there any APIs(such as addChild) to make > it easier to add multirefs to the responses. > > Pl. share your thoughts on getting the above response..I am using a simple > inout message receiver. > > Thanks for looking into it. > > Thanks, > Raghav. > > > > > > > --- On *Mon, 11/9/09, Deepal jayasinghe <deep...@gmail.com>* wrote: > > > From: Deepal jayasinghe <deep...@gmail.com> > Subject: Re: [Axis2] Reg. parsing of MULTIREF and including MULTIREF in > server responses > > To: axis-user@ws.apache.org > Date: Monday, November 9, 2009, 9:16 AM > > Try this, > > https://svn.apache.org/repos/asf/webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/rpc/RPCCallTest.java > > Hi Deepal, > > > > Thanks for the reply. I just had a look on the API's reg. > > MultiRefHelper. I have a InOutMessageReceiver already for my > > service.It would be great if you can share the examples(below) for > > starters like us to explore more.. > > > > 1. Extract Multiref values in server from incoming requests > > 2. Create Multiref values from server as response. > > > > > > Thanks, > > Raghav. > > > > > > > > > > > > > > > > > > --- On *Mon, 11/9/09, Deepal Jayasinghe /<dee...@opensource.lk>/* wrote: > > > > > > From: Deepal Jayasinghe <dee...@opensource.lk> > > Subject: Re: [Axis2] Reg. parsing of MULTIREF and including > > MULTIREF in server responses > > > To: axis-user@ws.apache.org > > Date: Monday, November 9, 2009, 6:07 AM > > > > It is yes and no answer. In the server side when we use > > RPCMessageReceiver, it supports multiref. But in the client side I am > > not sure whether we handle it correctly, if you can try with > > RPCServiceClient and see whether it works. (I guess it might work, it > > uses the same code as the RPCMR) > > > > Thanks, > > Deepal > > > > Rahul Rulz wrote: > > > Hi Users, > > > > > > I just wanted to know whether it is possible to parse a SOAP > > envelope > > > in axis2 which contains MULTIREF . Basically I want to parse the > > > envelope and send responses from the server which in turn contains > > > MULTIREF. > > > > > > Any help such as a link of how to do or a tutorial section will do. > > > > > > Thanks a lot for the help. > > > > > > Regards, > > > Raghav. > > > > > > > > > > > > > > > > > > > > > > -- > > Thank you! > > > > > > http://blogs.deepal.org > > http://deepal.org > > > > > > > -- > Thank you! > > > http://blogs.deepal.org > http://deepal.org > > > >