Invoking a web service

Discussion in 'Ruby' started by capi, Aug 1, 2007.

  1. capi

    capi Guest

    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-extension}binding
    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?
    Thank you in advnace
    capi, Aug 1, 2007
    #1
    1. Advertising

  2. -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1

    Hi,

    capi wrote:
    > Im trying to connect to a webservice developed in java, but im getting
    > this error:


    > #<SOAP::Mapping::Object:0x35b88dc>: SoapMapper:Converting data for
    > SoapMapper fa
    > iled inside the typemapper (SOAP::FaultError)


    I think the server is implemented with MS SOAP Toolkit 2.0.

    The raised exception should contain error details. Please try the
    following program.

    require 'soap/wsdlDriver'
    url = "https://myurl/aaa.WSDL"
    soap = SOAP::WSDLDriverFactory.new(url).create_rpc_driver
    begin
    puts
    soap.CSPT_Search('u','u','1233333',0,3,2,0,0,1,1,'u','u','u',1,0,0,'u')
    rescue
    p $!
    p $!.detail
    end

    If it won't go, add 'soap.wiredump_dev = STDOUT' before CSPT_Search and
    show me the result.

    Regards,
    // NaHi

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.2.1 (Cygwin)

    iQEVAwUBRrE47B9L2jg5EEGlAQJJmwf/YF6UuYXstWODkZKhHO4sMQQ2gETDzfGm
    SBRI/WCBHa8C/91N4EfBvW8CoYqfSdBapm+YxD+QlUoF9mfJMuc0PdTveZd4ptGs
    2HsIJfdbKCKLgpeZmGiQF7a8s9k2COyHcF7326nLmBoIdz3JCrRkVfzn0MCpuhE9
    A0M4l/vrdqr6CG1a7YAxFa+4nZjIp4vmM7Qe9qkpvF5Jk0MRD6pZYYEJ/sIA6FEY
    JIAVlRgvBatNI7ic3ctDmM3gP7N/kJwxsovIjtGWSlOYLBZfckq44vVMDHKQd0+W
    4atYQDoAm08dA3F1tK9KFRNRaMWaIs/G22e3uxw82Xo3EzTgsAkVlg==
    =FNPn
    -----END PGP SIGNATURE-----
    NAKAMURA, Hiroshi, Aug 2, 2007
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. David
    Replies:
    10
    Views:
    875
    David
    Jul 27, 2005
  2. Tim Orr

    404 error invoking web service

    Tim Orr, Jul 22, 2003, in forum: ASP .Net Web Services
    Replies:
    0
    Views:
    133
    Tim Orr
    Jul 22, 2003
  3. Chris

    Invoking Web Service wothout client proxy

    Chris, Feb 19, 2004, in forum: ASP .Net Web Services
    Replies:
    3
    Views:
    153
    Michael Pearson
    Feb 19, 2004
  4. Gabriel

    Exception when invoking web service from asp .net form

    Gabriel, May 3, 2004, in forum: ASP .Net Web Services
    Replies:
    3
    Views:
    161
    Gabriel
    May 7, 2004
  5. Thomas via .NET 247

    Invoking Web Service without creating proxy

    Thomas via .NET 247, May 13, 2004, in forum: ASP .Net Web Services
    Replies:
    2
    Views:
    141
    Jan Tielens
    May 14, 2004
Loading...

Share This Page