axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Samisa Abeysinghe <sam...@wso2.com>
Subject Re: [Axis2]How to invoke a webservice built by Axis2 in PHP?
Date Fri, 11 Aug 2006 08:44:32 GMT
Well you can also use the PHP Axis2 extention built on top of Axis2/C.
It is here: http://pecl.php.net/package/axis2

Samisa...

Alistair Young wrote:
> I think there would be two ways of accessing a web service from PHP:
>
> 1 - use the java stub via PHP's Java integration - http://uk.php.net/java
> 2 - POST a SOAP message to the service's REST endpoint without using 
> the stub. Just create the SOAP message in PHP - http://uk2.php.net/soap
>
> I've never had to use Java from PHP so I'd probably try the REST 
> approach. You'll need PHP 5 though.
>
> Alistair
>
> On 11 Aug 2006, at 08:06, zhu jiang wrote:
>
>> Hi Chinthaka,
>>  
>>     How could I use the stub code in PHP?
>>  
>> Thanks,
>> Jiang
>>
>>  
>> 2006/8/10, Eran Chinthaka <chinthaka@opensource.lk 
>> <mailto:chinthaka@opensource.lk>>:
>>
>>     The easiest way is to write your implement the contract first
>>     approach,
>>     which I always encourage.
>>     Write your own wsdl, use wsdl2java to generate clients and/or server
>>     side code and use them. Its the best way.
>>
>>     -- Chinthaka
>>
>>     zhu jiang wrote:
>>     > I cannot use document/literal style message because the operation I
>>     > wrote has two parameters, and by now only rpcmessage receiver
>>     supports
>>     > for this in Axis2. What should I do?
>>     >
>>     >
>>     > 2006/8/10, Eran Chinthaka <chinthaka@opensource.lk
>>     <mailto:chinthaka@opensource.lk>
>>     > <mailto: chinthaka@opensource.lk
>>     <mailto:chinthaka@opensource.lk>>>:
>>     >
>>     >     Is your SoapClient supports document/literal style messages?
>>     >
>>     >
>>     >
>>     >     zhu jiang wrote:
>>     >     > Hi All,
>>     >     >
>>     >     >     I made a webservice by Axis2 v1.0 using
>>     RPCMessageReceiver,  but I
>>     >     > can't use the SoapClient class in PHP to invoke the
>>     webservice.
>>     >     For example:
>>     >     >     $soapclient=new
>>     >     > SoapClient("
>>     http://127.0.0.1:8080/axis2/services/version?wsdl");
>>     >     >     .......
>>     >     >
>>     >     >     But the SoapClient could invoke webservices built by
>>     Axis 1.3
>>     >     . Does
>>     >     > Axis2 not support this? What should I do?
>>     >     >
>>     >     > Thanks,
>>     >     > Jiang
>>     >
>>     >
>>     >
>>     >
>>     >
>>
>>
>>
>>
>>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Mime
View raw message