Is there any way to convert JAX-RPC to JAX-WS web service. The issue is we need to generate a client of this PHP based web service in java. The web service is written in PHP in RPC style, and when java team try to generate the client it get error "Selected wsdl is rpc encoded. You must select JAX-RPC Client" so we are requested to change the encoding style from RPC to WS can any one help in this regard
EDIT
Here is a plugin for netbeans that allow user to generate java based jax-rcp client. but as pre client requirement we need to change the web service. That is why need that.
Thanks in advance.
Related
I'm still new in programming and my situation is:
I want to do a webpage connect to MySQL by using php
How I read the data from card reader in this way? By using php also?
And how I format or read the data from the card? And then it is necessary for me to get card reader which has SDK so that I can read the data from the card?
A PHP web application's code is typically executed on the server side, so if you want to interact with a smartcard reader on the client side, you will need to use something else besides PHP code to access that client-side hardware. There are different possibilities on how to perform such access:
You could develop/use a Java applet embedded into the web page -- this is what most web applications do at the moment. If the smartcard reader is PC/SC-compliant, you could use the Java SmartcardIO API within that applet to access the reader and forware information to your PHP application on the server.
Another option could be a client-side application (you would need to create and provide that application) that acts as a web server itself and processes JSON (or whatever) GET/POST requests. That client-side application would then access the smartcard reader and your web application's (Java) script code could send JSON (or whatever) requests to it to retrieve card data.
Instead of a client-side stand-alone application you could also create a web-browser plugin (again, you would need to create and provide that plugin). That plugin could then act as a proxy between your web-application and the smartcard reader.
You must use this library
PC/SC for PHP5
And install the php extension for PC/SC https://pecl.php.net/package/pcsc
But you need to install an older version of Laravel to use PHP5, the library is not compatible with PHP 7
I want to code an Android client and a Windows.exe server application (possibly PHP., I am still trying to decide).
I have no problem with developing the server app, but have not yet done any Android coding. Mostly, though, I am unsure about how to communicate between client and server.
A client aapp will login to the server then at regular intervals send its location (GPS coords) to the server which will store the data in a MySql database,
A second Android app will display a historical trail of where the first user has been using Google maps, plus a little more functionality.
Since I am not serving HTML, I am wondering whether to use HTTP GET / POST or a proprietary protocol over TCP/IP. I would like to encrypt it, so SSL seems in order,
Is there any compelling reason to use one or the other of use HTTP GET / POST or a proprietary protocol over TCP/IP?
Would coding my Android app be easier if I used JSON as my data format (or something else?), irrespective of the protocl used to transfer the data?
Hmmm, since much of the data returned as a response to GET by one of the apps will be data used to draw a Google map with a series of points showing travel, could I do the heavy duty processing on the server & return the HTML (or JS) necessary to display it an dhave the app embedd a browser in its UI to display the map? (the UI will also disply more, but maybe I shoudl just make it browser based HTML & JS, rather thn an actual Jav Android app? As you can see, I am confused)
[Update] I want to code both the clients and the server and to host the MySql database. I would prefer no 3rd party frameworks unless they are excedding simply to use and play very well together with Delphi or PHP.
I may recommend you to use Wcf with poco entity that provide you security as you want and create client in android to consume it.here is simple example of using wcf in android-http://fszlin.dymetis.com/post/2010/05/10/Comsuming-WCF-Services-With-Android.aspx
I would strongly recommend the use of the newest Google Play Services with the Google Cloud Messaging... It takes out of you all that work.
Check out, see if you like ;D
Google Cloud Message: http://developer.android.com/google/gcm/index.html
There is also a great video of this year's Google I/O about the maps improvement on Google Play Services:
https://developers.google.com/events/io/sessions/325172829
Are you trying to create App that can be delivered from Google Play Store or a Andriod enable Web application? You Question is confusing in your need. If you are looking to create Andriod Apps then definitely PHP is not going to serve it up. Look for Andriod SDK and create your interface using that, then for Windows Server EXE you can do PHP based API or as suggested by other answers. But for User interface PHP is no. You need to read and understand the different between APP and Web App. or your question is not very clear on topic.
i wanna consume a php web service with asp.net but web service requires post data. So add reference tab is not working for me? is there any solution to that problem.
thanks
If your php service has a WSDL, you can use that to consume the service in .Net, otherwise you need to generate your soap messages manually - see Building SOAP message with XMLDocument VB.NET for an example
We connect to a web service hosted by another company. We send a customer's basic info to the service, and it replies with rates/prices for that customer.
I am a PHP guy -- started out playing with basic HTML, then delved into PHP about 8 years ago, and my entire web app is PHP with javascrtipt/ajax mixed in as needed. I'm a learn-as-I-go guy.
For the last two years, the service has been an aspx web service, which was easy -- just connect with PHP's SoapClient. Now, the company hosting the service has changed it to WCF, and the binding is wsHttpBinding, and authentication is done via x509 certification.
I've determined that PHP's SoapClient can't handle wsHttpBinding. So my first roadblock - how the heck do I connect to this service? I went as far as to install MS Visual Web Developer 2010 Express, and then I used svcutil.exe to create .config and .cs files for the service. But understand, I've never written anything in C# or VB. I've done a few little VBScripts in the past, and I can handle javascript... but I'm looking at these .config and .cs files and thinking, now what the heck do I do with these??
Basically, I just want to connect to this service using PHP and javascript. But since it seems that's impossible (correct?), is there a way I can invoke a VB/C# operation from within my PHP script? For instance, pull the customer's info from mysql and prepare the data for the service using PHP, then use VB/C# to connect to and communicate with the service? Or any better ideas?
All hints/ideas/suggestions are greatly appreciated!
Interesting. You are connecting to web service hosted by another company and they probably know that you are using PHP. Despite it they modified the service in the way which is not fully compatibile with PHP.
I'm .NET guy. I have already done some projects where WS-Security an PHP was involved. I was in opposite situation. My service was written in PHP and I had to consume it in .NET. The situation was much easier because .NET supports much bigger set of WS-* protocols.
I know that PHP team used WSO2 Web Services Framework to create the service. You can try to use it in your case to consume .NET service.
I am trying to create a webservice using the PHP Soap extension and I am having problems with the .wsdl. Is there an easy way to generate 2.0 wsdl's? Where is a good site (or book) that I can look to in order to determine how to build the WSDL? I have no problem getting my soap client to retrieve soap messages from other web services so I know soap is installed and working. I have found a few links out there that generate WSDL's for you, but most of the sites are down. Any help pointing me in the right direction would be helpful
PHP does not have a built-in WSDL generation utility. I would recommend using Zend_Soap_Server which supports WSDL generation via its Autodiscover feature.