Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
passing arguments correctly?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  13 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Chris  
View profile  
 More options Mar 27 2006, 9:59 am
From: "Chris" <christopher.mcma...@gmail.com>
Date: Mon, 27 Mar 2006 14:59:50 -0000
Local: Mon, Mar 27 2006 9:59 am
Subject: passing arguments correctly?

Hi...
    With an updated Ruby and http-access2, I nearly have this working:
WSDL is parsed correctly, basic authentication is working.  Thanks!
    Is the following syntax correct to invoke a SOAP service called
"WebService" with 3 arguments that are strings?

soap = SOAP::WSDLDriverFactory.new(WSDL_URL).create_rpc_driver
soap.options["protocol.http.basic_auth"] <<
  [WSDL_URL, "user", "password"]
#soap.options["protocol.http.ssl_config.verify_mode"] = nil

result = soap.WebService('arg1','arg2','arg3')
puts result

What I find is that WebService is invoked, but the values that should
contain the arguments are empty.  I've also tried
("arg1","arg2","arg3") and
(["arg1","arg2","arg3"])
without success.  (Although I did get a "wrong number of arguments"
error when I tried the array, so *something* is reading the arguments.)

Any suggestions?
-Chris


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Emil Marceta  
View profile  
 More options Mar 27 2006, 11:46 am
From: "Emil Marceta" <emarc...@gmail.com>
Date: Mon, 27 Mar 2006 08:46:55 -0800
Local: Mon, Mar 27 2006 11:46 am
Subject: Re: passing arguments correctly?
On 3/27/06, Chris <christopher.mcma...@gmail.com> wrote:

Perhaps the service is document literal? The above invocation is for
rpc/encoded.

The document literal way would look like:
soap.WebService(:arg1 => 'value1',:arg2 => 'value2', :arg3 => 'value3')
but is really hard to tell without seein the wsdl.

cheers,
emil


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris  
View profile  
 More options Mar 27 2006, 1:15 pm
From: "Chris" <christopher.mcma...@gmail.com>
Date: Mon, 27 Mar 2006 18:15:03 -0000
Local: Mon, Mar 27 2006 1:15 pm
Subject: Re: passing arguments correctly?

>Perhaps the service is document literal? The above invocation is for
>rpc/encoded.

I tried the document literal way, but no dice.
The WSDL says

######################################
</wsdl:message>
                        <wsdl:message name='WebService'><wsdl:part name='FirstArg'
type='xsd:string'/><wsdl:part name='SecondArg'
type='xsd:string'/><wsdl:part name='ThirdArg' type='xsd:string'/>
                        </wsdl:message>
#####################################
<wsdl:input>
                                                                <soap:body use='encoded' namespace='fooapi'
encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/>
                                                        </wsdl:input>
####################################

Is 'encoded" different than 'rpc/encoded'?

Thanks Emil...
-Chris


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Emil Marceta  
View profile  
 More options Mar 27 2006, 1:22 pm
From: "Emil Marceta" <emarc...@gmail.com>
Date: Mon, 27 Mar 2006 10:22:48 -0800
Local: Mon, Mar 27 2006 1:22 pm
Subject: Re: passing arguments correctly?
On 3/27/06, Chris <christopher.mcma...@gmail.com> wrote:

The service looks as rpc / encoded. Could you post the whole wsdl?

I see that you use relative namespaces. Nothing to do with this
problem, but it is a good idea to avoid them if possible.

cheers,
emil
cheers,
emil


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris  
View profile  
 More options Mar 27 2006, 2:47 pm
From: "Chris" <christopher.mcma...@gmail.com>
Date: Mon, 27 Mar 2006 19:47:57 -0000
Local: Mon, Mar 27 2006 2:47 pm
Subject: Re: passing arguments correctly?

The whole WSDL is gigantic.  I wonder if the POST message would yield
any clues?

my code
###########
soap = SOAP::WSDLDriverFactory.new(WSDL_URL).create_rpc_driver
soap.options["protocol.http.basic_auth"] <<
  [WSDL_URL, "user", "password"]
result = soap.WebService('arg1','arg2','arg3')
############

