H
haakon tullerusk
Hi!
I used wsdl2ruby to generate classes and methods.
But I have a broblem with one of the methods and its arguments
method in driver.rb:
class EndUserIdentifier
@@schema_type = "EndUserIdentifier"
@@schema_ns = "http://www.csapi.org/schema/parlayx/common/v1_0"
@@schema_element = [["value", ["SOAP::SOAPAnyURI", XSD::QName.new(nil,
"value")]]]
attr_accessor :value
def initialize(value = nil)
@value = value
end
end
_______________________________________________________________
method in defaltDriver.rb
Methods = [
[ XSD::QName.new("http://www.csapi.org/wsdl/parlayx/sms/v1.0",
"sendSms"),
"",
"sendSms",
[ ["in", "destinationAddressSet", ["EndUserIdentifier[]",
"http://www.csapi.org/schema/parlayx/common/v1_0",
"EndUserIdentifier"]],
["in", "senderName", ["::SOAP::SOAPString"]],
["in", "charging", ["::SOAP::SOAPString"]],
["in", "message", ["::SOAP::SOAPString"]],
["retval", "result", ["::SOAP::SOAPString"]] ],
{ :request_style => :rpc, :request_use => :encoded,
:response_style => :rpc, :response_use => :encoded }
],
____________________________________________________
this is my client.rb file
smswsdl = 'http://x.x.x.x/parlayx/services/SendSmsPort'
obj2 = SendSmsPort.new(smswsdl)
#sendSms (EndUserIdentifier[] destinationAddressSet, String senderName,
String charging, String message, out String requestIdentifier)
smsId =(???, 'some_nr', 'some_string', 'some_message')
)
I want to run the sendSms method but I get error from the server
#<SOAP::Mapping::Object:0x2bf6868>: java.lang.IllegalArgumentException:
java.lan
g.ClassCastException@d8a125 (SOAP::FaultError)
How to I create a new EndUserIdentifier object?
Any help will be greatly appreciated.
--haakon
I used wsdl2ruby to generate classes and methods.
But I have a broblem with one of the methods and its arguments
method in driver.rb:
class EndUserIdentifier
@@schema_type = "EndUserIdentifier"
@@schema_ns = "http://www.csapi.org/schema/parlayx/common/v1_0"
@@schema_element = [["value", ["SOAP::SOAPAnyURI", XSD::QName.new(nil,
"value")]]]
attr_accessor :value
def initialize(value = nil)
@value = value
end
end
_______________________________________________________________
method in defaltDriver.rb
Methods = [
[ XSD::QName.new("http://www.csapi.org/wsdl/parlayx/sms/v1.0",
"sendSms"),
"",
"sendSms",
[ ["in", "destinationAddressSet", ["EndUserIdentifier[]",
"http://www.csapi.org/schema/parlayx/common/v1_0",
"EndUserIdentifier"]],
["in", "senderName", ["::SOAP::SOAPString"]],
["in", "charging", ["::SOAP::SOAPString"]],
["in", "message", ["::SOAP::SOAPString"]],
["retval", "result", ["::SOAP::SOAPString"]] ],
{ :request_style => :rpc, :request_use => :encoded,
:response_style => :rpc, :response_use => :encoded }
],
____________________________________________________
this is my client.rb file
smswsdl = 'http://x.x.x.x/parlayx/services/SendSmsPort'
obj2 = SendSmsPort.new(smswsdl)
#sendSms (EndUserIdentifier[] destinationAddressSet, String senderName,
String charging, String message, out String requestIdentifier)
smsId =(???, 'some_nr', 'some_string', 'some_message')
)
I want to run the sendSms method but I get error from the server
#<SOAP::Mapping::Object:0x2bf6868>: java.lang.IllegalArgumentException:
java.lan
g.ClassCastException@d8a125 (SOAP::FaultError)
How to I create a new EndUserIdentifier object?
Any help will be greatly appreciated.
--haakon