Can't connect to BPEL web service from cucumber using savon

Hi all,

I am trying to test a helloworld BPEL service (deployed locally on a soa
server (weblogic)). When I try to invoke it from cucumber, I get
following message —

NoMethodError: undefined method starts_with?' for nil:NilClass C:/Ruby192/lib/ruby/1.9.1/rexml/parsers/streamparser.rb:24:inparse’
C:/Ruby192/lib/ruby/1.9.1/rexml/document.rb:204:in parse_stream' ./features/support/helloWorld_functions.rb:15:inprocessHelloWorld’
./features/step_definitions/helloWorld_steps.rb:8:in `/^I invoke
HelloWorld web service$/’

FYI, I can invoke actual BPEL web-service from soapUI.

I couldn’t find a solution from this error message. So, I used the same
WSDL file and created a mock web-service using soapUI and deployed it
locally and was able to call it from cucumber and got successful
response.

What shall I do to fix this issue?

Thanks!

I had to change


$client = Savon::Client.new
http://localhost:8001/soa-infra/services/default/HelloWorld/bpelprocess1_client_ep?WSDL


to


$client = Savon::Client.new do
wsdl.endpoint =
“localhost/soa-infra/services/default/HelloWorld/bpelprocess1_client_ep”
wsdl.namespace =
http://xmlns.oracle.com/HelloWorldSOA_jws/HelloWorld/BPELProcess1
end


to get it working.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs