Click here to Skip to main content
15,881,898 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: submit buttons and image buttons Pin
Ali Al Omairi(Abu AlHassan)22-Apr-11 3:31
professionalAli Al Omairi(Abu AlHassan)22-Apr-11 3:31 
GeneralRe: submit buttons and image buttons Pin
Gerben Jongerius22-Apr-11 3:56
Gerben Jongerius22-Apr-11 3:56 
GeneralRe: submit buttons and image buttons Pin
Ali Al Omairi(Abu AlHassan)22-Apr-11 4:38
professionalAli Al Omairi(Abu AlHassan)22-Apr-11 4:38 
GeneralRe: submit buttons and image buttons Pin
AspDotNetDev3-May-11 8:14
protectorAspDotNetDev3-May-11 8:14 
GeneralRe: submit buttons and image buttons Pin
smithymoon4-May-11 23:33
smithymoon4-May-11 23:33 
QuestionSession Import from IE to Firefox [Solved] Pin
Ravi Sant19-Apr-11 5:11
Ravi Sant19-Apr-11 5:11 
AnswerRe: Session Import from IE to Firefox Pin
Gerben Jongerius21-Apr-11 19:35
Gerben Jongerius21-Apr-11 19:35 
Questionwhy soap serializaiton take much time Pin
Eric Vonjacson18-Apr-11 0:36
Eric Vonjacson18-Apr-11 0:36 
Hi,

I use the wsdl command to generate the client proxy for the java web service. And the service contain only one method and it like this:
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace="namespacess", ResponseNamespace="namespacess", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
[return: System.Xml.Serialization.XmlElementAttribute("return", Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public string execute([System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)] string arg0) {
            object[] results = this.Invoke("execute", new object[] {
                        arg0});
            return ((string)(results[0]));
        }


I create a custom SoapExtension class that is used to calculate the serialize and deserialize time when calling this method. I found that serialize will take more than 2000
Milliseconds. The soap serialization take much time and it's not acceptable.
the soapextension class is like this:
public class TraceSoapExtension : SoapExtension
{
      public override void ProcessMessage(SoapMessage message)
        {
            string methodname = message.MethodInfo.Name;
            string tmpInfo = "Call web method: " + methodname + " ";

            switch (message.Stage)
            {
                case SoapMessageStage.BeforeSerialize:
                    stc.Reset(); stc.Start();
                    tmpInfo = tmpInfo + "Before the soap message serialize: " + Environment.NewLine + 
                        "Time is: " + System.DateTime.Now.ToUniversalTime().ToString("MM/dd/yyyy hh:mm:ss.ffffff");
                    break;
                case SoapMessageStage.AfterSerialize:
                    stc.Stop();
                    tmpInfo = tmpInfo + "After the soap message serialize: " + Environment.NewLine + 
                        "Time is: " + System.DateTime.Now.ToUniversalTime().ToString("MM/dd/yyyy hh:mm:ss.ffffff");
                    tmpInfo += " Client serialize stop watch take time: " + stc.ElapsedMilliseconds;
                    break;
                case SoapMessageStage.BeforeDeserialize:
                    stc.Reset(); stc.Start();
                    tmpInfo = tmpInfo + "Receive soap message before deserialize: " + Environment.NewLine +
                        "Time is: " + System.DateTime.Now.ToUniversalTime().ToString("MM/dd/yyyy hh:mm:ss.ffffff");                    
                    break;
                case SoapMessageStage.AfterDeserialize:
                    stc.Stop();
                    tmpInfo = tmpInfo + "Receive soap message after deserizlie: " + Environment.NewLine + 
                        "Time is: " + System.DateTime.Now.ToUniversalTime().ToString("MM/dd/yyyy hh:mm:ss.ffffff");
                    tmpInfo += " Client deserialize stop watch take time: " + stc.ElapsedMilliseconds;
                    break;
                default:
                    break;
            }

            CommonUtil.Logger.Info(tmpInfo);
        }


}


So what's happened when the do the soap serialization? Why is it so slowly? What can I do to improve the performance?

thanks,
Eric
QuestionHow to get Excel and Word documents to open without the Open,Save,SaveAs box opening in IE9 Pin
TClarke14-Apr-11 3:19
TClarke14-Apr-11 3:19 
AnswerWorked it out myself Pin
TClarke14-Apr-11 5:24
TClarke14-Apr-11 5:24 
AnswerRe: How to get Excel and Word documents to open without the Open,Save,SaveAs box opening in IE9 Pin
Prasanta_Prince19-Apr-11 23:40
Prasanta_Prince19-Apr-11 23:40 
AnswerRe: How to get Excel and Word documents to open without the Open,Save,SaveAs box opening in IE9 Pin
Peter_in_278020-Apr-11 14:38
professionalPeter_in_278020-Apr-11 14:38 
Answername server settings - Solved [modified] Pin
Andy_L_J13-Apr-11 22:52
Andy_L_J13-Apr-11 22:52 
QuestionNested Row Grouping in Matrix Layout in SQL reporting services 2005 Pin
Jyothsna Vedam12-Apr-11 18:06
Jyothsna Vedam12-Apr-11 18:06 
AnswerCrosspost Pin
thatraja12-Apr-11 18:55
professionalthatraja12-Apr-11 18:55 
QuestionZoom or Text Size? Pin
Gregory Gadow7-Apr-11 10:39
Gregory Gadow7-Apr-11 10:39 
QuestionUpload video files to IIS server and see them in silverlight MediaElement? Pin
Yanshof7-Apr-11 3:58
Yanshof7-Apr-11 3:58 
AnswerRe: Upload video files to IIS server and see them in silverlight MediaElement? Pin
wolfbinary20-Apr-11 3:57
wolfbinary20-Apr-11 3:57 
QuestionPage Background - Making it Static Pin
Richard Andrew x646-Apr-11 14:24
professionalRichard Andrew x646-Apr-11 14:24 
AnswerRe: Page Background - Making it Static Pin
Luc Pattyn6-Apr-11 16:36
sitebuilderLuc Pattyn6-Apr-11 16:36 
AnswerRe: Page Background - Making it Static Pin
User 17164926-Apr-11 22:08
professionalUser 17164926-Apr-11 22:08 
GeneralRe: Page Background - Making it Static Pin
Richard Andrew x646-Apr-11 23:10
professionalRichard Andrew x646-Apr-11 23:10 
QuestionJavaScript and local computation. Pin
swjam5-Apr-11 0:01
swjam5-Apr-11 0:01 
AnswerRe: JavaScript and local computation. Pin
enhzflep5-Apr-11 16:23
enhzflep5-Apr-11 16:23 
AnswerRe: JavaScript and local computation. Pin
Jörgen Andersson5-Apr-11 20:08
professionalJörgen Andersson5-Apr-11 20:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.