We help IT Professionals succeed at work.

Need to manually FTP my web service

curiouswebster
on
266 Views
Last Modified: 2013-12-17
I am having trouble uploading my web service using the Publish option in Visual Studio 2005, and want to try manually FTP'ing the files instead.

What file types should be copied and what directory structure must I adhere to in order to copy the service to my web site?

thanks,
newbieweb
Comment
Watch Question

The asmx file, web config file should be present in the root of the virtual directory and in the bin folder should be present all the DLL's needed
curiouswebsterSoftware Engineer

Author

Commented:
So is it this easy??

Three files only?

/Service1.asmx
/Web.config
/bin/WebService1.dll
yeah thats right... its all that you need to do as far as i remember. But make sure that the virual directory already exists...
It should work.
curiouswebsterSoftware Engineer

Author

Commented:
what do you mean by the vitual directory?

Is this the root directory?  Or something inside the root?
I meant the root folder of ur website.
curiouswebsterSoftware Engineer

Author

Commented:
thanks.
curiouswebsterSoftware Engineer

Author

Commented:
once I get the files over, what do I do next?
curiouswebsterSoftware Engineer

Author

Commented:
when I simply call the Service1.asmx from my browser it looks similar to when on my environment without the "Invoke" button.
Just try to check if the web service is alive by putting the url into ie and seeing if the http://machinename or website/Webservice1.asmx works
it should display a basic web services page.
I think you managed deploying it manually :)
You can nowe consume it using your client.
curiouswebsterSoftware Engineer

Author

Commented:
does web.config need to be changed to run at my ISP??

<?xml version="1.0"?>

<configuration>
 
    <appSettings/>
    <connectionStrings/>
 
    <system.web>
        <!--
            Set compilation debug="true" to insert debugging
            symbols into the compiled page. Because this
            affects performance, set this value to true only
            during development.
        -->
        <compilation debug="true" />
        <!--
            The <authentication> section enables configuration
            of the security authentication mode used by
            ASP.NET to identify an incoming user.
        -->
        <authentication mode="Windows" />
        <!--
            The <customErrors> section enables configuration
            of what to do if/when an unhandled error occurs
            during the execution of a request. Specifically,
            it enables developers to configure html error pages
            to be displayed in place of a error stack trace.

        <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
            <error statusCode="403" redirect="NoAccess.htm" />
            <error statusCode="404" redirect="FileNotFound.htm" />
        </customErrors>
        -->
    </system.web>
</configuration>
curiouswebsterSoftware Engineer

Author

Commented:
I think it's failing somewhere inside the functions.  So I need to tailor my exception handler for the website.

What is the directory name for 'root'?

Something like this?

"./Errors.txt"

Do you have any problems accessing your web service now?
>> I think it's failing somewhere inside the functions.

Inside your web method??
curiouswebsterSoftware Engineer

Author

Commented:
it's not working.  It's like the service is there but it's not alive.

I have a Hello World function I kept in there for test purposes, but it does nothing.

take a look:

http://ppdom1000.com/Service1.asmx


curiouswebsterSoftware Engineer

Author

Commented:
I intentionally mis-spelled the return value "Hello wworld"
It works for me.... Displays "Hello Wworld"
curiouswebsterSoftware Engineer

Author

Commented:
What am I missing?
this is all I get:



Click here for a complete list of operations.

Send

Test
The test form is only available for requests from the local machine.
SOAP 1.1
The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.

POST /Service1.asmx HTTP/1.1
Host: ppdom1000.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://tempuri.org/Send"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <Send xmlns="http://tempuri.org/" />
  </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <SendResponse xmlns="http://tempuri.org/" />
  </soap:Body>
</soap:Envelope>
SOAP 1.2
The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.

POST /Service1.asmx HTTP/1.1
Host: ppdom1000.com
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <Send xmlns="http://tempuri.org/" />
  </soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <SendResponse xmlns="http://tempuri.org/" />
  </soap12:Body>
</soap12:Envelope>
But isnt what u have pasted the WSDL??? You should be able to access it by adding a web reference and then invoking the HelloWorld() method after creating the proxy
curiouswebsterSoftware Engineer

Author

Commented:
I did just notice I still had "tempuri.org" so I replaced it with my domain.

But that didn't fix it.

Should all this SOAP and XML be displaying?  Am I compiling it in debug mode?
yes if u directly loaded the page all of that should be displaying....  What are u trying to do?
curiouswebsterSoftware Engineer

Author

Commented:
Oh, you mean this is only visible if I have another program using the web service?

Yes, that was the WSDL (I assume) that I pasted.  But nowhere in there is "wwo": the search string for my incorrectly spelled Hello World.
That information is present there so anyone will be able to generate a proxy. The Hello WWorld wont be present in that. But will be returned if the method is called.
curiouswebsterSoftware Engineer

Author

Commented:
I just want to see if my web service is working on my website, that's all.  I'm very new to this.

I thought the Hello World function would be a good one to test first.

What method are you using to test it?
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
curiouswebsterSoftware Engineer

Author

Commented:
Thank you very much!

I have it working now.

thanks,
newbieweb

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.