Re: [Dev] No response when sending patientId as an argument

2017-11-12 Thread Sam Sivayogam
Seems like your synapse api context and resource definition doesn't match
with the URL you invoke.Thats why you are getting a error like No matching
resource. Can you please send your api configurations ?

Thanks,
Sam

On Mon, Nov 13, 2017 at 9:46 AM, Buddhimala Ranasinghe 
wrote:

> Hi All,
>
> I have created an API in ESB 5.0.0 to access a secured SOAP BE service. As
> per [1] I have added a dummy header into the paylaod so that my payload
> will be as follows.
>
> 
> 
>http://schemas.
> xmlsoap.org/soap/envelope/" xmlns:ser="http://service.sample.nawaloka.com
> ">
>   
>  12
>   
>   
>  
> $1
>  
>   
>
> 
> 
>
> 
>  
>
> My problem now is, when I tried to invoke the API using SOAPUI, it doen't
> show any response and the server side, it logs an error as below.
>
> [2017-11-13 09:30:21,678] DEBUG - wire HTTP-Listener I/O dispatcher-3 >>
> "GET /nawaloka/read/a...@abc.com HTTP/1.1[\r][\n]"
> [2017-11-13 09:30:21,678] DEBUG - wire HTTP-Listener I/O dispatcher-3 >>
> "Accept-Encoding: gzip,deflate[\r][\n]"
> [2017-11-13 09:30:21,679] DEBUG - wire HTTP-Listener I/O dispatcher-3 >>
> "Host: 172.17.0.1:8280[\r][\n]"
> [2017-11-13 09:30:21,679] DEBUG - wire HTTP-Listener I/O dispatcher-3 >>
> "Connection: Keep-Alive[\r][\n]"
> [2017-11-13 09:30:21,679] DEBUG - wire HTTP-Listener I/O dispatcher-3 >>
> "User-Agent: Apache-HttpClient/4.1.1 (java 1.5)[\r][\n]"
> [2017-11-13 09:30:21,679] DEBUG - wire HTTP-Listener I/O dispatcher-3 >>
> "[\r][\n]"
> [2017-11-13 09:30:21,682] DEBUG - SynapseMessageReceiver Synapse received
> a new message for message mediation...
> [2017-11-13 09:30:21,683] DEBUG - SynapseMessageReceiver Received To:
> /nawaloka/read/a...@abc.com
> [2017-11-13 09:30:21,683] DEBUG - SynapseMessageReceiver SOAPAction: null
> [2017-11-13 09:30:21,683] DEBUG - SynapseMessageReceiver WSA-Action: null
> [2017-11-13 09:30:21,683] DEBUG - Axis2SynapseEnvironment Injecting
> MessageContext
> [2017-11-13 09:30:21,683] DEBUG - RESTRequestHandler Located specific API:
> NawalokaPatientAPI for processing message
> [2017-11-13 09:30:21,684] DEBUG - API Processing message with ID:
> urn:uuid:9a9121dd-2025-489b-bba7-c4fba5a2eb95 through the API:
> NawalokaPatientAPI
> [2017-11-13 09:30:21,684] DEBUG - API No matching resource was found for
> the request: urn:uuid:9a9121dd-2025-489b-bba7-c4fba5a2eb95
> [2017-11-13 09:30:21,687] DEBUG - wire HTTP-Listener I/O dispatcher-3 <<
> "HTTP/1.1 404 Not Found[\r][\n]"
> [2017-11-13 09:30:21,687] DEBUG - wire HTTP-Listener I/O dispatcher-3 <<
> "Date: Mon, 13 Nov 2017 04:00:21 GMT[\r][\n]"
> [2017-11-13 09:30:21,687] DEBUG - wire HTTP-Listener I/O dispatcher-3 <<
> "Transfer-Encoding: chunked[\r][\n]"
> [2017-11-13 09:30:21,687] DEBUG - wire HTTP-Listener I/O dispatcher-3 <<
> "Connection: Keep-Alive[\r][\n]"
> [2017-11-13 09:30:21,687] DEBUG - wire HTTP-Listener I/O dispatcher-3 <<
> "[\r][\n]"
> [2017-11-13 09:30:21,688] DEBUG - wire HTTP-Listener I/O dispatcher-3 <<
> "0[\r][\n]"
> [2017-11-13 09:30:21,688] DEBUG - wire HTTP-Listener I/O dispatcher-3 <<
> "[\r][\n]"
>
>
> But it shows a response when I enter a value for patientId parameter as
> follows.
>
>  a...@abc.com
>
> FYI: patientId should be the patient's e-mail address.
>
> [1] "API gives "SOAP Envelope can not have children other than SOAP Header
> and Body" Exception"
> --
>
>
> *Buddhimala Ranasinghe *
> Software Engineer-Support Team | WSO2
> Emil: buddhim...@wso2.com
> Mobile:+94771563138 <+94%2077%20156%203138>
> Web:http://wso2.com
> [image: https://wso2.com/signature] 
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Sam Sivayogam*

Senior Software Engineer
Mobile  : +94 772 906 439
Office   : +94 112 145 345
*WSO2, Inc. :** wso2.com *
lean.enterprise.middleware.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] No response when sending patientId as an argument

