Message from discussion
php sca can not reference the wsdl that made by java!help
MIME-Version: 1.0
Received: by 10.151.158.2 with SMTP id k2mr35532ybo.17.1236181540106; Wed, 04
Mar 2009 07:45:40 -0800 (PST)
Date: Wed, 4 Mar 2009 07:45:40 -0800 (PST)
In-Reply-To: <c08af41e-1239-47e2-8cb8-657dcbdecdcc@r10g2000prf.googlegroups.com>
X-IP: 119.129.41.72
References: <c08af41e-1239-47e2-8cb8-657dcbdecdcc@r10g2000prf.googlegroups.com>
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1;
QQDownload 1.7; .NET CLR 1.1.4322; .NET CLR 2.0.50727),gzip(gfe),gzip(gfe)
Message-ID: <8271e890-404d-4dd5-bdf6-edc13db9334d@e1g2000pra.googlegroups.com>
Subject: Re: php sca can not reference the wsdl that made by java!help
From: jackyrong <jackyr...@tom.com>
To: phpsoa <phpsoa@googlegroups.com>
Content-Type: text/plain; charset=GB2312
Content-Transfer-Encoding: quoted-printable
nobody know the reason?
On 2=D4=C227=C8=D5, =CF=C2=CE=E75=CA=B123=B7=D6, jackyrong <jackyr...@tom.c=
om> wrote:
> i use java create a wsdl which published in Tomcat 6,the wsdl is:
> <?xml version=3D"1.0" encoding=3D"UTF-8" ?>
> - <wsdl:definitions name=3D"IUserserviceService" targetNamespace=3D"http:=
//
> service.tuscanytest.com/" xmlns:tns=3D"http://service.tuscanytest.com/"
> xmlns:SOAP=3D"http://schemas.xmlsoap.org/wsdl/soap/"
> xmlns:SOAP11=3D"http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xs=3D"http:/=
/www.w3.org/2001/XMLSchema" xmlns:wsdl=3D"http://schemas.xmlsoap.org/
> wsdl/">
> - <wsdl:types>
> - <xs:schema version=3D"1.0" xmlns:xs=3D"http://www.w3.org/2001/
> XMLSchema">
> - <xs:complexType name=3D"user">
> - <xs:sequence>
> <xs:element minOccurs=3D"0" name=3D"address" type=3D"address" />
> <xs:element minOccurs=3D"0" name=3D"id" type=3D"xs:string" />
> <xs:element minOccurs=3D"0" name=3D"name" type=3D"xs:string" />
> <xs:element minOccurs=3D"0" name=3D"password" type=3D"xs:string" />
> </xs:sequence>
> </xs:complexType>
> - <xs:complexType name=3D"address">
> - <xs:sequence>
> <xs:element minOccurs=3D"0" name=3D"street" type=3D"xs:string" />
> </xs:sequence>
> </xs:complexType>
> </xs:schema>
> - <xs:schema attributeFormDefault=3D"qualified"
> elementFormDefault=3D"unqualified" targetNamespace=3D"http://
> service.tuscanytest.com/" xmlns:xs=3D"http://www.w3.org/2001/XMLSchema">
> - <xs:element name=3D"getAllResponse">
> - <xs:complexType>
> - <xs:sequence>
> <xs:element minOccurs=3D"0" name=3D"return" nillable=3D"true"
> type=3D"xs:anyType" />
> </xs:sequence>
> </xs:complexType>
> </xs:element>
> - <xs:element name=3D"getAll">
> <xs:complexType />
> </xs:element>
> </xs:schema>
> </wsdl:types>
> - <wsdl:message name=3D"getAllResponse">
> <wsdl:part name=3D"getAllResponse" element=3D"tns:getAllResponse" />
> </wsdl:message>
> - <wsdl:message name=3D"getAll">
> <wsdl:part name=3D"getAll" element=3D"tns:getAll" />
> </wsdl:message>
> - <wsdl:portType name=3D"IUserservice">
> - <wsdl:operation name=3D"getAll">
> <wsdl:input message=3D"tns:getAll" />
> <wsdl:output message=3D"tns:getAllResponse" />
> </wsdl:operation>
> </wsdl:portType>
> - <wsdl:binding name=3D"IUserserviceBinding" type=3D"tns:IUserservice">
> <SOAP:binding style=3D"document" transport=3D"http://schemas.xmlsoap.or=
g/
> soap/http" />
> - <wsdl:operation name=3D"getAll">
> <SOAP:operation />
> - <wsdl:input>
> <SOAP:body use=3D"literal" />
> </wsdl:input>
> - <wsdl:output>
> <SOAP:body use=3D"literal" />
> </wsdl:output>
> </wsdl:operation>
> </wsdl:binding>
> - <wsdl:service name=3D"IUserserviceService">
> - <wsdl:port name=3D"IUserservicePort"
> binding=3D"tns:IUserserviceBinding">
> <SOAP:address location=3D"http://172.16.18.15:8085/tuscanytest/
> UserService" />
> </wsdl:port>
> </wsdl:service>
> </wsdl:definitions>
>
> when i use php to call it,i use the code :
> include 'SCA/SCA.php';
> $greeting_service =3D SCA::getService('http://172.16.18.15:8085/
> tuscanytest/UserService?wsdl');
> while ($arr=3D$greeting_service->getAll())
> {
>
> echo($arr["name"]);
> }
>