web-services

Jaxb classes from schema generates getter setter method in uppercase

Deadly 提交于 2020-01-07 02:24:28
问题 I'm generating a top down web service with JAX-WS. In the wsdl I'm importing a xsd containing all necessary elements. I need all the xml nodes to be displayed in uppercase in soap request and hence I kept the element names in the xsd to upper case. But while generating the classes from the wsdl, I am able to see the getter and setter method are named in upper case as well but not the variables. For ex., if I use 'SOURCE' as an element in xsd, i'm getting the corresponding getter method as

can WCF JSON WebService operation with non-string parameters be called from browser?

两盒软妹~` 提交于 2020-01-07 02:24:11
问题 I understood that UriTemplate supports only string parameters unless you have them in form like below (id={id} etc.). Here for example: Can I pass non-string to WCF RESTful service using UriTemplate? However I can't make the following work. Even if I change 2nd parameter to string (not string array). Is this kind of operation callable from a browser by typing URL in address-field? [WebGet(ResponseFormat = WebMessageFormat.Json, UriTemplate = "id={id}/legend={legend}/x={x}/y={y}")] public

how to received “Accept” header in REST web service server side

为君一笑 提交于 2020-01-07 02:05:59
问题 i have write a REST web service in java.But If I want to receive Accept : application/json header ,how to do that?If I want to receive more custom header like "CDMI-Speciation-1.0" , how can i receive both headers? My web service is like that: @PUT @Consumes("application/json") @Produces("application/json") public vodi doPut(){.....} My request should be like : curl --header "Content-Type:application/json" --header Accept:application/json" --header "CDMI-Specification-1.0" http://localhost

how to received “Accept” header in REST web service server side

不羁的心 提交于 2020-01-07 02:05:33
问题 i have write a REST web service in java.But If I want to receive Accept : application/json header ,how to do that?If I want to receive more custom header like "CDMI-Speciation-1.0" , how can i receive both headers? My web service is like that: @PUT @Consumes("application/json") @Produces("application/json") public vodi doPut(){.....} My request should be like : curl --header "Content-Type:application/json" --header Accept:application/json" --header "CDMI-Specification-1.0" http://localhost

Converting a WCF (svcutil) C# code into the corresponding SOAP envelope POST request

老子叫甜甜 提交于 2020-01-07 01:55:27
问题 This is how I'm currently (and successfully) connecting to a WCF web service in C#. I do not have any control over this web service as it's not developed by me, so I cannot change it . Here is the C# code I use: WSHttpBinding binding = new WSHttpBinding(); binding.Security.Mode = SecurityMode.TransportWithMessageCredential; binding.Security.Message.ClientCredentialType = MessageCredentialType.UserName; binding.Security.Message.NegotiateServiceCredential = true; binding.Security.Message

Qt Web Service post query

送分小仙女□ 提交于 2020-01-06 20:16:32
问题 I'm trying to use this http://www.rcsb.org/pdb/software/rest.do REST services with Qt. I did some get requests with no problem, but when I try to do a post request to its advanced search(which is an XML web service), I get no response. This is the post request I'm trying: <orgPdbQuery> <queryType>org.pdb.query.simple.StructureIdQuery</queryType> <description>Simple query for a list of PDB IDs (1 IDs) : 3I5F</description> <structureIdList>3I5F</structureIdList> </orgPdbQuery> And this is my

soap response Firefox vs. soapui - same machine

时光毁灭记忆、已成空白 提交于 2020-01-06 20:01:12
问题 Why does a Soap response is blocked(I see 200 OK but not response message) in FF due to (Reason: CORS header 'Access-Control-Allow-Origin' missing). But not through SoapUI from the same machine(computer). Is it that FF is blocking the response. If so , how can I make it work. I used this to send Soap request through FF. 来源: https://stackoverflow.com/questions/35045971/soap-response-firefox-vs-soapui-same-machine

Invoke an application using webservice

馋奶兔 提交于 2020-01-06 19:59:43
问题 I'm trying to write a web service on my server windows server2008 to invoke some applications on my server. I user system.diagnostics.process class to invoke exe files. It works fine on server itself, but when i use the webservice over a different pc, I got error message which is specified file not found. But when I just launch cmd.exe it works fine too. As far as i understand I have access to server which i can run at least cmd.exe on. But when it comes to invoke different exe's it just

Geting NSURLConnection error while calling HTTPS Soap service

百般思念 提交于 2020-01-06 19:58:33
问题 I am trying to get data from Soap request but getting my app crashed with this error: 2016-02-08 11:12:11.524 Example[567:128898] NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9843) Response: nil fatal error: unexpectedly found nil while unwrapping an Optional value I have enabled Security settings in plist and calling other services successfully. Note: The service is on HTTPS, am i getting this error because of this? is this required any certificate? i am calling

Geting NSURLConnection error while calling HTTPS Soap service

会有一股神秘感。 提交于 2020-01-06 19:58:03
问题 I am trying to get data from Soap request but getting my app crashed with this error: 2016-02-08 11:12:11.524 Example[567:128898] NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9843) Response: nil fatal error: unexpectedly found nil while unwrapping an Optional value I have enabled Security settings in plist and calling other services successfully. Note: The service is on HTTPS, am i getting this error because of this? is this required any certificate? i am calling