soap - AxisFault: javax.xml.stream.XMLStreamException -


We are using drupal soapservice for webservices while we are trying to call soap service, this result gives, but axis2 throws following error ...

  org.apache.axis2.AxisFault: javax.xml.stream.XMLStreamException: element com text content com.chm.api.login .chm.api.login.client.DrupalSoapStub.fromOM (DrupalSoapStub.java:12249) can not be included START_ELEMENT on org.apache.axis2.AxisFault.makeFault (AxisFault.java:430) java.lang.Exception: .client DrupalSoapStub.userLogin javax.xml.stream.xmlStreamException due to SocketClient.main (DrupalSoapStub.java:1408) (SocketClient.java:144) Quick text can not contain START_ELEMENT on com .chm.api.login.client.DrupalSoapStub $ UserLoginResponse $ Factory.parse (DrupalSoapStub.java:59804) on com.chm.api.login.client.DrupalSoapStub.fromOM (DrupalSoapStub. java: 11473) ... 2 more due by: javax.xml.stream.XMLStreamException: element not included START_ELEMENT on org.apache.axiom.om.impl.SwitchingWrapper.getElementText (SwitchingWrapper.java:981) on text javax can. On xml.stream.util.StreamReaderDelegate.getElementText org.apache.axiom.util.stax.wrapper.XMLStreamReaderWrapper.getElementText (XMLStreamReaderWrapper.java:100) (StreamReaderDelegate.java:100) on org.apache.axiom.util.stax. debug.XMLStreamReaderValidator.getElementText com.chm.api.login.client.DrupalSoapStub at $ UserLoginResponse $ Factory.parse (XMLStreamReaderValidator.java:76) (DrupalSoapStub.java:59770)    < P> 

I had to face a similar problem, but not as much as you are not facing. I resolved this issue by adding the following dependency to this class path:

  & lt; Dependency & gt; & Lt; Group & gt; Com.sun.xml.ws & lt; / Group & gt; & Lt; ArtifactId & gt; Jaxws-rt & lt; / ArtifactId> & Lt; Version & gt; 2.1.5 & lt; / Edition & gt; & Lt; / Dependencies & gt;   

I'm not sure whether this works for your problem or not, but you can try it.

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -