Issue in Axiom SAAJ Implementation -
Hi, I am using axis2-1.1.1 binary for creating and deploying my webservice with the databinding tool as xmlbeans. while invoking a webservice using saaj library ( axis-saaj-1.1.1.jar) , a exception is thrown with Illegal character error. this stems from the org.apache.axiom.om.impl.dom.DocumentImpl.checkQName(String prefix, String local) implementation. the NCName of the element is being checked. the way of checking results in the above mentioned error. The method throws error if there it is a zero length prefix as in case of empty prefix. When there isnt any namespace prefix as in the case of the snippet below, it throws the exception. the code snippet boolean validNCName = (prefix == null || XMLChar.isValidNCName(prefix)) && XMLChar.isValidNCName(local); if (!validNCName) { // REVISIT: add qname parameter to the message String msg = DOMMessageFormatter.formatMessage( DOMMessageFormatter.DOM_DOMAIN, "INVALID_CHARACTER_ERR", null); throw new DOMException(DOMException.INVALID_CHARACTER_ERR, msg); stack trace .. org.w3c.dom.DOMException: INVALID_CHARACTER_ERR: An invalid or illegal XML character is specified. at org.apache.axiom.om.impl.dom.DocumentImpl.checkQName(DocumentImpl.java:464) at org.apache.axiom.om.impl.dom.DocumentImpl.createElementNS(DocumentImpl.java:201) at org.apache.axis2.saaj.SOAPBodyImpl.addChildElement(SOAPBodyImpl.java:133) at org.apache.axis2.saaj.SOAPConnectionImpl.toSAAJElement(SOAPConnectionImpl.java:257) at org.apache.axis2.saaj.SOAPConnectionImpl.getSOAPMessage(SOAPConnectionImpl.java:210) at org.apache.axis2.saaj.SOAPConnectionImpl.handleSOAPMessage(SOAPConnectionImpl.java:154) at org.apache.axis2.saaj.SOAPConnectionImpl.call(SOAPConnectionImpl.java:118) at com.hp.dmp.loadtest.test.ClientInterfaceWSTest.main(ClientInterfaceWSTest.java:69) Is there any workarounds for this . Please , let me know. Thanks, Palanikumar -- You are the creator of your own destiny - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Issue in Axiom SAAJ Implementation -
Hi, I am using axis2-1.1.1 binary for creating and deploying my webservice with the databinding tool as xmlbeans. while invoking a webservice using saaj library ( axis-saaj-1.1.1.jar) , a exception is thrown with Illegal character error. this stems from the org.apache.axiom.om.impl.dom.DocumentImpl.checkQName(String prefix, String local) implementation. the NCName of the element is being checked. the way of checking results in the above mentioned error. The method throws error if there it is a zero length prefix as in case of empty prefix. When there isnt any namespace prefix as in the case of the snippet below, it throws the exception. the code snippet boolean validNCName = (prefix == null || XMLChar.isValidNCName(prefix)) && XMLChar.isValidNCName(local); if (!validNCName) { // REVISIT: add qname parameter to the message String msg = DOMMessageFormatter.formatMessage( DOMMessageFormatter.DOM_DOMAIN, "INVALID_CHARACTER_ERR", null); throw new DOMException(DOMException.INVALID_CHARACTER_ERR, msg); stack trace .. org.w3c.dom.DOMException: INVALID_CHARACTER_ERR: An invalid or illegal XML character is specified. at org.apache.axiom.om.impl.dom.DocumentImpl.checkQName(DocumentImpl.java:464) at org.apache.axiom.om.impl.dom.DocumentImpl.createElementNS(DocumentImpl.java:201) at org.apache.axis2.saaj.SOAPBodyImpl.addChildElement(SOAPBodyImpl.java:133) at org.apache.axis2.saaj.SOAPConnectionImpl.toSAAJElement(SOAPConnectionImpl.java:257) at org.apache.axis2.saaj.SOAPConnectionImpl.getSOAPMessage(SOAPConnectionImpl.java:210) at org.apache.axis2.saaj.SOAPConnectionImpl.handleSOAPMessage(SOAPConnectionImpl.java:154) at org.apache.axis2.saaj.SOAPConnectionImpl.call(SOAPConnectionImpl.java:118) at com.hp.dmp.loadtest.test.ClientInterfaceWSTest.main(ClientInterfaceWSTest.java:69) Is there any workarounds for this . Please , let me know. Thanks, Palanikumar -- You are the creator of your own destiny - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Invalid character err in SOAP Response.
Hi , I am using saaj for invoking webservice deployed on axis2-1.1.1 . I am getting a invalid character err . the soap message is wellformed . below is the soap message and the stacktrace . http://schemas.xmlsoap.org/soap/envelope/";> http://somename/xsd/";> Empty Name org.w3c.dom.DOMException: INVALID_CHARACTER_ERR: An invalid or illegal XML character is specified. at org.apache.axiom.om.impl.dom.DocumentImpl.checkQName(DocumentImpl.java:464) at org.apache.axiom.om.impl.dom.DocumentImpl.createElementNS(DocumentImpl.java:201) at org.apache.axis2.saaj.SOAPBodyImpl.addChildElement(SOAPBodyImpl.java:133) at org.apache.axis2.saaj.SOAPConnectionImpl.toSAAJElement(SOAPConnectionImpl.java:257) at org.apache.axis2.saaj.SOAPConnectionImpl.getSOAPMessage(SOAPConnectionImpl.java:210) at org.apache.axis2.saaj.SOAPConnectionImpl.handleSOAPMessage(SOAPConnectionImpl.java:154) at org.apache.axis2.saaj.SOAPConnectionImpl.call(SOAPConnectionImpl.java:118) looks like the NCName is not fine. Is there any problem with the xmlns being anonymous or empty ? . Please , let me know . Thanks, Palanikumar -- You are the creator of your own destiny - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: getting MissingResourceException when running a client using SAAJ
Hi dims, I have created an issue for the problem. https://issues.apache.org/jira/browse/WSCOMMONS-174 Thanks, Palanikumar On 2/27/07, Davanum Srinivas <[EMAIL PROTECTED]> wrote: Palanikumar, Could you please log a bug in JIRA? so that we make sure we don't forget this for the next release. -- dims On 2/27/07, SMT Palanikumar <[EMAIL PROTECTED]> wrote: > Hi all, > > I deployed a webservice with the databinding framework as xmlbeans. I > am using axis2 as the webservice container in an embedded tomcat > environment. I am getting an MissingResourceException which says that > org.apache.axiom.om.impl.dom.msg.DomMessages.properties file couldn't > be found. I checked the axiom-dom-1.2.2.jar which comes in the axis2 > binary distribution . the properties file are not included in the jar > file. Please, let me know where to find this. > > Note: The svn source list the properties file. > > Below is the exact listing of the error . > > Can't find bundle for base name org.apache.axiom.om.impl.dom.msg.DOMMessages > > Thanks, > Palanikumar > > -- > You are the creator of your own destiny > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Davanum Srinivas :: http://wso2.org/ :: Oxygen for Web Services Developers - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- You are the creator of your own destiny - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
getting MissingResourceException when running a client using SAAJ
Hi all, I deployed a webservice with the databinding framework as xmlbeans. I am using axis2 as the webservice container in an embedded tomcat environment. I am getting an MissingResourceException which says that org.apache.axiom.om.impl.dom.msg.DomMessages.properties file couldn't be found. I checked the axiom-dom-1.2.2.jar which comes in the axis2 binary distribution . the properties file are not included in the jar file. Please, let me know where to find this. Note: The svn source list the properties file. Below is the exact listing of the error . Can't find bundle for base name org.apache.axiom.om.impl.dom.msg.DOMMessages Thanks, Palanikumar -- You are the creator of your own destiny - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]