web-services

Webservices client and ssl

浪子不回头ぞ 提交于 2019-12-25 03:35:25
问题 I have a Java client that calls a web service at the moment using the Http protocol. When i try to use the Https protocol i keep getting this error java.io.IOException: DerInputStream.getLength(): lengthTag=127, too big. Any ideas what could be up? Thanks Damien 回答1: Due to american export regulations in encryption technologies, you can't use strong encryption out of the box. Your error looks like you (or your framework) is trying to use strong encryption, and other parts of the framework is

method not found error while accessing web service using asihttprequest

不问归期 提交于 2019-12-25 03:34:29
问题 I've created SOAP web service that would be accessible from Objective-C environment with ASIHTTPRequest library using JSON-RPC bridge . When I tested it from JavaScript everything where OK. But from Objective-C I got an error {"id":2,"error":{"code":591,"msg":"method not found (session may have timed out)"}} Web Service: @WebService() public class UserWS { /** * User data list - id, first name, last name, service number, username */ /** * Provides web service to get current user with waiter

how to return json objects from java rest api

冷暖自知 提交于 2019-12-25 03:34:17
问题 I am trying to return a JSON object from a jax-rs but I get an internal server error whenever I try to access. This is my method, I am using javax.ws.rs.GET . @GET @Produces("application/json") public Testy getJson() { return new Testy("hello"); } This is the class: public class Testy { private final String value; public Testy(String value){ this.value = value; } public String getValue(){ return value; } } My Pom.xml has this dependency, I have tried various dependencies, but none work. There

I need to be able to clone a SOAPMessage object, but it doesn't implement Clonable. How can I do this?

笑着哭i 提交于 2019-12-25 03:33:07
问题 I have a "skeleton" SOAPMessage object, which will be the starting point of other SOAPMessages. I want to be able to clone the base SOAPMessage, so I can then fill it with the information needed and send it, and do this every time I need to send a SOAPMessage. How can I clone a SOAPMessage, since it doesn't implement Clonable? I've been looking for other frameworks and found Apache CXF, which has a SoapMessage class that is Clonable. However, I can't use it because the WSDL I'm using is old

WCF Service called too soon in WebForm?

自古美人都是妖i 提交于 2019-12-25 03:32:31
问题 I'm having an odd issue where it seems my WCF service is being called too soon when called from inside a WebForms event handler. Specifically, the Guid being passed to the service call is all zeros, as if it hasn't been created yet... When I fire up the debugger and put a watch on the guid variable, I can see that it indeed is being created as a valid, non-zero Guid. Here's the code: protected void button_click(object sender, EventArgs e) { var title = titleTextbox.Text; var guid = Guid

Android soap webservice Asynctask app force stop error

孤街醉人 提交于 2019-12-25 03:29:20
问题 i have wrote a program in android for webservice using soap. but iam not aware of asynctask. Can some one Correct the program flow. I need to send a integer value and get converted value thru webservice package com.example.webservice; import org.ksoap2.SoapEnvelope; import org.ksoap2.serialization.PropertyInfo; import org.ksoap2.serialization.SoapObject; import org.ksoap2.serialization.SoapPrimitive; import org.ksoap2.serialization.SoapSerializationEnvelope; import org.ksoap2.transport

How do I call perl cgi script from another perl cgi script

这一生的挚爱 提交于 2019-12-25 03:27:15
问题 I have a cgi script which takes few parameter like below. testScript.cgi?arg=1&arg2=SomeThingElse&arg3=otherThing..... The above script works well and perfectly. Now I have another perl cgi script called mySecondScript.cgi . It does its own thing but I want to call textScript.cgi with arguments which are calculated in this script. How do I do that. Any elegant solution will be appreciated. 回答1: You probably want to use LWP::Simple to call the second program. Inside mySecondScript.cgi you

Axis2 with complexTypes in Groovy

萝らか妹 提交于 2019-12-25 03:25:07
问题 So I'm having a couple of ANT scripts using Groovy to process complex calculations normal ANT can't do (at least afaik). I'm trying to access an Axis2 web service using a SOAP-envelope via Groovy. The request and response is pretty simple, except for two complexType attributes (one in the request, one in the response). The first thing I've stumbled across was Groovy Soap . It is quite easy to use, you simply instantiate a SoapClient and call the web service method. Unfortunately it cannot

ws-security and transport security

五迷三道 提交于 2019-12-25 03:24:07
问题 I can not understand the following: WS-Security and https are presented as alternatives. The problem though with https (as described) is when there intermediaries i.e. proxies are between client and server. Then we can work arround and guarrantee point-to-point security e.g. between proxy and server but not end to end. So we can have: Client <--(secure)--> Proxy <--(secure)-->Server But this is not equal to Client <--(secure)--> Server So why is not the end-to-end guaranteed? Could someone

Best approach to serialize XML to stream with Java?

不想你离开。 提交于 2019-12-25 03:22:09
问题 We serialize/deserialize XML using XStream... and just got an OutOfMemory exception. Firstly I don't understand why we're getting the error as we have 500MB allocated to the server. Question is - what changes should we make to stay out of trouble? We want to ensure this implementation scales. Currently we have ~60K objects, each ~50 bytes. We load the 60K POJO's in memory, and serialize them to a String which we send to a web service using HttpClient . When receiving, we get the entire String