xsd - Using the any schema element in wsdl with PHP SoapServer -


I can not seem to work with my SSSD element in my wsdl using PHP Sorchers. According to everything I have read and see how some other companies implement "loose type" wsdls should be enough to obtain and send record information.

  & lt; Complex type name = "record" & gt; & Lt; Sequence & gt; & Lt; Any name space = "## target namespace" minOccurs = "0" maxOccurs = "unbounded" process = "loose" /> & Lt; / Sequence & gt; & Lt; / ComplexType & gt;   

Unfortunately, it seems that the PHP Sopers class removes those elements which are not strictly defined. What I found is Request Records on Records Records and sends blank records to the reclaim / filter requests, although the field clearly exists before dealing with the SOAP server.

If I specifically define those fields that are lost in this way ..

  & lt; Complex type name = "record" & gt; & Lt; Sequence & gt; & Lt; Element name = "FirstName" type = "xsd: string" minOccurs = "0" /> & Lt; Element name = "LastName" type = "xsd: string" minOccurs = "0" /> & Lt; Any name space = "## target namespace" minOccurs = "0" maxOccurs = "unbounded" process = "loose" /> & Lt; / Sequence & gt; & Lt; / ComplexType & gt;   

Then all are well and those fields are passed from / to the client. Am I forgetting something? I have tried all namespace options ## any, ## local, etc. and process communication options. I just want to send / return an additional field of record, whether or not they expand in the schema.

You will need to use the simpler object in your return item that you pass in soap reaction in your case The object that has been returned should look like this.

  $ recordObject = new stdClass; $ Record Object-> Prop1 = 'prop1'; $ Record Object-> Prop 2 = 'prop 2'; $ SoapReturnObject = New Easy ($ Record Object, SOAP_ENC_OBJECT);   

See also:

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -