Forum: Ruby Invoking a web service

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
A024b0439ff568070d1b273660e246eb?d=identicon&s=25 Antonio Fernandes (capi)
on 2007-08-01 20:15
Im trying to connect to a webservice developed in java, but im getting
this error:

warning: peer certificate won't be verified in this SSL session
ignored element:
{http://schemas.microsoft.com/soap-toolkit/wsdl-ext...
warning: peer certificate won't be verified in this SSL session
#<SOAP::Mapping::Object:0x35b88dc>: SoapMapper:Converting data for
SoapMapper fa
iled inside the typemapper (SOAP::FaultError)

the function um trying to access in the wsdl is:

<message name="CMWS.CSPT_Search">
  <part name="User" type="xsd:string"/>
  <part name="Password" type="xsd:string"/>
  <part name="Key" type="xsd:string"/>
  <part name="SearchType" type="xsd:short"/>
  <part name="KeyType" type="xsd:short"/>
  <part name="FlagScope" type="xsd:short"/>
  <part name="IdDistrito" type="xsd:short"/>
  <part name="IdConcelho" type="xsd:short"/>
  <part name="FlagNoSort" type="xsd:short"/>
  <part name="RetCount" type="xsd:short"/>
  <part name="PostalCode" type="xsd:string"/>
  <part name="ProductCode" type="xsd:string"/>
  <part name="RequestRef" type="xsd:string"/>
  <part name="IdLanguage" type="xsd:short"/>
  <part name="Update" type="xsd:short"/>
  <part name="Priority" type="xsd:short"/>
  <part name="Comments" type="xsd:string"/>
</message>


and my ruby code to access the webservice:

require 'soap/wsdlDriver'

url = "https://myurl/aaa.WSDL"
soap = SOAP::WSDLDriverFactory.new(url).create_rpc_driver

puts
soap.CSPT_Search('u','u','1233333',0,3,2,0,0,1,1,'u','u','u',1,0,0,'u')


Can anybody give me an help on this
A024b0439ff568070d1b273660e246eb?d=identicon&s=25 Antonio Fernandes (capi)
on 2007-08-02 00:23
Anybody can give me an hint?

Thank you in advance
This topic is locked and can not be replied to.