aspose file tools*
The moose likes Web Services and the fly likes Struggling with use of my Webservice from PHP client. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Struggling with use of my Webservice from PHP client." Watch "Struggling with use of my Webservice from PHP client." New topic
Author

Struggling with use of my Webservice from PHP client.

Karl Krasnowsky
Ranch Hand

Joined: Jan 16, 2009
Posts: 97
Hoping that enough traffic through here is proficient enough in PHP w/ Webservices to recognize and offer suggestions for the problem I'm having.

I've deployed a webservice server (written natively in Java) that I am hopeful a remote team using PHP will be able to exploit.
I've done my testing from a Java based web service client and it appears to be working fine, i.e., I can accurately generate the client class files by pointing at the WSDL (soap 1.1) and class files are automagically generated, method arguments are properly typed and perform operations on the API exactly as I would have expected.

The remote team is not exactly PHP experts, especially in the context of webservice utilization. They have a couple of examples that they're working from... how hard can it be? However...

Attempts to generate the API information of my webservice in their PHP setup is proving to be a problem. Type information (xsd) doesn't seem to be getting overlaid during the wsdl access process in their PHP application. In examples that seem to work for PHP, xsd:schema information is embedded into the wsdl information in contrast to my wsdl that declares an import of an xsd file within the body of the wsdl file.

Is there supposed to be an interim process that creates a file out of the two, i.e., merging the import of the xsd into the wsdl to create the "real" wsdl for the PHP client to use? Are there libraries that need to be added to the PHP "space" that will do this for them?



[SCJP 6]
[SCBCD in process]
Subin Sugunan
Greenhorn

Joined: Jul 01, 2009
Posts: 14
Karl

Can you make sure the WSDL created will work using some testing tools ?

Use eclipse web service explorer or storm http://storm.codeplex.com/


Thanks and Best Regards
Subin Sugunan
Karl Krasnowsky
Ranch Hand

Joined: Jan 16, 2009
Posts: 97
Subin Sugunan wrote:Karl

Can you make sure the WSDL created will work using some testing tools ?

Use eclipse web service explorer or storm http://storm.codeplex.com/


Well, maybe it's a bad assumption, and I'll give a look at a tool to double check, but wouldn't it be a good guess that the wsdl is sound if WSDL2Java can properly generate the Java classes from the published wsdl?

I'm covering all exposed functionality that my service provides through a web service client test bed which is why I suspect a missing bit in the PHP code to properly decipher.

BTW, gave Storm a try... thanks for the link, but it simply shows that my service is working as I expected.

~Karl
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struggling with use of my Webservice from PHP client.