From: Jared Moody Date: 2007-12-21T11:55:00+09:00 Subject: soap wsdl envelope I'm having some trouble getting my SOAP envelope to do what I want and need a little tip. I can't get the SubscriberCustomField nodes to be anything but blank: Here's what I want it to look like: string string string string comments Hello World Here's what I'm getting: string string string string And here's my code require 'soap/wsdlDriver' require 'cgi' @url = "http://#{site_name}.createsend.com/api/api.asmx?wsdl" @service = SOAP::WSDLDriverFactory.new(@url).create_rpc_driver str = "" #custom_fields = "commentshello world" #custom_fields = [{:SubscriberCustomField => {:Key => "comments", :Value => "hello world"}}] #custom_fields = [{:Key => "comments", :Value => "hello world"}] #custom_fields = [:comments => "hello world"] custom_fields = {:SubscriberCustomField => {:Key => "comments", :Value => "hello world"}} @service.wiredump_dev = str @service.AddSubscriberWithCustomFields({:ApiKey=>@api_key, :ListID=>list_id, :Email=>email, :Name=>name, :CustomFields => custom_fields}) puts str The commented custom_fields variables are things I've tried with the same result. Thanks in advance for the help. -- Posted via http://www.ruby-forum.com/.