Gina_Marano
unread,Jul 20, 2009, 7:31:09 PM7/20/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
Hey Cerebrus,
I added what you stated to the web.config.
Then I use .Net Webservice studio and set the protocol to HTTPPost
and
http://localhost/myservice/service.asmx?WSDL
and I get the following error:
Initializing
Generating WSDL
Generating Proxy
System.ArgumentException: Protocol with name 'HttpPost' is not
recognized.
Parameter name: protocolName
at
System.Web.Services.Description.ServiceDescriptionImporter.FindImporterByName
(String protocolName)
at System.Web.Services.Description.ServiceDescriptionImporter.Import
(CodeNamespace codeNamespace, ImportContext importContext, Hashtable
exportContext, StringCollection warnings)
at System.Web.Services.Description.ServiceDescriptionImporter.Import
(CodeNamespace codeNamespace, CodeCompileUnit codeCompileUnit)
at WebServiceStudio.Wsdl.GenerateCode(ServiceDescriptionCollection
sources, XmlSchemas schemas, String uriToWSDL, ICodeGenerator codeGen,
String fileExtension)
at WebServiceStudio.Wsdl.Generate()
A little snipit from my services.cs
[WebMethod]
[SoapHeader("credentials")]
public string SubmitOrder(string orderxmlid, string xmlOrder)
{
SoapEngine se = new SoapEngine(Db.Session,
CustomerGroupID, EmployeeID);
return se.SubmitOrder(orderxmlid, xmlOrder);
}
Snipit from web.config:
<system.web>
...
<sessionState timeout="10" mode="StateServer"
cookieless="UseCookies"/>
<webServices>
<protocols>
<add name="HttpGet"/>
<add name="HttpPost"/>
</protocols>
</webServices>
</system.web>
</configuration>
~Gina_M~