NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Nesting/Embedding xsd:* types serveral layers deep.


Joined: 21 Aug 2009
Posts: 2
Reply with quote
Hello,

I am trying to nest/embed a supplied xml schema into a WSDL Server I'm busy trying to define.

It looks like this:

... (deleted since I've decided to use PHP 5 SOAP extensions instead)


I tried several things but nothing works. e.g. I tried embedding the addSimpleType function call within the appropriate place of the addComplexType function call.

Here is what I have now.

### AmazonEnvelope
$server->wsdl->start_element($server->wsdl->parser, 'AmazonEnvelope');
$server->wsdl->addComplexType(
'',
'complexType',
'struct',
'sequence',
'',
array(
'Header' => array('ref' => 'Header'),
'MessageType' => array('name' => 'MessageType'),
'MarketplaceName' => array('ref' => 'MarketplaceName', 'minOccurs' => '0'),
'PurgeAndReplace' => array('name' => 'PurgeAndReplace', 'type' => 'xsd:boolean', 'minOccurs' => '0'),
'EffectiveDate' => array('name' => 'EffectiveDate', 'type' => 'xsd:dateTime', 'minOccurs' => '0'),
'Message' => array('name' => 'Message', 'type' => 'xsd:complexType', 'maxOccurs' => 'unbounded')
)
);
$server->wsdl->addSimpleType(
'',
'xsd:string',
'simpleType',
'scalar',
array(
'FulfillmentCenter',
'Inventory',
'Listings',
'OrderAcknowledgement',
'OrderAdjustment',
'OrderFulfillment',
'Override',
'Price',
'ProcessingReport',
'Product',
'ProductImage',
'Relationship',
'SettlementReport'
)
);
$server->wsdl->end_element($server->wsdl->parser, 'AmazonEnvelope');


Is it possible to use nuSOAP for such XML schema definitions as I have? Is it that I have made a simple mistake. Could you advise me as to how to do this please?

Thank you very much.

Ciao,
Soapy

Embarassed


Last edited by soapsuds on Fri Aug 28, 2009 2:10 pm; edited 2 times in total
View user's profileFind all posts by soapsudsSend private message
Nesting/Embedding xsd:* types serveral layers deep.
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