Hi im having a problem with my wsdl, It generates perfectly and I can create the objects needed from the contract perfectly.
The problem comes when I try to pass the object back into the getInitialAvailability function so that I can get the response back.
Heres the error im gettting.
System.Web.Services.Protocols.SoapException: Server did not recognize the value of HTTP Header SOAPAction: http://v2_0.soap:getInitialAvailabilityRequest.
at System.Web.Services.Protocols.Soap11ServerProtocol Helper.RouteRequest()
at System.Web.Services.Protocols.SoapServerProtocol.R outeRequest(SoapServerMessage message)
at System.Web.Services.Protocols.SoapServerProtocol.I nitialize()
at System.Web.Services.Protocols.ServerProtocolFactor y.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing)
does anyone have any idea what the trouble is? thanks in advance
Stephen
heres how im binding the wsdl to the .cs code
[WebService(Namespace = "http://v2_0.soap")]
[WebServiceBinding(Name = "SoapEndPointservice", Location = "xmlRepository/SoapEndPointService.wsdl")]
public class SoapEndPoint : System.Web.Services.WebService
{
[WebMethod]
[SoapDocumentMethod(Action = "http://v2_0.soap:getInitialAvailability", Binding = "SoapEndPointservice")]
public InitialAvailabiltyResponse getInitialAvailability(InitialAvailabiltyRequest requestObject)
and heres the wsdl
<!--WSDL generated by thinktecture WSCF; version 0.7.6319.1-->
<!--Tuesday, 30-10-2007 - 12:37 PM-->
<definitions xmlns:tns="http://v2_0.soap" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:import1="http://v2_0.soap/initialAvailabilityResponse" xmlns:import0="http://v2_0.soap/initialAvailabilityRequest" xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="SoapEndPointservice" targetNamespace="http://v2_0.soap" xmlns="http://schemas.xmlsoap.org/wsdl/">
<wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" />
<types>
<xsd:schema>
<xsd:import schemaLocation="initialAvailabilityRequest.xsd" namespace="http://v2_0.soap/initialAvailabilityRequest" />
<xsd:import schemaLocation="initialAvailabilityResponse.xsd" namespace="http://v2_0.soap/initialAvailabilityResponse" />
</xsd:schema>
</types>
<message name="getInitialAvailabilityRequest">
<wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" />
<part name="messagePart" element="import0:initialAvailabiltyRequest" />
</message>
<message name="getInitialAvailabilityResponse">
<wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" />
<part name="messagePart" element="import1:initialAvailabiltyResponse" />
</message>
<portType name="SoapEndPointserviceInterface">
<wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" />
<operation name="getInitialAvailability">
<wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" />
<input message="tns:getInitialAvailabilityRequest" />
<output message="tns:getInitialAvailabilityResponse" />
</operation>
</portType>
<binding name="SoapEndPointservice" type="tns:SoapEndPointserviceInterface">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
<operation name="getInitialAvailability">
<soap:operation soapAction="http://v2_0.soap:getInitialAvailabilityRequest" style="document" />
<input>
<soap:body use="literal" />
</input>
<output>
<soap:body use="literal" />
</output>
</operation>
</binding>
</definitions>