Getting Error: HTTP/1.1 505 HTTP Version Not Supported. |
Site Admin
|
What's running as a soap on the server side ?
|
||||||||||||
|
HTTP/1.1 505 HTTP Version Not Supported |
|
Hi
I just downloaded phped 3.3 for testing a php client againts a J2EE EJB webservice. Installing the trial versin and running the nusoap wizard i run in the same problem "HTTP/1.1 505 HTTP Version Not Supported". Does the wizard only work with a registered version? I use JBoss as webserver. Another question is how to pass an object in a soap call I have the following class (see below) and i try to call the Webservice with the following: $user = new User(); $user -> setName("Peter"); $user -> setAddress("my address"); $param = array($user ); $result = $soapclient -> call('anotherHello', $param); The call return null. Seems that i do not pass the values properly.... Thanks Peter class User{ var $name; var $address; function setName($nm){ $this->name = $nm; } function getName(){ return $this -> name; } function setAddress($ad){ $this->address = $ad; } function getAddress(){ return $this -> address; } } |
||||||||||||
|
Site Admin
|
Check if your server supports HTTP/1.1.
Normally, you can't pass an instance to the remote location because many things have their sense on the local to object computer only. For example, if you open a DB connection and store it in one of the object's properties, such things can't be passed through soap. As with plain things like strings, arrays, numbers etc., you can pass them in a structure and pass as an associative array. In this case, you'd create WSDL on the server end (jBoss) then generate code using nusoap wizard.
That's right. You've passed an instance of class... Something like this array('name'=>$user->name, 'address'=>$user->address); will work if you properly define input arguments in WSDL. |
||||||||||||||||||
|
|
Hi,
I got both issues solved! I played around with the project properties and once i defined an FTP connection all of a sudden i could connect (the NUSoap wizard started to work). Maybe an idea for the manual to point out clearly how to set up a project in PHPed? Great tool otherwise! Thanks Peter |
||||||||||||
|
Getting Error: HTTP/1.1 505 HTTP Version Not Supported. |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by