문제

ProductA uses our only web service, which is a separate deployment from ProductA. We deploy both to production.

Later, we're writing ProductB. During that effort, we add a new method to our only web service. That new method wasn't in the WSDL when ProductA shipped. We make no changes to ProductA in development.

When we deploy ProductB to production, we also deploy (to production) the new version of our only web service (to the same endpoint URL where ProductA is expecting to find it). We don't re-deploy ProductA to production.

The WSDL for our only web service has changed in production, but the signatures of the methods being consumed by ProductA have not changed. They're still in the WSDL.

Will ProductA have any problems due to our upgrading our only web service in this way?

Do you have to upgrade a client of a webservice if the webservice changed in such a way that left the original client's methods unchanged?

도움이 되었습니까?

해결책

재귀를 사용할 수 있습니다. 사용할 수있는 숫자가 배열에 있습니다.

C # 코드 :

static int[] digits = new int[] {4, 5, 6};

static void Rec(int current, int numDigits) {
    if(numDigits==0)
        Console.WriteLine(current);
    else
        foreach(int x in digits)
            Rec(current*10+x, numDigits-1);
}
.

및 call :

static void Main(string[] args){
    Rec(0, 3);
}
.

다른 팁

안전한 컨트롤 - 무엇을 의미합니까?

Windows SharePoint Services 기술의 기본 가정은 "신뢰할 수없는 사용자"가 Windows SharePoint Services가 실행중인 시스템 내에서 ASPX 페이지를 업로드하고 생성 할 수 있다는 것입니다. 이러한 사용자는 ASPX 페이지 내에서 서버 측 코드를 추가하지만 "신뢰할 수없는"사용자가 사용할 수있는 승인 된 컨트롤 목록이 있어야합니다. 이러한 컨트롤을 제공하는 한 가지 방법은 안전 컨트롤 목록을 만드는 것입니다.

안전 컨트롤 목록은 사이트 내의 모든 ASPX 페이지에서 호출하기에 안전 한 것으로 지정한 SharePoint 사이트와 관련된 컨트롤 및 웹 파트 목록입니다. 이 목록을 웹 응용 프로그램 루트의 web.config 파일에 저장합니다.

안전 제어에 대한 자세한 내용

PageParserPaths - 이제 뭐하고 사용할 때

위의 답변에서 "페이지 파서 경로"는 ASP.NET의 인라인 코드를 허용하는 것입니다. PageParserPath로 지정하는 좋은 위치는 / _catalogs / masterPage와 같은 마스크 페이지를 저장하는 위치입니다. 이제 마스터 페이지에 서버 측 스크립트를 추가 할 수 있으므로이 마스터 페이지를 사용하여 모든 페이지에서 사용할 수 있습니다.

ref

Drupal 7을 사용하는 경우, 아마도 Drupal Commerce . 를 시도해보아야합니다.

달성하려는 작업에 대해서는 규칙 및 사용자를 찾을 수 있습니다.역할.

I did not want to chime in on an aging thread, and many key points have been made already, but I wanted to add a note about migrating frameworks. I have had unusual behaviors at times, after migrating from .Net 2.0 up, all the way through 4.6. I would elaborate more on the specific errors, but they were some time ago.

I want to also add that, despite most of these comments, I have had numerous issues from clients that did NOT upgrade web references even after the minimal changes described here in. And I might add that this could be the result of the newer framework. I have read in numerous places in MSDN over the years that the WSDL should always be regenerated.

I've actually been looking for a technique to do this automatically. So as to prevent client side crashes when the web services do get updated. I tripped across this thread in that search.

Not really an answer but too long for a comment here.

While I agree that there probably won't be any problem by not updating the service references of existing clients, you should also ask what problems there will be if you do update the service references of existing clients. Be sure to test that scenario as well.

Although we tend to think about adding method to the service as something that's only important on the server, keep in mind that when a service reference is updated, this is actually changing the code of the client.

Some organizations believe in testing client code when the client code changes.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top