sends this POST message to the service.   Note that the arg values are
empty.
#########################################
<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>
    <n1:WebService xmlns:n1="fooapi"
        env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
      <FirstArg xsi:nil="true"></FirstArg>
      <SecondArg xsi:nil="true"></SecondArg>
      <ThirdArg xsi:nil="true"></ThirdArg>
    </n1:WebService>
  </env:Body>
</env:Envelope>
##################################3
-Chris


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Emil Marceta  
View profile  
 More options Mar 27 2006, 3:03 pm
From: "Emil Marceta" <emarc...@gmail.com>
Date: Mon, 27 Mar 2006 12:03:52 -0800
Local: Mon, Mar 27 2006 3:03 pm
Subject: Re: passing arguments correctly?
On 3/27/06, Chris <christopher.mcma...@gmail.com> wrote:

> The whole WSDL is gigantic.  I wonder if the POST message would yield
> any clues?

Heh, with wsdls there is so many things that can go wrong.... few thoughts :

Post message shows that the binding operation name is the same as the
message name. Can't tell of top of my head if this hurts, but it is not how
it is usually done. Try renaming the message to say 'WebServiceIn'. Don't
forget ot update references in operations. Also try renaming the
relative namespace
to 'http://fooapi'.

cheers,
emil


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris  
View profile  
 More options Mar 27 2006, 3:31 pm
From: "Chris" <christopher.mcma...@gmail.com>
Date: Mon, 27 Mar 2006 20:31:34 -0000
Local: Mon, Mar 27 2006 3:31 pm
Subject: Re: passing arguments correctly?
So it sounds as if my overall syntax is (or should be) correct.

What's really frustrating is that the equivalent Perl code

use SOAP::Lite ;
my $USER = 'user';
my $PASS = 'password';
my $WSDL = 'http://localhost/soap/wsdl';
my $SOAP = SOAP::Lite -> service($WSDL);
 my $result = $SOAP->WebService('arg1','arg2','arg3');

is working just fine.
But I'd rather use Ruby.  I'll think on this some more.  
-Chris


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Emil Marceta  
View profile  
 More options Mar 27 2006, 4:06 pm
From: "Emil Marceta" <emarc...@gmail.com>
Date: Mon, 27 Mar 2006 13:06:07 -0800
Local: Mon, Mar 27 2006 4:06 pm
Subject: Re: passing arguments correctly?
On 3/27/06, Chris <christopher.mcma...@gmail.com> wrote:

> So it sounds as if my overall syntax is (or should be) correct.

> What's really frustrating is that the equivalent Perl code

> use SOAP::Lite ;
> my $USER = 'user';
> my $PASS = 'password';
> my $WSDL = 'http://localhost/soap/wsdl';
> my $SOAP = SOAP::Lite -> service($WSDL);
>  my $result = $SOAP->WebService('arg1','arg2','arg3');

> is working just fine.

I see. So there are bugs probably.

The wsdl would help to construct the failing test that needs to
be fixed.

Another thing you might try is to use wsdl2ruby and see what
comes out of it too.

cheers,
emil


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris  
View profile  
 More options Mar 27 2006, 5:02 pm
From: "Chris" <christopher.mcma...@gmail.com>
Date: Mon, 27 Mar 2006 22:02:35 -0000
Local: Mon, Mar 27 2006 5:02 pm
Subject: Re: passing arguments correctly?

Here's the WSDL (brace yourself!)
I've been trying to use the "CreateSingleMember" service

<?xml version='1.0' encoding='utf-8'?>
                <wsdl:definitions name='lmapi'
                  targetNamespace='http://www.lyris.com/lmapi'
                  xmlns='http://schemas.xmlsoap.org/wsdl/'
                  xmlns:wsdl='http://schemas.xmlsoap.org/wsdl/'
                  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:xsd='http://www.w3.org/2001/XMLSchema'
                  xmlns:s0='http://www.lyris.com/lmapi'
                  xmlns:SOAP-ENC='http://schemas.xmlsoap.org/soap/encoding/'
                  xmlns:mime='http://schemas.xmlsoap.org/wsdl/mime/'>

