Server did not recognize the value of HTTP Header SOAPAction:

A

akvmurlai

Hi,

I am trying to invoke yellowpages webservice using SOAP4R and getting
the following error.

Server did not recognize the value of HTTP Header SOAPAction:

I tried the suggestions in
http://groups.google.com/group/comp...ader+SOAPAction&rnum=1&hl=en#1c75bbd325fffd80
But, that gives
d:/ruby/lib/ruby/1.8/soap/rpc/proxy.rb:487:in `+': can't convert
IDhandleWebSear
chRequest into String (TypeError)

Any ideas?

What I did:
Generated client and associated classes using
wsdl2ruby.rb --wsdl
http://atlncan02.ncanservices.com/IDWebService/PhoneDBService.wsdl
--type client

and changed the client code as
transaction_request =
TransactionRequest.new(nil,nil,nil,nil,nil,nil,'BR','Doubledyno','srchName',50,nil,nil,nil,nil,nil)
parameters = IDhandleWebSearchRequest.new(transaction_request)
puts obj.iDhandleWebSearchRequest(parameters)

The request being sent is
<?xml version="1.0" encoding="utf-8" ?>
<env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<env:Body>
<IDhandleWebSearchRequest xmlns="http://66.45.113.60/IDWebService">
<NewRequest>
<queryType>BR</queryType>
<referenceClass>Doubledyno</referenceClass>
<referenceCode>srchName</referenceCode>
<requestCount>50</requestCount>
</NewRequest>
</IDhandleWebSearchRequest>
</env:Body>
</env:Envelope>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top