How To Create Wsdl File
how can I create wsdl file for soap server what do I need to define.
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
WSDL
I am having a hard time trying to find the way to work with WSDL with PHP. I am working in one company that is interested in connecting the telephone system and their intranet using PHP. After some weeks working with the Intranet (designing and developing one LDAP directory) I have been requested to focus on the other task (phone+intranet). I have received on wdsl file like this: Code:
WSDL Question
For the lasts day I have been fighting with PHP, and WSDL calls to a thrid party provider. Here is what the call needs to look like: <SOAP-ENV:Body> <ns1:ModifyOrganizationRequest > <ns1:accountIdentifier> <ns1:account>root</ns1:account > </ns1:accountIdentifier> <ns1:orgID>IperiaTestOrg</ns1: orgID>...
Php -> Wsdl (soap) ?
I want to use some php-functions in my Visual Basic 6 program. I want to do this by using SOAP. For that I already downloaded the MS SOAP Toolkit 2.0 SP 2. But I need a WSDL-file of my php-file to use these functions. How do I create it? Where do i find information about that? For example this easy function: PHP Code:
Wsdl And Soap
I'm currently reading about web services, wsdl and soap. how is it implemented? is nusoap installed on the server can create web services itself? or do i need to install wsdl...
Can Php Create A New Txt File?
I'm trying to build an e-card page for a client using php, but they don't want to use a mySQL database, so I was wondering if PHP can create new text files when someone enters their information into a form and then the recipient gets an email with that txt file reference in a link and can then go to a page that populates with that particular text. Does it sound like I'm on the right path?
Can't Create New File
I have a small PHP script that will convert text into vcard format and write it to a new .vcf file (plain text). To write, I've used PHP Code:
WSDL Generation - Nusoap
Anyone successfuly done wsdl generation in nusoap? If so, how? If you could show me some commented source? That example on the nusoap website is not working for me.
New To Webservices, Wsdl And Nusoap
I have access to the following web service but always retreive the same error:- Array ( [faultcode] =soapenv:Server.userException [faultstring] =se.brodit.ws.InvalidUserException [detail] =Array ( [hostname] =webserver ) ) This is the following code (taken from numerous examples) // Pull in the NuSOAP code require_once('nusoap/nusoap.php'); $serverpath ='http://www.brodit.se/' $wsdl = $serverpath . 'Brodit/wsdl/WebService.wsdl' $param = array( 'userId' ='xxxxxxxx' ); // Create the client instance $client = new soapclient($wsdl, true); // Check for an error $err = $client->getError(); if ($err) { // Display the error echo '<h2>Constructor error</h2><pre>' . $err . '</pre>' // At this point, you know the call that follows will fail } // Call the SOAP method $result = $client->call('getBrandtypes', $param); // Check for a fault if ($client->fault) { echo '<h2>Fault</h2><pre>' print_r($result); echo '</pre>' } else { // Check for errors $err = $client->getError(); if ($err) { // Display the error echo '<h2>Error</h2><pre>' . $err . '</pre>' } else { // Display the result echo '<h2>Result</h2><pre>' print_r($result); echo '</pre>' } }
SOAP (witout Using WSDL)
I am doing a project at the minute, requiring me to communicate with a (poorly documented) custom designed server (with 1000's of lines of code in it). It doesn't make use of WSDL - however I believe the structure of the SOAP XML Data to be as follows: Code:
PHP5 Consume Web Service Without Wsdl
I need to consume a web service written in Perl but there is no wsdl file for this service. The perl soap client that can call and consume this web service looks like this (if it helps) #!perl -w use SOAP::Lite +trace => "debug"; print SOAP::Lite ->uri("urn:WebServices") ->proxy("http://example.com") ->SomeMethodName('param1', 'param2') ->result; How can this be translated in to something that is easily used in PHP5? There is no wsdl file describing the web service above.
Cannot Create File When Uploading
Hi. I use this script to upload file (taken by Zend.com website) This works locally, but when i upload to server i get an error. script... //$campofile is the file field filled before in a form... $archive_dir = "../folder1"; $filename = basename($campofile_name); $filesize = basename($campofile_size); $filetype = basename($campofile_type); if($campofile!='') { if(!copy($campofile,"$archive_dir/$filename")) echo "Error: $filename could not be uploaded."."<br>"; } After executing that script i get this error:
Create A Csv File On-the-fly For Downloading
I have a large database-created table on a page, that needs to have a "download as csv file" link (actually, as xcel, but I'll bet that's much harder to create). What's the simplest way to do that? Do I actually delete-and-recreate a csv file on the server every time?
Cannot Upload And Create File
I've written this script to upload files to my server, and if the file being uploaded is an image file, a thumbnail is automatically created along with it. But right now, after you select the file, and hit upload, you are brought to a blank screen. I check the directories, and the files are not uploaded. Everything LOOKS right, I just don't know what's wrong. PHP Code:
How Do I Create An Url That Downloads An Mp3 File?
i want to write a script that lets me create a url that downloads an mp3 file like this: http://domain.com/songs.php?m=killerfx and have that goto this file http://domain.com/music/abc.mp3 this is what I have so far, could someone help me with the missing part? <?php $m = $_GET['m']; $file = 'music/'.$m.'.mp3';?>
Create Downloadable Xml File
I need to make a downloadable xml google sitemap based off of mysql data. What fuctions would I use. I assume I would be using fopen to write it, but how do I make it downloadable. I don't want there to be a copy of it on the server (permissions wouldn't allow it anyway), I just want people to hit a button, generate the file, and download it.
PHP5 + Soap Extension + WSDL Mode
I'm trying use a webservice with PHP5 soap extension in WSDL mode. I generated the php classes using wsdl2php. The problem is that 'auth' member of loginRequest (witch is a complex type) dosen't get serialized. The 'version' member witch is decimal is being serialized and sent to the server. I am doing something wrong ? full source code, including generated php classes........
PHP Dynamic Server Side WSDL Issue
We have a dynamic WSDL file that is generated for each account on our system. Each account has custom fields so therefore we need a custom wsdl per account. We are using Soap Headers to authenticate the customer. But on the server side we use something like: $server = new SoapServer("xxxxx.wsdl");...
Create A Table Regarding A Text File
I have this .txt file : Roger|tow25$rank259 Isabelle|tow36$rank24 Pascal|tow12$rank29 Sergeï|tow45$rank5 Michel|tow1245$rank45478 Frédéric|tow1$rank125425 And this programm php3 <?php $fichier = "classeur.txt"; if($fp = fopen($fichier,"r")){ $ligne=1; echo "<table border=1 bordercolor="#00CCFF" width=500> "; echo "<tr align=center><td colspan=3>TITRE</td>"; while (!feof($fp)) { list( $name, $tampon ) = explode( "|tow", $fp ); list( $tow, $obj ) = explode ( "$rank", $tampon ); echo " <tr>"; echo "<td align=center><b>Nom".$name."</b></td><td>Tow".$tow."</td><td>Obj".$obj."</td[color=blue] >";[/color] echo "</tr> "; $ligne++; echo "</table> "; echo "$cell"; fclose($fp); }else{ echo "Error : open impossible ".$fichier; exit(); } ?> I would like to past each value of the lines in the tex file, in 3 variables $nom; $tow; $obj and create a table with 3 column ( column 1 the name, in 2 the tow, and in 3 the obj)
Script To Create Html File
I'm looking for a php script that will look in my images folder and for each image in there, create an html file named <imagename>.html and store it in a folder called "pages". I currently use the code inserted below that scans my image folder, creates an xml file that contains a list of the images and the my Flash image gallery reads the xml file to create the gallery. but I would rather do it by the method I'm requesting above and get away from flash. Any ideas? Even if there's a way to modify the code below to do what I want, that would be great. Code:
Can A Excel Client Call A Nusoap Server Without WSDL?
I am using the nusoap client and nusoap server without any problem. However, once I change the client to the excel, I am not sure how to call the nusoap server. Especially the nusoap server only generate the a SOAP message as follow instead of a WSDL file. So, my question is 1.) Can I use excel or .Net as a client to call the nusoap server? 2.) If I can, how should I call it in the excel client side? I am using the follow sentence to call when using the nusoapcleint. $price = $client->call('lookup',$param,$namespace); //THE XML request send to SERVER from Client. <?xml version="1.0" encoding="ISO-8859-1"?> <SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:si="http://soapinterop.org/xsd"> <SOAP-ENV:Body> <ns1:lookup xmlns:ns1="urn:xmethods-BNPriceCheck"> <isbn xsi:type="xsd:string">111</isbn> </ns1:lookup> </SOAP-ENV:Body> </SOAP-ENV:Envelope> //The XML result return by SERVER to Client. <?xml version="1.0" encoding="ISO-8859-1"?> <SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:si="http://soapinterop.org/xsd"> <SOAP-ENV:Body> <ns1:lookupResponse xmlns:ns1="urn:xmethods-BNPriceCheck"> <return> <price xsi:type="xsd:string">11</price> <detail xsi:type="xsd:string">the 111 book</detail> </return> </ns1:lookupResponse> </SOAP-ENV:Body> </SOAP-ENV:Envelope>
Create Db Firebird With Php, Exec Does Not Want To Execute A File .bat
I am trying to create db firebird with php, script php generates and executes a file .bat . the file .bat creates db using isql in c:firebirdin, but .bat does not create db when is called by php script, but the file .bat if it works when it is executed from MSDOS, creates db correctly, the question is ¿why the file .bat creates the data base when it is executed by MSDOS but it does not work when is executed by exec in php script? as php script can execute .bat to create db? PHP Code:
How Do You Create A New Line Each Time A File Is Written To?
I am trying to write user submitted information to a file, and I am having a little problem. Here is my code: <?php import_request_variables($_POST, "FirstName"); $file=(/fname.dat'); $f=fopen($file,'a'); fwrite($f,$FirstName); fclose($f);?> Each time the file gets written to, the info is just tacked right after the last character from the previous entry. How can I get this to write each entry on a seperate line?
PHP Script To Create MySQL DB From A Dump FIle
I just need to write a script that will read a dump file and just create the tables, ect. as specified from it. If anyone has a link or some simple code for this that would be great. Didn't think about this till i had done it, but i have the mysql create commands over multiple lines, so I can't just use: while (list($lineNum, $line) = each($dumpFile)) { mysql_query($line);}
Using Fopen() To Create New File - Works For A Few Then Just Doesnt
I am currently working on a content management system where a user can fill in a form (title, keywords, link text etc. - all the initial attibutes), which when submitted, will go onto create a web page. The code is as follows: $html = "<html> <body> <p>Hello World</p> </body> <html>"; $handle = fopen($_SERVER['DOCUMENT_ROOT']."/path/to/folder/".$filename, "w"); fwrite($handle, $html); fclose($handle); Pretty basic, I think. I works for a few and then it just stops. I get no error to say that 'could not create file' or 'file not found', it just submits. Any reason for this? I have tried searching the C: drive for the file but it cannot be found. At the moment Im trying to figure out when it actually occurs but for some annoying reason, it seems to be working now. I would prefer to be assured that it wont occur again so just thought I would still post something here just encase this problem is a known one. Is fopen() the best solution for creating files? I was aware that it was used to open an existing file but create one (?). Is this what it was intended to do? Im sure it is, but its new to me.
Create A Search Result On A File Directory
I am working on a project where I need to take a variable from a form, then match that variable against a directory list and return a modified list of files available that are clickable. I have created the form - (easy part) and I have found coding that pulls the directory list. I am having trouble finding information on how to take that directory list a sort the results based only on the keyword that was typed in.
Read Off An Uploaded File Name To Create A Link?
I want to read an uploaded filename, say "mypic.jpg" to create a link to this image without having to ask the users to enter the filename "mypic.jpg" when uploading it. My upload code works file but it's not on the same page. I'm working on my "index.php" page and included the upload.php page "<?php include("upload.php"); ?>" in it. Here's the sample of my code in the upload.php page (the code for the form is separate and not included here): Code:
Upload File And Create Directory For Each User?
I just saw an interesting thread, for uploading files - but my problem is just to add a directory for each user, the user name are stored in session variable sess_uname? I am not sure how do i check if the directory is already exists for the logged user. if directory exists than i i just want to move the file to that directory otherwise create directory with the name as sess_uname and store the file. Code:
PHP5, Win2003, Create Any File Or Folder On The Server
If I create any file or folder on the server and run the php file it works with no problem. As soon as I copy a website from another server onto this one none of the php code works and the browser only shows the actual php code. Is there a permission I need to set? I have never had this problem...
Need To Create Drop Down Box With Data Pulled From Text File
Trying to make a drop down box like this example: Dog Cat Bird But sometimes I will need to update it...and add/remove names from the list. I want to do it fast and easy and I don't want to use a MySQL Database. I'd rather use a text file...can that be done? I would keep the info in a text file and then push it to a drop down box via php and html.
Passing Variable Amount Of Complex Types To WSDL SOAP Webservice?
i have a problem using a .NET WSDL Webservice from PHP. Using both the NuSOAP lib for PHP4, and the build-in SOAP lib for PHP5 it seems that the SOAP client cannot pass a variable amount of complex datatypes to the WSDL webservice. This is the request-structure we've been using: <EzCreateAuctionArray xmlns=http://www.blabla.com> <mySewInfo> <UserToken>string</UserToken> <UserID>string</UserID> <EnvironmentID>int</EnvironmentID> </mySewInfo> <theColl> <SimpleItemType> <Title>string</Title> <Subtitle>string</Subtitle> <Description>string</Description> </SimpleItemType> <SimpleItemType> <Title>string</Title> <Subtitle>string</Subtitle> <Description>string</Description> </SimpleItemType> </theColl> </EzCreateAuctionArray> as you can see this structure is setup to accept a variable amount of <SimpleItemType> datastructures. When setting up the correct data in PHP i am using associative arrays and this works fine. The problem is that the associative index-key needs to be exactly the same as the item-name in the WSDL request structure. So if i f.e. use "theColtest123" instead of "theColl" the request cannot be created correctly as there isn't a match between the WSDL and my input data structure. This is not really a problem, but it becomes one when i want to add multiple items of the "SimpleItemType". It's impossible to add more than 1 of these to an associative array because the key has to be unique. And by using other key-names the WSDL structure is not the same anymore, so the request isn't passed. Can anyone tell me if there is a way to pass a variable amount of complex datatypes from within PHP to a WSDL SOAP webservice?
Can I Create .exe File Of My .php File
is there any way using which i can create .exe file of my php files. actually i am putting my php files on a web server and i don't want my files to be copied and modified by someone else/even not by administrator of web server. if i am putting php files then administrator has right to copy file and he may modify it as per his requirements.. if i put exe file then he can't modify file.
Create Rss Xml
I'm currently working on creating the xml feed since I had data ready in my database after web data extraction. However, it has errors for this line: <xml version="1.0" encoding="ISO-8859-1"> I was unable to solve this. <html> <head> <title>MMU RSS FEED</title> </head> <body> header("Content-type: application/xml"); <xml version="1.0" encoding="ISO-8859-1"> <rss version ="2.0"> <channel> <title>MMU RSS FEED Today: <?php echo date("D, d-M-Y H:i:s")?></ title> <link>http://bulletin.mmu.edu.my/</link> <description>MMU RSS FEED</description> <ttl>60<ttl> <?php //connect to database $db = mysql_connect("localhost", "root", "") or die(mysql_error()); mysql_select_db("bulletin", $db) or die(mysql_error()); $day = date("Y-n-j"); //select queries $sql = "SELECT * FROM `bul_data` WHERE `DATE` LIKE '{$day}%' ORDER by `DEPARTMENT`"; echo "sql=".$sql; $res = mysql_query($sql) or die(mysql_error()); if(mysql_num_rows($res)>0) { while($row=mysql_fetch_assoc($res)) { $date = $row['DATE']; $title = $row['TITLE']; $department = $row['DEPARTMENT']; $link = $row['LINK']; //output to browser echo "<item>"; echo "<title>$title</title>"; echo "<category>$department</category>"; echo "<link><a href="$link">$link</a></link>"; echo "</item>"; } echo "</table>"; } ?> </channel> </rss> </body> </html>
Create Php.ini
The support of hosting contracted indicates that I must create a file php.ini in the folder wwwroot/in which I indicate the new directors for the values of upload_max_size, memory_limit, post_max_size, max_input_time, max_execution_time to me which I need. Using the function ini_set. The truth I have proven of many forms and it does not manage to do it if somebody knows to use this function or similar configuration I thank for them.
Create Directories On The Fly...
Just curious to know is it possible to create directories on the fly? What I have done is created a script when you can add categories and subcategories, but what I would like to do is create a directory physcially within that category. For instance using the mkdir command using linux. In a way traversing through and creating a directory. An example would be: If I created a category called business and econony then it would display this in the address bar. http://www.domain.com/Business_and_Economy Then perhaps under Business and Economy, a category called Accounting, then it would display the following: http://www.domain.com/Business_and_Economy/Accounting/ Hopefully I'm making some sense here. Heres the code: function maketree($rootcatid,$level) { $sql="select catid,cat_name from quiz_category where parentid=$rootcatid order by cat_name"; $result=mysql_query($sql); while (list($DBcatid,$DBcatname)=mysql_fetch_row($result)) { $width=($level+1)*24; $display="<img src=http://www.domain.com/spacer.gif border=0 width=$width height=12>"; if ($DBcatid==1) { $display.="<input type="radio" name="quest_type" value=$DBcatid checked>"; } else { $display.="<input type="radio" name="quest_type" value=$DBcatid>"; } $display.="$DBcatname<br> "; echo $display; maketree($DBcatid,$level+1); } } if ($submit=='Add New Category') { if ($new_cat!='') { mysql_query("insert into quiz_category (parentid,cat_name) values ($quest_type,'$new_cat')"); # need to create directory here echo "<br><br><center><b>New category entered</b></center>"; } else echo "<br><br><center><b>New category name must be entered</b></center>"; }
Using Php To Create .htaccess
if you have a form with two variables, USER and PASS, how do you encode them to the format for a .htaccess password protection file?
Cannot Create A URL With Two Variables
I wish to create a url with two variables from data passed from a previous page. If I allocate text to the variables on the page, like $linkaddress = (񟡂'); $clientsemail = ('olympic@mechan.freeserve.com'); the full correct URL is echoed back thus http://www.morgle.com/mymorglemailer.php?mylinkaddress=1234&calledemailaddress=olympic@mechan.freeserve.com However, if I try and create the URL with the variables posted from the previous page , the URL is truncated after the first variable thus http://www.morgle.com/mymorglemailer.php?mylinkaddress=1234 I know the variables being posted from the previous page contain data because I have echoed them back seperately ok.
Create A Timestamp
I have a date YYYY/MM/DD and a houte HH:MM and want to create a timestamp from it. The date is easy but how do I add the time?
|