Dynamic Web Service Invocation Using mysql and Dynamic Partnerlink

5 messages Options
Embed this post
Permalink
Dimitris Tsaimos

Dynamic Web Service Invocation Using mysql and Dynamic Partnerlink

Reply Threaded More More options
Print post
Permalink
Hi all,

To my bad luck, I am a newbie at both web services and openESB.

I have the following issue:

I have a set of "nodes" which all implement the same web service interfaces, the difference being the
actual URI used to invoke each web service. So I use a database to store the actual URI for each node,
along with a unique id used to search the db. I have defined an endpoint reference variable, and I have implemented
the bpel process correctly up to the point where the output of the db search operation should be assigned to the
address element of the EPR variable. However, I have trouble moving from there on... I also attach the project
files for further reference. Any help would be appreciated.

Regards,
DimitrisRaServiceMap.zip
Dimitris Tsaimos

Re: Dynamic Web Service Invocation Using mysql and Dynamic Partnerlink

Reply Threaded More More options
Print post
Permalink
Hi again,

let me specify the issue I am dealing with:

I have stored a URI in a database in the form of a string. When I retrieve that URI I want to  assign it to an
endpoint reference address element - I have initialized the relating servicename and portname elements to
the values of the service I wish to call. However, If I simply assign the output of the database "find" operation
to the endpoint reference address element I get the following error when I run my test case:

