Professional Web Applications Themes

soap4r 1.4.8.1 with REXML 2.7.1 - no REXML::VERSION_MAJOR - Ruby

I grabbed the latest soap4r and had a go with the wsdl driver, only to come to an abrupt stop with the following site_ruby/1.6/wsdl/rexmlpr.rb:40:in `doP': uninitialized constant VERSION_MAJOR at REXML (NameError) from f:/devlab/ruby/lib/ruby/site_ruby/1.6/wsdl/pr.rb:85:in `p' from f:/devlab/ruby/lib/ruby/site_ruby/1.6/soap/wsdlDriver.rb:81:in `p' from f:/devlab/ruby/lib/ruby/site_ruby/1.6/soap/wsdlDriver.rb:39:in `initialize' from wsdltest.rb:5:in `new' from wsdltest.rb:5 I?m running 1.6.8 on W2K at the moment and I looked for a VERSION_MAJOR in REXML but the beast does not want to show itself. Any ideas ? V.- __________________________________________________ __________________ [url]http://www.freemail.gr[/url] - δωρεάν υπηρεσία ηλεκτρονικού ταχυδρομείου. [url]http://www.freemail.gr[/url] - free email service for the Greek-speaking....

  1. #1

    Default soap4r 1.4.8.1 with REXML 2.7.1 - no REXML::VERSION_MAJOR

    I grabbed the latest soap4r and had a go with the wsdl driver, only to
    come to an abrupt stop with the following

    site_ruby/1.6/wsdl/rexmlpr.rb:40:in `doP': uninitialized
    constant VERSION_MAJOR at REXML (NameError)
    from f:/devlab/ruby/lib/ruby/site_ruby/1.6/wsdl/pr.rb:85:in `p'
    from f:/devlab/ruby/lib/ruby/site_ruby/1.6/soap/wsdlDriver.rb:81:in `p'
    from f:/devlab/ruby/lib/ruby/site_ruby/1.6/soap/wsdlDriver.rb:39:in
    `initialize'
    from wsdltest.rb:5:in `new'
    from wsdltest.rb:5


    I?m running 1.6.8 on W2K at the moment and I looked for a VERSION_MAJOR
    in REXML but the beast does not want to show itself.
    Any ideas ?
    V.-


    __________________________________________________ __________________
    [url]http://www.freemail.gr[/url] - δωρεάν υπηρεσία ηλεκτρονικού ταχυδρομείου.
    [url]http://www.freemail.gr[/url] - free email service for the Greek-speaking.

    Damphyr Guest

  2. #2

    Default Re: soap4r 1.4.8.1 with REXML 2.7.1 - no REXML::VERSION_MAJOR


    --vtzGhvizbBRQ85DL
    Content-Type: text/plain; cht=us-ascii
    Content-Disposition: inline

    On Wed 16 Jul 2003 at 17:29:40 +0900, Damphyr wrote:
    > I grabbed the latest soap4r and had a go with the wsdl driver, only to
    > come to an abrupt stop with the following
    >
    > site_ruby/1.6/wsdl/rexmlpr.rb:40:in `doP': uninitialized
    > constant VERSION_MAJOR at REXML (NameError)
    > from f:/devlab/ruby/lib/ruby/site_ruby/1.6/wsdl/pr.rb:85:in
    > `p'
    > from f:/devlab/ruby/lib/ruby/site_ruby/1.6/soap/wsdlDriver.rb:81:in
    > `p'
    > from f:/devlab/ruby/lib/ruby/site_ruby/1.6/soap/wsdlDriver.rb:39:in
    > `initialize'
    > from wsdltest.rb:5:in `new'
    > from wsdltest.rb:5
    >
    >
    > I?m running 1.6.8 on W2K at the moment and I looked for a VERSION_MAJOR
    > in REXML but the beast does not want to show itself.
    > Any ideas ?
    I had similar problems.

    Try the attached diff.

    Ian
    --
    Ian Macdonald | Radial Telemetry Infiltration
    System Administrator |
    [email]iancaliban.org[/email] |
    [url]http://www.caliban.org[/url] |
    |

    --vtzGhvizbBRQ85DL
    Content-Type: text/plain; cht=us-ascii
    Content-Disposition: attachment; filename="ruby-SOAP4R-1.4.8.1-REXML.diff"

    diff -uNr soap4r-1_4_8_1.orig/lib/soap/rexmlpr.rb soap4r-1_4_8_1/lib/soap/rexmlpr.rb
    --- soap4r-1_4_8_1.orig/lib/soap/rexmlpr.rb 2003-01-16 05:01:00.000000000 -0800
    +++ soap4r-1_4_8_1/lib/soap/rexmlpr.rb 2003-05-08 16:10:59.000000000 -0700
    -36,8 +36,10

    def doP( stringOrReadable )
    source = nil
    - if REXML::VERSION_MAJOR < 2 or
    - ( REXML::VERSION_MAJOR == 2 and REXML::VERSION_MINOR <= 4 )
    + version_major, version_minor =
    + REXML::Version.match(/(\d+)\.(\d+)/)[1,2].map! {|x| x.to_i}
    + if version_major < 2 or
    + ( version_major == 2 and version_minor <= 4 )
    source = if cht
    ::SOAP::Cht.codeConv( stringOrReadable, ::SOAP::Cht.getChtStr( cht ), 'UTF8' )
    else
    diff -uNr soap4r-1_4_8_1.orig/lib/wsdl/rexmlpr.rb soap4r-1_4_8_1/lib/wsdl/rexmlpr.rb
    --- soap4r-1_4_8_1.orig/lib/wsdl/rexmlpr.rb 2003-01-16 05:04:54.000000000 -0800
    +++ soap4r-1_4_8_1/lib/wsdl/rexmlpr.rb 2003-05-08 16:10:49.000000000 -0700
    -36,8 +36,10

    def doP( stringOrReadable )
    source = nil
    - if REXML::VERSION_MAJOR < 2 or
    - ( REXML::VERSION_MAJOR == 2 and REXML::VERSION_MINOR <= 4 )
    + version_major, version_minor =
    + REXML::Version.match(/(\d+)\.(\d+)/)[1,2].map! {|x| x.to_i}
    + if version_major < 2 or
    + ( version_major == 2 and version_minor <= 4 )
    source = if cht
    ::SOAP::Cht.codeConv( stringOrReadable, ::SOAP::Cht.getChtStr( cht ), 'UTF8' )
    else

    --vtzGhvizbBRQ85DL--

    Ian Macdonald Guest

  3. #3

    Default Re: soap4r 1.4.8.1 unknown attribute

    This is a multi-part message in MIME format.
    --------------000102010909000209030503
    Content-Type: text/plain; cht=us-ascii; format=flowed
    Content-Transfer-Encoding: 7bit

    OK, the patch for the version needs to be changed a bit:

    - version_major, version_minor =
    - REXML::Version.match(/(\d+)\.(\d+)/)[1,2].map! {|x| x.to_i}

    + version_major, version_minor =
    + /(\d+)\.(\d+)/.match(REXML::Version)[1,2].map! {|x| x.to_i}

    After that comes the following:

    "attr {}style"
    f:/devlab/ruby/lib/ruby/site_ruby/1.6/wsdl/soap/operation.rb:46:in
    `pAttr': Unknown attr {}style. (WSDL::WSDLPr::UnknownAttributeError)
    from f:/devlab/ruby/lib/ruby/site_ruby/1.6/wsdl/pr.rb:188:in
    `decodeTag'
    from f:/devlab/ruby/lib/ruby/site_ruby/1.6/wsdl/pr.rb:170:in `each'
    from f:/devlab/ruby/lib/ruby/site_ruby/1.6/wsdl/pr.rb:170:in
    `decodeTag'
    from f:/devlab/ruby/lib/ruby/site_ruby/1.6/wsdl/pr.rb:111:in
    `startElement'
    from f:/devlab/ruby/lib/ruby/site_ruby/1.6/wsdl/rexmlpr.rb:62:in
    `tag_start'
    from
    f:/devlab/ruby/lib/ruby/site_ruby/1.6/rexml/prs/streampr.rb:17:in
    `p'
    from f:/devlab/ruby/lib/ruby/site_ruby/1.6/rexml/doent.rb:166:in
    `p_stream'
    from f:/devlab/ruby/lib/ruby/site_ruby/1.6/wsdl/rexmlpr.rb:55:in
    `doP'
    from f:/devlab/ruby/lib/ruby/site_ruby/1.6/wsdl/pr.rb:85:in `p'
    from f:/devlab/ruby/lib/ruby/site_ruby/1.6/soap/wsdlDriver.rb:81:in `p'
    from f:/devlab/ruby/lib/ruby/site_ruby/1.6/soap/wsdlDriver.rb:39:in
    `initialize'
    from wsdltest.rb:5:in `new'
    from wsdltest.rb:5

    which probably means that not everything is supported by soap4r.
    I've been playing around with the .NET Web Sedrvice stuff, and the wsdl
    file I`m trying to p is attached.
    I'll dig in further, but it's going to take me a while
    :)
    V.-


    __________________________________________________ __________________
    [url]http://www.freemail.gr[/url] - δωρεάν υπηρεσία ηλεκτρονικού ταχυδρομείου.
    [url]http://www.freemail.gr[/url] - free email service for the Greek-speaking.
    --------------000102010909000209030503
    Content-Type: text/xml;
    name="KickerService.wsdl"
    Content-Transfer-Encoding: 7bit
    Content-Disposition: inline;
    filename="KickerService.wsdl"

    <?xml version="1.0" encoding="UTF-8"?>

    <definitions xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:s0="http://tempuri.org/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" targetNamespace="http://tempuri.org/" xmlns="http://schemas.xmlsoap.org/wsdl/">
    <types>
    <s:schema elementFormDefault="qualified" targetNamespace="http://tempuri.org/">
    <s:element name="GetTeams">
    <s:complexType/>
    </s:element>
    <s:element name="GetTeamsResponse">
    <s:complexType>
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="GetTeamsResult" type="s0:ArrayOfTeam"/>
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:complexType name="ArrayOfTeam">
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="unbounded" name="Team" nillable="true" type="s0:Team"/>
    </s:sequence>
    </s:complexType>
    <s:complexType name="Team">
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="Name" type="s:string"/>
    <s:element minOccurs="0" maxOccurs="1" name="OffensivePlayer" type="s:string"/>
    <s:element minOccurs="0" maxOccurs="1" name="DefensivePlayer" type="s:string"/>
    </s:sequence>
    </s:complexType>
    </s:schema>
    </types>
    <message name="GetTeamsSoapIn">
    <part name="parameters" element="s0:GetTeams"/>
    </message>
    <message name="GetTeamsSoapOut">
    <part name="parameters" element="s0:GetTeamsResponse"/>
    </message>
    <portType name="Service1Soap">
    <operation name="GetTeams">
    <input message="s0:GetTeamsSoapIn"/>
    <output message="s0:GetTeamsSoapOut"/>
    </operation>
    </portType>
    <binding name="Service1Soap" type="s0:Service1Soap">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="doent"/>
    <operation name="GetTeams">
    <soap:operation soapAction="http://tempuri.org/GetTeams" style="doent"/>
    <input>
    <soap:body use="literal"/>
    </input>
    <output>
    <soap:body use="literal"/>
    </output>
    </operation>
    </binding>
    <service name="Service1">
    <port name="Service1Soap" binding="s0:Service1Soap">
    <soap:address location="http://dfnnb019/Camp/KickerServiceDemo/Service1.asmx"/>
    </port>
    </service>
    </definitions>
    --------------000102010909000209030503--


    Damphyr Guest

Similar Threads

  1. rexml warning regexp ]
    By Kurt V. Hindenburg in forum Ruby
    Replies: 0
    Last Post: November 23rd, 07:16 AM
  2. rexml 2.5.8 warning
    By Kurt V. Hindenburg in forum Ruby
    Replies: 1
    Last Post: November 7th, 07:57 PM
  3. Error in REXML
    By Daniel Carrera in forum Ruby
    Replies: 2
    Last Post: October 27th, 11:41 PM
  4. rexml warnings
    By Ronald Pijnacker in forum Ruby
    Replies: 0
    Last Post: July 11th, 08:01 AM
  5. [REXML] PExtension
    By Sean Russell in forum Ruby
    Replies: 0
    Last Post: June 26th, 02:19 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139