2017-11-12 Thread Buddhimala Ranasinghe
Here is my API configuartion.

http://ws.apache.org/ns/synapse"; name="NawalokaPatientAPI"
context="/nawaloka">
   
  
 
 

   http://schemas.xmlsoap.org/soap/envelope/"; xmlns:ser="
http://service.sample.nawaloka.com";>
  
 12
  
  
 
$1
 
  
   


   

 
 
 
 
 
 

   https://192.168.55.160:9443/services/NawalokaPatientService";
format="soap11"/>

 
  
  
 
 
  
   


On Mon, Nov 13, 2017 at 10:14 AM, Sam Sivayogam  wrote:

> Seems like your synapse api context and resource definition doesn't match
> with the URL you invoke.Thats why you are getting a error like No
> matching resource. Can you please send your api configurations ?
>
> Thanks,
> Sam
>
> On Mon, Nov 13, 2017 at 9:46 AM, Buddhimala Ranasinghe <
> buddhim...@wso2.com> wrote:
>
>> Hi All,
>>
>> I have created an API in ESB 5.0.0 to access a secured SOAP BE service.
>> As per [1] I have added a dummy header into the paylaod so that my payload
>> will be as follows.
>>
>> 
>> 
>>http://schemas.
>> xmlsoap.org/soap/envelope/" xmlns:ser="http://service.sample.nawaloka.com
>> ">
>>   
>>  12
>>   
>>   
>>  
>> $1
>>  
>>   
>>
>> 
>> 
>>
>> 
>>  
>>
>> My problem now is, when I tried to invoke the API using SOAPUI, it doen't
>> show any response and the server side, it logs an error as below.
>>
>> [2017-11-13 09:30:21,678] DEBUG - wire HTTP-Listener I/O dispatcher-3 >>
>> "GET /nawaloka/read/a...@abc.com HTTP/1.1[\r][\n]"
>> [2017-11-13 09:30:21,678] DEBUG - wire HTTP-Listener I/O dispatcher-3 >>
>> "Accept-Encoding: gzip,deflate[\r][\n]"
>> [2017-11-13 09:30:21,679] DEBUG - wire HTTP-Listener I/O dispatcher-3 >>
>> "Host: 172.17.0.1:8280[\r][\n]"
>> [2017-11-13 09:30:21,679] DEBUG - wire HTTP-Listener I/O dispatcher-3 >>
>> "Connection: Keep-Alive[\r][\n]"
>> [2017-11-13 09:30:21,679] DEBUG - wire HTTP-Listener I/O dispatcher-3 >>
>> "User-Agent: Apache-HttpClient/4.1.1 (java 1.5)[\r][\n]"
>> [2017-11-13 09:30:21,679] DEBUG - wire HTTP-Listener I/O dispatcher-3 >>
>> "[\r][\n]"
>> [2017-11-13 09:30:21,682] DEBUG - SynapseMessageReceiver Synapse received
>> a new message for message mediation...
>> [2017-11-13 09:30:21,683] DEBUG - SynapseMessageReceiver Received To:
>> /nawaloka/read/a...@abc.com
>> [2017-11-13 09:30:21,683] DEBUG - SynapseMessageReceiver SOAPAction: null
>> [2017-11-13 09:30:21,683] DEBUG - SynapseMessageReceiver WSA-Action: null
>> [2017-11-13 09:30:21,683] DEBUG - Axis2SynapseEnvironment Injecting
>> MessageContext
>> [2017-11-13 09:30:21,683] DEBUG - RESTRequestHandler Located specific
>> API: NawalokaPatientAPI for processing message
>> [2017-11-13 09:30:21,684] DEBUG - API Processing message with ID:
>> urn:uuid:9a9121dd-2025-489b-bba7-c4fba5a2eb95 through the API:
>> NawalokaPatientAPI
>> [2017-11-13 09:30:21,684] DEBUG - API No matching resource was found for
>> the request: urn:uuid:9a9121dd-2025-489b-bba7-c4fba5a2eb95
>> [2017-11-13 09:30:21,687] DEBUG - wire HTTP-Listener I/O dispatcher-3 <<
>> "HTTP/1.1 404 Not Found[\r][\n]"
>> [2017-11-13 09:30:21,687] DEBUG - wire HTTP-Listener I/O dispatcher-3 <<
>> "Date: Mon, 13 Nov 2017 04:00:21 GMT[\r][\n]"
>> [2017-11-13 09:30:21,687] DEBUG - wire HTTP-Listener I/O dispatcher-3 <<
>> "Transfer-Encoding: chunked[\r][\n]"
>> [2017-11-13 09:30:21,687] DEBUG - wire HTTP-Listener I/O dispatcher-3 <<
>> "Connection: Keep-Alive[\r][\n]"
>> [2017-11-13 09:30:21,687] DEBUG - wire HTTP-Listener I/O dispatcher-3 <<
>> "[\r][\n]"
>> [2017-11-13 09:30:21,688] DEBUG - wire HTTP-Listener I/O dispatcher-3 <<
>> "0[\r][\n]"
>> [2017-11-13 09:30:21,688] DEBUG - wire HTTP-Listener I/O dispatcher-3 <<
>> "[\r][\n]"
>>
>>
>> But it shows a response when I enter a value for patientId parameter as
>> follows.
>>
>>  a...@abc.com
>>
>> FYI: patientId should be the patient's e-mail address.
>>
>> [1] "API gives "SOAP Envelope can not have children other than SOAP
>> Header and Body" Exception"
>> --
>>
>>
>> *Buddhimala Ranasinghe *
>> Software Engineer-Support Team | WSO2
>> Emil: buddhim...@wso2.com
>> Mobile:+94771563138 <+94%2077%20156%203138>
>> Web:http://wso2.com
>> [image: https://wso2.com/signature] 
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Sam Sivayogam*
>
> Senior Software Engineer
> Mobile  : +94 772 906 439
> Office   : +94 112 145 3

Re: [Dev] No response when sending patientId as an argument

2017-11-12 Thread Thivya Mahenthirarasa
Hi Budhimala,

 Instead of   you
need to refine your uri-template as follows since you are sending the
parameter via uri.

  


Hope it would be helpful.

Thanks,
Thivya

On Mon, Nov 13, 2017 at 10:24 AM, Buddhimala Ranasinghe  wrote:

> Here is my API configuartion.
>
> http://ws.apache.org/ns/synapse"; name="NawalokaPatientAPI"
> context="/nawaloka">
>
>   
>  
>  
> 
>http://schemas.
> xmlsoap.org/soap/envelope/" xmlns:ser="http://service.sample.nawaloka.com
> ">
>   
>  12
>   
>   
>  
> $1
>  
>   
>
> 
> 
>
> 
>  
>  
>  
>  
>  
>  
> 
>https://192.168.55.160:9443/services/
> NawalokaPatientService" format="soap11"/>
> 
>  
>   
>   
>   scope="axis2"/>
>  
>   
>
> 
>
> On Mon, Nov 13, 2017 at 10:14 AM, Sam Sivayogam  wrote:
>
>> Seems like your synapse api context and resource definition doesn't match
>> with the URL you invoke.Thats why you are getting a error like No
>> matching resource. Can you please send your api configurations ?
>>
>> Thanks,
>> Sam
>>
>> On Mon, Nov 13, 2017 at 9:46 AM, Buddhimala Ranasinghe <
>> buddhim...@wso2.com> wrote:
>>
>>> Hi All,
>>>
>>> I have created an API in ESB 5.0.0 to access a secured SOAP BE service.
>>> As per [1] I have added a dummy header into the paylaod so that my payload
>>> will be as follows.
>>>
>>> 
>>> 
>>>http://schemas.
>>> xmlsoap.org/soap/envelope/" xmlns:ser="http://service.samp
>>> le.nawaloka.com">
>>>   
>>>  12
>>>   
>>>   
>>>  
>>> $1
>>>  
>>>   
>>>
>>> 
>>> 
>>>
>>> 
>>>  
>>>
>>> My problem now is, when I tried to invoke the API using SOAPUI, it
>>> doen't show any response and the server side, it logs an error as below.
>>>
>>> [2017-11-13 09:30:21,678] DEBUG - wire HTTP-Listener I/O dispatcher-3 >>
>>> "GET /nawaloka/read/a...@abc.com HTTP/1.1[\r][\n]"
>>> [2017-11-13 09:30:21,678] DEBUG - wire HTTP-Listener I/O dispatcher-3 >>
>>> "Accept-Encoding: gzip,deflate[\r][\n]"
>>> [2017-11-13 09:30:21,679] DEBUG - wire HTTP-Listener I/O dispatcher-3 >>
>>> "Host: 172.17.0.1:8280[\r][\n]"
>>> [2017-11-13 09:30:21,679] DEBUG - wire HTTP-Listener I/O dispatcher-3 >>
>>> "Connection: Keep-Alive[\r][\n]"
>>> [2017-11-13 09:30:21,679] DEBUG - wire HTTP-Listener I/O dispatcher-3 >>
>>> "User-Agent: Apache-HttpClient/4.1.1 (java 1.5)[\r][\n]"
>>> [2017-11-13 09:30:21,679] DEBUG - wire HTTP-Listener I/O dispatcher-3 >>
>>> "[\r][\n]"
>>> [2017-11-13 09:30:21,682] DEBUG - SynapseMessageReceiver Synapse
>>> received a new message for message mediation...
>>> [2017-11-13 09:30:21,683] DEBUG - SynapseMessageReceiver Received To:
>>> /nawaloka/read/a...@abc.com
>>> [2017-11-13 09:30:21,683] DEBUG - SynapseMessageReceiver SOAPAction: null
>>> [2017-11-13 09:30:21,683] DEBUG - SynapseMessageReceiver WSA-Action: null
>>> [2017-11-13 09:30:21,683] DEBUG - Axis2SynapseEnvironment Injecting
>>> MessageContext
>>> [2017-11-13 09:30:21,683] DEBUG - RESTRequestHandler Located specific
>>> API: NawalokaPatientAPI for processing message
>>> [2017-11-13 09:30:21,684] DEBUG - API Processing message with ID:
>>> urn:uuid:9a9121dd-2025-489b-bba7-c4fba5a2eb95 through the API:
>>> NawalokaPatientAPI
>>> [2017-11-13 09:30:21,684] DEBUG - API No matching resource was found for
>>> the request: urn:uuid:9a9121dd-2025-489b-bba7-c4fba5a2eb95
>>> [2017-11-13 09:30:21,687] DEBUG - wire HTTP-Listener I/O dispatcher-3 <<
>>> "HTTP/1.1 404 Not Found[\r][\n]"
>>> [2017-11-13 09:30:21,687] DEBUG - wire HTTP-Listener I/O dispatcher-3 <<
>>> "Date: Mon, 13 Nov 2017 04:00:21 GMT[\r][\n]"
>>> [2017-11-13 09:30:21,687] DEBUG - wire HTTP-Listener I/O dispatcher-3 <<
>>> "Transfer-Encoding: chunked[\r][\n]"
>>> [2017-11-13 09:30:21,687] DEBUG - wire HTTP-Listener I/O dispatcher-3 <<
>>> "Connection: Keep-Alive[\r][\n]"
>>> [2017-11-13 09:30:21,687] DEBUG - wire HTTP-Listener I/O dispatcher-3 <<
>>> "[\r][\n]"
>>> [2017-11-13 09:30:21,688] DEBUG - wire HTTP-Listener I/O dispatcher-3 <<
>>> "0[\r][\n]"
>>> [2017-11-13 09:30:21,688] DEBUG - wire HTTP-Listener I/O dispatcher-3 <<
>>> "[\r][\n]"
>>>
>>>
>>> But it shows a response when I enter a value for patientId parameter as
>>> follows.
>>>
>>>  a...@abc.com
>>>
>>> FYI: patientId should be the patient's e-mail address.
>>>
>>> [1] "API gives "SOAP Envelope can not have children other than SOAP
>>> Header and Body" Exception"
>>> --
>>>
>>>
>>> *Buddhimala Ranasinghe *
>>> Software Engineer-Suppo

Re: [Dev] No response when sending patientId as an argument

2017-11-12 Thread Sam Sivayogam
I tried your api in my local ESB. Seems like the issue is with the path
param you send there is a *@ * in the query param you send. When invoking
the api you can send a path param without a special characters something
like below
GET /nawaloka/read/ab cUser

or you can modify your url template like below to allow special charcters
/read/{*+*patientid}

Thanks,
Sam

On Mon, Nov 13, 2017 at 10:24 AM, Buddhimala Ranasinghe  wrote:

> Here is my API configuartion.
>
> http://ws.apache.org/ns/synapse"; name="NawalokaPatientAPI"
> context="/nawaloka">
>
>   
>  
>  
> 
>http://schemas.
> xmlsoap.org/soap/envelope/" xmlns:ser="http://service.sample.nawaloka.com
> ">
>   
>  12
>   
>   
>  
> $1
>  
>   
>
> 
> 
>
> 
>  
>  
>  
>  
>  
>  
> 
>https://192.168.55.160:9443/services/
> NawalokaPatientService" format="soap11"/>
> 
>  
>   
>   
>   scope="axis2"/>
>  
>   
>
> 
>
> On Mon, Nov 13, 2017 at 10:14 AM, Sam Sivayogam  wrote:
>
>> Seems like your synapse api context and resource definition doesn't match
>> with the URL you invoke.Thats why you are getting a error like No
>> matching resource. Can you please send your api configurations ?
>>
>> Thanks,
>> Sam
>>
>> On Mon, Nov 13, 2017 at 9:46 AM, Buddhimala Ranasinghe <
>> buddhim...@wso2.com> wrote:
>>
>>> Hi All,
>>>
>>> I have created an API in ESB 5.0.0 to access a secured SOAP BE service.
>>> As per [1] I have added a dummy header into the paylaod so that my payload
>>> will be as follows.
>>>
>>> 
>>> 
>>>http://schemas.
>>> xmlsoap.org/soap/envelope/" xmlns:ser="http://service.samp
>>> le.nawaloka.com">
>>>   
>>>  12
>>>   
>>>   
>>>  
>>> $1
>>>  
>>>   
>>>
>>> 
>>> 
>>>
>>> 
>>>  
>>>
>>> My problem now is, when I tried to invoke the API using SOAPUI, it
>>> doen't show any response and the server side, it logs an error as below.
>>>
>>> [2017-11-13 09:30:21,678] DEBUG - wire HTTP-Listener I/O dispatcher-3 >>
>>> "GET /nawaloka/read/a...@abc.com HTTP/1.1[\r][\n]"
>>> [2017-11-13 09:30:21,678] DEBUG - wire HTTP-Listener I/O dispatcher-3 >>
>>> "Accept-Encoding: gzip,deflate[\r][\n]"
>>> [2017-11-13 09:30:21,679] DEBUG - wire HTTP-Listener I/O dispatcher-3 >>
>>> "Host: 172.17.0.1:8280[\r][\n]"
>>> [2017-11-13 09:30:21,679] DEBUG - wire HTTP-Listener I/O dispatcher-3 >>
>>> "Connection: Keep-Alive[\r][\n]"
>>> [2017-11-13 09:30:21,679] DEBUG - wire HTTP-Listener I/O dispatcher-3 >>
>>> "User-Agent: Apache-HttpClient/4.1.1 (java 1.5)[\r][\n]"
>>> [2017-11-13 09:30:21,679] DEBUG - wire HTTP-Listener I/O dispatcher-3 >>
>>> "[\r][\n]"
>>> [2017-11-13 09:30:21,682] DEBUG - SynapseMessageReceiver Synapse
>>> received a new message for message mediation...
>>> [2017-11-13 09:30:21,683] DEBUG - SynapseMessageReceiver Received To:
>>> /nawaloka/read/a...@abc.com
>>> [2017-11-13 09:30:21,683] DEBUG - SynapseMessageReceiver SOAPAction: null
>>> [2017-11-13 09:30:21,683] DEBUG - SynapseMessageReceiver WSA-Action: null
>>> [2017-11-13 09:30:21,683] DEBUG - Axis2SynapseEnvironment Injecting
>>> MessageContext
>>> [2017-11-13 09:30:21,683] DEBUG - RESTRequestHandler Located specific
>>> API: NawalokaPatientAPI for processing message
>>> [2017-11-13 09:30:21,684] DEBUG - API Processing message with ID:
>>> urn:uuid:9a9121dd-2025-489b-bba7-c4fba5a2eb95 through the API:
>>> NawalokaPatientAPI
>>> [2017-11-13 09:30:21,684] DEBUG - API No matching resource was found for
>>> the request: urn:uuid:9a9121dd-2025-489b-bba7-c4fba5a2eb95
>>> [2017-11-13 09:30:21,687] DEBUG - wire HTTP-Listener I/O dispatcher-3 <<
>>> "HTTP/1.1 404 Not Found[\r][\n]"
>>> [2017-11-13 09:30:21,687] DEBUG - wire HTTP-Listener I/O dispatcher-3 <<
>>> "Date: Mon, 13 Nov 2017 04:00:21 GMT[\r][\n]"
>>> [2017-11-13 09:30:21,687] DEBUG - wire HTTP-Listener I/O dispatcher-3 <<
>>> "Transfer-Encoding: chunked[\r][\n]"
>>> [2017-11-13 09:30:21,687] DEBUG - wire HTTP-Listener I/O dispatcher-3 <<
>>> "Connection: Keep-Alive[\r][\n]"
>>> [2017-11-13 09:30:21,687] DEBUG - wire HTTP-Listener I/O dispatcher-3 <<
>>> "[\r][\n]"
>>> [2017-11-13 09:30:21,688] DEBUG - wire HTTP-Listener I/O dispatcher-3 <<
>>> "0[\r][\n]"
>>> [2017-11-13 09:30:21,688] DEBUG - wire HTTP-Listener I/O dispatcher-3 <<
>>> "[\r][\n]"
>>>
>>>
>>> But it shows a response when I enter a value for patientId parameter as
>>> follows.
>>>
>>>  a...@abc.com
>>>
>>> FYI: patientId should be the patient'

Re: [Dev] No response when sending patientId as an argument

2017-11-12 Thread Thivya Mahenthirarasa
Hi Budhimala,

Apologies for the above. I think the GET method you are having is in the
name read. Can you try by adding
 

On Mon, Nov 13, 2017 at 11:12 AM, Thivya Mahenthirarasa 
wrote:

> Hi Budhimala,
>
>  Instead of  
> you need to refine your uri-template as follows since you are sending the
> parameter via uri.
>
>   
>
>
> Hope it would be helpful.
>
> Thanks,
> Thivya
>
> On Mon, Nov 13, 2017 at 10:24 AM, Buddhimala Ranasinghe <
> buddhim...@wso2.com> wrote:
>
>> Here is my API configuartion.
>>
>> http://ws.apache.org/ns/synapse"; name="NawalokaPatientAPI"
>> context="/nawaloka">
>>
>>   
>>  
>>  
>> 
>>http://schemas.
>> xmlsoap.org/soap/envelope/" xmlns:ser="http://service.sample.nawaloka.com
>> ">
>>   
>>  12
>>   
>>   
>>  
>> $1
>>  
>>   
>>
>> 
>> 
>>
>> 
>>  
>>  
>>  
>>  
>>  
>>  
>> 
>>https://192.168.55.160:94
>> 43/services/NawalokaPatientService" format="soap11"/>
>> 
>>  
>>   
>>   
>>  > scope="axis2"/>
>>  
>>   
>>
>> 
>>
>> On Mon, Nov 13, 2017 at 10:14 AM, Sam Sivayogam  wrote:
>>
>>> Seems like your synapse api context and resource definition doesn't
>>> match with the URL you invoke.Thats why you are getting a error like No
>>> matching resource. Can you please send your api configurations ?
>>>
>>> Thanks,
>>> Sam
>>>
>>> On Mon, Nov 13, 2017 at 9:46 AM, Buddhimala Ranasinghe <
>>> buddhim...@wso2.com> wrote:
>>>
 Hi All,

 I have created an API in ESB 5.0.0 to access a secured SOAP BE service.
 As per [1] I have added a dummy header into the paylaod so that my payload
 will be as follows.

 
 
http://schemas.
 xmlsoap.org/soap/envelope/" xmlns:ser="http://service.samp
 le.nawaloka.com">
   
  12
   
   
  
 $1
  
   

 
 

 
  

 My problem now is, when I tried to invoke the API using SOAPUI, it
 doen't show any response and the server side, it logs an error as below.

 [2017-11-13 09:30:21,678] DEBUG - wire HTTP-Listener I/O dispatcher-3
 >> "GET /nawaloka/read/a...@abc.com HTTP/1.1[\r][\n]"
 [2017-11-13 09:30:21,678] DEBUG - wire HTTP-Listener I/O dispatcher-3
 >> "Accept-Encoding: gzip,deflate[\r][\n]"
 [2017-11-13 09:30:21,679] DEBUG - wire HTTP-Listener I/O dispatcher-3
 >> "Host: 172.17.0.1:8280[\r][\n]"
 [2017-11-13 09:30:21,679] DEBUG - wire HTTP-Listener I/O dispatcher-3
 >> "Connection: Keep-Alive[\r][\n]"
 [2017-11-13 09:30:21,679] DEBUG - wire HTTP-Listener I/O dispatcher-3
 >> "User-Agent: Apache-HttpClient/4.1.1 (java 1.5)[\r][\n]"
 [2017-11-13 09:30:21,679] DEBUG - wire HTTP-Listener I/O dispatcher-3
 >> "[\r][\n]"
 [2017-11-13 09:30:21,682] DEBUG - SynapseMessageReceiver Synapse
 received a new message for message mediation...
 [2017-11-13 09:30:21,683] DEBUG - SynapseMessageReceiver Received To:
 /nawaloka/read/a...@abc.com
 [2017-11-13 09:30:21,683] DEBUG - SynapseMessageReceiver SOAPAction:
 null
 [2017-11-13 09:30:21,683] DEBUG - SynapseMessageReceiver WSA-Action:
 null
 [2017-11-13 09:30:21,683] DEBUG - Axis2SynapseEnvironment Injecting
 MessageContext
 [2017-11-13 09:30:21,683] DEBUG - RESTRequestHandler Located specific
 API: NawalokaPatientAPI for processing message
 [2017-11-13 09:30:21,684] DEBUG - API Processing message with ID:
 urn:uuid:9a9121dd-2025-489b-bba7-c4fba5a2eb95 through the API:
 NawalokaPatientAPI
 [2017-11-13 09:30:21,684] DEBUG - API No matching resource was found
 for the request: urn:uuid:9a9121dd-2025-489b-bba7-c4fba5a2eb95
 [2017-11-13 09:30:21,687] DEBUG - wire HTTP-Listener I/O dispatcher-3
 << "HTTP/1.1 404 Not Found[\r][\n]"
 [2017-11-13 09:30:21,687] DEBUG - wire HTTP-Listener I/O dispatcher-3
 << "Date: Mon, 13 Nov 2017 04:00:21 GMT[\r][\n]"
 [2017-11-13 09:30:21,687] DEBUG - wire HTTP-Listener I/O dispatcher-3
 << "Transfer-Encoding: chunked[\r][\n]"
 [2017-11-13 09:30:21,687] DEBUG - wire HTTP-Listener I/O dispatcher-3
 << "Connection: Keep-Alive[\r][\n]"
 [2017-11-13 09:30:21,687] DEBUG - wire HTTP-Listener I/O dispatcher-3
 << "[\r][\n]"
 [2017-11-13 09:30:21,688] DEBUG - wire HTTP-Listener I/O dispatcher-3
 << "0[\r][\n]"
 [2017-11-13 09:30:21,688] DEBUG - wire HTTP-Listener I/O dispatcher-3
 

Re: [Dev] No response when sending patientId as an argument

2017-11-12 Thread Buddhimala Ranasinghe
Hi Thivya,

Still it doesn't work. I'm getting the same error.

Regards,
Buddhimala

On Mon, Nov 13, 2017 at 11:19 AM, Thivya Mahenthirarasa 
wrote:

> Hi Budhimala,
>
> Apologies for the above. I think the GET method you are having is in the
> name read. Can you try by adding
>  
>
> On Mon, Nov 13, 2017 at 11:12 AM, Thivya Mahenthirarasa 
> wrote:
>
>> Hi Budhimala,
>>
>>  Instead of  
>> you need to refine your uri-template as follows since you are sending the
>> parameter via uri.
>>
>>   
>>
>>
>> Hope it would be helpful.
>>
>> Thanks,
>> Thivya
>>
>> On Mon, Nov 13, 2017 at 10:24 AM, Buddhimala Ranasinghe <
>> buddhim...@wso2.com> wrote:
>>
>>> Here is my API configuartion.
>>>
>>> http://ws.apache.org/ns/synapse"; name="NawalokaPatientAPI"
>>> context="/nawaloka">
>>>
>>>   
>>>  
>>>  
>>> 
>>>http://schemas.
>>> xmlsoap.org/soap/envelope/" xmlns:ser="http://service.samp
>>> le.nawaloka.com">
>>>   
>>>  12
>>>   
>>>   
>>>  
>>> $1
>>>  
>>>   
>>>
>>> 
>>> 
>>>
>>> 
>>>  
>>>  
>>>  
>>>  
>>>  
>>>  
>>> 
>>>https://192.168.55.160:94
>>> 43/services/NawalokaPatientService" format="soap11"/>
>>> 
>>>  
>>>   
>>>   
>>>  >> scope="axis2"/>
>>>  
>>>   
>>>
>>> 
>>>
>>> On Mon, Nov 13, 2017 at 10:14 AM, Sam Sivayogam  wrote:
>>>
 Seems like your synapse api context and resource definition doesn't
 match with the URL you invoke.Thats why you are getting a error like No
 matching resource. Can you please send your api configurations ?

 Thanks,
 Sam

 On Mon, Nov 13, 2017 at 9:46 AM, Buddhimala Ranasinghe <
 buddhim...@wso2.com> wrote:

> Hi All,
>
> I have created an API in ESB 5.0.0 to access a secured SOAP BE
> service. As per [1] I have added a dummy header into the paylaod so that 
> my
> payload will be as follows.
>
> 
> 
>http://schemas.
> xmlsoap.org/soap/envelope/" xmlns:ser="http://service.samp
> le.nawaloka.com">
>   
>  12
>   
>   
>  
> $1
>  
>   
>
> 
> 
>
> 
>  
>
> My problem now is, when I tried to invoke the API using SOAPUI, it
> doen't show any response and the server side, it logs an error as below.
>
> [2017-11-13 09:30:21,678] DEBUG - wire HTTP-Listener I/O dispatcher-3
> >> "GET /nawaloka/read/a...@abc.com HTTP/1.1[\r][\n]"
> [2017-11-13 09:30:21,678] DEBUG - wire HTTP-Listener I/O dispatcher-3
> >> "Accept-Encoding: gzip,deflate[\r][\n]"
> [2017-11-13 09:30:21,679] DEBUG - wire HTTP-Listener I/O dispatcher-3
> >> "Host: 172.17.0.1:8280[\r][\n]"
> [2017-11-13 09:30:21,679] DEBUG - wire HTTP-Listener I/O dispatcher-3
> >> "Connection: Keep-Alive[\r][\n]"
> [2017-11-13 09:30:21,679] DEBUG - wire HTTP-Listener I/O dispatcher-3
> >> "User-Agent: Apache-HttpClient/4.1.1 (java 1.5)[\r][\n]"
> [2017-11-13 09:30:21,679] DEBUG - wire HTTP-Listener I/O dispatcher-3
> >> "[\r][\n]"
> [2017-11-13 09:30:21,682] DEBUG - SynapseMessageReceiver Synapse
> received a new message for message mediation...
> [2017-11-13 09:30:21,683] DEBUG - SynapseMessageReceiver Received To:
> /nawaloka/read/a...@abc.com
> [2017-11-13 09:30:21,683] DEBUG - SynapseMessageReceiver SOAPAction:
> null
> [2017-11-13 09:30:21,683] DEBUG - SynapseMessageReceiver WSA-Action:
> null
> [2017-11-13 09:30:21,683] DEBUG - Axis2SynapseEnvironment Injecting
> MessageContext
> [2017-11-13 09:30:21,683] DEBUG - RESTRequestHandler Located specific
> API: NawalokaPatientAPI for processing message
> [2017-11-13 09:30:21,684] DEBUG - API Processing message with ID:
> urn:uuid:9a9121dd-2025-489b-bba7-c4fba5a2eb95 through the API:
> NawalokaPatientAPI
> [2017-11-13 09:30:21,684] DEBUG - API No matching resource was found
> for the request: urn:uuid:9a9121dd-2025-489b-bba7-c4fba5a2eb95
> [2017-11-13 09:30:21,687] DEBUG - wire HTTP-Listener I/O dispatcher-3
> << "HTTP/1.1 404 Not Found[\r][\n]"
> [2017-11-13 09:30:21,687] DEBUG - wire HTTP-Listener I/O dispatcher-3
> << "Date: Mon, 13 Nov 2017 04:00:21 GMT[\r][\n]"
> [2017-11-13 09:30:21,687] DEBUG - wire HTTP-Listener I/O dispatcher-3
> << "Transfer-Encoding: chunked[\r][\n]"
> [2017-11-13 09:30:21,687] DEBUG - wire HTTP-Listener I/O dispatcher-3

Re: [Dev] No response when sending patientId as an argument

2017-11-12 Thread Buddhimala Ranasinghe
changing the URL template to "/read/{*+*patientid}" resolved the issue.

Thanks for the support.

Regards,
Buddhimala

On Mon, Nov 13, 2017 at 11:25 AM, Buddhimala Ranasinghe  wrote:

> Hi Thivya,
>
> Still it doesn't work. I'm getting the same error.
>
> Regards,
> Buddhimala
>
> On Mon, Nov 13, 2017 at 11:19 AM, Thivya Mahenthirarasa 
> wrote:
>
>> Hi Budhimala,
>>
>> Apologies for the above. I think the GET method you are having is in the
>> name read. Can you try by adding
>>  
>>
>> On Mon, Nov 13, 2017 at 11:12 AM, Thivya Mahenthirarasa 
>> wrote:
>>
>>> Hi Budhimala,
>>>
>>>  Instead of  
>>> you need to refine your uri-template as follows since you are sending the
>>> parameter via uri.
>>>
>>>   
>>>
>>>
>>> Hope it would be helpful.
>>>
>>> Thanks,
>>> Thivya
>>>
>>> On Mon, Nov 13, 2017 at 10:24 AM, Buddhimala Ranasinghe <
>>> buddhim...@wso2.com> wrote:
>>>
 Here is my API configuartion.

 http://ws.apache.org/ns/synapse"; name="NawalokaPatientAPI"
 context="/nawaloka">

   
  
  
 
http://schemas.
 xmlsoap.org/soap/envelope/" xmlns:ser="http://service.samp
 le.nawaloka.com">
   
  12
   
   
  
 $1
  
   

 
 

 
  
  
  >>> scope="transport"/>
  
  
  
 
https://192.168.55.160:94
 43/services/NawalokaPatientService" format="soap11"/>
 
  
   
   
  >>> scope="axis2"/>
  
   

 

 On Mon, Nov 13, 2017 at 10:14 AM, Sam Sivayogam  wrote:

> Seems like your synapse api context and resource definition doesn't
> match with the URL you invoke.Thats why you are getting a error like No
> matching resource. Can you please send your api configurations ?
>
> Thanks,
> Sam
>
> On Mon, Nov 13, 2017 at 9:46 AM, Buddhimala Ranasinghe <
> buddhim...@wso2.com> wrote:
>
>> Hi All,
>>
>> I have created an API in ESB 5.0.0 to access a secured SOAP BE
>> service. As per [1] I have added a dummy header into the paylaod so that 
>> my
>> payload will be as follows.
>>
>> 
>> 
>>http://schemas.
>> xmlsoap.org/soap/envelope/" xmlns:ser="http://service.samp
>> le.nawaloka.com">
>>   
>>  12
>>   
>>   
>>  
>> $1
>>  
>>   
>>
>> 
>> 
>>
>> 
>>  
>>
>> My problem now is, when I tried to invoke the API using SOAPUI, it
>> doen't show any response and the server side, it logs an error as below.
>>
>> [2017-11-13 09:30:21,678] DEBUG - wire HTTP-Listener I/O dispatcher-3
>> >> "GET /nawaloka/read/a...@abc.com HTTP/1.1[\r][\n]"
>> [2017-11-13 09:30:21,678] DEBUG - wire HTTP-Listener I/O dispatcher-3
>> >> "Accept-Encoding: gzip,deflate[\r][\n]"
>> [2017-11-13 09:30:21,679] DEBUG - wire HTTP-Listener I/O dispatcher-3
>> >> "Host: 172.17.0.1:8280[\r][\n]"
>> [2017-11-13 09:30:21,679] DEBUG - wire HTTP-Listener I/O dispatcher-3
>> >> "Connection: Keep-Alive[\r][\n]"
>> [2017-11-13 09:30:21,679] DEBUG - wire HTTP-Listener I/O dispatcher-3
>> >> "User-Agent: Apache-HttpClient/4.1.1 (java 1.5)[\r][\n]"
>> [2017-11-13 09:30:21,679] DEBUG - wire HTTP-Listener I/O dispatcher-3
>> >> "[\r][\n]"
>> [2017-11-13 09:30:21,682] DEBUG - SynapseMessageReceiver Synapse
>> received a new message for message mediation...
>> [2017-11-13 09:30:21,683] DEBUG - SynapseMessageReceiver Received To:
>> /nawaloka/read/a...@abc.com
>> [2017-11-13 09:30:21,683] DEBUG - SynapseMessageReceiver SOAPAction:
>> null
>> [2017-11-13 09:30:21,683] DEBUG - SynapseMessageReceiver WSA-Action:
>> null
>> [2017-11-13 09:30:21,683] DEBUG - Axis2SynapseEnvironment Injecting
>> MessageContext
>> [2017-11-13 09:30:21,683] DEBUG - RESTRequestHandler Located specific
>> API: NawalokaPatientAPI for processing message
>> [2017-11-13 09:30:21,684] DEBUG - API Processing message with ID:
>> urn:uuid:9a9121dd-2025-489b-bba7-c4fba5a2eb95 through the API:
>> NawalokaPatientAPI
>> [2017-11-13 09:30:21,684] DEBUG - API No matching resource was found
>> for the request: urn:uuid:9a9121dd-2025-489b-bba7-c4fba5a2eb95
>> [2017-11-13 09:30:21,687] DEBUG - wire HTTP-Listener I/O dispatcher-3