<wsdl:types>
  <xs:schema
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    targetNamespace="http://www.lyris.com/lmapi">

        <!--added import namespaces so WSDL.exe (.NET) does not complain-->
        <s:import namespace="http://schemas.xmlsoap.org/soap/encoding/" />
        <s:import namespace="http://schemas.xmlsoap.org/wsdl/" />

<xs:complexType name="ArrayOfSimpleMemberStruct">
         <xs:complexContent mixed="false">
                  <xs:restriction base="SOAP-ENC:Array">
                                <xs:attribute wsdl:arrayType="s0:SimpleMemberStruct[]"
ref="SOAP-ENC:arrayType"  />
                  </xs:restriction>
         </xs:complexContent>
</xs:complexType>

<xs:complexType name="SimpleMailingStruct">
  <xs:all>

    <xs:element minOccurs="0" maxOccurs="1" type="xsd:string"
nillable="true" name="Subject"/>
    <xs:element minOccurs="0" maxOccurs="1" type="xsd:boolean"
nillable="true" name="IsHtmlSectionEncoded"/>
    <xs:element minOccurs="0" maxOccurs="1" type="xsd:int"
nillable="true" name="HtmlSectionEncoding"/>
    <xs:element minOccurs="0" maxOccurs="1" type="xsd:string"
nillable="true" name="HtmlMessage"/>
    <xs:element minOccurs="0" maxOccurs="1" type="xsd:string"
nillable="true" name="To"/>
    <xs:element minOccurs="0" maxOccurs="1" type="xsd:int"
nillable="true" name="CharSetID"/>
    <xs:element minOccurs="0" maxOccurs="1" type="xsd:boolean"
nillable="true" name="IsTextSectionEncoded"/>
    <xs:element minOccurs="0" maxOccurs="1" type="xsd:int"
nillable="true" name="TextSectionEncoding"/>
    <xs:element minOccurs="0" maxOccurs="1" type="xsd:string"
nillable="true" name="Title"/>
    <xs:element minOccurs="0" maxOccurs="1" type="xsd:string"
nillable="true" name="TextMessage"/>
    <xs:element minOccurs="0" maxOccurs="1" type="xsd:string"
nillable="true" name="Attachments"/>
    <xs:element minOccurs="0" maxOccurs="1" type="xsd:string"
nillable="true" name="From"/>
    <xs:element minOccurs="0" maxOccurs="1" type="xsd:string"
nillable="true" name="AdditionalHeaders"/>
  </xs:all>
</xs:complexType>

<xs:complexType name="ContentStruct">
  <xs:all>

    <xs:element minOccurs="0" maxOccurs="1" type="xsd:string"
nillable="true" name="HeaderTo"/>
    <xs:element minOccurs="0" maxOccurs="1" type="xsd:boolean"
nillable="true" name="IsTemplate"/>
    <xs:element minOccurs="0" maxOccurs="1" type="s0:DocTypeEnum"
nillable="true" name="DocType"/>
    <xs:element minOccurs="0" maxOccurs="1" type="xsd:int"
nillable="true" name="ContentID"/>
    <xs:element minOccurs="0" maxOccurs="1" type="xsd:string"
nillable="true" name="Description"/>
    <xs:element minOccurs="0" maxOccurs="1" type="xsd:string"
nillable="true" name="NativeTitle"/>
    <xs:element minOccurs="0" maxOccurs="1" type="xsd:string"
nillable="true" name="HeaderFrom"/>
    <xs:element minOccurs="0" maxOccurs="1" type="xsd:string"
nillable="true" name="Title"/>
    <xs:element minOccurs="0" maxOccurs="1" type="xsd:boolean"
nillable="true" name="IsReadOnly"/>
    <xs:element minOccurs="0" maxOccurs="1" type="xsd:date"
nillable="true" name="DateCreated"/>
  </xs:all>
</xs:complexType>

<xs:complexType name="UrlTrackingStruct">
  <xs:all>

    <xs:element minOccurs="0" maxOccurs="1" type="xsd:string"
nillable="true" name="UniqueOpens"/>
    <xs:element minOccurs="0" maxOccurs="1" type="xsd:string"
nillable="true" name="Opens"/>
    <xs:element minOccurs="0" maxOccurs="1" type="xsd:string"
