Minkowsky | 2 Apr 15:13

wsdl code generation error.


Hello All,

      I am a newbie to using SCA_SDO with php. The first app i tried
is the one given in the following link.

http://www.ibm.com/developerworks/web/library/ws-soa-scasdo/

The client displayed the content as expected when i gave the following
address in the browser.

http://localhost/sdo_sca_ibm/client.php
(client lies inside "sca_sdo_ibm" directory in document root ie. /var/
www/html )

but when i tried for wsdl generation with the following

http://localhost/sdo_sca_ibm/WeatherService.php?wsdl

it threw the following error.

Fatal error: Uncaught SCA_RuntimeException: The soap extension must be
loaded thrown in /usr/share/pear/SCA/SCA_Helper.php on line 212

can someone help me in getting rid of this error. Also I would like to
know if any configuration changes i have to make in my  /etc/php.ini
or to the httpd.conf  file to get the SCA_SDO working for php.

Thanks in advance.

(Continue reading)

jackyrong | 27 Feb 10:18
Favicon

php sca can not reference the wsdl that made by java!help


i use java create a wsdl which published in Tomcat 6,the wsdl is:
 <?xml version="1.0" encoding="UTF-8" ?>
- <wsdl:definitions name="IUserserviceService" targetNamespace="http://
service.tuscanytest.com/" xmlns:tns="http://service.tuscanytest.com/"
xmlns:SOAP="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:SOAP11="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xs="http://
www.w3.org/2001/XMLSchema" xmlns:wsdl="http://schemas.xmlsoap.org/
wsdl/">
- <wsdl:types>
- <xs:schema version="1.0" xmlns:xs="http://www.w3.org/2001/
XMLSchema">
- <xs:complexType name="user">
- <xs:sequence>
  <xs:element minOccurs="0" name="address" type="address" />
  <xs:element minOccurs="0" name="id" type="xs:string" />
  <xs:element minOccurs="0" name="name" type="xs:string" />
  <xs:element minOccurs="0" name="password" type="xs:string" />
  </xs:sequence>
  </xs:complexType>
- <xs:complexType name="address">
- <xs:sequence>
  <xs:element minOccurs="0" name="street" type="xs:string" />
  </xs:sequence>
  </xs:complexType>
  </xs:schema>
- <xs:schema attributeFormDefault="qualified"
elementFormDefault="unqualified" targetNamespace="http://
service.tuscanytest.com/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
- <xs:element name="getAllResponse">
(Continue reading)

TheIdeaMan | 24 Feb 01:27

Still alive?


From what I've read and what little I've been able to get working of
the examples that come with the SCA_SDO extension, this project has
great promise, but it seems that the community and documentation are
huge week spots.

I'd love to participate in creating examples and improving the
community. Is this project still alive and well? Is it still under
active development?

The RESTResource and Atom bindings are of particular interest to me.
However, I'm not able to get the Atom ones running due to lack of SQL
for the contacts database--which, since I can't find it anywhere, I'll
likely fake.

I'd love to really give this extension a work out as I'm considering
using it as a core component in some applications I'm (re)writing.

Thanks in advance for any feedback.
jackyrong | 19 Feb 04:16
Favicon

my first demo for sca php has something wrong,help!


i just write my first demo for sca php,helloworld,the code is:

include 'SCA/SCA.php';

/**
 * @service
 * @binding.soap
 */
class Greeting
{
    /**
      * @param string $name
      * @return string
      */
    public function greet($name)
    {
        return 'hello ' . $name;
    }
}
?>
and when i run the code above,it generated the wsdl,and the wsdl is:

http://localhost:8082/myphp/helloworldscawsreference/Greeting.wsdl
and i can use the ie browser to see it.
the the client code is:
<?

include 'SCA/SCA.php';

(Continue reading)

Creation of WSDL file in SCA

Hi,

In my job,  the production environment does not allow that PHP has write access to the public folders.
So I have many problems with the dynamically creation of the WSDL file by SCA.

I wrote a code that allows the WSDL file is created in another directory.

Just i defined a WSDL_DIR before the "include 'SCA.php'; "

Like this:

<?php
...........
define('WSDL_DIR', '../../wsdl/');
........
include "SCA/SCA.php";
...........
class Test{
............
}
?>

and, in "SCA/soap/ServiceRequestHandler.php", after the line 47...

//uses the dir defined in WSDL_DIR to write wsdl
if (defined('WSDL_DIR')){
    $wsdl_filename = dirname($calling_component_filename) . WSDL_DIR . "$class_name.wsdl";
} else{
     $wsdl_filename = str_replace('.php', '.wsdl', $calling_component_filename);
}