Caused by: BPCOR-6174: Selection Failure occurred in BPEL({http://enterprise.netbeans.org/bpel/RaServiceMap/CallRaService}CallRaService) at line 56
BPCOR-6129: Line Number is 54
BPCOR-6130: Activity Name is Assign2

So what is the correct way of assigning the string containing the URI to endpoint reference address?

Since I am stuck for over a week with this, any help would be greatly appreciated...

Dimitris Tsaimos wrote:
Hi all,

To my bad luck, I am a newbie at both web services and openESB.

I have the following issue:

I have a set of "nodes" which all implement the same web service interfaces, the difference being the
actual URI used to invoke each web service. So I use a database to store the actual URI for each node,
along with a unique id used to search the db. I have defined an endpoint reference variable, and I have implemented
the bpel process correctly up to the point where the output of the db search operation should be assigned to the
address element of the EPR variable. However, I have trouble moving from there on... I also attach the project
files for further reference. Any help would be appreciated.

Regards,
DimitrisRaServiceMap.zip
Murali Pottlapelli

Re: Dynamic Web Service Invocation Using mysql and Dynamic Partnerlink

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)
What is the value in "FindOut"? did the database call return records?

Also note that expression you are accessing the to retrieve "Address" $FindOut.part/ns1:rawebservicemap_record/ns1:RaServiceEndpoint is good only for first record returned from the database as there are no predicates in the expression.

Line number in error did not match with the project you have attached, did you make changes to the business process after you have attached it?

Regards
Murali

Dimitris Tsaimos wrote:
Hi again,

let me specify the issue I am dealing with:

I have stored a URI in a database in the form of a string. When I retrieve
that URI I want to  assign it to an
endpoint reference address element - I have initialized the relating
servicename and portname elements to
the values of the service I wish to call. However, If I simply assign the
output of the database "find" operation
to the endpoint reference address element I get the following error when I
run my test case:

Caused by: BPCOR-6174: Selection Failure occurred in
BPEL({http://enterprise.netbeans.org/bpel/RaServiceMap/CallRaService}CallRaService)
at line 56
BPCOR-6129: Line Number is 54
BPCOR-6130: Activity Name is Assign2

So what is the correct way of assigning the string containing the URI to
endpoint reference address?

Since I am stuck for over a week with this, any help would be greatly
appreciated...


Dimitris Tsaimos wrote:
  
Hi all,

To my bad luck, I am a newbie at both web services and openESB.

I have the following issue:

I have a set of "nodes" which all implement the same web service
interfaces, the difference being the 
actual URI used to invoke each web service. So I use a database to store
the actual URI for each node,
along with a unique id used to search the db. I have defined an endpoint
reference variable, and I have implemented
the bpel process correctly up to the point where the output of the db
search operation should be assigned to the
address element of the EPR variable. However, I have trouble moving from
there on... I also attach the project 
files for further reference. Any help would be appreciated.

Regards,
Dimitris http://n2.nabble.com/file/n3181413/RaServiceMap.zip
RaServiceMap.zip 

    

  
Dimitris Tsaimos

Re: Dynamic Web Service Invocation Using mysql and Dynamic Partnerlink

Reply Threaded More More options
Print post
Permalink
Murali Pottlapelli wrote:

> What is the value in "FindOut"? did the database call return records?
>
> Also note that expression you are accessing the to retrieve "Address"
> $FindOut.part/ns1:rawebservicemap_record/ns1:RaServiceEndpoint is good
> only for first record returned from the database as there are no
> predicates in the expression.
>
> Line number in error did not match with the project you have attached,
> did you make changes to the business process after you have attached it?
>
> Regards
> Murali
>
> Dimitris Tsaimos wrote:
>> Hi again,
>>
>> let me specify the issue I am dealing with:
>>
>> I have stored a URI in a database in the form of a string. When I retrieve
>> that URI I want to  assign it to an
>> endpoint reference address element - I have initialized the relating
>> servicename and portname elements to
>> the values of the service I wish to call. However, If I simply assign the
>> output of the database "find" operation
>> to the endpoint reference address element I get the following error when I
>> run my test case:
>>
>> Caused by: BPCOR-6174: Selection Failure occurred in
>> BPEL({http://enterprise.netbeans.org/bpel/RaServiceMap/CallRaService}CallRaService)
>> at line 56
>> BPCOR-6129: Line Number is 54
>> BPCOR-6130: Activity Name is Assign2
>>
>> So what is the correct way of assigning the string containing the URI to
>> endpoint reference address?
>>
>> Since I am stuck for over a week with this, any help would be greatly
>> appreciated...
>>
>>
>> Dimitris Tsaimos wrote:
>>  
>>> Hi all,
>>>
>>> To my bad luck, I am a newbie at both web services and openESB.
>>>
>>> I have the following issue:
>>>
>>> I have a set of "nodes" which all implement the same web service
>>> interfaces, the difference being the
>>> actual URI used to invoke each web service. So I use a database to store
>>> the actual URI for each node,
>>> along with a unique id used to search the db. I have defined an endpoint
>>> reference variable, and I have implemented
>>> the bpel process correctly up to the point where the output of the db
>>> search operation should be assigned to the
>>> address element of the EPR variable. However, I have trouble moving from
>>> there on... I also attach the project
>>> files for further reference. Any help would be appreciated.
>>>
>>> Regards,
>>> Dimitris http://n2.nabble.com/file/n3181413/RaServiceMap.zip
>>> RaServiceMap.zip
>>>
>>>    
>>
>>  
Hi Murali,

thanks for the reply. Indeed I have modified the project, I am attaching
the new one.
As you will see the value of FindOut is being assigned correctly -
verified using the BPEL debugger - the issue is when I try to assign
the value of FindOut to the Address element - just a reminder: the
FindOut variable contains a string, whereas the address element
is of type anyURI.

Regards,
Dimitris



---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

RaServiceMap.zip (251K) Download Attachment
Murali Pottlapelli

Re: Dynamic Web Service Invocation Using mysql and Dynamic Partnerlink

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)
It looks like there is issue with the value returned from the database, will you please share server.log

Please configure BPEL-SE log level to FINEST, truncate the log and run the test and share server.log.

Regards
Murali

Dimitris Tsaimos wrote:
Murali Pottlapelli wrote:
What is the value in "FindOut"? did the database call return records?

Also note that expression you are accessing the to retrieve "Address" $FindOut.part/ns1:rawebservicemap_record/ns1:RaServiceEndpoint is good only for first record returned from the database as there are no predicates in the expression.

Line number in error did not match with the project you have attached, did you make changes to the business process after you have attached it?

Regards
Murali

Dimitris Tsaimos wrote:
Hi again,

let me specify the issue I am dealing with:

I have stored a URI in a database in the form of a string. When I retrieve
that URI I want to  assign it to an
endpoint reference address element - I have initialized the relating
servicename and portname elements to
the values of the service I wish to call. However, If I simply assign the
output of the database "find" operation
to the endpoint reference address element I get the following error when I
run my test case:

Caused by: BPCOR-6174: Selection Failure occurred in
BPEL({http://enterprise.netbeans.org/bpel/RaServiceMap/CallRaService}CallRaService)
at line 56
BPCOR-6129: Line Number is 54
BPCOR-6130: Activity Name is Assign2

So what is the correct way of assigning the string containing the URI to
endpoint reference address?

Since I am stuck for over a week with this, any help would be greatly
appreciated...


Dimitris Tsaimos wrote:
 
Hi all,

To my bad luck, I am a newbie at both web services and openESB.

I have the following issue:

I have a set of "nodes" which all implement the same web service
interfaces, the difference being the actual URI used to invoke each web service. So I use a database to store
the actual URI for each node,
along with a unique id used to search the db. I have defined an endpoint
reference variable, and I have implemented
the bpel process correctly up to the point where the output of the db
search operation should be assigned to the
address element of the EPR variable. However, I have trouble moving from
there on... I also attach the project files for further reference. Any help would be appreciated.

Regards,
Dimitris http://n2.nabble.com/file/n3181413/RaServiceMap.zip
RaServiceMap.zip
   

 
Hi Murali,

thanks for the reply. Indeed I have modified the project, I am attaching the new one.
As you will see the value of FindOut is being assigned correctly - verified using the BPEL debugger - the issue is when I try to assign
the value of FindOut to the Address element - just a reminder: the FindOut variable contains a string, whereas the address element
is of type anyURI.

Regards,
Dimitris

--------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email]