Re: Get values from wsdl:types

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Thank you very much. I think i found a solution for my problem by watching
how it works wsdl2php.

ciao,
George 

RQuadling wrote:
> 
> On 13 September 2011 22:40, boulouk <bouloukg@yahoo.com> wrote:
>>
>> Ok i'm really wearing but use this plugin.
>>
>> I have installed php 5.3.5 version with php_soap enabled.
>>
>> in this example:
>>
>> http://www.webservicex.net/genericbarcode.asmx?WSDL
> 
> http://pastebin.com/xuvAssGS
> http://pastebin.com/HTZT0sXy
> 
> These are from wsdl2php - converts a WSDL file into a simple, usable
> class - no need to worry about XML or SOAP handling beyond normal OOP
> techniques.
> 
> And the code I use from my WSDL testing framework.
> 
> When I run that code, the output I get is ...
> 
> 
> Request Headers
> ---------------
> POST /genericbarcode.asmx HTTP/1.1
> Host: www.webservicex.net
> Connection: Keep-Alive
> User-Agent: PHP
> Content-Type: text/xml; charset=utf-8
> SOAPAction: "http://www.webservicex.net/GenerateBarCode";
> Content-Length: 900
> 
> 
> Request (XML)
> -------------
> <?xml version="1.0" encoding="utf-8"?>
> <SOAP-ENV:Envelope
> xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";
>                    xmlns:ns1="http://www.webservicex.net/";>
>   <SOAP-ENV:Body>
>     <ns1:GenerateBarCode>
>       <ns1:BarCodeParam>
>         <ns1:Height>100</ns1:Height>
>         <ns1:Width>100</ns1:Width>
>         <ns1:Angle>0</ns1:Angle>
>         <ns1:Ratio>1</ns1:Ratio>
>         <ns1:Module>1</ns1:Module>
>         <ns1:Left>0</ns1:Left>
>         <ns1:Top>0</ns1:Top>
>         <ns1:CheckSum>true</ns1:CheckSum>
>         <ns1:FontName></ns1:FontName>
>         <ns1:BarColor>black</ns1:BarColor>
>         <ns1:BGColor>white</ns1:BGColor>
>         <ns1:FontSize>10</ns1:FontSize>
>         <ns1:barcodeOption>Both</ns1:barcodeOption>
>         <ns1:barcodeType>Code39</ns1:barcodeType>
>         <ns1:checkSumMethod>Modulo10</ns1:checkSumMethod>
>         <ns1:showTextPosition>BottomCenter</ns1:showTextPosition>
>         <ns1:BarCodeImageFormat>PNG</ns1:BarCodeImageFormat>
>       </ns1:BarCodeParam>
>       <ns1:BarCodeText>12345</ns1:BarCodeText>
>     </ns1:GenerateBarCode>
>   </SOAP-ENV:Body>
> </SOAP-ENV:Envelope>
> 
> 
> Response Headers
> ----------------
> HTTP/1.1 200 OK
> Cache-Control: private, max-age=0
> Content-Length: 1664
> Content-Type: text/xml; charset=utf-8
> Server: Microsoft-IIS/7.0
> X-AspNet-Version: 4.0.30319
> X-Powered-By: ASP.NET
> Date: Wed, 14 Sep 2011 10:43:53 GMT
> 
> Response (XML)
> --------------
> <?xml version="1.0" encoding="utf-8"?>
> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";
>                xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>                xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
>   <soap:Body>
>     <GenerateBarCodeResponse xmlns="http://www.webservicex.net/";>
>      
> <GenerateBarCodeResult>iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAA0BJREFUeF7tncuNqzAAAEl3FEQ59JJW0okXmwDGmITDKPKKifSUD3gWZmLD7uU9uq4L06N7PB7xRXqOj/yz+D7fXu63bM/HXWHUxkX23R8xSLSwPuev04fF9uX9sl/5Pn5+hVEbt/y8uz6/v8gGaeULYJBWSmwr0bZUfVpCyiUoX5ZcsriqzhDOJUIyCKKRgxiEc4mQDIJo5CAG4VwiJIMgGjmIQTiXCMkgiEYOYhDOJUIyCKKRgxiEc4mQDIJo5CAG4VwiJIMgGjmIQTiXCMkgiEYOYhDOJUIyCKKRgxiEc4mQDIJo5CAG4VwiJIMgGjmIQTiXCMkgiEYOYhDOJUIyCKKRgxiEc4mQDIJo5CAG4VwiJIMgGjmIQTiXCMkgiEYOYhDOJUIyCKKRgxiEc4mQDIJo5CAG4VwiJIMgGjmIQTiXCMkgiEYOYhDOJUIyCKKRgxiEc4mQDIJo5CAG4VwiJIMgGjmIQTiXCMkgiEYOYhDOJUIyCKKRgxiEc4mQDIJo5CAG4VwiJIMgGjmIQTiXCMkgiEYOYhDOJUIyCKKRgxiEc4mQDIJo5CAG4VwiJIMgGjmIQTiXCMkgiEYOYhDOJUIyCKKRgxiEc4mQDIJo5CAG4VwiJIMgGjmIQTiXCMkgiEYOYhDOJUIyCKKRgxiEc4mQDIJo5CAG4VwiJIMgGjmIQTiXCGn+z9R9NGPAIM2kmA/EIM0GeQ6h68fwyg/wNYa+68J0oUn/+jHbGvfPtg3P2pk9wzDtk297DhtvGV8f25ipHx1O9xr7TewuSCkze59i9GHtk8INoWyyyN+Ev8LYZ+N+dJL/6cdsS1Y5QyozJgrezZL1TI8zIcTxwzgFyGeIQb59Oc6DVEaeBkkzJp8hU6A022KAPEgMd5xJ3w7yTtuvBymXqWRpnhnxWlBflupBhuw6Up9xd0qwP9drQd4X9/OL77ZkxWvSJrkIcuBUlrr7tihue2t3WWkSzHdT3+6E0s3B+5qR332tr08A87jqLdot03ycIcsd2BVfdbHlknV0bJCrS9aHZWoOlV2cT/fdB7k+7paT4/OSVfsFLi0/7+my+/3ldEk7zpBr4wxyXwONnbl/yzJIYwYaO5w/xUW/kq0cV4IAAAAASUVORK5CYII=</GenerateBarCodeResult>
>     </GenerateBarCodeResponse>
>   </soap:Body>
> </soap:Envelope>
> 
> 
> 
> Response (Interpreted)
> ----------------------
> Bytes saved 962
> See 12345.PNG for saved barcode.
> 
> The saved file (12345.PNG in this example) is a nice barcode image.
> 
> -- 
> Richard Quadling
> Twitter : EE : Zend : PHPDoc
> @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.ly/lFnVea
> 
> --
> PHP Soap Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 
> 

-- 
View this message in context: http://old.nabble.com/Get-values-from-wsdl%3Atypes-tp25887884p32463574.html
Sent from the Php - Soap mailing list archive at Nabble.com.


-- 
PHP Soap Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[Index of Archives]     [PHP Home]     [PHP Users]     [Kernel Newbies]     [PHP Database]     [Yosemite]

  Powered by Linux