Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:865781
More Search Options
RSS Available
Matching Posts
Re: consuming webservice when it is using proxy adress l
Can you make sure the Proxy URL is correct or not? If not, you may ask your system admin to provide you the correct poxy address for example, http://192.168.1.200:8000. I am assuming you are behind proxy and trying to access web service hosted somewhere out side your network on internet.
Posted to
XML Web Services
(Forum)
by
raxitr
on 9/24/2009
Re: XML structure in WebService C#
It is not considered a good practise to return simply a string array from web method, Its a nightmare for the consumer of the web service unless you tell them what does each element mean at each index in your string array. Try rather creating more meaningful complex object as I said earlier. For Example, A Web method which returns object of type public class ResponseInfo { public string DisplayName; public string EmailAddress; public string haslo; public string confirmHaslo; } will have xml like
Posted to
XML Web Services
(Forum)
by
raxitr
on 9/22/2009
Re: Calling web service with complex in parameters
Seems you have got the solution here :)
Posted to
XML Web Services
(Forum)
by
raxitr
on 9/22/2009
Re: Calling web service with complex in parameters
You may consider using Json2.js for passing complex types to your WCF service. Please refer http://encosia.com/2009/04/07/using-complex-types-to-make-calling-services-less-complex/ and http://www.west-wind.com/weblog/posts/324917.aspx articles which uses JQuery's AJAX methods to call web services from client side. Edit: Refer http://west-wind.com/weblog/posts/896411.aspx as well HTH
Posted to
XML Web Services
(Forum)
by
raxitr
on 9/21/2009
Re: XML structure in WebService C#
Instead of returning string from the webmethod return complex object with desired properties from the web method as follows: Change public string LiveEduAccount(string DisplayName, string EmailAdress, string haslo, string confirmHaslo) to public ResponseInfo LiveEduAccount(string DisplayName, string EmailAdress, string haslo, string confirmHaslo) ResponseInfo should look like: public class ResponseInfo { public string DisplaName; public string EmailAddress; public string haslo; public string confirmHaslo;
Posted to
XML Web Services
(Forum)
by
raxitr
on 9/18/2009
Re: consuming webservice when it is using proxy adress l
Assuming you are adding web reference, following sample code calls HelloWorld web service with proxy http://srv-ws03:9080 ConsoleApplication1.localhost.Service1 s = new ConsoleApplication1.localhost.Service1(); s.Proxy = new System.Net.WebProxy("http://srv-ws03:9080"); Console.WriteLine(s.HelloWorld()); HTH
Posted to
XML Web Services
(Forum)
by
raxitr
on 9/18/2009
Re: sample soap envalope for xml
Thats a bit difficult as there are many web methods exposed by WSDL and each method might accept/return different objects. If possible you may ask for the documentation to the web service provider which describes how to implement the web service Or Just add a web reference or create a proxy class out of wsdl provided to you. Instantiate an object of proxy class and call method(s) by passing the objects. Use the Fiddler to see what soap message looks like. HTH
Posted to
XML Web Services
(Forum)
by
raxitr
on 9/17/2009
Re: sample soap envalope for xml
Since you have wsdl file better you add web reference or create proxy class( using wsdl.exe) and then instantiate the object set required values which createQuote method accepts and call the method, use fiddler to see what request/response was generated.
Posted to
XML Web Services
(Forum)
by
raxitr
on 9/17/2009
Re: how can read value from single node ??
Ticket element does not belong to http://schemas.xmlsoap.org/soap/envelope/ namespace, try adding http://tempuri.org/ in namespace manager and write you XPath over it. See the highlighted code doc= new XmlDocument(); doc.Load(path); XmlNamespaceManager nsmgr = new XmlNamespaceManager(doc.NameTable); nsmgr.AddNamespace( "ab" , "http://schemas.xmlsoap.org/soap/envelope/" ); nsmgr.AddNamespace( "tu" , " http://tempuri.org/ " ); XmlNode temp = doc.SelectSingleNode
Posted to
XML Web Services
(Forum)
by
raxitr
on 9/16/2009
Re: how to access original request parameters after Response is serialized in SoapExtension?
First of all make sure the out parameters are present. If you are writing the client side SOAP extension then out parameters are available in AfterDeserialize and if you are writing server side SOAP extension out parameters are available in BeforeSerialize of the SoapMessageStage.
Posted to
XML Web Services
(Forum)
by
raxitr
on 9/15/2009
Page 1 of 7 (63 items) 1
2
3
4
5
Next >
...
Last »
ASP.NET:
Merry Christmas
TechNet Edge:
FPE Customer Story
Silverlight:
Being a writer, and having an editor. A Short Rant.
Channel 9:
Channel 9 Live at PDC09: Dr Brian Brooks (3M)
Channel 9:
C9 Lectures: Dr. Erik Meijer - Functional Programming Fundamentals Chapter 13 of 13
Silverlight:
Information for Silverlight HVP Developers…
WindowsClient:
Custom Content Loaders in Silverlight 4.0
WindowsClient:
MVVM Links\Info
TechNet Edge:
Check out how Dolly Parton uses IE8 and Web slices!!!
Silverlight:
A Silverlight HVP Update
Channel 9:
Channel 9 Live at PDC09: This Week on Channel 9 - PDC09 Daily Show Edition Day 1
Channel 9:
Maria Klawe: Scholar, Scientist and Microsoft Board Member
Channel 10:
Play the Bing Sherlock Holmes Game
Channel 9:
Channel 9 Live at PDC09: Loic Le Meur
Channel 10:
How to Delete Jump List Items
Channel 10:
Roll Back to Classic Network Indicator in Win7
Channel 9:
Jafar Husain: Silverlight Toolkit and Rx, Part 2
Channel 9:
Ping 42: Is Microsoft cool? Photo DNA, Win7 tool, 10k MIX contest
Channel 9:
Jafar Husain: Silverlight Toolkit and Rx, Part 1
Channel 9:
Francesco Logozzo - Static Checking with Code Contracts for .NET
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online