Friends, I am using web service and forms for a number of situations in my project. But now when I try to use same strategy the data is not provided by the provider function. It gives ‘null’ value always. But I can see the value in chrome web console. page.ts (controller) call function **this.getYearMaster(); ** in constructor my controller function is getYearMaster() { this.projectplanprovider.getYearMaster() .then(data => { this.year = data; //console.log(this.data); alert("hi: "+this.year); }); } my provider function is public getYearMaster() { const obj = {wsname: 'YearMaster' }; const myData = JSON.stringify(obj); return new Promise((resolve, reject) => { console.log('will call …

Member Avatar
+0 forum 0

I created a sample webservice that will ask the user for some information and return in JSON form all the information required. I have two issues here 1. I don't want to make it required that the user enter bot the new dates and renewal dates, I want to make so only one of them is required while the other one is optional 2. If both dates, new and renewal, are entered then the user will get it all in one JSON but I am not sure how to append both lists together. Please let me know if you need …

Member Avatar
Member Avatar
+0 forum 3

i want to send an sms to the web service and wait for some event before deliver it to the target distination

Member Avatar
+0 forum 0

I have been told to do a novice-level project on webservices. I surfed for a while to reach something called Microsoft SOAP development kit. I think it will be really helpful if somebody helps me figure out the theme for my project. Is it OK for a beginner to work on the security part of web services? Or should I opt for developing and deploying simple web services?? pardon me for making this so confusing...

Member Avatar
Member Avatar
+0 forum 1

Hi, I got WSDL files and XSD files from our client. I have created a proxy with this wsdl and added in my projec. I got the result that i want but once webservie returned error i got only exception name in Exception object not detail or inner exception. In SOAP UI i got detailed error with fault code and fault message but in code i got only "SoapMessageHeader Exception". Please help.............

Member Avatar
Member Avatar
+0 forum 2

I am tring to access http://182.18.175.29/CRM2011/XRMServices/2011/Organization.svc?wsdl I can able to see functions list. means i can access to webservice. But while i tring to write data using function create it through "an error occurred when verifying security for the message" my code is below <?php date_default_timezone_set("Asia/Kolkata"); ini_set("soap.wsdl_cache_enabled", "0"); $location = "http://182.18.175.29/CRM2011/XRMServices/2011/Organization.svc?wsdl"; $config['Username'] = 'xxxxxxx'; $config['Password'] = 'xxxxxx'; $config['soap_version'] = SOAP_1_2; $config['trace'] = 1; // enable trace to view what is happening $config['use'] = SOAP_LITERAL; $config['style'] = SOAP_DOCUMENT; $config['exceptions'] = 0; // disable exceptions $config["cache_wsdl"] = WSDL_CACHE_NONE; // disable any caching on the wsdl, encase you alter the wsdl server $config["features"] …

Member Avatar
Member Avatar
+0 forum 2

Hi techies, I am new to webservices. The issue is regarding a SOAP request. The request contains a comment which has the charechter as "&" example., the comment is: You & me & is getting converted to "&amp;" in the receiver side. We tried getting the SOAP request (from our side) replaced the "&amp;" to & in the comment and sent the request to other side But still we get the "&amp;" in the other side. Is there any way to solve the same. Will be happy if I can get some good solution. thanks.

Member Avatar
Member Avatar
+0 forum 2

I want to run a java application which calls a web service. Everything works fine from the netbeans ide, but fails when I run the .jar generated. What could be the problem? How can I check the content type that the error is pointing at? The error says: **SEVERE: SAAJ0537: Invalid Content-Type. Could be an error message instead of a SOAP message** EDIT I am realizing that the problem could be originated by the fact that the web service that Im consuming uses a custom data type, but I have no idea where to look. Please help

Member Avatar
Member Avatar
+0 forum 6

I ve built a simple webservice just for testing and whenever I implement it on my windows phone 8 solution(I add a refference) my methods which are decorated with the [webmethod] naturally seem to convert from type string for example to type void and at the end of the method name I see a ***async*** word. Can anyone please give me a suggestion how to fix that? I need this webservice to target my database. I have to communicate with it via this webservice(actually using it as a proxy to get the the databaseserver). I doing everything locally. For example …

Member Avatar
Member Avatar
+0 forum 3

I am writing a java webservice which has two functions. One has to receive and save two string data and the other has to provide these two data.Suggest me what is the best to achieve this without using a db. I tried the below solution: I had a excel sheet in src folder and saved the data in it. I accessed this excel file using "this.getClass().getResource()". Now, the excel sheet will be copied to bin folder and it will be used by webservice. But I am not sure whether this is the right way to do it

Member Avatar
+0 forum 0

Hi All, I need to create a couple of webservices, where I retrieve info from the database. Found this example on php.net while searching for examples: class MyClass { public function helloWorld() { return 'Hallo Welt '. print_r(func_get_args(), true); } } try { $server = new SOAPServer( NULL, array( 'uri' => 'http://localhost/soap/server.php' ) ); $server->setClass('MyClass'); $server->handle(); } catch (SOAPFault $f) { print $f->faultstring; } ?> // client.php: <?php $client = new SoapClient(null, array( 'location' => "http://localhost/soap/server.php", 'uri' => "http://localhost/soap/server.php", 'trace' => 1 )); echo $return = $client->__soapCall("helloWorld",array("world")); I can see the logic here - And am wondering if oit is …

Member Avatar
Member Avatar
+0 forum 1

Hi, I want to access a web service and get the response in json using javascript. The web services can respond in json and gives me a table of records with a specific campus. I input the campus code in the text box and create the url. Now, I want to get the response in json and I'm really stuck. Can anybody give me some clues please? <FORM NAME="myform" ACTION="" METHOD="GET">Enter something in the box: <BR> <INPUT TYPE="text" NAME="inputbox" VALUE=""><P> <INPUT TYPE="button" NAME="button" Value="Click" onClick="loadurl(this.form)"> </FORM> <script> function getData(form) { var baseUrl = "https://studentwebservices/rest/location/campus/"; var campus = form.inputbox.value; var url …

Member Avatar
Member Avatar
+0 forum 2

I Am relatively new to java database accessing.. I need to access an SQL Server database..basically i need to use it in Android but I am trying to create web service in java. can i have a sample code for it?? **Please Help**

Member Avatar
Member Avatar
+0 forum 2

hi i have a simple website that includes a WebService and a Webform page. i'm trying to call my web service from the web form using jquery. when i type the web service's url using https, i get "Access denied" error from internet explorer. the call works just fine when i type http... my service code: [WebService(Namespace = "http://tempuri.org/")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] [ScriptService] public class WebService : System.Web.Services.WebService { [WebMethod] [ScriptMethod(ResponseFormat = ResponseFormat.Json)] public string HelloWorld(int i) { return "Hello World"; } } my client code: $.ajax ({ type: "POST", contentType: "application/json", url: "https://localhost:56497/Cors/WebService.asmx/HelloWorld", data: "{i:4}", dataType: 'json', success: function …

Member Avatar
Member Avatar
+0 forum 2

Hello, This is my first experience with C# Web Service & AJAX ... I would like to build a page like Facebook that will load the next set of records when we scroll down ... I'm trying to use the code but it's not working at all ... Can you help me ? Thank you Paul **HTML Code** <%@ Page Language="C#" AutoEventWireup="true" CodeFile="auto-load.aspx.cs" Inherits="auto_load" %> <!DOCTYPE html> <html> <head> <title>AEM - Comments</title> <link href="Style.css" rel="Stylesheet" /> <script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.7.1.min.js"></script> <script> var isLoading = false; var v_page_number = 1, v_page_size = 5; $(document).ready(function () { loadComments(); $(window).scroll(function () { // Start loading …

Member Avatar
Member Avatar
+0 forum 2

I am using umbraco and have set up an event handler to replicate content nodes created in the back office for a multilingual site. I am now trying to attach this to a custom context menu item via a web service that gets the return value of a js confirm. I am completely at a loss. I am not allowed to alter the umbraco code so I am building everything on top and I don't know how to connect them. Any nudge in the right direction would be great!

Member Avatar
Member Avatar
+0 forum 1

**i have consumed a webservice (shown below) from webservicex.net into my client C#.NET application but it is returning this whole bunch of XML. Please, how do i get values of only <wind> and <temperature> elements into my application's textbox? Thanks** <string><?xml version="1.0" encoding="utf-16"?> <CurrentWeather> <Location>Madrid / Cuatro Vientos, Spain (LEVS) 40-23N 003-47W 687M</Location> <Time>Dec 22, 2012 - 03:00 AM EST / 2012.12.22 0800 UTC</Time> <Wind> Calm:0</Wind> <Visibility> less than 1 mile:0</Visibility> <SkyConditions> obscured</SkyConditions> <Temperature> 50 F (10 C)</Temperature> <DewPoint> 50 F (10 C)</DewPoint> <RelativeHumidity> 100%</RelativeHumidity> <Pressure> 30.30 in. Hg (1026 hPa)</Pressure> <Status>Success</Status> </CurrentWeather></string>

Member Avatar
Member Avatar
+0 forum 1

am not good enough with curl functions but I understand some :P I have this webservice http://www.psnapi.com.ar/ps3/api/psn.asmx?op=getGames that required to enter a variable "**sPSNID**" to get list of games the XML output will be like this: <ArrayOfGame> <Game> <Id>NPWR00132_00</Id> <IdGameEurope/> <Title>GTA IV</Title> <Image>http://trophy01.np.community.playstation.net/trophy/np/NPWR00132_00_FB41DD6DD0A782A55D7A8497108B84EB19EDA56C/EF4A80E7CECAFBA06A2F60DA0CC3CAC53B77C9D0.PNG</Image> <Progress>3</Progress> <TrophiesCount> <Earned>3</Earned> <Total>3</Total> <Platinum>0</Platinum> <Gold>0</Gold> <Silver>0</Silver> <Bronze>3</Bronze> </TrophiesCount> <Trophies/> <OrderPlayed>1</OrderPlayed> <Updated>false</Updated> <LastUpdated>2012-12-09T13:24:24</LastUpdated> <Released>0001-01-01T00:00:00</Released> <TotalPoints>1275</TotalPoints> <TotalTrophies>66</TotalTrophies> <UserPoints>45</UserPoints> <Stars>3.975</Stars> <Reviews>20</Reviews> <Platform>ps3</Platform> </Game> ...... and so on until </ArrayOfGame> am using this class <?php class GetGamespsn{ public $psnid; public $xmlobj; public function __construct($psnid='') { if($psnid) { $this->psnid = $psnid; $this->load(); } } public function load() { if($this->psnid) { $url …

Member Avatar
Member Avatar
+0 forum 12

I found this example online and cannot figure out why it will not work. I was wondering if anyone could help me figure out why this code does not work ive spend a few hours tinkering with it and no luck. I learn best by example and just basically need one simple example of a working html page using javascript before I build some webservices to pull mssql data. all help is appreciated and I am using visual studio 2008 Imports System.Web.Services Imports System.Web.Services.Protocols Imports System.ComponentModel ' To allow this Web Service to be called from script, using ASP.NET AJAX, …

Member Avatar
+0 forum 0

I am currently in the research and planning phase for a mobile app, I have never done a mobile app before so please bare with me if I missed some obvious things. The final app will allow users to find other people with similar interests in their vicinity and allow them to meet up, similar to Foursquare. My question for this thread is, what are the different possibilities of sending data from one phone to another using only the internet? (more specifically, sending the updated location and maybe some chat messages) From what I have found so far I can …

Member Avatar
+0 forum 0

Hey How do I run my web service as root? Yes, I know the security implecations of this. Thanks

Member Avatar
Member Avatar
+0 forum 2

Hey I want to make a multithreaded and multiuser web service in Java. Where do I even start looking? Currently I have a web service that is one user and one thread. I think Ill problably have to completely rewrite it from almost scratch so.... Where can I see some ways how to do it? Thanks!

Member Avatar
Member Avatar
+0 forum 12

Hi, My Application was developed using c#.NET with java web services to connect to oracle database. It is working fine with my windows XP machine, but when i deployed the same app in another win7 machine by just cpoying the release folder with dll and exe files and launched the app shows the error message "Application has stopped working". I checked for the dll files and exe files nothing is missing in release folder which i gave. But after deployment its been worked for few days without any interruption. What's the reason which sudenly prompts this message. can anyone help …

Member Avatar
Member Avatar
+0 forum 2

Hi, I am having the C application which I want to access a remote Java Web Service; I have looked for open source SOAP libraries for C and found [CSOAP](http://csoap.sourceforge.net/). However, I am having the following questions/problems with it: 1) Is it possible to access Java Web Services using CSOAP? 2) What are **url**, **urn**, **method** in this context [here] in the soap client example(http://csoap.sourceforge.net/docs/snapshot/libsoap-doc-api/html/)? Cheers

Member Avatar
Member Avatar
+0 forum 3

Hi! Ok. So I've got this problem. I have a reference to a WebService that provides a whole bunch of classes representing a table in a database. Now, it's a simple thing to retrieve a list of all those classes and store them for future use. What I would like to do is to iterate through that list, instantiating each class in turn and perform some work with them. I've been looking at the Reflection.Activator class, but that only seem to work when you have an assembly file at hand that can be loaded at runtime. This is not the …

Member Avatar
Member Avatar
+0 forum 1

Hi all, I have question about sessions in web services (VB). I created a function that allows me to login to my web service. I created a session here and added some values I retrieved from a stored procedure. The code will explain more :) [code=vb] <WebMethod(EnableSession:=True)> _ Public Function GebruikerLoginWeb(ByVal strGebr As String, ByVal strWachtw As String) As Boolean Try Dim fm As New Methods_Functions() Dim dsLBPHL As DataSet dsLBPHL = fm.GebruikerLogin(strGebr, strWachtw) If dsLBPHL.Tables.Count > 0 Then boolStatus = True Session("Gebruikersnaam") = dsLBPHL.Tables(0).Rows(0)(0).ToString dsTemp = fm.GebruikerSelecteerAlle(Session("Gebruikersnaam").ToString) Session("Wachtwoord") = dsTemp.Tables(0).Rows(0)(1).ToString Session("Voornaam") = dsTemp.Tables(0).Rows(0)(2).ToString Session("Achternaam") = dsTemp.Tables(0).Rows(0)(3).ToString Session("Adres") = dsTemp.Tables(0).Rows(0)(4).ToString …

Member Avatar
Member Avatar
+0 forum 1

How To Run all the methods of a web form application in web service. I Have a webproject (made with web forms) . i want to run the project with a Web service. Is it Possible ? please give the steps . Thanks.

Member Avatar
Member Avatar
+0 forum 1

So having a function code in JSP, example is this one: [CODE] function isitinstalled() { try { var myObj = new activity1(plugin.activity); if (myObj) { return "activity123"; } } catch(e) { if (navigator.plugins[plugin.namename]) { return "me"; } else { return false; } } return false; }[/CODE] How do I translate that code into a "Web Service" Coding java (like the ones with @WebParam (whatever = whatever). Sorry for another post, I'm exploring things and I'm a bit new to web services and my assignments need to be done. (Above is just a sample program.) Thanks guys! Your answers are much …

Member Avatar
Member Avatar
+0 forum 1

Hi, I am trying to get data from GetListItems in chunks of 100 so that processing them can be easier. i can specify the row limit like this. <rowLimit>100</rowLimit> But how do i get the next 100 items? Is there any way to skip over the first 100 items? Vivek

Member Avatar
+0 forum 0

Hi, I have a WCF Webservice, and I have an asp.net application that uses this web service. I Have them both running on the same machine, but get a time out. Is there something I have to specify myself in the web.config? I am fairly new in WCF, as this is my first project using it, so please as informative as possible! Thanx

Member Avatar
Member Avatar
+0 forum 2

The End.