NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Getting Error: HTTP/1.1 505 HTTP Version Not Supported.


Joined: 02 Oct 2003
Posts: 1
Location: none
Reply with quote
Hi I am getting the error...

HTTP/1.1 505 HTTP Version Not Supported.

... while trying to run the NuSoap Wizard. I am just trying out the software because of the SOAP features with NuSOAP. Am I missing some files? Do I need to set something else up? Could I be conflicting with something running on my system, I am running.

Laptop
512 RD RAM
64 MB Vid
Intel P4 2.2
Apache
Tomcat
Macromedia MX
View user's profileFind all posts by gpleeSend private messageAIM AddressYahoo MessengerMSN Messenger
Site Admin

Joined: 13 Jul 2003
Posts: 8342
Reply with quote
What's running as a soap on the server side ?
View user's profileFind all posts by dmitriSend private messageVisit poster's website
HTTP/1.1 505 HTTP Version Not Supported


Joined: 13 Apr 2004
Posts: 2
Reply with quote
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;
}
}
View user's profileFind all posts by peterlSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8342
Reply with quote
Quote:
HTTP/1.1 505 HTTP Version Not Supported

Check if your server supports HTTP/1.1.

Quote:
Another question is how to pass an object in a soap call

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.

Quote:
The call return null. Seems that i do not pass the values properly....

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.
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 13 Apr 2004
Posts: 2
Reply with quote
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
View user's profileFind all posts by peterlSend private message
Getting Error: HTTP/1.1 505 HTTP Version Not Supported.
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic