Quick Search


Tibetan singing bowl music,sound healing, remove negative energy.

528hz solfreggio music -  Attract Wealth and Abundance, Manifest Money and Increase Luck



 
Your forum announcement here!

  Free Advertising Forums | Free Advertising Board | Post Free Ads Forum | Free Advertising Forums Directory | Best Free Advertising Methods | Advertising Forums > Free Advertising Forums Directory > General Free Advertising Directories

General Free Advertising Directories This is a list of general free advertising directories.

Reply
 
Thread Tools Search this Thread Display Modes
Old 06-10-2011, 04:47 PM   #1
H3066vhxe
 
Posts: n/a
Default The use of soap nusoap

The use of soap nusoap

today do not know why this thing reminds soap,Supra Trinity NS Shoes, and then get out, in php using the nusoap. The use of some basic, mysterious trouble yourself to read manual to download the software
http://dietrich.ganx4.com/nusoap Now I will add in the annex.

talk about this thing, I used to think this thing can complete the cross-domain login, but today that seems to fail to achieve,
can be applied in anybody area in the end, but too at a loss, would favor to know where Application friend pointing, thank you!

specific about the principle of soap, I do not what to say, ambition to know your online on your own, the http protocol is essentially the application of xml.
start with the comprehension of the afterward principle of this thing, basically to bring a apply to the server to implement a function on the server sprinting, and then get the return value.
value, I feel should be a string or array, or integer value, should not use the thing.

a fundamental look at the use of quite simple
This is soap_server.php file that can be detect on the web to
[php]
include_once (/ nusoap.php ;
,
), / / ​​input parameters
array (
, / / ​​namespace
br> =. $ name. )? $ HTTP_RAW_POST_DATA :to a sheet, according to thinking of that sheet, there ambition be a magnificent crop,
client-side use
along to the on this namely the soap _client.php
[php]
include_once (/ nusoap.php > ? must be joined in front of the wsdl for a file server
$ client = new soapclient (the difference among space
$ return = $ client-> call ('hello', $ para, return);
[/ php]

above is a very basic use, I would like to say, but more

to see a more perplexing following the use of
[php]
require_once ('../../ lib / nusoap.php ');
/ / get the return value is an array returned
feature validate ($ userName, $ randomNum)

$ temp ['userName'] = $ userName;
$ temp ['randomNum'] = $ randomNum;
return $ temp;

/ / set this to be a get method But this time discovered a problem, to a later
function reanimate ($ refresh_userName, $ refresh_randomNum)

$ temp ['userName '] = $ userName;
$ temp [' randomNum '] = $ randomNum;
; return $ temp;


function logout ($ logout_userName) / / log the user name (logged out)
{
$ flag = $ logout_userName;

if ($ logout_userName == ;
$ flag = -1;


return $ flag;
}

$ soap = new soap_server ();
/ / parameter of a service name, that is, the file server
/ / the second parameter, name space
$ soap-> configureWSDL ('AuthorityServicewsdl', 'urn: AuthorityServicewsdl');
/ / parameter space
$ soap-> wsdl-> ; schemaTargetNamespace = 'urn: AuthorityServicewsdl';
/ / basically the same as above with the incipient, but we memorandum that when you announce a change in
/ / The following is to set a return of the array type
/ / parameter of a for your own file type named
/ / parameter b, merged type, and leave
/ / parameters III. For the structure, or array (array)
/ / parameter d, according to what sort, there are three alternatives always (all) | series (array) | choice (choice)
/ / parameter V, the elementary constraint
/ / Note: we do not change the above 5
/ / parameter 6, the maximum major parameters, that is, the type we return to the corresponding
/ / return the array subscript => array ('name' = > -> wsdl-> addComplexType ('userInfo', 'complexType',Supra TK Society Shoes, 'struct', 'all','',Supra Bullet Shoes,
array (
'userName' => array ('name' => 'userName', 'type' => 'xsd: string'),
'randomNum' => array ('name' => 'randomNum', 'type '=>' xsd: string ')
;)
);

/ / Here is the registration function
/ / parameter of a function name
/ / the second parameter is the prepossessing parameters of this function, note that the specified type
/ / parameters of the three, the return value, not necessarily the name of non-call return, call the additional can, disburse attention to the return type,
/ / I return to my own meaning here is the type tns: userInfo If the basic type xsd: string like this
/ / other parameters, as long as the uniform on it, particularly in the name space with soapaction
$ soap-> register ('validate', ; ; ; ; ; ; ; / / method name
array ('userName' => 'xsd: string', 'randomNum '=>' xsd: string '), / / ​​input parameters
/ / array (' return '= > 'xsd: string'), ; / / output parameters
array ('return' => 'tns: userInfo'),
'urn: AuthorityServicewsdl', ; ; / / namespace
'urn: AuthorityServicewsdl # validate', ; / / soapaction
'rpc', ; ; ; / / style
'encoded', ; ; ; / / use
'verify the consumer name and random number' ; ; / / documentation
);

$ soap-> register ('refresh '/ / method name
; array ('refresh_userName' => 'xsd: string', 'refresh_randomNum' => 'xsd: string'), / / ​​input parameters
/ / array ('return' => 'xsd: string'),// output parameters
; array ('return' => 'tns: userInfo'),Supra Footwear,
'urn: AuthorityServicewsdl',Supra Cruizer Shoes, ; ; ; ; ; ; / / namespace
'urn: AuthorityServicewsdl # refresh', ; ; ; ; ; / / soapaction
'rpc', ; ; ; ; ; ; ; ; ; / / style
; 'encoded', ; ; ; ; ; ; ; ; / / use
; 'time and place' ; ; ; ; ; ; ; ; / / documentation
) ;

$ soap-> register ('logout',/ / usage name
array ('logout_userName' => 'xsd: string'),/ / input parameters
; array ('return' => 'xsd: int'),/ / output parameters
'urn: AuthorityServicewsdl',Supra Muska Skytop Shoes, ; ; ; ; ; ; / / namespace
' urn: AuthorityServicewsdl # logout ', ; ; ; ; / / soapaction
'rpc', ; ; ; ; ; ; ; ; ; / / style
'encoded', ; ; ; ; ; ; ; ; ; / / use
'log out' ; ; ; ; ; ; ; ; ; / / documentation
);
/ / we may contrast the variable $ HTTP_RAW_POST_DATA mistrust, we do not define, how come it
/ / I also have this motif, but I looked under the handbook annotated that usually is the value of $ HTTP_RAW_POST_DATA
/ / so we do not leave it to this Use it
$ soap-> service ($ HTTP_RAW_POST_DATA);
[/ php]

we watch next client to use
[php]
require_once ('.. / .. / lib / nusoap.php ');

$ consumer = fashionable soapclient (' http://localhost/nusoap/samples/server/AuthorityService.php?wsdl ', true);
$ err = $ client-> getError ();

$ username = => $ username, 'randomNum' => $ randomnum);
$ reversed = $ client-> cry ('validate', $ params1); / / This is the return value
/ / echo ; up the value
> $ refresh_randomnum = refresh ', $ params1);
/ / reverberate br> $ logout_username = ;
echo $ reversed;
[/ php]
this Needless to mention, a look ought comprehend is the order returned at the output of the
I use print_r on this feature, I said that under I did experiment
first method I use to set the next set a public variable, the time while made with a get, is blank
specification of each is to establish a new access so the value is not maintained
Test 2, I used to set the value of the cake, when the get method, not made
Description: No trouble understand why
Test 3, the use of sessiin due time in the get method, neither made the value of
Note, although, did not trouble to understand
made to obtain the merit of file or database linkage is no problem, that is, you can obtain the value of fixed-media, file or database

tin do this thing in the end do no truly clear, I think I can complete the convey of 2 alter languages, such as php and asp and jsp loss of interaction
Maybe some folk, and I lost a gratitude here, soap returns a flow, all can be accustom as a txt flow to treat,
made using the socket.
aboard nusoap use on here, and I am not going to get its specific principles, and be able to use ample! So there is no code to do analysis of nusoap of

: Triple Stone
mail: sanshi0815@tom.com
  Reply With Quote

Sponsored Links
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT. The time now is 07:39 PM.

 

Powered by vBulletin Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Free Advertising Forums | Free Advertising Message Boards | Post Free Ads Forum