Note that there are some explanatory texts on larger screens.

plurals
  1. POGetting error while envoking rest API URL
    primarykey
    data
    text
    <p>I have created an API in wso2 ESB as:</p> <pre><code>&lt;api xmlns="http://ws.apache.org/ns/synapse" name="getUUIDAPI" context="/getUUID"&gt; &lt;resource methods="GET" uri-template="?Name={searchValue}" inSequence="getUUIDIN" outSequence="CommonJsonOut"/&gt; &lt;/api&gt; </code></pre> <p>and it gives me an API Invocation URL as <code>http://10.224.64.97:8280/getUUID</code>. Now when i try this rest service in my browser as :</p> <pre><code>http://10.224.64.97:8280/getUUID?Name=uvu </code></pre> <p>, In the esb i get error as :</p> <pre><code>TID: [0] [ESB] [2013-06-26 10:25:50,796] ERROR {org.apache.axis2.description.ClientUtils} - The system cannot infer the transport information from the /getUUID?Name=uvu?Name=uvu URL. {org.apache.axis2.description.ClientUtils} TID: [0] [ESB] [2013-06-26 10:25:50,796] ERROR {org.apache.synapse.core.axis2.Axis2Sender} - Unexpected error during sending message out {org.apache.synapse.core.axis2.Axis2Sender} org.apache.axis2.AxisFault: The system cannot infer the transport information from the /getUUID?Name=uvu?Name=uvu URL. at org.apache.axis2.description.ClientUtils.inferOutTransport(ClientUtils.java:81) at org.apache.synapse.core.axis2.DynamicAxisOperation$DynamicOperationClient.executeImpl(DynamicAxisOperation.java:115) at org.apache.axis2.client.OperationClient.execute(OperationClient.java:149) at org.apache.synapse.core.axis2.Axis2FlexibleMEPClient.send(Axis2FlexibleMEPClient.java:456) at org.apache.synapse.core.axis2.Axis2Sender.sendOn(Axis2Sender.java:57) at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.send(Axis2SynapseEnvironment.java:316) at org.apache.synapse.endpoints.AbstractEndpoint.send(AbstractEndpoint.java:329) at org.apache.synapse.endpoints.WSDLEndpoint.send(WSDLEndpoint.java:69) at org.apache.synapse.endpoints.IndirectEndpoint.send(IndirectEndpoint.java:54) at org.apache.synapse.mediators.builtin.SendMediator.mediate(SendMediator.java:95) at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:71) at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:114) at org.apache.synapse.rest.Resource.process(Resource.java:306) at org.apache.synapse.rest.API.process(API.java:308) at org.apache.synapse.rest.RESTRequestHandler.dispatchToAPI(RESTRequestHandler.java:76) at org.apache.synapse.rest.RESTRequestHandler.process(RESTRequestHandler.java:63) at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:182) at org.apache.synapse.core.axis2.SynapseMessageReceiver.receive(SynapseMessageReceiver.java:83) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180) at org.apache.synapse.transport.passthru.ServerWorker.processNonEntityEnclosingRESTHandler(ServerWorker.java:367) at org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:204) at org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:722) </code></pre> <p>As you can see in the above error the url it is hitting is <code>/getUUID?Name=uvu?Name=uvu</code> but i am sending <code>/getUUID?Name=uvu</code>. Why i am getting this strange error? If i copy the api file, sequences associated with api to other server's esb and then i hit with above url i get the response. Please help me on this. Thanks in advance</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload