Is it Possible to Send Data to XMl Web Service hosted on a Local PC from Android App? - android-ksoap2

I am sending data from Android java App using ksoap envelope that i wrote, the problem is when executing the code, it hits the web service on my local PC but the data received is nothing.

I am answering this for others to benefit from.
Solution Steps:
1. Copy the wsdl service description and save it into a .xml file.
2. Go to this website easy wsdl generator and generate java classes.
3. Go to the .zip folder that you get from step 2.
4. Copy the .jar file from the libs folder and paste it into the libs folder in your Android app.
4. Copy the .java files from src and paste them into Android package in src folder.
5. Go to ServiceSoap.java and ServiceSoap12.java and change the localhost to your PC static IP address.
5. Go to the main activity in your Android Project.
6. Use AsyncTask class and call the method you need.
7. Add internet Permission to your AndroidMainfest file.

Related

Automated release to Azure web app using "AzureRM Web App Deployment" step

I have a build definition, which uploads artifacts (loads of css, js, aspx, dll files etc.) and is working as expected.
I now try to configure a release definition with the AzureRM Web App Deployment step to deploy this to a web app.
The web app already exists and I can deploy to it easily directly from Visual Studio.
In the step I have filled in the following fields:
AzureRM Subscription (appears as expected in the dropdown)
Web App Name (appears as expected in the dropdown)
Package - I want to include all files, so I've set it to $(System.DefaultWorkingDirectory)/MyBuildDefinition/**/.
SetParameter File - left blank
When I try to run the deployment the process finds the first file matching the flag and then fails with the following messages:
2016-08-31T16:01:37.7827094Z msdeploy.exe is located at 'C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe'
2016-08-31T16:01:37.7867084Z filePath = Find-Files -SearchPattern C:\a\r1\a/MyBuildDefinition/**/.
2016-08-31T16:01:38.3277086Z filePath = C:\a\r1\a\MyBuildDefinition\Web\App\app\build\css\brand-style.css
2016-08-31T16:01:38.5537092Z ##[error]Cannot process argument transformation on parameter 'files'. Cannot convert value to type System.String.
2016-08-31T16:01:38.5907083Z ##[section]Finishing: Deploy web app
I am using an OOTB hosted build server.
I also tried running this with Package field set to a zip file, which I created for testing, but this didn't work either.
How can I take advantage of this step in my scenario?
Can this consume non-zip files?, if it has to be zip then how do I generate it from my artifacts?
Ok, got it.
It can't be just a normal zip file. It has to be a zip file generated using MSBuild.

Deploy .Exe via Web

I've an HTML5 application packaged into OpenFin environment. The complete package is inside an .Exe executable that we wish to ship to end users.
We tried to create a link to the executable that could be downloaded from a web link - but seems most of the company' security permissions environments/firewalls block .Exe file downloads.
Our requirement is to ship the .EXE file (we do not have certain files - so may not be able to effectively create a clickonce deployment package)
Is there a better way, even using ClickOnce to ship the .Exe via web url?
You can wrap exe into a zip and can ship..

Configure clickonce deploy so that user can find and open included pdf file

I created a Documentation folder in my project, and added the user guide, a pdf file, to my project (as content, copy if newer)
Using a click-once deploy, the file is copied - but casual users will not be able to navigate to its location using explorer. How can I configure the deployment to make it easy for the user to find this file when they want to read it?
I do not think there is a ClickOnce solution to this, you need to create the folder after first run (for example ProgramFiles/Appl) and copy the help file to the folder manually.
Another way to handle this is to copy the file to MyDocuments/yourappname/appdata/ when your application starts up or when the user asks for hte file, and then direct the user to it there.

How to deploy PhoneGap app in multiple Platforms

Created one app using phonegap in Xcode, want to deploy that into multiple platforms like android phone and etc.
Can any one please give the answer, how can i achive this.
Take the contents of the "www" folder of your application and copy them into the "phonegap/lib/DESIREDPLATFORM/sample/www" where DESIREDPLATFORM stands for the target platform (I.E.: blackberry, android, etc). All files should be copied, except for the "phonegap.js" file, which is specific to each platform.
after that, go to the command prompt, navigate to the phonegap "sample" folder, and compile the application with "ant DESIREDPLATFORM compile" (you already know what DESIREDPLATFORM stands for). It will create the appropriate package for the platform.
One way of doing that is to create a repository(either public or private depending on your need) of your assets folder and using the phonegap build app, you can find it here: https://build.phonegap.com. I have tested that and it works great.

TFS 2010 Build Automation for a Web Site: Delete a file in the publish folder after build

We are trying to adapt a build automation strategy for our ASP.NET web site (not a web project) in vs 2010 ultimate & tfs 2010.
Build definition makes the build and publishes the web site into folders like
<drop_folder>\<defn_name>\<defn_name>_<year><month><day>.<build no>\Release_PublishedWebsites
Now we try to delete particular files and folders from that folder. For instance the "images" or "files" folders, that we need to exclude before packaging. I know that if it were a web project, there exists a straightforward solution. We also tried to modify the build process template (xaml) file. There is a "DeleteDirectory" component but we couldn't figure out what to write to the Directory variable.
Thank you.
If you follow the XAML way, you would just have to feed the Directory argument of DeleteDirectory with the physical UNC path to the folder you 're trying to get rid of.Something along the lines of String.Format("{0}\\{1}\\{2}\\Release_PublishedWebsites", BuildDetail.DropLocation, BuildDetail.BuildNumber, Date.Now.Year)
should get you near to your target. Since the drop location of the build might be on a different machine, also ensure that the account conducting the build (by default = NetworkService) has the rights to delete folders on the target.

Resources