Problem receiving result from Microsoft Soap toolkit server |
Site Admin
|
Check namespace for the arguments when you call the methods.
|
||||||||||||
|
|
i did check the namespace in the wsdl file and the parameters being passed in are correct. Not sure if on the server end since they are using the Microsoft toolkit if there are any interoperablity problems.
|
||||||||||||
|
Site Admin
|
hmm, server side can be checked with the MS tools.
|
||||||||||||
|
|
yeah, wish it would be that easy..but the server side is not owned by me its by one of our clients!! So i would like to be able to remedy the issues on the client side without having to mess on the server side if necessary!! I tried a simple example creating a sample client using Microsoft Soap Toolkit 3.0 and I was able to retrieve the information that I wanted. However, using Nusoap to retrieve the data from the serverside has been an issue.
|
||||||||||||
|
Site Admin
|
well.
finally, what's the trouble? Does it return a kind of fault or error message or whatever? |
||||||||||||
|
|
It seems the server just sends back a string saying 'Invalid User'...which im assuming since the parameters require you to send username and password that the arguments are not being captured correctly by the server end.
|
||||||||||||
|
Site Admin
|
huh, a soap server should never send anything like this. Check if you work with soap server at all.
|
||||||||||||
|
|
I am working with a soap server...the reason im receiving this string is because the parameters im sending including a username and password...it seems that the way there server is receiving the data is incorrect...so there's probably code on the server in to just send this string if unable to connect!
|
||||||||||||
|
Site Admin
|
Do you know what authentication scheme is used on the server?
NuSoap supports only HTTP/Basic. |
||||||||||||
|
|
I have resolved the issue on this thread by just using the getProxy function.
I have listed the code below. // Define needed parameters and put them in an array.. $parameters = array( 'v_state' => 'NJ', 'v_city' => 'Haledon', ); // Define new object and specify location of wsdl file. $soapclient = new soapclient('http://myserver',true); $proxy = $soapclient->getProxy(); $err = $soapclient->getError(); if ($err) { // Display the error $answer = 'Constructor error ' . $err; } else { // call the method and get the result. /* $result = $soapclient->call('GetData',$parameters,'http://myserver');*/ $result = $proxy->GetData($parameters); // Display the request and response echo '<h2>Request</h2>'; echo '<pre>' . htmlspecialchars($proxy->request, ENT_QUOTES) . '</pre>'; echo '<h2>Response</h2>'; echo '<pre>' . htmlspecialchars($proxy->response, ENT_QUOTES) . '</pre>'; Using getProxy solved my issue, however this caused another issue. The above code works fine when I am running it from my home server. However, when I try to use the same code on my work machine server I am getting some weird error: Parse error: parse error, unexpected T_STRING in /home/oracle/infr/lib/php/nusoap.php(6983) : eval()'d code on line 1 Fatal error: Cannot instantiate non-existent class: soap_proxy_484983192 in /home/oracle/infr/lib/php/nusoap.php(6985) : eval()'d code on line 1 im not sure why this error is occuring since i am using the same php classes as my server machine at home. I will repost this in a new thread. Has anyone run into any issues using the getProxy function? |
||||||||||||
|
Site Admin
|
it looks like you have quite a different php version.
BTW, did you try to wrap parameters into an additional array() when you worked without getProxy()? As I remember it helped me in some cases. |
||||||||||||
|
Problem receiving result from Microsoft Soap toolkit server |
|
||
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