nillable="true" name="Url"/>
  </xs:all>
</xs:complexType>

<xs:complexType name="ArrayOfCharSetStruct">
         <xs:complexContent mixed="false">
                  <xs:restriction base="SOAP-ENC:Array">
                                <xs:attribute wsdl:arrayType="s0:CharSetStruct[]"
ref="SOAP-ENC:arrayType"  />
                  </xs:restriction>
         </xs:complexContent>
</xs:complexType>

<xs:simpleType name="ListTypeEnum">
  <xs:restriction base="xsd:string">

                        <xs:enumeration value="marketing"/>
                        <xs:enumeration value="announcements-moderated"/>
                        <xs:enumeration value="discussion-moderated"/>
                        <xs:enumeration value="discussion-unmoderated"/>
  </xs:restriction>
</xs:simpleType>

<xs:complexType name="ArrayOfKeyValueType">
         <xs:complexContent mixed="false">
                  <xs:restriction base="SOAP-ENC:Array">
                                <xs:attribute wsdl:arrayType="s0:KeyValueType[]"
ref="SOAP-ENC:arrayType"  />
                  </xs:restriction>
         </xs:complexContent>
</xs:complexType>

<xs:complexType name="ArrayOfListStruct">
         <xs:complexContent mixed="false">
                  <xs:restriction base="SOAP-ENC:Array">
                                <xs:attribute wsdl:arrayType="s0:ListStruct[]"
ref="SOAP-ENC:arrayType"  />
                  </xs:restriction>
         </xs:complexContent>
</xs:complexType>

<xs:simpleType name="MriVisibilityEnum">
  <xs:restriction base="xsd:string">

                        <xs:enumeration value="V"/>
                        <xs:enumeration value="H"/>
                        <xs:enumeration value="I"/>
  </xs:restriction>
</xs:simpleType>

<xs:simpleType name="MemberStatusEnum">
  <xs:restriction base="xsd:string">

                        <xs:enumeration value="normal"/>
                        <xs:enumeration value="member"/>
                        <xs:enumeration value="confirm"/>
                        <xs:enumeration value="private"/>
                        <xs:enumeration value="expired"/>
                        <xs:enumeration value="held"/>
                        <xs:enumeration value="unsub"/>
                        <xs:enumeration value="referred"/>
                        <xs:enumeration value="needs-confirm"/>
                        <xs:enumeration value="needs-hello"/>
                        <xs:enumeration value="needs-goodbye"/>
  </xs:restriction>
</xs:simpleType>

<xs:complexType name="ArrayOfMailingStruct">
         <xs:complexContent mixed="false">
                  <xs:restriction base="SOAP-ENC:Array">
                                <xs:attribute wsdl:arrayType="s0:MailingStruct[]"
ref="SOAP-ENC:arrayType"  />
                  </xs:restriction>
         </xs:complexContent>
</xs:complexType>

<xs:simpleType name="MessageTypeEnum">
  <xs:restriction base="xsd:string">

                        <xs:enumeration value="confirm"/>
                        <xs:enumeration value="hello"/>
                        <xs:enumeration value="goodbye"/>
                        <xs:enumeration value="held"/>
                        <xs:enumeration value="private"/>
                        <xs:enumeration value="delivery"/>
  </xs:restriction>
</xs:simpleType>

<xs:complexType name="MemberStruct">
  <xs:all>

    <xs:element minOccurs="0" maxOccurs="1" type="xsd:string"
nillable="true" name="Additional"/>
    <xs:element minOccurs="0" maxOccurs="1" type="s0:MemberKindEnum"
nillable="true" name="MembershipKind"/>
    <xs:element minOccurs="0" maxOccurs="1" type="xsd:boolean"
nillable="true" name="ApprovalNeeded"/>
    <xs:element minOccurs="0" maxOccurs="1" type="xsd:string"
nillable="true" name="Password"/>
    <xs:element minOccurs="0" maxOccurs="1" type="xsd:boolean"
nillable="true" name="NotifyError"/>
    <xs:element minOccurs="0" maxOccurs="1" type="xsd:dateTime"
nillable="true" name="ExpireDate"/>
    <xs:element minOccurs="0" maxOccurs="1" type="xsd:string"
