Windows Phone 8 w/ REST or SOAP - web-services

I didn't find any resources about this topic. Can you help me? My question is: Can I use REST or SOAP web services with wp 8 or it just supports WCF?

You can get HttpClient on nuget see here + example: http://maxgershkovich.wordpress.com/2013/09/30/calling-webapi-service-from-windows-phone-8-using-httpclient/

Related

how to invoke a web service in asp.net using SOAP

I have written a web service in asp.net 4.0. Now I need to invoke this web service using SOAP
protocol but not HTTP Post protocol. Can any one suggest to me how can I achieve this?
See http://social.msdn.microsoft.com/Forums/en-MY/asmxandxml/thread/5486c18a-a796-4f70-9e56-ccee572abcaf.
You have to use Windows Communication Foundation
See How to Consume a Web Service.

Connecting C# .Net 3.5 Web service client to AXIS2 service

We are using SOAPClient 3.0 for accessing web service.
As SOAPClient is deprecated on .Net Framework as per below URL, we would like to move to .Net web services.
http://www.microsoft.com/downloads/en/details.aspx?FamilyId=C943C0DD-CEEC-4088-9753-86F052EC8450&displaylang=en
When I try to add a web reference using the same URL that I used to connect for SOAP, I am getting following error.
"Please enable REST support in WEB-INF/conf/axis2.xml and WEB-INF/web.xml"
Can you please advise on how to proceed.
Regards,
Mugil
What is the URL you are using for "Add Web Reference" ?
I suspect it is the wrong one.
Try appending ?wsdl to whatever URL you originally tried.
I had a similar issue recently with a third-party webservice. As Cheeso suggested, I appended ?wsdl to the end and it came up fine.

Blackberry SOAP Webservice

What is way to connect to SOAP based web service from Blackberry Application. Every one is using KSoap Library. Is there no native support in Blackeberry SDK to connect to webservice.?
User JSR 172 webservices. See NetBeans / Java ME IDE/SDK docs for more information.
I am using Ksoap2 for blackberry application development when i am trying to send request through Soap then requestDump contains the value as
<v:Envelope xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:d="http://www.w3.org/2001/XMLSchema" xmlns:c="http://www.w3.org/2001/12/soap-encoding" xmlns:v="http://schemas.xmlsoap.org/soap/envelope/"><v:Header /><v:Body><DownloadRetailerMobileApp xmlns="http://www.tibco.com/schemas/WSDL/Request.xsd" id="o0" c:root="1"><RetailerMSISDN>09886069494</RetailerMSISDN><RequestType>retailerowner</RequestType></DownloadRetailerMobileApp></v:Body></v:Envelope>
and the responseDump what i am getting is as
<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode xmlns="">SOAP-ENV:Server</faultcode><faultstring xmlns="">RuntimeError: Internal Server Error</faultstring><faultactor xmlns=""/></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>
and then it through an exception is
org.xmlpull.v1.xmlpullParserException: expected:END_TAG{http://schemeas.xmlsoap.org/soap/envelop/}
I use the Java Sun Wireless Toolkit 2.5.2 to generate method stubs from your webservice using your webservices' wsdl file.
You can then call your webservice using the generated files, the syntax will be something like:
WebServiceSoap_Stub stub = new WebServiceSoap_Stub();
String result = stub.webMethod(param1, param2);
I used HttpConnecttion to solve the problem I had.

Websphere 6 webservice issue

We have just upgraded our webservice onto Websphere 6 from websphere 5.
A few clients have come back telling us of issues they are having.
Any clients that post SOAP directly to our service are getting issues such as
Caused by: org.xml.sax.SAXException: WSWS3047E: Error: Cannot
deserialize element request of bean
com.service.generic.query.GenericQuery_Request.
I tried the same soap request against our legacy Websphere 5 boxes and the correct responses are returned.
Do you think this may be an issue within websphere 6 or will we have to regenerate our webservice for Websphere 6?
Any help on this issue is greatly appreciated
Thanks
Damien
You are likely dealing with a library that got changed in the WebSphere. What you can try to do is change the classloader policy to parent_last to see if it will fix it.

Developing a secure WS client for consuming a Axis2 Web Service with Rampart WS Security module?

I have a Axis2 web service secured using Rampart. I do want to develop secure clients for it, preferably JAX-WS based. I tried a lot of tutorials but they are so closed tied with each other, like including Axis2 libraries in the client side. The client should be fairly independent of the WS service framework, as the service can be consumed by .NET based clients or even PHP based clients.
Thanks in advance...
As I understand it, you would want to be able to feed the policy defined for your Rampart secured web service into your JAX-WS client.
That ought to be doable. As you say-- the idea is to be able to execute different client and server technologies, standardized around WSDLs...
We're only just getting into this - so I don't have any hands on knowledge for you.
But I would think you should be able to copy the policy info for your rampart on the server in the services.xml file and put it in your client.
This seemed pretty helpful:
https://metro.dev.java.net/guide/
Sections 12 and 18 in particular.