I have the following definitions inside my WSDL
<wsdl:types>
<xs:schema targetNamespace="http://tryme.limes2.dev/interface/interface/schemas/types" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:l2="http://tryme.local.dev/interface/interface/schemas/types">
<xs:element name="AuthDataResponse">
<xs:annotation>
<xs:documentation>The response for authorization requests.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:all>
<xs:element ref="l2:SuccessResponse" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>Success result.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="token" type="xs:string" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>The token required for all actions.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:all>
</xs:complexType>
</xs:element>
<xs:element name="SuccessResponse">
<xs:complexType>
<xs:all>
<xs:element name="message" type="xs:string" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>The message returned by the server.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="success" type="xs:boolean" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>Success result.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:all>
</xs:complexType>
</xs:element>
...
(WSDL is generated by IBM Enterprise Architect)
Zend_Soap_Server is running in WSDL mode and accepts input. I have written a small PHP function that is supposed to require an AuthDataRequest and return an AuthDataResponse Object, with a token (string) and SuccessResponse Object.
The response i get from the Server is:
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://tryme.local.dev/interface/interface/schemas/types">
<SOAP-ENV:Body>
<ns1:AuthDataResponse>
<SuccessResponse>
<message/>
<success>true</success>
</SuccessResponse>
<token>xVzSFnC5LmqJ4sNG</token>
</ns1:AuthDataResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Which fails SoapUIs Schema Compliance test, because it gives SuccessResponse and not ns1:SuccessResponse. What exactly is going wrong here? Do you need any additional information?
Kind regards, tim3trick