nillable="true" name="Comment"/>
    <xs:element minOccurs="0" maxOccurs="1" type="xsd:string"
nillable="true" name="UserID"/>
    <xs:element minOccurs="0" maxOccurs="1" type="xsd:boolean"
nillable="true" name="ReadsHtml"/>
    <xs:element minOccurs="0" maxOccurs="1" type="xsd:boolean"
nillable="true" name="ReceiveAdminEmail"/>
    <xs:element minOccurs="0" maxOccurs="1" type="s0:MailFormatEnum"
nillable="true" name="MailFormat"/>
    <xs:element minOccurs="0" maxOccurs="1" type="xsd:dateTime"
nillable="true" name="DateConfirm"/>
    <xs:element minOccurs="0" maxOccurs="1" type="xsd:integer"
nillable="true" name="NumberOfBounces"/>
    <xs:element minOccurs="0" maxOccurs="1" type="xsd:integer"
nillable="true" name="NumApprovalsNeeded"/>
    <xs:element minOccurs="0" maxOccurs="1" type="xsd:boolean"
nillable="true" name="NotifySubmission"/>
    <xs:element minOccurs="0" maxOccurs="1" type="xsd:boolean"
nillable="true" name="NoRepro"/>
    <xs:element minOccurs="0" maxOccurs="1" type="xsd:integer"
nillable="true" name="MemberID"/>
    <xs:element minOccurs="0" maxOccurs="1"
type="s0:ArrayOfDemographics" nillable="true" name="Demographics"/>
    <xs:element minOccurs="0" maxOccurs="1" type="xsd:string"
nillable="true" name="EmailAddress"/>
    <xs:element minOccurs="0" maxOccurs="1" type="xsd:dateTime"
nillable="true" name="DateJoined"/>
    <xs:element minOccurs="0" maxOccurs="1" type="xsd:boolean"
nillable="true" name="IsListAdmin"/>
    <xs:element minOccurs="0" maxOccurs="1" type="xsd:boolean"
nillable="true" name="ReceiveAcknowlegment"/>
    <xs:element minOccurs="0" maxOccurs="1" type="xsd:dateTime"
nillable="true" name="DateBounce"/>
    <xs:element minOccurs="0" maxOccurs="1" type="xsd:dateTime"
nillable="true" name="DateHeld"/>
    <xs:element minOccurs="0" maxOccurs="1" type="s0:MemberStatusEnum"
nillable="true" name="MemberStatus"/>
    <xs:element minOccurs="0" maxOccurs="1" type="xsd:string"
nillable="true" name="FullName"/>
    <xs:element minOccurs="0" maxOccurs="1" type="xsd:boolean"
nillable="true" name="CanApprovePending"/>
    <xs:element minOccurs="0" maxOccurs="1" type="xsd:boolean"
nillable="true" name="CleanAuto"/>
    <xs:element minOccurs="0" maxOccurs="1" type="xsd:string"
nillable="true" name="ListName"/>
    <xs:element minOccurs="0" maxOccurs="1" type="xsd:dateTime"
nillable="true" name="DateUnsubscribed"/>
  </xs:all>
</xs:complexType>

<xs:complexType name="CharSetStruct">
  <xs:all>

    <xs:element minOccurs="0" maxOccurs="1" type="xsd:string"
nillable="true" name="Description"/>
    <xs:element minOccurs="0" maxOccurs="1" type="xsd:string"
nillable="true" name="Name"/>
    <xs:element minOccurs="0"
...

read more »


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Emil Marceta  
View profile  
 More options Mar 27 2006, 6:14 pm
From: "Emil Marceta" <emarc...@gmail.com>
Date: Mon, 27 Mar 2006 15:14:18 -0800
Local: Mon, Mar 27 2006 6:14 pm
Subject: Re: passing arguments correctly?
On 3/27/06, Chris <christopher.mcma...@gmail.com> wrote:

> Here's the WSDL (brace yourself!)

Wow, monster !

> I've been trying to use the "CreateSingleMember" service

