Loading ...
Sorry, an error occurred while loading the content.

Parameters not being correctly translated by C# web service

Expand Messages
  • uzairaqeel
    Hi, I ve got a simple webservice that requires a SOAP request that looks ... SOAPAction: http://scm/doWinBuild
    Message 1 of 1 , Jul 5, 2005

      I've got a simple webservice that requires a SOAP request that looks
      something like this:


      SOAPAction: "http://scm/doWinBuild"

      <?xml version="1.0" encoding="utf-8"?>
      <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      <doWinBuild xmlns="http://scm">


      After much tweaking, I've finally got my SOAP::Lite client producing
      similar XML:


      <?xml version="1.0" encoding="UTF-8"?>
      <SOAP-ENV:Envelope xmlns:xsi="http://www.w3.org/1999/XMLSchema-
      instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
      xmlns:xsd="http://www.w3.org/1999/XMLSchema" SOAP-
      <namesp1:doWinBuild xmlns:namesp1="http://scm">
      <projectName xsi:type="xsd:string">myproject</projectName>
      <sourceURL xsi:type="xsd:string">mysource</sourceURL>
      <buildTool xsi:type="xsd:string">mybuildtool</buildTool>
      <buildParams xsi:type="xsd:string">mybuildparams</buildParams>


      I've also checked that the SOAPAction is correct. However, when this
      hits the C# web service, it is not interpreted correctly: although
      the correct method (doWinBuild) is called, all the parameter
      variables (projectName, sourceURL etc.) are null.

      This is clearly because of some fault in the request, but I don't see
      anything obvious to explain it (of course, my XML is subpar, so...)

      Does anyone have any suggestions? Thanks in advance.
    Your message has been successfully submitted and would be delivered to recipients shortly.