Web Service help

Discussion in 'C#' started by AndyFarrell, Sep 8, 2007.

  1. #1
    hey everyone
    i am using a web service in visual studios but i am having a strange problem.
    This is not the web service i am having a problem with but its just an example of the problem i am having.
    example:
    http://www.webservicex.net/ValidateEmail.asmx?op=IsValidEmail
    when i use my web service via "Invoke" (like the above) it works just fine
    but when i include it in my project, and plugin the same data, i get a different result.

    any idea what could cause that ?
     
    AndyFarrell, Sep 8, 2007 IP
  2. JenniP

    JenniP Peon

    Messages:
    250
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Firstly what language are you writing in? Classic ASP or ASP.NET (Doesnt matter if its C# or VB.NET).

    What do you get if you use the test form, and then what do you get when you do it in your app?

    If you could post some sample code it may help us identify the issue. It sounds like you are calling the webservice in a different way from your app.

    Jen
     
    JenniP, Sep 9, 2007 IP
  3. AndyFarrell

    AndyFarrell Peon

    Messages:
    89
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #3
    its asp.net.
    i dont get an error or anything just a different result.
    well all i did was add the web ref in visual studios.
    then call the function
    Auto.Place(data,data,blah);
    i dont know why i would get a different result.
     
    AndyFarrell, Sep 9, 2007 IP
  4. fluid

    fluid Active Member

    Messages:
    679
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    70
    #4
    Check your connection strings. If you can remove the web reference from your project and add it again (make sure you are referring the exact same web service).
     
    fluid, Sep 17, 2007 IP
  5. code-rush

    code-rush Guest

    Messages:
    25
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Your method is supposed to return only a boolean value (true/false).
    I tried to see if this is valid email: and it is not... why?

    Note that whenever you make changes in the web service file you should update the web reference (that is, right click on the folder containing the web service files and select "Update Web References" from the context menu).
     
    code-rush, Oct 2, 2007 IP