Here is what I'm seing  on the wire:
--------------------
<?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>
    <n1:CreateSingleMember xmlns:n1="lmapi"
        env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
      <EmailAddress xsi:type="xsd:string">f...@acme.org</EmailAddress>
      <FullName xsi:type="xsd:string">Fred Bunky</FullName>
      <ListName xsi:type="xsd:string">Fred</ListName>
    </n1:CreateSingleMember>
  </env:Body>
</env:Envelope>

That looks correct ...
------------------------

And here is the client :

---------------------
require 'soap/wsdlDriver'

email = (ARGV.shift || 'f...@acme.org')
full_name = (ARGV.shift || 'Fred Bunky')
list_name = (ARGV.shift || 'Fred')

SERVICE_WSDL = 'lmapi.wsdl'

# Load WSDL and create driver.
svc = SOAP::WSDLDriverFactory.new(SERVICE_WSDL).create_rpc_driver
svc.wiredump_dev = STDOUT

puts svc.createSingleMember(email, full_name, list_name)
--------------------

The result message was also OK.

<?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>
    <n1:CreateSingleMemberResponse xmlns:n1="lmapi"
        env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
      <return xsi:type="xsd:int">13</return>
    </n1:CreateSingleMemberResponse>
  </env:Body>
</env:Envelope>

-----------------------

Here is what I have done.

I have created the service with wsdl2Ruby.

wsdl2Ruby --type wsdl lmapi.wsdl --type server

I had to do few minor mods to the wsdl before that (but I don't think
they are relevant to the error).

- I had to update the service name (wsdl2Ruby takes the service name
as the name of the server script and that collides with the existing
script. (That is not the cause of the error
though)

I have updated the service url, to reflect what port the Ruby server
starts on, so that the
WsdlDriverFactory picks it up.

So the service section looks like this:

<wsdl:service name='lmapiService'>
                 <wsdl:documentation>Lyris lmapi. A SOAP 1.1 interface to Lyris
Listmanager</wsdl:documentation>
                 <wsdl:port name='lmapiSoap' binding='s0:lmapiSoap'>
                               <soap:address location='http://localhost:10080'/>

       </wsdl:port>
        </wsdl:service>

At this point, I'm thinking that maybe there is something with your
environment. Are you runnig the latest soap4r bundle from
http://dev.ctor.org/download/ ?

cheers,
emil


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris  
View profile  
 More options Mar 27 2006, 8:01 pm
From: "Chris" <christopher.mcma...@gmail.com>
Date: Tue, 28 Mar 2006 01:01:32 -0000
Local: Mon, Mar 27 2006 8:01 pm
Subject: Re: passing arguments correctly?

>At this point, I'm thinking that maybe there is something with your
>environment. Are you runnig the latest soap4r bundle from
>http://dev.ctor.org/download/ ?

That did the job.  Everything works perfectly now.  I installed the
latest soap4r-20051204.tar.gz  and everything works exactly right.  I
didn't realize there was a version later than the version in the most
recent Ruby Windows installer (ruby184-16p3.exe)

Thank you *very* much for the help.  Let me know if there's anything I
can do to help get all the critical pieces into the core Ruby distro
(on Windows).
-Chris


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris  
View profile  
 More options Mar 27 2006, 10:19 pm
From: "Chris" <christopher.mcma...@gmail.com>
Date: Tue, 28 Mar 2006 03:19:17 -0000
Local: Mon, Mar 27 2006 10:19 pm
Subject: Re: passing arguments correctly?
(Although I am still getting an error message

ignored attr: {}mixed

it doesn't seem to affect my ability to use the API.)
-Chris


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Emil Marceta  
View profile  
 More options Mar 27 2006, 10:56 pm
From: "Emil Marceta" <emarc...@gmail.com>
Date: Mon, 27 Mar 2006 19:56:07 -0800
Local: Mon, Mar 27 2006 10:56 pm
Subject: Re: passing arguments correctly?
On 3/27/06, Chris <christopher.mcma...@gmail.com> wrote:

> (Although I am still getting an error message

> ignored attr: {}mixed

Yeah, I've seen that too. It is set to false and it should not affect
you.
The 'mixed' attribute defines whether character data is permitted
between child elements or not. Some SOAP stacks were using
this to indicate different ways of serializing /deserializing arrays.

cheers,
emil


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google