web-services

Getting Soap Error SOAP-ERROR: Parsing WSDL: Couldn't load… failed to load external entity

我与影子孤独终老i 提交于 2020-01-06 13:52:47
问题 //put those data in an array to make the xml below $xml = '<order>'; $xml.= '<details>'; $xml.= '<id>'.$order_number.'</id>'; $xml.= '<restaurant>_Generic</restaurant>'; $xml.= '<datePlaced>'.date('Y-m-d H:i:s').'</datePlaced>'; $xml.= '<deliveryDate>'.$delivery.'</deliveryDate>'; $xml.= '<totalPrice>'.$total.'</totalPrice>'; $xml.= '<totalTax>'.$total_tax.'</totalTax>'; $xml.= '<totalDiscount>'.$total_discount.'</totalDiscount>'; $xml.= '<deliveryFee>'.$total_shipping.'</deliveryFee>'; $xml.

wso2 esb: Construct one message from multiple web service calls

醉酒当歌 提交于 2020-01-06 13:26:27
问题 I have a number of web services each returning a list of user ids as follows: <application name="abc"> <users> <id>123</id> <id>456</id> <id>789</id> </users> </application> I need to be able to Call a proxy service with a specific id (for example 123); Call each webservice and search for the ID; Create a response for each webservice and finally Aggregate all responses in one message which is sent to the client as follows: <response> <id>123</id> <application name="abc"> found </application>

How do I run a command line process from a web application?

好久不见. 提交于 2020-01-06 13:12:55
问题 I want to run a command line in ASP.NET 4.0 using C#. Actually I need to create a Web Service for doing this. How can I do that? I've read somewhere that when we run command line from Web, there can be some permission issues. If so, how can I overcome that? 回答1: using(var cmd= new Process()) { cmd.StartInfo.FileName = "cmd.exe"; cmd.StartInfo.Arguments = ""; cmd.Start(); } The process is started with the same credentials the web service process is running with. The default is LocalSystem or

Error in python webservice client using suds

谁说胖子不能爱 提交于 2020-01-06 13:11:11
问题 Im using python 2.7 and suds 0.4 in windows and linux and in both cases I get the same error when calling a method of a web service: Traceback (most recent call last): File "wsclient.py", line 23, in <module> client.service.Echo() File "build\bdist.win32\egg\suds\client.py", line 542, in __call__ File "build\bdist.win32\egg\suds\client.py", line 602, in invoke File "build\bdist.win32\egg\suds\client.py", line 643, in send File "build\bdist.win32\egg\suds\client.py", line 678, in succeeded

What are the pros and cons of having a WebAPI in the same or different project [closed]

孤街醉人 提交于 2020-01-06 13:09:33
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 4 years ago . I have an MVC application and the solution consist of three project as described below: Store.Domain : Holds the domain entities and logic (repositories created with the Entity Framework). Store.WebUI : Holds the controllers and views; acts as the UI for the application.

Error in python webservice client using suds

社会主义新天地 提交于 2020-01-06 13:09:18
问题 Im using python 2.7 and suds 0.4 in windows and linux and in both cases I get the same error when calling a method of a web service: Traceback (most recent call last): File "wsclient.py", line 23, in <module> client.service.Echo() File "build\bdist.win32\egg\suds\client.py", line 542, in __call__ File "build\bdist.win32\egg\suds\client.py", line 602, in invoke File "build\bdist.win32\egg\suds\client.py", line 643, in send File "build\bdist.win32\egg\suds\client.py", line 678, in succeeded

415-UnSupported Media Type

别来无恙 提交于 2020-01-06 12:36:23
问题 While performing testing RESTFUL Web Service using POSTMAN, I encountered the below error : 415 UnSupported Media Type Currently in my code, I'm using MediaType.TEXT_PLAIN. This is due to one of the answer from page enter link description here telling that if you need to return integer, you need to use TEXT_PLAIN. May I know is the data that I provide in the web service is compatible with TEXT_PLAIN or not. @POST @Path("/post") @Produces(MediaType.TEXT_PLAIN) public int adaptiveAuth(

HttpWebRequest and HttpWebResponse in C#

给你一囗甜甜゛ 提交于 2020-01-06 11:48:55
问题 How to use HttpWebRequest and HttpWebResponse to create a webservice and how will the request and responses will be send across the wire? 回答1: this is the syntax for using HttpWebRequest and HttpWebResponse WebRequest _request; string text; string url = "UrlToGet"; _request = (HttpWebRequest)WebRequest.Create(url); using (WebResponse response = _request.GetResponse()) { using (StreamReader reader =new StreamReader(response.GetResponseStream())) { text = reader.ReadToEnd(); } } 回答2:

HttpWebRequest and HttpWebResponse in C#

家住魔仙堡 提交于 2020-01-06 11:47:09
问题 How to use HttpWebRequest and HttpWebResponse to create a webservice and how will the request and responses will be send across the wire? 回答1: this is the syntax for using HttpWebRequest and HttpWebResponse WebRequest _request; string text; string url = "UrlToGet"; _request = (HttpWebRequest)WebRequest.Create(url); using (WebResponse response = _request.GetResponse()) { using (StreamReader reader =new StreamReader(response.GetResponseStream())) { text = reader.ReadToEnd(); } } 回答2:

StackOverFlowException: Is it programming error (recursion) or not enough maximum default stack size?

僤鯓⒐⒋嵵緔 提交于 2020-01-06 11:19:04
问题 I am trying to get virtual machine configuration info for a VM in VMware using webservices SDK approach. I was able to get virtual machine configuration info from simple console application, command line interface (Powershell) of my tool. However when i tried to do the same in my UI (MMC-Snapin), I am getting a StackOverflowException. Can you please help me or give me suggestions how to debug the error? Please note that same code works with console/commandline (powershell). Not from MMC UI (i