request returning object with single row result when should be object with several rows

unclek's picture
I'm calling an Axis2 webservice and am passing in the proper request object, but am only getting a single row of results back in the response. This is with classmap turned off. With class_map turned on, I still get the single response, but it is returned as a WSFUnknownSchemaConstruct Object rather than the object its supposed to be returned as. Any ideas? MaxRows is set to 15. This method works fine calling it from SoapUI.
dimuthuc's picture

Hi, WSFUnknownSchemaConstruct

Hi, WSFUnknownSchemaConstruct is returned when the schema is not understood by wsf/php. Can you please send us the wsdl, so we can check what s wrong there? Thanks Dimuthu
unclek's picture

WSDL sent.

Hi Dimuthu, I've sent you the wsdl via email. Wasn't sure if it was appropriate to email. Thanks.
unclek's picture

Still encountering this

Still encountering this issue. Any ideas?
dimuthuc's picture

Hi, The problem is elements

Hi, The problem is elements who are forms by references in most of the time has anonymous types (no name types), So it create an object of UnknownSchema class. But you can access and set its attribute using '->'. So in the use you don't feel any difference. Anyway still this can be fixed by giving these class the name of its element (when the type is anonymous), Can you please raise a Jira on this in wso2.org/jira (in the project 'wsf/php'). If possible please attach your wsdl there Thanks Dimuthu
kamesh09's picture

Same issue as me

Hello, I'm not sure i understand your last comment. We are receiving the same problem: object(WSFUnknownSchemaConstruct) The type that is not being understood is defined in the WSDL as: <xsd:complexType name="skuElement"> <xsd:all> <xsd:element name="sku" type="xsd:string"> <xsd:annotation> <xsd:documentation>This is the SKU reference of the product</xsd:documentation> <xsd:documentation>Required for all except VendaSearchProduct</xsd:documentation> </xsd:annotation> </xsd:element> <xsd:element name="name" type="xsd:string" minOccurs="0"> <xsd:annotation> <xsd:documentation>This is the title of the product</xsd:documentation> <xsd:documentation>Required for VendaCreateProduct</xsd:documentation> </xsd:annotation> </xsd:element> and so on Is there something wrong with how we've defined the element in the WSDL? Thanks!