Re: [phpsoa] can't use wsdl file get service??

2009-11-24 Thread Silvano Girardi Jr
What happens?

You should be doing something with the return from
$service-getPrice(array('symbol'='IBM'));

Try var_dump($service-getPrice(array('symbol'='IBM')));

Silvano

2009/11/21 heshuai64 heshua...@gmail.com



 include 'SCA/SCA.php';
 $service = SCA::getService(StockQuoteService?wsdl);
 $service-getPrice(array('symbol'='IBM'));


 StockQuoteService?wsdl file content:
 ?xml version=1.0 encoding=UTF-8?
 wsdl:definitions xmlns:wsdl=http://schemas.xmlsoap.org/wsdl/;
 xmlns:axis2=http://quickstart.samples/; xmlns:ns1=http://
 org.apache.axis2/xsd xmlns:ns=http://quickstart.samples/xsd;
 xmlns:wsaw=http://www.w3.org/2006/05/addressing/wsdl;
 xmlns:http=http://schemas.xmlsoap.org/wsdl/http/; xmlns:xs=http://
 www.w3.org/2001/XMLSchema xmlns:mime=http://schemas.xmlsoap.org/wsdl/
 mime/ http://schemas.xmlsoap.org/wsdl/%0Amime/ xmlns:soap=
 http://schemas.xmlsoap.org/wsdl/soap/;
 xmlns:soap12=http://schemas.xmlsoap.org/wsdl/soap12/;
 targetNamespace=http://quickstart.samples/;
wsdl:documentationStockQuoteService/wsdl:documentation
wsdl:types
xs:schema attributeFormDefault=qualified
 elementFormDefault=qualified targetNamespace=http://
 quickstart.samples/xsd
xs:element name=getPrice
xs:complexType
xs:sequence
xs:element minOccurs=0 name=symbol
 nillable=true type=xs:string/

/xs:sequence
/xs:complexType
/xs:element
xs:element name=getPriceResponse
xs:complexType
xs:sequence
xs:element minOccurs=0 name=return
 type=xs:double/
/xs:sequence
/xs:complexType

/xs:element
xs:element name=update
xs:complexType
xs:sequence
xs:element minOccurs=0 name=symbol
 nillable=true type=xs:string/
xs:element minOccurs=0 name=price
 type=xs:double/
/xs:sequence
/xs:complexType
/xs:element

/xs:schema
/wsdl:types
wsdl:message name=getPriceRequest
wsdl:part name=parameters element=ns:getPrice/
/wsdl:message
wsdl:message name=getPriceResponse
wsdl:part name=parameters element=ns:getPriceResponse/
/wsdl:message
wsdl:message name=updateRequest

wsdl:part name=parameters element=ns:update/
/wsdl:message
wsdl:portType name=StockQuoteServicePortType
wsdl:operation name=getPrice
wsdl:input message=axis2:getPriceRequest
 wsaw:Action=urn:getPrice/
wsdl:output message=axis2:getPriceResponse
 wsaw:Action=urn:getPriceResponse/
/wsdl:operation
wsdl:operation name=update
wsdl:input message=axis2:updateRequest
 wsaw:Action=urn:update/

/wsdl:operation
/wsdl:portType
wsdl:binding name=StockQuoteServiceSoap11Binding
 type=axis2:StockQuoteServicePortType
soap:binding transport=http://schemas.xmlsoap.org/soap/http;
 style=document/
wsdl:operation name=getPrice
soap:operation soapAction=urn:getPrice style=document/
 
wsdl:input
soap:body use=literal/
/wsdl:input

wsdl:output
soap:body use=literal/
/wsdl:output
/wsdl:operation
wsdl:operation name=update
soap:operation soapAction=urn:update style=document/
wsdl:input
soap:body use=literal/
/wsdl:input

/wsdl:operation
/wsdl:binding
wsdl:binding name=StockQuoteServiceSoap12Binding
 type=axis2:StockQuoteServicePortType
soap12:binding transport=http://schemas.xmlsoap.org/soap/
 http style=document/
wsdl:operation name=getPrice
soap12:operation soapAction=urn:getPrice
 style=document/
wsdl:input
soap12:body use=literal/
/wsdl:input

wsdl:output
soap12:body use=literal/
/wsdl:output
/wsdl:operation
wsdl:operation name=update
soap12:operation soapAction=urn:update style=document/
 
wsdl:input
soap12:body use=literal/
/wsdl:input

/wsdl:operation
/wsdl:binding
wsdl:binding name=StockQuoteServiceHttpBinding
 type=axis2:StockQuoteServicePortType
http:binding verb=POST/
wsdl:operation name=getPrice
http:operation location=StockQuoteService/getPrice/
wsdl:input
mime:content type=text/xml part=getPrice/
/wsdl:input

wsdl:output
mime:content type=text/xml part=getPrice/
/wsdl:output
/wsdl:operation
wsdl:operation name=update
http:operation location=StockQuoteService/update/
wsdl:input
mime:content type=text/xml part=update/

Re: [phpsoa] can't use wsdl file get service??

