I'm using the Apache namespace Map complex type liek so:
$this->_server->register(
'MonitoringServer.getProfile',
array('customerId' => 'xsd:int'),
array('return' => 'apachesoap:Map'),
$this->getNameSpace()
);
|
The problem is that the WSDL isn't declaring the Apache SOAP namespace which mean that JBoss is complaining on the WSDL and I have to manually go in and add:
<schema targetNamespace="http://xml.apache.org/xml-soap"
xmlns="http://www.w3.org/2001/XMLSchema">
<import
namespace="http://schemas.xmlsoap.org/soap/encoding/" />
<complexType name="mapItem">
<sequence>
<element name="key" nillable="true"
type="xsd:string" />
<element name="value" nillable="true"
type="xsd:string" />
</sequence>
</complexType>
<complexType name="Map">
<sequence>
<element maxOccurs="unbounded" minOccurs="0"
name="item" type="apachesoap:mapItem" />
</sequence>
</complexType>
</schema>
|
every time I change the interface to my functions. Its kind of a drag. I looked at the nusoap.php code and can't figure it out. I know there is some way to trigger the nusoap into including the Apache SOAP namespace in the WSDL for me but can't for the life of me figure it out.
It mentions in the 1.89 relise notes:
Quote: |
- wsdl: add namespace for Apache SOAP types if a variable of such type is
serialized |
HELP!