axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Saminda Abeyruwan <sami...@opensource.lk>
Subject Re: org.apache.axis2.om.OMException during CreateSequence() method
Date Fri, 12 Aug 2005 04:21:43 GMT
Hi Pankaj,

Please send me the wsdl "you" are using for code generation.

Saminda


Pankaj Badgujar wrote:

> Hi,
>   Could somebody execute the CreateSequence() method using Axis2 ? I 
> am getting the org.apache.axis2.om.OMException  during 
> CreateSequence() method. I would appreciate if someone can help me.
>  
>  
> Thanks,
> Pankaj
>  
>  
>
>     The Service.xml is as shown below :
>
>      
>     <!--Auto generated Axis Service XML-->
>     <service name="SequenceAbsractPortType">
>     <parameter name="ServiceClass"
>     locked="xsd:false">edu.sjsu.wsrm.wsdlskel.SequenceAbsractPortTypeSkeleton</parameter>
>     <!--Mounting the method CreateSequence-->
>     <operation name="CreateSequence">
>     <messageReceiver
>     class="edu.sjsu.wsrm.wsdlskel.SequenceAbsractPortTypeMessageReceiver"/>
>     </operation>
>     <!--Mounting the method TerminateSequence-->
>     <operation name="TerminateSequence">
>     <messageReceiver
>     class="edu.sjsu.wsrm.wsdlskel.SequenceAbsractPortTypeMessageReceiver"/>
>     </operation>
>     </service>
>      
>     *Here are the details of the code in the CreateSequence() method :*
>      
>     //*Create the Response Document*
>        CreateSequenceResponseDocument response =
>     CreateSequenceResponseDocument.Factory.newInstance();
>      
>     //*Create the response type from the response document.*
>                 CreateSequenceResponseType payload =
>     response.addNewCreateSequenceResponse();
>      
>     //*Add an identifier to the response type *
>                 IdentifierDocument.Identifier id =
>     payload.addNewIdentifier();
>      
>     //*Set the value of the identifier *
>                 String uid = "abc123
>            id.setStringValue(uid);
>      
>     //*Return the response.*
>      
>                 return response;
>      
>     In short I am just creating a new identifier in the
>     CreateSequence() method and returning it to the user using
>     response document.
>      
>     Thanks,
>     Pankaj
>      
>      
>      
>      
>
>
>     */wan <saminda@opensource.lk>/* wrote:
>
>         Please forward the mail with [Axis2] prefix.
>
>         Repository to WS-RM implementation on top of Axis2, called
>         Sandesha2, is
>         available at
>         http://svn.apache.org/repos/asf/webservices/sandesha/trunk/
>
>         Your contributionj is alway welcome to WS-RM implementation
>         Axis2-Sandesha2.
>
>         If the following code being generated, i have noted the following,
>
>         1. service.xml should call the generated MessageReciever
>         2. "payload" and "id" code is not clear - pls give more
>         detalis of it,
>
>         Apart from this, you code should work.
>
>         Saminda
>
>
>         Pankaj Badgujar wrote:
>
>         > The createSequence() method is as follows :
>         >
>         > public
>         >
>         org.xmlsoap.schemas.ws.x2005.x02.rm.CreateSequenceResponseDocument
>
>         >
>         CreateSequence(org.xmlsoap.schemas.ws.x2005.x02.rm.CreateSequenceDocument
>
>         > param0){
>         > System.out.println("In CreateSequence impl - start");
>         > CreateSequenceResponseDocument response =
>         > CreateSequenceResponseDocument.Factory.newInstance();
>         > CreateSequenceResponseType payload =
>         > response.addNewCreateSequenceResponse();
>         > IdentifierDocument.Identifier id = payload.addNewIdentifier();
>         > String uid = "myID";
>         > id.setStringValue(uid);
>         > System.out.println("In CreateSequence impl -
>         > returning response");
>         > response.dump();
>         > String text = response.xmlText();
>         > System.out.println("CreateSequenceResponseDocument=" + text);
>         > return response;
>         > }
>         >
>         > Thanks for the kind attention.
>         >
>         > Pankaj
>         >
>         >
>         > */Eran Chinthaka /* wrote:
>         >
>         > Can u attach the source of the createSequence ?
>         >
>         >
>         >
>         > I think you have programmatically created an Element and has set
>         > done = false, without giving a builder.
>         >
>         >
>         >
>         >
>         ------------------------------------------------------------------------
>         >
>         > *From:* Pankaj Badgujar [mailto:pcbadgujar2004@yahoo.com]
>         > *Sent:* Sunday, August 07, 2005 4:53 AM
>         > *To:* axis-dev@ws.apache.org
>         > *Subject:* org.apache.axis2.om.OMException during
>         CreateSequence()
>         > method
>         >
>         >
>         >
>         > Hi,
>         >
>         > I am getting the org.apache.axis2.om.OMException when my
>         > CreateSequence() returns the response. When I debugged the Axis2
>         > code the problem is in the following code of the serialize()
>         > method of the OMElementImpl.java.
>         >
>         > serialize()
>         >
>         > {
>         >
>         > .........
>         >
>         > else if (this.parent != null) {
>         > if (!this.parent.isComplete()) {
>         > builder.setCache(cache);
>         > builder.next();
>         >
>         > ...
>         >
>         > }
>         >
>         > In the above case the this.parent.isComplete() method returns
>         > false and when the builder.next() method is called it finds its
>         > (i.e. builder's) "done" variable set to true and the builder
>         just
>         > throws the OmException.
>         >
>         > I am not sure where I am making the mistake.My cratesequence()
>         > method just sets the identifier and returns the response. I
>         would
>         > highly appreciate if someone could help me to resolve this
>         problem.
>         >
>         > Thanks,
>         >
>         > Pankaj
>         >
>         >
>         ------------------------------------------------------------------------
>         >
>         > Start your day with Yahoo! - make it your home page
>         >
>         >
>         > __________________________________________________
>         > Do You Yahoo!?
>         > Tired of spam? Yahoo! Mail has the best spam protection around
>         > http://mail.yahoo.com
>         >
>
>     ------------------------------------------------------------------------
>     Start your day with Yahoo! - make it your home page
>     <http://us.rd.yahoo.com/evt=34442/*http://www.yahoo.com/r/hs>
>
>     SPONSORED LINKS
>     Private college and university
>     <http://groups.yahoo.com/gads?t=ms&k=Private+college+and+university&w1=Private+college+and+university&w2=Colleges+and+universities&w3=School+education&w4=College+and+university+in+tennessee&w5=College+and+university+search&c=5&s=165&.sig=ox5MRNKwEnfjRJIOM3avPA>
>     	Colleges and universities
>     <http://groups.yahoo.com/gads?t=ms&k=Colleges+and+universities&w1=Private+college+and+university&w2=Colleges+and+universities&w3=School+education&w4=College+and+university+in+tennessee&w5=College+and+university+search&c=5&s=165&.sig=A5yHLrXuQyDuCRESuc85WQ>
>     	School education
>     <http://groups.yahoo.com/gads?t=ms&k=School+education&w1=Private+college+and+university&w2=Colleges+and+universities&w3=School+education&w4=College+and+university+in+tennessee&w5=College+and+university+search&c=5&s=165&.sig=_Oo8nd5RptXzBD4j2ksJlA>
>
>     College and university in tennessee
>     <http://groups.yahoo.com/gads?t=ms&k=College+and+university+in+tennessee&w1=Private+college+and+university&w2=Colleges+and+universities&w3=School+education&w4=College+and+university+in+tennessee&w5=College+and+university+search&c=5&s=165&.sig=TNDPrVFJQl2Xe4gDJSs-ug>
>     	College and university search
>     <http://groups.yahoo.com/gads?t=ms&k=College+and+university+search&w1=Private+college+and+university&w2=Colleges+and+universities&w3=School+education&w4=College+and+university+in+tennessee&w5=College+and+university+search&c=5&s=165&.sig=aspc0pRpr-EdEpTWK2ORYA>
>
>
>
>     ------------------------------------------------------------------------
>     YAHOO! GROUPS LINKS
>
>         *  Visit your group "WS_RM_295A
>           <http://groups.yahoo.com/group/WS_RM_295A>" on the web.
>            
>         *  To unsubscribe from this group, send an email to:
>            WS_RM_295A-unsubscribe@yahoogroups.com
>           <mailto:WS_RM_295A-unsubscribe@yahoogroups.com?subject=Unsubscribe>
>            
>         *  Your use of Yahoo! Groups is subject to the Yahoo! Terms of
>           Service <http://docs.yahoo.com/info/terms/>.
>
>
>     ------------------------------------------------------------------------
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>


Mime
View raw message