So, this code works fine for me.

I would like to make this code public for community.

Thanks



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "phpsoa" group.
To post to this group, send email to phpsoa <at> googlegroups.com
To unsubscribe from this group, send email to phpsoa+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at http://groups.google.co.uk/group/phpsoa?hl=en
-~----------~----~----~----~------~----~------~--~---

Attachment (ServiceRequestHandler.php.valverde): application/octet-stream, 4527 bytes
TheIdeaMan | 11 Dec 15:13

eAccelerator killing RESTResource examples


I'm running the examples via MAMP on Mac OS X. The first request to
the URLs below worked fine:
http://localhost/examples/SCA/RestResource/Orders.php
http://localhost/examples/SCA/RestResource/Orders.php/order2

The second requests, however, returned blank pages. Clearing
eAccelerator's cache (which is on by default in MAMP) fixed the
problem. Disabling eAccelerator entirely is the only way I've found to
keep the examples working consistently.

Has anyone else experienced these issues?

Bruno Reis | 19 Nov 18:04

Local SCA client access.

Hi there,

I was wondering about how a local SCA access happens. I run trough the IBM
tutorial where I set up a service and a client, running on the same machine.

It worked just fine, but I have not tested performance.
How is this operation compared to a normal method access?
Does this local access involves XML messaging, or the SCA recognize its on
the same server and do this access on another (maybe faster) way?

I will begin to build an application and I am thinking about using SCA to
organize it in a "service oriented" way. But I dont plan to use a rich
client capable of doing all the job on the client, so I will have a
middleware layer that will act as a controller either.

Do you think this may be an overhead to use SCA this way, instead of
accessing this service layer with normal php code?

Bruno Reis | 19 Nov 15:17

Where shall I put my XSDs on a SCA service?

Hi there, I followed the IBM tutotial on:

http://www.ibm.com/developerworks/web/library/ws-soa-scasdo/index.html

I downloaded the sources and it run ok, but on my wsdl I do not get the
param and return types as shown on the tutorial.

on the tutorial:

<binding name="WeatherServiceBinding"
           type="tns2:WeatherServicePortType">
    <operation name="getTemperature">
      <input>
        *<tns3:body xsi:type="tns3:tBody" use="literal"/>*
      </input>
      <output>
        *<tns3:body xsi:type="tns3:tBody" use="literal"/>*
      </output>
      <tns3:operation xsi:type="tns3:tOperation" soapAction=""/>
    </operation>
    <tns3:binding xsi:type="tns3:tBinding"
                  transport="http://schemas.xmlsoap.org/soap/http"
                  style="document"/>
  </binding>

I get:

<wsdl:binding name="WeatherServiceBinding"
type="tns2:WeatherServicePortType">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http"
style="document"/>
−
<wsdl:operation name="getTemperature">
<soap:operation soapAction=""/>
−
*<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
−
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>*
</wsdl:operation>
</wsdl:binding>

What is wrong with this?
Shall I define another namespace or put the xsd on another place?

Thanks,
Bruno

Silvano Girardi Jr | 19 Nov 15:09

Consuming SSL secured web services


Lady and Gentlemen :)

I am trying to consume a SSL secured web service and I need to use a
certificate to even get to the WSDL.

I was doing changes in the SCA_Bindings_soap_Proxy to accept the
local_cert and passphrase, but after the first attempt I realized that
it may not be enough to do the job, as I believe the SDO_DAS_XML is
responsible for parsing the contents of the WSDL and thus it needs to
use the certificate as well.

Please let me know if I am wrong in my assumption, otherwise, does
anyone know a way to get around this problem? (So far I am trying to
download all the WSDL by hand and modifying the "import"s in the XSD's
to point to my server. No luck so far.)

Appreciate you help. This is a high priority for me.

Thanks,
Silvano

Bruno Reis | 12 Nov 20:44

How is the SDO development and when is it supposed to become stable?


Hi all,

I'm facing some design decisions on a new project now that puts me
towards something like SDO, but being it an experimental extension,
it's hard to bet on it. May anyone tell me please, how is the SDO
development going and when is it supposed to become stable?

Thanks,
Bruno

cdouglas | 15 Oct 16:02

SDO DAS loadString failing with multiple namespaces


Hello,
   I am trying to create an SDO_DAS_XML object using an XSD that
imports 5 other XSD's and has multiple namespaces throughout.   The
object gets created correctly and there are no errors thrown when I do
the loadString, but the data from the XML doc doesnt get populated in
the object. The structure is there. I am including the XML and the
resulting dump but I doubt it will do any good without the XSD's.  I
can proivde a zip of a test program if a dev would be willing to try
it out.

