Friday, March 19. 2010WS-* for PHPComments
Display comments as
(Linear | Threaded)
Hey Rob! Thanks for your continuous investment in this library. We use it in our SDK for electronic signatures. Your library made it possible for PHP to consume WCF and WSE exposed services with minimal effort.
Let me add to the experience with WSO libraries. I primarily work on a Mac and since a pre-compiled version was not an option (at least last time I checked on their site). Anyhow keep up the good work! -mb PS: if you are looking for feature requests - anything that can generate a SOAP client with your libraries out of a WSDL would be amazing!
Thanks Mike. Glad to hear they were useful.
For a client generation are you looking for general client stubs and/or the security code generation? For the latter, I have started looking at implementing some WS-Policy support but have no timeframe for that. A near term addition is going to be some simpler interfaces to perform the signature/encryption handling rather than requiring each step to be implemented in the extended SOAP client class.
I think a lot of people are expecting there to be a proxy generation shell script like the wsdl2java in Axis I/II frameworks.
If there is something that can construct the PHP proxies along with your framework built in - that would be great help. I am imagining something like wsdl2wse.php --headers UserNameToken;Addressing;BinarySecurityToken That's a very quick thought - so pardon me if it's not a full interface. -mb
I will add that to future features. I had been thinking about making it simpler to add security but hadn't thought about building it into a code generator.
If you mean digital signatures then those are already supported thru WS-Security; otherwise I am not sure what you mean by WS-Signature.
My mistake,
XML Signature is what i mean and if already exists it's good for us.
Hello Rob,
I have been trying to implement your lib and classes to send a xml as a soap request, but when I run your example. I get and error in the try / catch (bottom portion); Do you have any other examples of how to implement this? or an example XML. At present it appears as if the xml I am using is not correct. Below is a small snippet of the returned VARDUMP on the fail .... ----------------------------------------------------------------------------------- "["message":protected]=> string(9) "Not Found" ["string":"Exception":private]=> string(0) "" ["code":protected]=> int(0) ["file":protected]=> string(30) "/var/www/PhpProject1/index.php" ["line":protected]=> int(58) ["trace":"Exception":private]=> array(4) { [0]=> array(6) { ["file"]=> string(30) "/var/www/PhpProject1/index.php" ["line"]=> int(58) ["function"]=> string(11) "__doRequest" ["class"]=> string(10) "SoapClient" ["type"]=> string(2) "->" ["args"]=> array(4) { [0]=> string(8436) " urn:xmethods-delayed-quotes#getQuotehttp://arie.mijnlieff.nl/soap/server1.phpuudi:9206b483-3357-d5a7-0d38-553e689d8b84http://schemas.xmlsoap.org/ws/2004/08/addressin" Any help is greatly apreciated - Ron
Which example file are you using? There are 3 in the repository. I would be interested in seeing what your index.php file looks like; especially on line 58.
Can you follow this up on the mailing list as it will be easier to deal with there. Mailing list: http://groups.google.com/group/wse-php Project Homepage: http://code.google.com/p/wse-php/ Rob
Hello Roberts,
after fighting for weeks with WSO2 we successfully implemented a ws client with WS-Security with X509 certificate using your libraries. Thank you for that. Now we should try to realize also a ws server. Any example about it ? thanks a lot Giordano
Have you taken a look at the example in the source code section?
http://www.cdatazone.org/files/soapsrv/quote.phps I haven't put all that much time into the server library so it currently only validates the signature passed by the client. It should be fairly simple tho to add additional functionality as checking client cert validity, encryption handling, etc...
Hello Rob,
I'm trying to consume a webservice using a x509 certificate and your libraries, of course I think that the signature is ok because if I change something in the message body after signing it I get from the ws "Error verifying signature". But I constantly get an error "can't deserialize element, doesn't belong to the namespace" that I don't know if it's related to your libraries. Checking a sample of a valid soap message I just miss in my message the tag , p373 is the namespace of the root node in the body. I see the attribute PrefixList on the function processTransforms from xmlseclibs.php, but I don't know why the tag
Hi Rob,
I need to consume a webservice from php who requieres a signed SOAP message, so I'm trying to do it with your library. As the server is really strict about namespaces, based on a working soap message I have had to make my custom body message through SoapVar, something like this: "$xmlParam=new SoapVar('111222user',XSD_ANYXML);" Before invoke signSoapDoc the body looks like: "111222user" but after signing it looks like: "111222user" "" is the problem. ¿Is there a way to remove ns1 reference from it? ¿Or a way to say to signSoapDoc not to modify body message? Thanks for your incredible work. I have also tried WSO2 but is a nightmare for me.
Hi. i would like to use your api to work with securet soap. I tried Wsf projekt but didnt work well with moodle so i want to try yours.
Can you help me? I cannot find any example how to configure a Soap server you have onli examples for soapclient
Hi Rob.
Realy a grat work. I would like to implemet it with moodle. I tried fistril WSO framework but it didnt work. Server response was allways empty -.-;? In your examples i coulnt find a server implementation of ypur API. Do you have any example please. (I know my english is bad ^^;)
Here is a really simple example:
http://www.cdatazone.org/files/soapsrv/quote.phps I haven't worked on the server portion that much outside of it just verifying a signature sent from the client. Any particular reason you need a SOAP server rather than implementing a simpler REST based API? SOAP does have it uses but in many cases its really not needed and a RESTful service makes it easier on the developers to integrate with.
Hi i wrote The task was to implement the ws security with the Moodle soap extension. therefore i look for server implementation of ws-security
Hi Rob, do you have any clue how i convert JSON Requests into Excel?
Sorry for OT
I've been trying to get PHP to work with a SOAP web-service that requires WS security. This is exactly what I needed. Thanks!
|
Tracked: Mar 24, 06:17