web-services

HTTP 404 error while invoking a local webservice in .NET MVC4

会有一股神秘感。 提交于 2020-01-01 08:24:32
问题 I am trying to learn webservices in .NET mvc4. I tried creating a new Internet application and adding a Web service (asmx) to the project. By default, the VS adds a "HelloWorld" Webservice. When I try to run it in the browser, I do get the list of operations, service description(WSDL) and the details of the HellowWorld operation. However, when I try invoking the webservice, it gives the following error : Server Error in '/' Application. The resource cannot be found. Description: HTTP 404. The

Improve SOAP UI performance

…衆ロ難τιáo~ 提交于 2020-01-01 07:33:09
问题 I've started using SOAP UI recently to test web services and it's pretty cool, but it's a huge resource hog. Is there any way to reduce the amount of resources it uses? 回答1: It shouldn't be a resource hog, although I've seen it do this before. I leave it running on my PC all week, and a co-worker with a similar machine (dual-core running XP) has to kill it every few hours, otherwise it keeps using CPU. I'd try uninstalling/re-installing. Currently, my instance has been up for 10 days, running

iPhone - calling SOAP services

扶醉桌前 提交于 2020-01-01 07:01:13
问题 I'm learning how to consume web services for a student project using the iPhone. The top answer from How to access SOAP services from iPhone suggested using http://code.google.com/p/wsdl2objc/ to consume services. However, I've tried using http://www.weather.gov/forecasts/xml/DWMLgen/wsdl/ndfdXML.wsdl for the WSDL, but it crashes the application. Any thoughts? I'm not sure if the problem is with the WSDL or with the application. 回答1: My experience with wsdl2objc is that it is immature at best

iPhone - calling SOAP services

旧街凉风 提交于 2020-01-01 07:01:10
问题 I'm learning how to consume web services for a student project using the iPhone. The top answer from How to access SOAP services from iPhone suggested using http://code.google.com/p/wsdl2objc/ to consume services. However, I've tried using http://www.weather.gov/forecasts/xml/DWMLgen/wsdl/ndfdXML.wsdl for the WSDL, but it crashes the application. Any thoughts? I'm not sure if the problem is with the WSDL or with the application. 回答1: My experience with wsdl2objc is that it is immature at best

Changing the MaxArrayLength property on the XmlDictionaryReaderQuotas object used when creating the XML reader

半城伤御伤魂 提交于 2020-01-01 06:52:14
问题 I'm getting the following exception while sending ( or receiving ) a byte array to a C# service. There was an error deserializing the object of type System.Byte[]. The maximum array length quota (16384) has been exceeded while reading XML data. This quota may be increased by changing the MaxArrayLength property on the XmlDictionaryReaderQuotas object used when creating the XML reader. Line 6, position 34838.'. Please see InnerException for more details For what I can understand the

Get my WAN IP address

廉价感情. 提交于 2020-01-01 06:27:36
问题 How can i go about programaticaly getting the IP address of my network as seen from the Internet? Its obviously a property that my router has access to when it connects to the ISP. Is there any way to get this info from a router using a standard protocol. My only other option is to either find a WS which returns my IP address (suprisingly difficult to do), or just go to something like whatismyip.com and strip out all the HTML (very dirty and susceptable to change). Is there any other way???

Get my WAN IP address

跟風遠走 提交于 2020-01-01 06:27:18
问题 How can i go about programaticaly getting the IP address of my network as seen from the Internet? Its obviously a property that my router has access to when it connects to the ISP. Is there any way to get this info from a router using a standard protocol. My only other option is to either find a WS which returns my IP address (suprisingly difficult to do), or just go to something like whatismyip.com and strip out all the HTML (very dirty and susceptable to change). Is there any other way???

WCF: How do I add a ServiceThrottlingBehavior to a WCF Service?

老子叫甜甜 提交于 2020-01-01 05:56:01
问题 I have the below code for returning back an instance of my WCF Service ServiceClient : var readerQuotas = new XmlDictionaryReaderQuotas() { MaxDepth = 6000000, MaxStringContentLength = 6000000, MaxArrayLength = 6000000, MaxBytesPerRead = 6000000, MaxNameTableCharCount = 6000000 }; var throttlingBehaviour = new ServiceThrottlingBehavior(){MaxConcurrentCalls=500,MaxConcurrentInstances=500,MaxConcurrentSessions = 500}; binding = new WSHttpBinding(SecurityMode.None) {MaxReceivedMessageSize =

WCF: How do I add a ServiceThrottlingBehavior to a WCF Service?

旧巷老猫 提交于 2020-01-01 05:55:46
问题 I have the below code for returning back an instance of my WCF Service ServiceClient : var readerQuotas = new XmlDictionaryReaderQuotas() { MaxDepth = 6000000, MaxStringContentLength = 6000000, MaxArrayLength = 6000000, MaxBytesPerRead = 6000000, MaxNameTableCharCount = 6000000 }; var throttlingBehaviour = new ServiceThrottlingBehavior(){MaxConcurrentCalls=500,MaxConcurrentInstances=500,MaxConcurrentSessions = 500}; binding = new WSHttpBinding(SecurityMode.None) {MaxReceivedMessageSize =

Secure Java Web Services

荒凉一梦 提交于 2020-01-01 05:47:07
问题 I am trying to figure out which framework/API would be best for implementing my web services (Java EE). The data being passed back and forth between client and web container needs to be super-secure, and so I'm even thinking of encrypting my data before it even gets wrapped up in a SOAP (or the secure equivalent to SOAP) message, regardless of what security services the framework provides me with. I see there is the so-called XWS-Security but it seems that it is for securing legacy JAX-RPC