• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

cannot be cast to org.apache.axiom.om.OMElement Exception

 
Ranch Hand
Posts: 99
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Hi,

I was trying to submit soap message via SOAP UI. But I get return response "org.apache.axiom.om.impl.llom.OMTextImpl cannot be cast to org.apache.axiom.om.OMElement" I want to make sure soap message i have submitting is fine.

SOAP Error Response :

<soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
<soapenv:Body>
<soapenv:Fault>
<soapenv:Code>
<soapenv:Value>soapenv:Receiver</soapenv:Value>
</soapenv:Code>
<soapenv:Reason>
<soapenv:Text xml:lang="en-US">org.apache.axiom.om.impl.llom.OMTextImpl cannot be cast to org.apache.axiom.om.OMElement</soapenv:Text>
</soapenv:Reason>
<soapenv:Detail/>
</soapenv:Fault>
</soapenv:Body>
</soapws:env:Envelope>

SOAP MEssage :

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:ws="http://ab.cc.dd.com">
<soap:Header/>
<soap:Body>
<ws:processNPCMsg xmlns:ns1='http://ab.cc.dd.com'>
<ws:userId>abcde</ws:userId>
<ws:password>dGVzdGl0YTQ=</ws:password>
<ws:xmlMsg>
<NPCMessageData>
<NPCData>
<MessageHeader>
<LSAID>AP</LSAID>
<PortType>MOBILE</PortType>
<TransactionID>AP201401061733481300477</TransactionID>
<MessageID>1001</MessageID>
<MsgCreateTimeStamp>20140106173348</MsgCreateTimeStamp>
<Sender>130</Sender>
</MessageHeader>
<NPCMessage>
<PortRequest>
<NumberRange>
<NumberFrom>1010501010</NumberFrom>
<NumberTo>1010501010</NumberTo>
</NumberRange>
<Donor>120</Donor>
<Recipient>130</Recipient>
<AccountPayType>Prepaid</AccountPayType>
<PortingCode>AM123456</PortingCode>
<SubRequestTime>20140106173349</SubRequestTime>
</PortRequest>
</NPCMessage>
</NPCData>
</NPCMessageData>
<ws:/xmlMsg>
<ws:/processNPCMsg>
<soap:/env:Body>
<soap:/env:Envelope>


Regards,
Jay
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Jay,

I am also trying to send a similar kind of soap message from SoapUI tool and facing the same issue with below like fault response message from server. Were you able to resolve this issue?, if so can you please let me know how this issue can be resolved?

<?xml version='1.0' encoding='UTF-8'?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<soapenv:Fault>
<faultcode>soapenv:Server</faultcode>
<faultstring>org.apache.axiom.om.impl.llom.OMTextImpl cannot be cast
to org.apache.axiom.om.OMElement</faultstring>
<detail />
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>

Regards
Vinay
reply
    Bookmark Topic Watch Topic
  • New Topic