This week's giveaway is in the Programmer Certification (OCPJP) forum.
We're giving away four copies of Java Mock Exams (software) and have David Mayer on-line!
See this thread for details.
Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

org.kxml.io.ParseException

 
Deepan Devadasan
Ranch Hand
Posts: 226
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I am trying to consume a webservice exposed by a ColdFusion developer

this is the wsdl
http://www.forta.com/cf/tips/syndicate.cfc?wsdl

The code i am using is this


And when the webservice is called i get the following exception (in Netbeans)



org.kxml.io.ParseException: unexpected: StartTag <h1> line: -1 attr: null @-1:-1
at org.kxml.parser.AbstractXmlParser.read(+53)
at org.ksoap.SoapEnvelope.parseHead(+19)
at org.ksoap.SoapEnvelope.parse(+5)
at org.ksoap.transport.HttpTransport.call(+372)
at org.ksoap.transport.HttpTransport.call(+12)
at org.ironone.WSLogin.run(WSLogin.java:37)

I hope some of you have already encountered something like this before...

Can someone share your thoughts with be as well

Thanks in advance
 
Deepan Devadasan
Ranch Hand
Posts: 226
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i was able to solve it by running the Emulator under trusted domain...

in fact the HTTP response code was HTTP/400 which created the Parse Exception...

I have another problem now with reading complex types in the web service, which is posted here http://www.coderanch.com/t/230403/JME/Mobile/queryBean-kSOAP
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!