http://www.perlmonks.org?node_id=774361


in reply to SOAP::Lite - Problem with non-string parameters

That is a limitation of stubmaker, it can't deal with complex types. See SOAP::Data::ComplexType
  • Comment on Re: SOAP::Lite - Problem with non-string parameters

Replies are listed 'Best First'.
Re^2: SOAP::Lite - Problem with non-string parameters
by loris (Hermit) on Jul 02, 2009 at 12:52 UTC

    Dear A.M.,

    I am still trying to understand what is going on here.

    Do I have to use SOAP::Data::ComplexType? As I understand, the problem is that the types ns:WsQueryFilter and ns:WsSubjectLookup are not known. I would have thought that I could "just" define the unknown types. I have tried doing something like

    parameters => [ SOAP::Data->new(name => 'clientVersion', type => 'xs:string', at +tr => {}), SOAP::Data->new(name => 'wsQueryFilter', type => \SOAP::Data->value( SOAP::Data->name(name => 'gro +upAttributeName', type =>'xs:string'), ... ) , attr => {} ), SOAP::Data->new(name => 'actAsSubjectLookup', type => 'ns:WsSubj +ectLookup', attr => {}), SOAP::Data->new(name => 'includeGroupDetail', type => 'xs:string +', attr => {}), SOAP::Data->new(name => 'params', type => 'ns:WsParam', attr => +{}), ], # end parameters

    but this gives me the error

    Schema/namespace for type 'REF(0x2728f88)' is not specified

    Should I be defining the type somewhere else? If so, how? As I mentioned, my lack of SOAP knowledge is probably making this harder for me than it should be.

    Thanks,

    loris