NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
NuSOAP with Flash


Joined: 31 May 2006
Posts: 3
Location: Atlanta, GA
Reply with quote
Has anyone successfully used NuSOAP+ComplexTypes+Flash before? I set up a NuSOAP service that has one complexType that is a struct, and another that is an array of that struct. These all work fine with a NuSOAP client (http://memist.com/hitorshit/client.php), but with Flash it is a different story.

In Flash I create the WebServiceConnector and make the soap call. This works fine for an echoString operation that takes and returns an xsd:string, but it seems to get confused when I call the operations that use complexTypes. When I get a result, I parse it into XML. Flash returns that it is an xml, but I can't traverse it or get any information about it.

Does this sound familiar to anyone?

Here are the ComplexTypes that I define:
Code:

$server->wsdl->addComplexType(
    'MediaItem',
    'complexType',
    'struct',
    'all',
    '',
    array(
   'id' => array('name'=>'page','type'=>'xsd:int'),
        'url' => array('name'=>'title','type'=>'xsd:string'),
        'title' => array('name'=>'title','type'=>'xsd:string'),
      'mediatype' => array('name'=>'title','type'=>'xsd:string'),
      'genre' => array('name'=>'title','type'=>'xsd:string'),
      'startTime' => array('name'=>'page','type'=>'xsd:int'),
      'playLength' => array('name'=>'page','type'=>'xsd:int'),
      'album' => array('name'=>'title','type'=>'xsd:string')
    )
);

$server->wsdl->addComplexType(
   'ArrayOfMediaItem',
   'complexType',
   'array',
   '',
   'SOAP-ENC:Array',
   array(),
   array(array('ref'=>'SOAP-ENC:arrayType','wsdl:arrayType'=>'MediaItem[]')),
   'MediaItem'
);
View user's profileFind all posts by jefftimestenSend private messageAIM Address
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
what it "gets confused" what does it actually say? Can you provide more details on the problem?
View user's profileFind all posts by dmitriSend private messageVisit poster's website
NuSOAP with Flash
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic