471,082 Members | 709 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,082 software developers and data experts.

wsdl problem, please help

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>
Oct 30 '07 #1
0 1302

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

2 posts views Thread by Tomislav Lepusic | last post: by
1 post views Thread by easoft | last post: by
5 posts views Thread by Kevin Burton | last post: by
5 posts views Thread by Mike Logan | last post: by
9 posts views Thread by Nick Locke | last post: by
3 posts views Thread by =?Utf-8?B?TWFucHJlZXQgU3VzaGls?= | last post: by
1 post views Thread by jineshpmj123 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.