web-services

WCF Service Application VS ASP.NET Web Application?

寵の児 提交于 2019-12-25 03:19:35
问题 I'm building a Web API to access my database. I would like to create a Single Page Application Website first then a iPhone, Android and Windows application. Classic. My data and business layer are already finished. First I decided to build a Json WCF Webservice. In Visual Studio I created a WCF Service Application . I modified the Web.config file to accept Json requests and implemented my interface and svc file. After that I discovered ASP.NET Web Application with the Web API template . So I

How to create SOAP service using ZF2?

雨燕双飞 提交于 2019-12-25 03:19:21
问题 What is wrong in my code? How to create SOAP service for my Math class? Please note that, i don't mentioned namespace for Math.php because if i did that i got class Math does not exist message on browser. Without mentioning namespace of Math class how to create Math object in indexAction(). Please guid me how to create my first wsdl for Math class. Folder structure Module --Soap ----Controller ------>IndexController.php ----Services ------>Math.php IndexController.php include_once __DIR__ . '

parser error - Start tag expected, < not found

老子叫甜甜 提交于 2019-12-25 03:18:41
问题 Since we upgraded to php 5.3 we are seeing this error on this app.. Is there anything we can change on the code to make it work again? Fatal error: SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://servicios1.afip.gov.ar/wsfev1/service.asmx?WSDL' : Start tag expected, '<' not found in /home/whlatam/public_html/e-factura/inc/funciones.php on line 373 On line 373 of file funciones.php we have this 'soap_version' => SOAP_1_2)); 回答1: Looking at, PHP Fatal error: SOAP-ERROR: Parsing WSDL:

how to debug a web service in IntelliJ?

流过昼夜 提交于 2019-12-25 03:17:17
问题 Please correct me if I did anything wrong: I created a web service (WSDL) in Java and it has a method TestCall() . I also created a website http://testwebsite:8000/abc/index.html, and this website is calling the web service in step 1. I created a remote debugging for it in IntelliJ. I put testwebsite as the host and 8000 as the port number. Once I went to http://testwebsite:8000/abc/index.html and click on TestCall() , it didn't go to the breakpoint in IntelliJ. When I was trying to remote

Sharing Interfaces that are implemented in WCF Service

冷暖自知 提交于 2019-12-25 03:15:47
问题 I have wcf web service. Serice of course implements insterface with ServiceContract attribute. It also implements another interface that does not have ServiceContract attribute and is stored in external dll. When I generate proxy than I do not get that second interface implemented in proxy object. Is there any way to make svcutil to generate proxy that implements it or I need to add that code manually? Regards 回答1: If you add a reference to the assembly containing the interface definition in

Trigger/Prevent page event by using asynchronous webmethod return value in JavaScript

♀尐吖头ヾ 提交于 2019-12-25 03:11:33
问题 I use a webmethod to identify whether the user can "Delete a record". Here is the JavaScript code before adding this access control. $(".apply-delete-msg").live('click', function() { return confirm("Are you sure you want to delete this item(s)?); }); Now it will call the webMethod to validate the access <WebMethod(EnableSession:=True)> _ Public Function CanAccess() As Boolean Return ServerCode.IsAccessable End Function The new JavaScript then: $(".delete-msg").live('click', function() {

Invoking https web services from Glassfish 4 returns HTTPS 403 Error

ⅰ亾dé卋堺 提交于 2019-12-25 03:06:11
问题 I am developing a web service client with NetBeans 7.4 in Glassfish 4.0; The host server runs https (secured). I could access the WSDL in NetBeans successfully and generated the required classes. The problem is that I get a error: com.sun.xml.ws.client.ClientTransportException: The server sent HTTP status code 403: Forbidden when I deploy my application into Glassfish 4.0. Interestingly, this problem does not occur when I deploy into Tomcat or when I develop, build and run as a Java Desktop

Creating a WebService inside my MVC project

こ雲淡風輕ζ 提交于 2019-12-25 03:05:36
问题 I know there's another thread about WebapiConfig.cs and RouteConfig.cs, but I can assure this is a different question. My MVC project was quite developed by the time I found out I would have to create a webservice (in the same domain) where I would grant access to one of my models (both in JSON and XML). In order to do so, I right clicked over my Controllers and selected "add Web API 2 Controller with actions, using Entity Framework" and selected also my model class and db context. The

Can't access tempconvert web services

青春壹個敷衍的年華 提交于 2019-12-25 02:59:37
问题 I am consuming tempconvert web services but it does not give any result just show blank screen. Does that mean my app does not access the web services, or i have to some setting so it will connect to URL, i am using ksoap2 2.6.5 . this is my code package com.example.webservice2; import android.os.Bundle; import android.widget.TextView; import android.app.Activity; import org.ksoap2.*; import org.ksoap2.serialization.SoapObject; import org.ksoap2.serialization.SoapPrimitive; import org.ksoap2

Play framework - pass multiple images in a post request

↘锁芯ラ 提交于 2019-12-25 02:58:08
问题 WHAT I DID: I am developing Rest web services using POST method in the play framework(Using Java). I did create simple web service POST API and also called it from the client side. WHAT I WANT: In this I want to pass multiple images as parameters in the request to the service from the client side(android/IOS/web). But I didn't get any APIs/Tutorials regarding this. I did try to pass one image to the service. But when I pass the Image request, I am getting the null in the line "FilePart file =