Thanks
Chris Douglas

<sear1:searchCallPartyResponse xmlns:sear="http://www.noip.com/private/
callparty/SearchCallPartyRequest" xmlns:sear1="http://www.noip.com/
private/callparty/
SearchCallPartyResponse"><sear1:header><sear1:stdHeader>
<dat:audit xmlns:dat="http://www.noip.com/private/asstarch/Datamodel">
<dat:requestor>
<dat:principalName>jdoe</dat:principalName>
<dat:entityID>UNKNOWN</dat:entityID>
<dat:applicationID>scnui</dat:applicationID>
</dat:requestor>
<dat:logActivity>false</dat:logActivity>
<dat:sessionID>Gmq6LyfxfvxhJN1LdtLwyzMwLyv21Krk</dat:sessionID>
<dat:fingerprintGUID>06149b950a06fa6600ace46a996d34ef</
dat:fingerprintGUID>
</dat:audit>
</sear1:stdHeader></
sear1:header><sear1:results><sear1:statistics><sear1:totalResults>1</
sear1:totalResults><sear1:resultCount>1</
sear1:resultCount><sear1:firstResult>1</sear1:firstResult></
sear1:statistics><sear1:result><sear1:callPartyId>1000165522</
sear1:callPartyId><sear1:callParty><dat:customer xmlns:dat="http://
www.noip.com/private/callparty/Datamodel"><dat:customerProvId>11000000262</dat:customerProvId><dat:customerId>Cont-99005</dat:customerId><dat:customerInfo><dat1:name
xmlns:dat1="http://www.noip.com/private/site/Datamodel">PRINCETON</
dat1:name></dat:customerInfo></dat:customer><dat:accountNumber
xmlns:dat="http://www.noip.com/private/callparty/Datamodel">ABCD</
dat:accountNumber><dat:lastName xmlns:dat="http://www.noip.com/private/
callparty/Datamodel">POINDEXTER</dat:lastName><dat:firstName
xmlns:dat="http://www.noip.com/private/callparty/Datamodel">DARRYL
WAYNE</dat:firstName><dat:classification xmlns:dat="http://
www.noip.com/private/callparty/Datamodel">Custody</dat:classification><dat:site
xmlns:dat="http://www.noip.com/private/callparty/
Datamodel"><dat:siteProvId>11000000264</
dat:siteProvId><dat:siteID>99005</
dat:siteID><dat:siteInfo><dat1:facilityKey xmlns:dat1="http://
www.noip.com/private/site/Datamodel">Cont-99005</dat1:facilityKey><dat1:name
xmlns:dat1="http://www.noip.com/private/site/Datamodel">PRINCETON</
dat1:name></dat:siteInfo></dat:site><dat:middleName xmlns:dat="http://
www.noip.com/private/callparty/Datamodel">J</dat:middleName><dat:ssn
xmlns:dat="http://www.noip.com/private/callparty/Datamodel">123456789</
dat:ssn><dat:credential xmlns:dat="http://www.noip.com/private/
callparty/Datamodel"><dat:dialedPIN>1234</dat:dialedPIN></
dat:credential><dat:status xmlns:dat="http://www.noip.com/private/
callparty/Datamodel">Active</dat:status><dat:activationDate
xmlns:dat="http://www.noip.com/private/callparty/
Datamodel">2008-10-10T00:00:00.000-05:00</dat:activationDate></
sear1:callParty></sear1:result></
sear1:results><sear1:resultStatus><dat:statusCode xmlns:dat="http://
www.noip.com/private/asstarch/Datamodel">0</dat:statusCode><dat:statusDescription
xmlns:dat="http://www.noip.com/private/asstarch/Datamodel">SUCCESS</
dat:statusDescription></sear1:resultStatus></
sear1:searchCallPartyResponse>