2009-11-24 Thread Cole
question in SCA/Bindings/soap/Mapper.php 136 line,
public function toXML($sdo)
{
   SCA::$logger-log('Entering');
   SCA::$logger-log(sdo = .print_r($sdo, true));

   try
135   {
136   $xdoc   = $this-xmldas-createDocument('', 'BOGUS', $sdo);
137   $xmlstr = $this-xmldas-saveString($xdoc, 0);

toXML($sdo) function $sdo is SDO_DataObject, but this is array? how
createDocument?

Logs are as follows:
[ 25] Info 21/11/2009
02:06:05::895 .SCA_Bindings_soap_Proxy::_passTheCallToTheSoapClient
- Entering
[ 26] Info 21/11/2009
02:06:05::895 ...SCA_Bindings_soap_Mapper::toXML - Entering
[ 27] Info 21/11/2009
02:06:05::896 ...SCA_Bindings_soap_Mapper::toXML - sdo = Array
(
   [symbol] = IBM
)

[ 28] Info 21/11/2009
02:06:05::896 ...SCA_Bindings_soap_Mapper::toXML - xml =
[ 29] Info 21/11/2009 02:06:06::


28 line SCA_Bindings_soap_Mapper::toXML - xml = is NULL?

2009/11/24 Silvano Girardi Jr silvan...@gmail.com

 What happens?

 You should be doing something with the return from
 $service-getPrice(array('symbol'='IBM'));

 Try var_dump($service-getPrice(array('symbol'='IBM')));

 Silvano

 2009/11/21 heshuai64 heshua...@gmail.com



 include 'SCA/SCA.php';
 $service = SCA::getService(StockQuoteService?wsdl);
 $service-getPrice(array('symbol'='IBM'));


 StockQuoteService?wsdl file content:
 ?xml version=1.0 encoding=UTF-8?
 wsdl:definitions xmlns:wsdl=http://schemas.xmlsoap.org/wsdl/;
 xmlns:axis2=http://quickstart.samples/; xmlns:ns1=http://
 org.apache.axis2/xsd xmlns:ns=http://quickstart.samples/xsd;
 xmlns:wsaw=http://www.w3.org/2006/05/addressing/wsdl;
 xmlns:http=http://schemas.xmlsoap.org/wsdl/http/; xmlns:xs=http://
 www.w3.org/2001/XMLSchema xmlns:mime=http://schemas.xmlsoap.org/wsdl/
 mime/ http://schemas.xmlsoap.org/wsdl/%0Amime/ xmlns:soap=
 http://schemas.xmlsoap.org/wsdl/soap/;
 xmlns:soap12=http://schemas.xmlsoap.org/wsdl/soap12/;
 targetNamespace=http://quickstart.samples/;
wsdl:documentationStockQuoteService/wsdl:documentation
wsdl:types
xs:schema attributeFormDefault=qualified
 elementFormDefault=qualified targetNamespace=http://
 quickstart.samples/xsd
xs:element name=getPrice
xs:complexType
xs:sequence
xs:element minOccurs=0 name=symbol
 nillable=true type=xs:string/

/xs:sequence
/xs:complexType
/xs:element
xs:element name=getPriceResponse
xs:complexType
xs:sequence
xs:element minOccurs=0 name=return
 type=xs:double/
/xs:sequence
/xs:complexType

/xs:element
xs:element name=update
xs:complexType
xs:sequence
xs:element minOccurs=0 name=symbol
 nillable=true type=xs:string/
xs:element minOccurs=0 name=price
 type=xs:double/
/xs:sequence
/xs:complexType
/xs:element

/xs:schema
/wsdl:types
wsdl:message name=getPriceRequest
wsdl:part name=parameters element=ns:getPrice/
/wsdl:message
wsdl:message name=getPriceResponse
wsdl:part name=parameters element=ns:getPriceResponse/
/wsdl:message
wsdl:message name=updateRequest

wsdl:part name=parameters element=ns:update/
/wsdl:message
wsdl:portType name=StockQuoteServicePortType
wsdl:operation name=getPrice
wsdl:input message=axis2:getPriceRequest
 wsaw:Action=urn:getPrice/
wsdl:output message=axis2:getPriceResponse
 wsaw:Action=urn:getPriceResponse/
/wsdl:operation
wsdl:operation name=update
wsdl:input message=axis2:updateRequest
 wsaw:Action=urn:update/

/wsdl:operation
/wsdl:portType
wsdl:binding name=StockQuoteServiceSoap11Binding
 type=axis2:StockQuoteServicePortType
soap:binding transport=http://schemas.xmlsoap.org/soap/http;
 style=document/
wsdl:operation name=getPrice
soap:operation soapAction=urn:getPrice style=document/
 
wsdl:input
soap:body use=literal/
/wsdl:input

wsdl:output
soap:body use=literal/
/wsdl:output
/wsdl:operation
wsdl:operation name=update
soap:operation soapAction=urn:update style=document/
wsdl:input
soap:body use=literal/
/wsdl:input

/wsdl:operation
/wsdl:binding
wsdl:binding name=StockQuoteServiceSoap12Binding
 type=axis2:StockQuoteServicePortType
soap12:binding transport=http://schemas.xmlsoap.org/soap/
 http style=document/
wsdl:operation name=getPrice
soap12:operation soapAction=urn:getPrice
 style=document/
wsdl:input
soap12:body use=literal/
/wsdl:input

wsdl:output
soap12:body