web-services

validate username ajax and json and asp.net

牧云@^-^@ 提交于 2019-12-25 08:04:23
问题 So I'm new to json/ajax/jquery/webservices I am trying to do a join page whereby the user types in a few letters and gets instant feedback on whether or not the username is available or not. I have an html file [the user front end], and an asmx webservice, the webservice checks to see if whatever text it has gotten exists [it runs a stored procedure which works fine] My html file doesn't seem be to calling my webservice. I have verified the webservice works by going to the asmx page and

SOAP messages are not sent using wso2 ESB REST API

﹥>﹥吖頭↗ 提交于 2019-12-25 07:59:12
问题 I'm trying to expose SOAP backend as REST API using wso2 ESB. I'm using payload factory to send the soap body message, but it doesn't work. This is my API resource in wso2 esb code : <?xml version="1.0" encoding="UTF-8"?> <api context="/akademik" name="SampleAPI" xmlns="http://ws.apache.org/ns/synapse"> <resource methods="GET" uri-template="/students?symbol={symbol}"> <inSequence> <log level="custom"> <property expression="$url:symbol" name="symbol"/> </log> <payloadFactory media-type="xml">

Image base64 in Angularjs to c# varbinary(max)

南笙酒味 提交于 2019-12-25 07:50:35
问题 I have this class TBEquipamento in my webservice : public partial class TBEquipamento { public int idEquipamento { get; set; } public int idTipoEquipamento { get; set; } public Nullable<int> idLocalidade { get; set; } public string NumSerie { get; set; } public string TAG { get; set; } public string Potencia_KVA { get; set; } public Nullable<float> TensaoPrimaria_V { get; set; } public Nullable<float> TensaoSecundaria_V { get; set; } public Nullable<int> idFabricante { get; set; } public

Adding username and password to soap header in Java by using PasswordText Type and axis2

心已入冬 提交于 2019-12-25 07:29:57
问题 I want to add username and password to soap header in java by using PasswordText Type and axis2. Code snippet I use public static void WSSPasswordAuthentication(org.apache.axis2.client.ServiceClient client, String endPointUrl, String username, String password) throws CSException{ OMFactory omFactory = OMAbstractFactory.getOMFactory(); OMElement omSecurityElement = omFactory.createOMElement(new QName( "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd",

What is the correct format of a SOAP response

爱⌒轻易说出口 提交于 2019-12-25 07:29:21
问题 I'm working with a Web Service that i didn't make and i'm getting two different responses from the same method, data is the same but format changes and that crashes my app Response 1: <SOAP-ENV:Envelope xmlns:SOAP-ENV=...> <SOAP-ENV:Body SOAP-ENV:encodingStyle="..." xmlns:NS1="..." xmlns:NS2="..."> <NS1:...> <return href="#1"/> </NS1:...> <NS2:..." xsi:type="NS2:..."> </NS2:...> </SOAP-ENV:Body> </SOAP-ENV:Envelope> Response 2: <SOAP-ENV:Envelope xmlns:SOAP-ENV=...> <SOAP-ENV:Body SOAP-ENV

How to prevent namespace wrapper tags in SOAP wsdl?

给你一囗甜甜゛ 提交于 2019-12-25 07:19:16
问题 I created a wsdl webservice with cxf . Problem: both my request and response contain an extra wrapper element with the namespace. Question: is it possible to prevent this wrapper element? Because for me it adds no value, and is just an additional element when others would use my webservice. For example I'd like to reduce the <com:MyNameOperation><MyNameReq> hierarchie in the following example to be just one element, not two nested elements. @WebService(name = "myname", serviceName = "myname",

is it an anti-pattern to use more than one method for sending information in a RESTful POST

不想你离开。 提交于 2019-12-25 07:15:12
问题 This SO answer thoroughly goes through all possible methods of passing and accessing parameters in a RESTful POST method. Is it an anti-pattern to use more than one method? For instance would you consider the following method that passes a JSON object in the content body of the POST HTTP method and also uses a path parameter an anti-pattern? @POST @Path("/modifyPerson/{idx}") @Consumes(MediaType.APPLICATION_JSON) public Response modifyPerson(Person newPerson, @PathParam("idx") int i) { // ...

How do I remove operation element from soap body in WCF?

醉酒当歌 提交于 2019-12-25 07:13:02
问题 I have wcf services using .net framework 4.0, all setting is default of visual studio WCF project namespace ApiFrame{ [ServiceContract(Namespace="http://abc.com.vn/")]public interface IApiframe { [OperationContract(Name = "process", Action="")] string testprocess(string request); this is what my service result (based on SOAPUI): <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:api="http://abc.com.vn/"> <soapenv:Header/> <soapenv:Body> <api:testprocess><!-- I

Adding soap faults without changing WSDL file?

为君一笑 提交于 2019-12-25 07:12:57
问题 I would like to add some SOAP Faults to my JAX-WS web service, but I would like not to change content of WSDL schema. As far as I read I would have to use annotation @WebFault to define SOAP Fault and it automatically causes changes in WSDL during next build. Is there any way to use SOAP Faults without changing content of WSDL scheme? 回答1: When you throw an Exception from your code it will be automatically mapped to a SOAP fault by JAX-WS in the response. There's no need to define a fault in

PHP SOAP Error - Couldn't find <definitions>

不打扰是莪最后的温柔 提交于 2019-12-25 07:12:12
问题 Bit of a curly one I can't work out (I've not used SOAP an awful lot). I have a WDSL web service I need to consume: https://gist.github.com/aleayr/0dc4f26b0b9dd6ba7dae But PHP is throwing a Fatal error when trying to consume it, saying PHP Fatal error: SOAP-ERROR: Parsing WSDL: Couldn't find <definitions> in 'http://path/to/ServiceManager.svc?wsdl' in C:\path\to\submit.php on line 37 I note the actual XML tag has a wdsl namespace in front of it, is there any way to get PHP to recognise this?