Asmx webmethod doesn't send response

freemaneagle

New Member
I've got a .net 2 (ASMX) Webservice for an Adobe Flex client. The majority of service methods return XML and all work fine, however my \[code\]SaveChanges()\[/code\] method accepts Xml to return a boolean. Whenever this method is called it only returns the 100-Continue header to the client, Flex always thinks it's failed and starts up the error handlers.Breakpoints in the service reveal the 100-Continue method is sent before the method body (as expected), the method on the service gets to the return statement just fine but then no further response is received by the client.I've setup Membrane to proxy between the client and service and it can't see a response from the service either, but also can't see an added "Expects: 100-Continue" to the request that seems to be reported allot.Service MEthod:\[code\][WebMethod]public bool saveTemplateChanges( int id, string planTitle, string xml ){ using ( var spd = SeatPlanDb.Connect() ) // <= HTTP/1.1 100 CONTINUE is sent before this breakpoint { var templateChangesXml = this.CalculateDifferences( id, xml, "template" ); spd.UpdateTemplateXml( templateChangesXml ); spd.RunTemplateSeatplanFixups( id, planTitle ); } return ( true ); // <= breakpoint reached}\[/code\]Request:\[code\]POST /Service.asmx HTTP/1.1Host: localhost:58357User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:15.0) Gecko/20100101 Firefox/15.0.1Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8Accept-Language: en-us,en;q=0.5Accept-Encoding: gzip, deflateContent-type: text/xml; charset=utf-8SOAPAction: "http://tempuri.org/saveTemplateChanges"Content-length: 12073X-Forwarded-For: 127.0.0.1<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <SOAP-ENV:Body> <tns:saveTemplateChanges xmlns:tns="http://tempuri.org/"> <tns:id>100249</tns:id> <tns:planTitle>untitled</tns:planTitle> <tns:xml><performance ID="100249"><!-- Valid XML --></performance></tns:xml> </tns:saveTemplateChanges> </SOAP-ENV:Body></SOAP-ENV:Envelope>\[/code\]
 
Back
Top