.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
MarieAdela
Imran Ghani
Post New Web Links

Problem seeing webservice functions

Posted By:      Posted Date: October 28, 2010    Points: 0   Category :.NET Framework
 

Hi,

I have wriiten a SOAP/XML webservice which when i developed my old VS2008 Windows form mobile application I could see all the functions perfectly. I simply added the webreference and imported the namespace.. all worked fine.

I have now decided to write a Windows Mobile 7 Silverlight version of the software but when I add the web service reference the only functions i can see in the object brower are ending with CompletedEventArgs.

the url to the webservice is here: http://www.taxiroute.co.uk/DesktopModules/IWeb/webservice.asmx

Does anyone know why i cannot see the actual functions on the CompletedEventArgs please?

Thanks

Trev




View Complete Post


More Related Resource Links

problem with webservice

  

Hi

I wrote a program that connects to a webservice (with client side script such as jquery) and fetches data from  the webservice.

Now the program is working properly in local system, but when I upload it to host, the script cannot connect to the webservice.

What is the problem?


Problem passing custom object returned by the same webservice among two separate projects

  
I am running into casting issue with this scenario: 1. I made a custom object lets call it EmployeeObject.  2. The Employee object is wrapped in the EmployeeWebservice.  3. I have a client application project lets call it EmployeeClientApplication and a class library called DoSomeWorkClassLibrary.  Both EmployeeClientApplication and DoSomeWorkClassLibrary reference the EmployeeWebService and need to be able to pass the EmployeeObject back and forth.  4. The EmployeeClientApplication also references the DoSomeWorkClassLibrary. 5. The employeeObject in the EmployeeClientApplication becomes EmployeeClientApplication.EmployeeWebService.EmployeeObject. 6. The employeeObject in the DoSomeWorkClassLibrary becomes DoSomeWorkClassLibrary.EmployeeWebService.EmployeeObject. 7. The DoSomeWorkClassLibrary has a method called DoSomeWork that takes an EmployeeObject. When I try to pass employeeObject from EmployeeClientApplication to DoSomeWorkClassLibrary by doing something like this: DoSomeWorkClassLibrary.DoSomeWork(EmployeeClientApplication.EmployeeWebService.EmployeeObject), I am getting Unable to convert EmployeeClientApplication.EmployeeWebService.EmployeeObject to DoSomeWorkClassLibrary.EmployeeWebService.EmployeeObject.  I have searched high and low to fix this issue, I have tried changing the namespace of the reference.cs file of the webservice in

Upload large file via webservice problem in vb.net 1.1

  
Hi All, I am uploading large file via webservice using below my code in vb.net 1.1. Problem is vb.net 1.1 don't know Using Object loop. I would like to know any other loop similar Using loop to replace in vb.net 1.1Public Function UploadLargeFile(ByVal FileName As String, ByVal buffer As Byte(), ByVal Offset As Long) As Boolean Dim retVal As Boolean = False Try Dim FilePath As String = Path.Combine(System.AppDomain.CurrentDomain.BaseDirectory.ToString() & "\fpath\", FileName) If Offset = 0 Then File.Create(FilePath).Close() End If Using fs As New FileStream(FilePath, FileMode.Open, FileAccess.ReadWrite, FileShare.Read) fs.Seek(Offset, SeekOrigin.Begin) fs.Write(buffer, 0, buffer.Length) End Using retVal = True Catch ex As Exception Throw ex End Try Return retVal End Function  

problem for using webservice (sql parameter stored Procedure)

  
i want to put my database layer in the web service. This works fine BUT there is a problem when i am access these methods GetSPData(Byval arg As SqlComman, argCmdText as string, ByVal argSqlConnection as SqlConnection) As DataTable I want to acces the aforesaid method in my Desktop application and i have to send SqlCommand as parament. When i try to acces this (GetSPData) method the follow exception occured "There was an error generating the XML document." Now the problem is to converting DataTable in xmlDocument Or xml node (i dont know about it very much). Can anyone tell me How to send SqlCommand as parament ?? How to convert DataTable into XmlDocument?? When i try to test this method the following Error occurs " test form is only available for methods with primitive types as parameters. " The following are my Web Service Method code in which i try to Get Data Using Stored Procedure and then convert DataTable into XmlDocument and return. Dim XmlDoc As New XmlDocument Dim ds As New DataSet Dim oDBLibrary As New DataBaseLibrary.DatabaseClass Dim dt As DataTable = oDBLibrary.GetSPData(objCommand1, cmdText, msqlConnection) ds.Tables.Add(dt) Dim sw As New StringWriter ds.Tables(0).WriteXml(sw) sw.Close() Dim tableXml As String = sw.ToString XmlDoc.Load(tableXml) Return XmlDoc  Now can anyone tell me what is wrong with that c

