Forum Discussion

CXin's avatar
CXin
Frequent Contributor
15 years ago

endpoint doesn't work

Hi Support team,

In my project(only http requests, not soap), I set the endpoint as ${#Project#server}/c-ClassiApiCommand
and the "server" is set in the project properties.
but each time when I run the whole suite, it will fail.
when I run the single case, it works fine.
The error I get is:

XmlException: error: Unexpected character encountered(lex state 3): 'G'

my response xml is:
<?xml version="1.0" encoding="UTF-8" ?>
<SOAP:Envelope xmlns:SOAP="http://www.w3.org/2003/05/soap-envelope" >
<SOAP:Body>
<m:ad xmlns:m="http://www.kijiji.com/soap">
<ad_id>1548949</ad_id><guid>12d79703-86fa-c10d-c353-4547ffffff06</guid><public_url>http://montreal.kijiji.ca.f003.intern.qa-kijiji.com/c-acheter-et-vendre-livres-API-post-private-ad-W0QQAdIdZ1548949QQlangZDefault</public_url><private_url>http://montreal.kijiji.ca.f003.intern.qa-kijiji.com/c-ViewAd?AdId=1548949&Guid=12d79703-86fa-c10d-c353-4547ffffff06&lang=Default</private_url></m:ad>
</SOAP:Body>
</SOAP:Envelope>


in my soap ui,the above is in red. I don't know the meaning of it.

9 Replies

  • Hi!

    the response xml contains a '&' which should be entitized by the server to '&amp;' before returning it.

    regards!

    /Ole
    eviware.com
  • CXin's avatar
    CXin
    Frequent Contributor
    Hi, I know it is due to the &.
    But why single case run will pass?
  • Hi,

    hmm.. that is strange.. do you get a stacktrace in the error log for this?

    regards,

    /Ole
    eviware.com
  • CXin's avatar
    CXin
    Frequent Contributor
    Hi, here is the error log:

    Tue Jan 18 10:09:55 GMT+08:00 2011:ERROR:java.net.UnknownHostException: http://api.kijiji.ca/c-ClassiApiSearchAdExCommand
    java.net.UnknownHostException: http://api.kijiji.ca/c-ClassiApiSearchAdExCommand
    at java.net.InetAddress.getAllByName0(Unknown Source)
    at java.net.InetAddress.getAllByName(Unknown Source)
    at java.net.InetAddress.getAllByName(Unknown Source)
    at java.net.InetAddress.getByName(Unknown Source)
    at com.eviware.soapui.impl.wsdl.submit.transports.http.HttpClientRequestTransport.sendRequest(HttpClientRequestTransport.java:114)
    at com.eviware.soapui.impl.wsdl.WsdlSubmit.run(WsdlSubmit.java:123)
    at com.eviware.soapui.impl.wsdl.WsdlSubmit.submitRequest(WsdlSubmit.java:76)
    at com.eviware.soapui.impl.support.http.HttpRequest.submit(HttpRequest.java:272)
    at com.eviware.soapui.impl.wsdl.teststeps.HttpTestRequestStep.run(HttpTestRequestStep.java:255)
    at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner.runTestStep(WsdlTestCaseRunner.java:207)
    at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner.internalRun(WsdlTestCaseRunner.java:138)
    at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner.internalRun(WsdlTestCaseRunner.java:39)
    at com.eviware.soapui.impl.wsdl.support.AbstractTestRunner.run(AbstractTestRunner.java:135)
    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
    at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)


    =======================================

    You will see, it said unknow host exception.
    but actually, my request host is ${#Project#server}/c-ClassiApiCommand
    And the ${#Project#server} is set in the project parameter as http://api.kijiji.ca.f003.intern.qa-kijiji.com

    I think it is not well replaced.
  • CXin's avatar
    CXin
    Frequent Contributor
    Hi Support team,

    This issue really impacted my regression work.
    I need to kickoff all of my cases by it get failed due to this issue.
    Can you help?
  • Hi Cxin,

    can you attach or mail us your project file so we can try to reproduce this (and fix it of course!)?

    regards!

    /Ole
    eviware.com
  • CXin's avatar
    CXin
    Frequent Contributor
    eviware support wrote:
    Hi Cxin,

    can you attach or mail us your project file so we can try to reproduce this (and fix it of course!)?

    regards!

    /Ole
    eviware.com


    Hi,

    the project is too big to attach and we combined it with SVN
    I think you won't see any detail if you only have the project...
    I think I have explained the issue clearly.
  • Hi!

    Unfortunately we are not able to reproduce this kind of error which is why we ask for your project so we can hope to reproduce and fix it; maybe you could zip the project and mail it to support@eviware.com for further handling?

    regards!

    /Ole
    eviware.com