Hello and thanks again. I am assuming the strings you are referring to are my SQL expressions. I am not 100% what you mean by "visible'. Again ... I apologize for my ignorance. Do you mean that the expreesion can only be used when the particular method is called?
You said to work properly it must be accompanied by form data and web service headers.Not really sure what this means completely. Do you mean that I have to create an aspx with a form on it? I don't really know what Web Service Headers are?
One thing I didn't mention is that on my Invoke page for GetEmployees(). There is a message underneath my Invoke button that says this message:
----------------------------------------------------------------------------------------------------- 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 /WebSite12/Service.asmx HTTP/1.1
Host: localhost
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://tempuri.org/GetEmployees"
<?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>
<GetEmployees 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>
<GetEmployeesResponse xmlns="http://tempuri.org/">
<GetEmployeesResult>
<xsd:schema>schema</xsd:schema>xml</GetEmployeesResult>
</GetEmployeesResponse>
</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 /WebSite12/Service.asmx HTTP/1.1
Host: localhost
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>
<GetEmployees 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>
<GetEmployeesResponse xmlns="http://tempuri.org/">
<GetEmployeesResult>
<xsd:schema>schema</xsd:schema>xml</GetEmployeesResult>
</GetEmployeesResponse>
</soap12:Body>
</soap12:Envelope>
HTTP POST
The following is a sample HTTP POST request and response. The placeholders shown need to be replaced with actual values.
POST /WebSite12/Service.asmx/GetEmployees HTTP/1.1
Host: localhost
Content-Type: application/x-www-form-urlencoded
Content-Length: length
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<DataSet xmlns="http://tempuri.org/">
<schema xmlns="http://www.w3.org/2001/XMLSchema">schema</schema>xml</DataSet>
-------------------------------------------------------------
I don't really know if that was helpful or not....
When I click my invoke button I get a 'Page cannot be displayed' error. ( HTTP 500 - Internal server error Internet Explorer Please try the following:...One of the options listed is to refresh.) I refresh this page and this when I get my Url Error.
-----------------------------------------------------------------------------------------------------
Request format is unrecognized for URL unexpectedly ending in '/GetEmployees'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidOperationException: Request format is unrecognized for URL unexpectedly ending in '/GetEmployees'.
-----------------------------------------------------------------------------------------------------
Any help would be greatly appreciated and I thank you for your time and patience. - Jason