proxy->operation ( $payload_structure) doesn't appear to create payload correctly

jodunni1's picture

Greetings all, I'm using WSClient in WSDL mode. I've run wsdl2php on the wsdl in question and the include works fine (file attached).

I create the client (I have my client wrapped up inside another object just to take care of some setup housekeeping types of things):

 

$this->client = new WSClient( array (      'wsdl'          => $this->local_wsdl_file,

'policy'        => $this->WSPolicy,

                                                                                'securityToken' => $this->UsernameToken,

                                                                                'classmap'      => $this->class_map,

                                                                                )

                                                                );

$this->proxy = $this->client->getProxy();

I then create the data structure and call the proxy:

$operation = "CI_MESSAGE_CATALOG_CI_G";

$struct = new Get__CompIntfc__MESSAGE_CATALOG_CI;

$struct->MESSAGE_SET_NBR = 3;

$response = $this->proxy->$operation ( $struct );

The call runs but the target server returns an unexpected error and after tracing the traffic it appears that MESSAGE_SET_NBR is being set to nil rather than to 3 prior to the data being sent. 

I set the log level to debug and attached the pertinent wsf_php_client.log snippet. 

 

Help please!!  J  Thanks.

AttachmentSize
wsf_php_client.log_.txt3.1 KB
CI_MESSAGE_CATALOG_CI.1.php_.txt9.53 KB
nandika's picture

Re

Can you attach your wsdl ?
jodunni1's picture

WSDL attached....

WSDL attached....
jodunni1's picture

Did you get a chance to look at this?

Still having this issue and unfortunately it seems to be applying to all of my WSDL generated from PS :( Thanks for the input!! JD
library project main code
Learn Cloud
Learn
Cloud

The WSO2 Application Server is a reliable application server that can host your enterprise web applications. The WSO2 Application Server as a Service is offered in StratosLive, the WSO2 Platform as a Service. This article explains how a simple web application can be developed and deployed from Carbon Studio to the WSO2 Application Server...

Latest Webinar
Different groups within an organization need to monitor different Key Performance Indicators (KPIs) - An operations team will be interested in the response times of business services and loads of each service,..
Thursday, February 9th 2012, 09.00 AM (PST)

Thursday, February 9th 2012, 10.00 AM (GMT)