NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Apache SOAP namespace?


Joined: 21 Nov 2005
Posts: 1
Location: London, UK
Reply with quote
I'm using the Apache namespace Map complex type liek so:

Code:
      
$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:
Code:

<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!
View user's profileFind all posts by CpILLSend private messageAIM AddressMSN MessengerICQ Number
Site Admin

Joined: 13 Jul 2003
Posts: 8334
Reply with quote
I'd check what's returned by $this->getNameSpace()

Also you may want to take a look at this sample:
http://www.scottnichol.com/nusoapprog.htm
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Apache SOAP namespace?
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