---- resulting object after loadString
$xmldas = SDO_DAS_XML::create("../callparty/
SearchCallPartyRequest.xsd");
$document = $xmldas->loadString($xml);
$sgate = $document->getRootDataObject();
print_r($sgate);

SDO_DataObjectImpl Object
(
[header] => SDO_DataObjectList Object
(
[0] => SDO_DataObjectImpl Object
(
[stdHeader] => SDO_DataObjectList Object
(
[0] => SDO_DataObjectImpl Object
(
[audit] => SDO_DataObjectList Object
(
[0] => SDO_DataObjectImpl Object
(
[requestor] => SDO_DataObjectList Object
(
[0] => SDO_DataObjectImpl Object
(
[principalName] => SDO_DataObjectList Object
(
[0] => SDO_DataObjectImpl Object
(
)

)

[entityID] => SDO_DataObjectList Object
(
[0] => SDO_DataObjectImpl Object
(
)

)

[applicationID] => SDO_DataObjectList Object
(
[0] => SDO_DataObjectImpl Object
(
)

)

)

)

[logActivity] => SDO_DataObjectList Object
(
[0] => SDO_DataObjectImpl Object
(
)

)

[sessionID] => SDO_DataObjectList Object
(
[0] => SDO_DataObjectImpl Object
(
)

)

[fingerprintGUID] => SDO_DataObjectList Object
(
[0] => SDO_DataObjectImpl Object
(
)

)

)

)

)

)

)

)

[results] => SDO_DataObjectList Object
(
[0] => SDO_DataObjectImpl Object
(
[statistics] => SDO_DataObjectList Object
(
[0] => SDO_DataObjectImpl Object
(
[totalResults] => SDO_DataObjectList Object
(
[0] => SDO_DataObjectImpl Object
(
)

)

[resultCount] => SDO_DataObjectList Object
(
[0] => SDO_DataObjectImpl Object
(
)

)

[firstResult] => SDO_DataObjectList Object
(
[0] => SDO_DataObjectImpl Object
(
)

)

)

)

[result] => SDO_DataObjectList Object
(
[0] => SDO_DataObjectImpl Object
(
[callPartyId] => SDO_DataObjectList Object
(
[0] => SDO_DataObjectImpl Object
(
)

)

[callParty] => SDO_DataObjectList Object
(
[0] => SDO_DataObjectImpl Object
(
[customer] => SDO_DataObjectList Object
(
[0] => SDO_DataObjectImpl Object
(
[customerProvId] => SDO_DataObjectList Object
(
[0] => SDO_DataObjectImpl Object
(
)

)

[customerId] => SDO_DataObjectList Object
(
[0] => SDO_DataObjectImpl Object
(
)

)

[customerInfo] => SDO_DataObjectList Object
(
[0] => SDO_DataObjectImpl Object
(
[name] => SDO_DataObjectList Object
(
[0] => SDO_DataObjectImpl Object
(
)

)

)

)

)

)

[accountNumber] => SDO_DataObjectList Object
(
[0] => SDO_DataObjectImpl Object
(
)

)

[lastName] => SDO_DataObjectList Object
(
[0] => SDO_DataObjectImpl Object
(
)

)

[firstName] => SDO_DataObjectList Object
(
[0] => SDO_DataObjectImpl Object
(
)

)

[classification] => SDO_DataObjectList Object
(
[0] => SDO_DataObjectImpl Object
(
)

)

[site] => SDO_DataObjectList Object
(
[0] => SDO_DataObjectImpl Object
(
[siteProvId] => SDO_DataObjectList Object
(
[0] => SDO_DataObjectImpl Object
(
)

)

[siteID] => SDO_DataObjectList Object
(
[0] => SDO_DataObjectImpl Object
(
)

)

[siteInfo] => SDO_DataObjectList Object
(
[0] => SDO_DataObjectImpl Object
(
[facilityKey] => SDO_DataObjectList Object
(
[0] => SDO_DataObjectImpl Object
(
)

)

[name] => SDO_DataObjectList Object
(
[0] => SDO_DataObjectImpl Object
(
)

)

)

)

)

)

[middleName] => SDO_DataObjectList Object
(
[0] => SDO_DataObjectImpl Object
(
)

)

[ssn] => SDO_DataObjectList Object
(
[0] => SDO_DataObjectImpl Object
(
)

)

[credential] => SDO_DataObjectList Object
(
[0] => SDO_DataObjectImpl Object
(
[dialedPIN] => SDO_DataObjectList Object
(
[0] => SDO_DataObjectImpl Object
(
)

)

)

)

[status] => SDO_DataObjectList Object
(
[0] => SDO_DataObjectImpl Object
(
)

)

[activationDate] => SDO_DataObjectList Object
(
[0] => SDO_DataObjectImpl Object
(
)

)

)

)

)

)

)

)

[resultStatus] => SDO_DataObjectList Object
(
[0] => SDO_DataObjectImpl Object
(
[statusCode] => SDO_DataObjectList Object
(
[0] => SDO_DataObjectImpl Object
(
)

)

[statusDescription] => SDO_DataObjectList Object
(
[0] => SDO_DataObjectImpl Object
(
)

)

)

)

)


Gmane