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~

On Jun 30, 10:44 pm, Cerebrus <[email protected]> wrote:
> Gina,
>
> That's alright. But when asking for directions, it helps if you speak
> the same language as the natives! ;-)
>
> Many of the webservices I build accept all three kinds of requests
> (HTTP GET, POST and SOAP) and I have to do nothing extra other than
> adding a webServices section in the web.config with entries enabling
> HTTP GET and POST.
>
> The entries look like:
>
> ---
> <system.web>
>   <webServices>
>     <protocols>
>       <add name="HttpGet"/>
>       <add name="HttpPost"/>
>     </protocols>
>   </webServices>
> </system.web>
> ---
>
> On Jun 30, 11:16 pm, Gina_Marano <[email protected]> wrote:
>
>
>
> > Sorry Cerebrus,
>
> > I missed your post. Sorry for my mis-speak. I spend way to much time
> > programming and not enough time learning the normenclature.
>
> > I will look in to what you posted.
>
> > Thanks
>
> > ~Gina_M~
> > (when do I get off of my posts being moderated so I can get quicker
> > responses)
>
> > On Jun 29, 10:34 pm, Cerebrus <[email protected]> wrote:
>
> > > Thanks for that useful link about SOAP !
>
> > > You used the term "soap page" which is not equivalent to saying "SOAP
> > > webservice". A webservice is not a page in common parlance .
>
> > > As to your answer, any .NET webservice allows GET and POST requests.
> > > If you browse to the asmx file and click any webmethod that uses
> > > parameters, you will find the supported protocols listed. It will also
> > > show you the sample request that must be sent as well as the
> > > parameters and content-type expected. For instance, HTTP Post would
> > > require a content-type of "application/x-www-form-urlencoded" (as
> > > usual). That is what you must replicate.
>
> > > You can use the HttpWebRequest class or (possibly, but I'm not sure)
> > > the WebClient class to send an HTTP POST request.
>
> > > On Jun 29, 11:16 pm, Gina_Marano <[email protected]> wrote:
>
> > > > I have a web service that uses the SOAP protocol and takes in an order
> > > > (XML) processes the order and returns the order id (request/response).
> > > > I want to be able to support the HTTP Post protocol.
>
> > > >http://en.wikipedia.org/wiki/SOAP
>
> > > > ~Gina_M~
>
> > > > On Jun 29, 10:35 am, Cerebrus <[email protected]> wrote:
>
> > > > > I think we need MUCH more detail... for instance, what is a "SOAP
> > > > > page" ?
>
> > > > > On Jun 29, 8:50 pm, Gina_Marano <[email protected]> wrote:
>
> > > > > > I have a soap page. Is there a way to support HTTP Post 
> > > > > > (synchronous)
> > > > > > as well.
>
> > > > > > Other question... Difference between a web server that accepts HTTP
> > > > > > Post and a REST server?
>
> > > > > > I am all new to ASP.Net so please forgive me.
>
> > > > > > ~Gina_M~- Hide quoted text -
>
> > > > - Show quoted text -- Hide quoted text -
>
> > > - Show quoted text -- Hide quoted text -
>
> > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -

Reply via email to