2009-06-01 3 views
0

json을 통해 전송하지 않고 5 개의 문자열 매개 변수를 허용하는 웹 서비스를 호출 할 수 있습니까? .. 나는 5 문자열 PARAMS을 허용하는 방법과 웹 서비스를 만들었습니다 (이것은 권장) 그리고 난 jQuery를 사용하지 않고 옛날 방식이5 개의 STRING 매개 변수를 허용하는 jquery가있는 webservice를 호출합니까?

  this.para.add("Name", name); 
      this.para.add("ClientNum", clnum); 
      this.para.add("Email", email); 
      this.para.add("Register", register); 
      this.para.add("Message", message); 

      SOAPClient.invoke(this.url, "MyService.aspx/CreateClient", this.para, true, this.completeDone, this); 

에서 작업을 수행하는 것이 었습니다

   $.ajax({ 
       type: "POST", 
       url: "Service.aspx/CreateClient", 
       data: "{}", 
       contentType: "application/json; charset=utf-8", //// ERMMM ??? 
       dataType: "json", // ERMMM? 
       success: function(msg) { 
        alert(msg.d); 
       }, 
       error: function() { 
        alert('error'); 
       } 

      }); 

내 jQuery를이 다른 끝은 토지와 모든 매개 변수를 채 웁니다 ....

추천 방법은 무엇입니까?

답변

1

왜 쿼리 문자열 변수를 사용하지 않고 SOAP 프로토콜의 오버 헤드를 피할 수 있습니까?

관련 문제