domain based webservice connection problem

  
When I try to connect domain based  webservice from my application getting "The request failed with HTTP status 401: Unauthorized"  error .What could be the problem. When i browse the service from browser(http://10.1.23.4/gss/myManagerService.asmx) i can see the service output but when i try to connect from my below programe getting 401 error.Please advice me.   MyService service= new MyService ();        System.Net.CredentialCache cache = new System.Net.CredentialCache();        cache.Add(new Uri("http://10.1.23.4/gss/myManagerService.asmx"), new    System.Net.NetworkCredential("muusername", "mypwd","mydomain"));        service.Url = "http://10.1.23.4/gss/myManagerService.asmx";        int cnt = 0;        myrec[] records = new myrec[0];                AccRecord oaccRecord = new AccRecord ();                               DateTime enddt = DateTime.Now;       

domain based webservice connection problem

  
When I try to connect domain based webservice from my system getting "The request failed with HTTP status 401: Unauthorized" error .What could be the problem. When i browse the service from browser(http://10.1.23.4/gss/myManagerService.asmx) i can see the service output but when i try to connect from my below programe getting 401 error. Please advice me. MyService service= new MyService (); System.Net.CredentialCache cache = new System.Net.CredentialCache(); cache.Add(new Uri("http://10.1.23.4/gss/myManagerService.asmx"), new System.Net.NetworkCredential("muusername", "mypwd","mydomain")); service.Url = "http://10.1.23.4/gss/myManagerService.asmx"; int cnt = 0; myrec[] records = new myrec[0]; AccRecord oaccRecord = new AccRecord (); DateTime enddt = DateTime.Now; DateTime stdt = DateTime.Now.AddDays(-10); service.Credentials = cache; MessageBox.Show("service"); records =service.ReadRecord(records , stdt, enddt);// here taking some time and throwing 401 eroor

domain based webservice connection problem

  
When I try to connect domain based webservice from my system getting "The request failed with HTTP status 401: Unauthorized" error .What could be the problem. When i browse the service from browser(http://10.1.23.4/gss/myManagerService.asmx) i can see the service output but when i try to connect from my below programe getting 401 error. Please advice me. MyService service= new MyService (); System.Net.CredentialCache cache = new System.Net.CredentialCache(); cache.Add(new Uri("http://10.1.23.4/gss/myManagerService.asmx"), new System.Net.NetworkCredential("muusername", "mypwd","mydomain")); service.Url = "http://10.1.23.4/gss/myManagerService.asmx"; int cnt = 0; myrec[] records = new myrec[0]; AccRecord oaccRecord = new AccRecord (); DateTime enddt = DateTime.Now; DateTime stdt = DateTime.Now.AddDays(-10); service.Credentials = cache; MessageBox.Show("service"); records =service.ReadRecord(records , stdt, enddt);// here taking some time and throwing 401 eroor

how to make WebService installation and How to overcome the security problem

  
hi

how to make WebService installation and How to overcome the security problem ?

(i need to make My WebService setup that i can install on customer computer)

thank's in advance

Problem with webservice

  

Hi All,

I have a webservice with 3 method by vb.net that return string one of these method  return error 403 and other work correctly this method (that not work) long time need for create string I thing timeout option is causes and increase  httpRuntime executionTimeout="1200" but not solve please help me

 thanks


Having problem using ASMX based webservice on IIS 7.0

  

Hello everybody iam new to .NET and sybase so i need some help on solving the issue.

My project is to make a web app (running fine on XP/ IIS5.0 )compatible with vista and windows 7.I have a delphi desktop application running and is connected to Sybase database now iam working on NET web application which uses a Asmx based webservice to connect to same database .I am not trying to open a new connection rather trying to use (share) the same connection to database opened by delphi desktop application.When i tried using the webservice setup on IIS 7.0  to connect to database i got an error in the browser which follows after the Note:

Note: Runninng on ASP.NET De

Problem With SharePoint Timer job - Ignoring basic c# functions.

  

Hi there guys..I am having a really annoying problem with my timer job. 

What does my timer job do?

Essentially it looks into a SharePoint list to automatically send emails for people who have booked onto seminars three days and one day before the seminar.  What im having problems with is constructing a CAML query.  I have the value of a sharepoint lookup column (e.g. 3;#3) and i am trying to extract the ID from this field using:

int index = string.indexof(";#");

newstring = string.substring(string,index);

This obviously will work no problems however when i debug my code in the timerjob  it only returns null.  When i type the code into the immediate window during debugging it returns me the right value.

 

Does anyone know a reason why it would not properly process the standard c# code?  Below for reference is my entire code.

 

Thank you in advance

 

Chris

  public class SeminarTimerJob : SPJobDefinition
  {
    public SeminarTimerJob()

      : base()
    {

    }

    public SeminarTimerJob(string jobName, SPService service, SPServer server, SPJobLockType targetType)

      : base(jobName, service, server, targetType)
    {

    }

    public SeminarTimerJob(string jobName, SPWebApplication webApplication)

      : ba

Interop problem: VB6 COM code functions incorrectly when called from .net code.

  

I have found recently with some machines or some user accounts that calling some VB6 code from .Net fails to execute properly.
I have two examples:

  1. I have this simple VB6 dll, called by VB.Net code, that calls another simple VB6 dll using createobject.  The second object displays a form modally with progress bars, runs queries against a SQL server database to create and fill a table, and then closes (unload) that progress form and returns the table name.  The first object then takes this data to do additional processing on the SQL server and returns a SELECT statement to the object that called it. 
    For most people this works correctly, however for two users on a terminal server it fails to run correctly.  What it does is not close the form, however all of the updates to the database in both dlls are run according to SQL profiler.  The .Net process that called it never seems to get a return value from the COM dll for those 2 users only.  I even tried to recreate the user's profile, but it did not help.  Note that the .Net code calls the first VB6 dll using CreateObject as well.
    The strangest thing about this is what occurred when I added MsgBox calls to try to determine what was wrong with the progress form.  I added one immediately after the form's status bas was updated to "Finished

Webservice Header Problem

  

Hi,

I call a webservices from my javascript and im getting response as error.

Server did not recognize the value of HTTP Header SOAPAction:
   at System.Web.Services.Protocols.Soap11ServerProtocolHelper.RouteRequest()
   at System.Web.Services.Protocols.SoapServerProtocol.RouteRequest(SoapServerMessage message)
   at System.Web.Services.Protocols.SoapServerProtocol.Initialize()

WebService problem - Windows-7 64 bit

  
hi

i try to run my WebService in Windows-7 64 bit and i got this error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

and

    Assembly Load Trace: The following information can be helpful to determine why the assembly 'MyWS' could not be loaded.


    WRN: Assembly binding logging is turned OFF.
    To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
    Note: There is some performance penalty associated with assembly bind failure logging.
    To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

when i run in Visual-studio it work's excellent 

what can be the problem ?

thank's in advance

Problem with asynchronous call to webservice

  

Hello people.

I have a website where i call function in a web service. I am calling it asynchronously. The problem is the data which is returned from webservice is not shown in my label.

See here

protected void Page_Load(object sender, EventArgs e)
{
IAsyncResult asyncResult;

AsyncCallback callback = new AsyncCallback(MyCallBack);
asyncResult = serv.BeginGetImageList(req, callback, null);
}

private void MyCallBack(System.IAsyncResult asyncResult)
{

Label1.Text = "TEST";

}

Very simple but when the page is loaded, the label dont have any text.


Please help.


Problem Java call .NET webservice.

  

I created a very simple webservice (below)

namespace PmtCommu

{

    [WebService(Namespace = "http://tempuri.org/")]

    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]

    [System.ComponentModel.ToolboxItem(false)]

    // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. 

    // [System.Web.Script.Services.ScriptService]

    public class PmoWebService : System.Web.Services.WebService

    {

        [WebMethod]

        public string PmoSvc_Test(string strVal)

        {

            string retVal = string.Format("You sent me {0}.", strVal);

            // my code logging the strVal.

            return retVal;

}

I tested with .NET client. NO problem.

BUT, my service need to be consumed by Java client. I have trouble passing the parameter in.

I can see the "You sent me ." in my log and as a return value.

Following is the Java Code:

im

Problem with Deserialize XML Document from WebService

  
Hello,
I have a problem when call a webservice method.

 

I have a web method (.asmx):

  • [WebMethod]

     public DataSet Item_GetAll()

    {

     

Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend