精华内容
下载资源
问答
  • Created by Jerry Wang, last ...Requirement: find out the service list changed with given user which have item category group assigned. 执行如下report,返回结果: 可以UI上看到的service相比较: r...

    Created by Jerry Wang, last modified on Apr 02, 2015

    Requirement: find out the service list changed with given user which have item category group assigned.
    执行如下report,返回结果:
    clipboard1

    可以和UI上看到的service相比较:
    clipboard2

    report source code:
      
    REPORT ztest2jerry.
      
    PARAMETERS: user TYPE sy-uname OBLIGATORY DEFAULT sy-uname.
      
    DATA: lt_crmm_pr_btr     TYPE STANDARD TABLE OF crmm_pr_btr,
     
          lt_comm_pr_frg_rel TYPE STANDARD TABLE OF comm_pr_frg_rel,
     
          lt_comm_product    TYPE STANDARD TABLE OF comm_product.
      
    START-OF-SELECTION.
     
      SELECT * INTO TABLE lt_crmm_pr_btr FROM crmm_pr_btr WHERE upname = user.
      
      IF sy-subrc <> 0.
     
        WRITE: / 'no service assigned with item category group existed for user: ' COLOR COL_NEGATIVE,
     
           user COLOR COL_POSITIVE.
     
        RETURN.
     
      ENDIF.
      
      SELECT * INTO TABLE lt_comm_pr_frg_rel FROM comm_pr_frg_rel FOR ALL ENTRIES IN lt_crmm_pr_btr
     
          WHERE fragment_guid = lt_crmm_pr_btr-frg_guid.
     
      ASSERT sy-subrc = 0.
      
      SELECT * INTO TABLE lt_comm_product FROM comm_product FOR ALL ENTRIES IN lt_comm_pr_frg_rel
     
          WHERE product_guid = lt_comm_pr_frg_rel-product_guid.
     
      ASSERT sy-subrc = 0.
      
      LOOP AT lt_crmm_pr_btr ASSIGNING FIELD-SYMBOL(<pr_btr>).
     
        WRITE:/ 'Valid from: ' COLOR COL_NEGATIVE, <pr_btr>-valid_from COLOR COL_GROUP,
     
        'category group name: ' COLOR COL_TOTAL, <pr_btr>-item_cat_group COLOR COL_KEY.
      
        READ TABLE lt_comm_pr_frg_rel ASSIGNING FIELD-SYMBOL(<frg>) WITH KEY fragment_guid = <pr_btr>-frg_guid.
     
        ASSERT sy-subrc = 0.
      
        READ TABLE lt_comm_product ASSIGNING FIELD-SYMBOL(<product>) WITH KEY product_guid = <frg>-product_guid.
     
        ASSERT sy-subrc = 0.
      
        WRITE: / 'Service id: ' COLOR COL_HEADING, <product>-product_id COLOR COL_GROUP.
      
      ENDLOOP.
    展开全文
  • ===通过扩展Surfe.be赚钱的好处#在所有浏览器上均可使用#您可以在Chrome,Opera,FirefoxYandex中安装Surfe.be扩展名#从$ 0.03即时取款#提款在1分钟内完成,并且已从$ 0.03起可用#将收入乘以2#达到“ 100”...
  • 开发项目微服务网关搭配使用的...Spring MVC found on classpath, which is incompatible with Spring Cloud Gateway at this time. Please remove spring-boot-starter-web dependency. ************************

    开发项目微服务和网关搭配使用的时候,报了如下所示的错误:

    *********************************************************
    
    Spring MVC found on classpath, which is incompatible with Spring Cloud Gateway at this time. Please remove spring-boot-starter-web dependency.
    
    **********************************************************
    
    
      WARN 24064 --- [           main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'routeDefinitionRouteLocator' defined in class path resource [org/springframework/cloud/gateway/config/GatewayAutoConfiguration.class]: Unsatisfied dependency expressed through method 'routeDefinitionRouteLocator' parameter 1; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'modifyRequestBodyGatewayFilterFactory' defined in class path resource [org/springframework/cloud/gateway/config/GatewayAutoConfiguration.class]: Unsatisfied dependency expressed through method 'modifyRequestBodyGatewayFilterFactory' parameter 0; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'org.springframework.http.codec.ServerCodecConfigurer' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {}
      INFO 24064 --- [           main] o.apache.catalina.core.StandardService   : Stopping service [Tomcat]
      INFO 24064 --- [           main] ConditionEvaluationReportLoggingListener : 
    
    Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
     ERROR 24064 --- [           main] o.s.b.d.LoggingFailureAnalysisReporter   : 
    
    ***************************
    APPLICATION FAILED TO START
    ***************************
    
    Description:
    
    Parameter 0 of method modifyRequestBodyGatewayFilterFactory in org.springframework.cloud.gateway.config.GatewayAutoConfiguration required a bean of type 'org.springframework.http.codec.ServerCodecConfigurer' that could not be found.
    
    
    Action:
    
    Consider defining a bean of type 'org.springframework.http.codec.ServerCodecConfigurer' in your configuration.
    
    
    Process finished with exit code 1
    
    

    后经过查阅资料多方论证终于解决,原因是gateway的依赖和spring-boot-starter-web、spring-boot-starter-webflux这两个依赖冲突,在pom文件中的gateway依赖中除去这两个依赖便好,可加入如下所示的依赖:

    <dependency>
                <groupId>org.springframework.cloud</groupId>
                <artifactId>spring-cloud-starter-gateway</artifactId>
                <exclusions>
                    <exclusion>
                        <groupId>org.springframework.boot</groupId>
                        <artifactId>spring-boot-starter-web</artifactId>
                    </exclusion>
                    <exclusion>
                        <groupId>org.springframework.boot</groupId>
                        <artifactId>spring-boot-starter-webflux</artifactId>
                    </exclusion>
                </exclusions>
            </dependency>
    
    展开全文
  • 在Linq to SQLEntity Framework,使用Linq查询数据的时候会出现错误:There is already an open DataReader associated with this Command which must be closed first 。 解决方案: 在数据库连接串上添加...

    在Linq to SQL和Entity Framework,使用Linq查询数据的时候会出现错误:There is already an open DataReader associated with this Command which must be closed first 。

    解决方案:

    在数据库连接串上添加MultipleActiveResultSets=true。

    本文来自云栖社区合作伙伴“doNET跨平台”,了解相关信息可以关注“opendotnet”微信公众号

    展开全文
  • 要回答这个问题, 要搞清楚三个问题, Ajax的基本工作原理, SOAP协议, REST协议.首先我们可以肯定的说Ajax原理REST协议的出发点不谋而合.为什么? Ajax的原理是利用javascript中的XMLHttpRequest object, 向服务器...
    要回答这个问题, 要搞清楚三个问题, Ajax的基本工作原理, SOAP协议, 和REST协议.首先我们可以肯定的说Ajax原理和REST协议的出发点不谋而合.为什么? Ajax的原理是利用javascript中的XMLHttpRequest object, 向服务器端发送http请求, 这个javascript的object在运行时是依赖于浏览器的js引擎的, 也可以认为这些http请求是由浏览器发出的,我们知道浏览器发送的http请求只有header信息, 没有body, 那么请求发送的参数在哪里能体现出来? 学过servlet的都知道, servlet利用了HTTP协议的GET, POST请求, 参数可以在这两个请求的URL中传递给服务器端程序.

    下面是一个SOAP请求, 我们SOAP协议是在HTTP的body中加入了SOAP的message, SOAP请求的参数是写在HTTP body中的SOAP message里.注意看下面的例子中服务器要求发送一个公司的名字来查询这个公司的股票价格. SOAP的 <env:Body>中传入了IBM(注意, SOAP消息格式本身也分header和body, 但整个SOAP消息都是在HTTP的body中), 但这个参数在HTTP header上是看不出来的.必须要求客户端有专门处理HTTP body中的SOAP引擎, 来给IBM这个参数包装一层SOAP的外衣. 而单凭XMLHttpRequest是做不到的. 即使想做也需要很多额外的js代码, 这样做会使客户端的js开发变得复杂.

    再看一下REST的请求的例子, 你会发先IBM这个参数可以在GET请求上的URL传递, 这是个巧妙的设计, XMLHttpRequest根本不需要做任何对http body的处理. 发送的HTTP请求有header就足够了.而返回的结果也只是普通的xml, 这个xml并不需要包裹在SOAP的body中(注意观察REST的response中的xml和SOAP的response中的xml有什么不同) , 这样, XMLHttpRequest收到结果后就可以从xml中解析出股票价格, 而不需要先解析SOAP, 在解析SOAP body中的xml, 从xml中在解析出股票价格. 中间可以省去对SOAP的处理.

    PS: Despite the name XMLHttpRequest object, the use of XML is not required (JSON is often used instead of xml in AJAX), and the requests do not need to be asynchronous.

    由此可见, REST更适合和AJAX协同工作.

    其实REST设计的初衷就是对HTTP协议的充分利用, HTTP不仅有GET和POST方法, 还有PUT和DELETE方法, 这四个方法涵盖了增删查改功能.

    The origin of the term "REST" comes from the famous thesis from Roy Fielding describing the concept of Representative State Transfer (REST). REST is an architectural style that can be summed up as four verbs (GET, POST, PUT, and DELETE from HTTP 1.1) and the nouns, which are the resources available on the network (referenced in the URI). The verbs have the following operational equivalents:

    HTTP CRUD Equivalent
    ==============================
    GET read
    POST create,update,delete
    PUT create,update
    DELETE delete

    A service to get the details of a user called 'dsmith', for example, would be handled using an HTTP GET to http://example.org/users/dsmith. Deleting the user would use an HTTP DELETE, and creating a new one would mostly likely be done with a POST. The need to reference other resources would be handled using hyperlinks (the XML equivalent of HTTP's href, which is XLinks' xlink:href) and separate HTTP request-responses.

    而在servlet中我们所做的增删查改都放到了doGet(), doPost()(对应HTTP的GET和POST)方法中, 其实这是对HTTP协议所规定的方法的一种误用, 背离了HTTP设计的初衷, 而REST可以看做对HTTP设计初衷的一种回归. 既然HTTP本身就有了增删查改, 我们要做的就是传递增删查改的资源名字, 我们可以传给IBM, 也可以传给服务器是Google , 只需要把这些参数放到这些方法的URL中的即可. 所以REST架构设计的难点在于对URL的设计, 我们把网站所有的资源都给出一个对应的URL.


    A Simple SOAP Example

    Putting it all together, below is an example of a simple request-response in SOAP for a stock quote. Here the transport binding is HTTP.

    The request:

    GET /StockPrice HTTP/1.1
    Host: example.org
    Content-Type: application/soap+xml; charset=utf-8
    Content-Length: nnn

    <?xml version="1.0"?>
    <env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope"
    xmlns:s="http://www.example.org/stock-service">
    <env:Body>
    <s:GetStockQuote>
    <s:TickerSymbol>IBM</s:TickerSymbol>
    </s:GetStockQuote>
    </env:Body>
    </env:Envelope>

    The response:

    HTTP/1.1 200 OK
    Content-Type: application/soap+xml; charset=utf-8
    Content-Length: nnn

    <?xml version="1.0"?>
    <env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope"
    xmlns:s="http://www.example.org/stock-service">
    <env:Body>
    <s:GetStockQuoteResponse>
    <s:StockPrice>45.25</s:StockPrice>
    </s:GetStockQuoteResponse>
    </env:Body>
    </env:Envelope>



    A Simple RESTful Service

    Re-writing the stock quote service above as a RESTful web service provides a nice illustration of the differences between SOAP and REST web services.

    The request:

    GET /StockPrice/IBM HTTP/1.1
    Host: example.org
    Accept: text/xml
    Accept-Charset: utf-8

    The response:

    HTTP/1.1 200 OK
    Content-Type: text/xml; charset=utf-8
    Content-Length: nnn

    <?xml version="1.0"?>
    <s:Quote xmlns:s="http://example.org/stock-service">
    <s:TickerSymbol>IBM</s:TickerSymbol>
    <s:StockPrice>45.25</s:StockPrice>
    </s:Quote>

    Though slightly modified (to include the ticker symbol in the response), the RESTful version is still simpler and more concise than the RPC-style SOAP version. In a sense, as well, RESTful web services are much closer in design and philosophy to the Web itself.


    Who's using REST?

    All of Yahoo's web services use REST, including Flickr, del.icio.us API uses it, pubsub, bloglines, technorati, and both eBay, and Amazon have web services for both REST and SOAP.

    Who's using SOAP?

    Google seams to be consistent in implementing their web services to use SOAP, with the exception of Blogger, which uses XML-RPC. You will find SOAP web services in lots of enterprise software as well.

    REST vs SOAP

    As you may have noticed the companies I mentioned that are using REST api's haven't been around for very long, and their apis came out this year mostly. So REST is definitely the trendy way to create a web service, if creating web services could ever be trendy (lets face it you use soap to wash, and you rest when your tired).

    The main advantages of REST web services are:

    Lightweight - not a lot of extra xml markup
    Human Readable Results
    Easy to build - no toolkits required

    SOAP also has some advantages:

    Easy to consume - sometimes
    Rigid - type checking, adheres to a contract
    Development tools
    展开全文
  • 操作系统是win10,这台机器上装了python2.7python 3.6. 我学的数值分析的课件等材料是python2环境下的。然后我自己在做的Python web开发是python3. 所以我是打算在这样一台win10上,有时候可以使用python2,有时候...
  • nginx -with-openssl with-http-openssl区别

    万次阅读 2016-03-03 11:08:56
    --with-openssl 静态编译openssl库到nginx中 首先按照openssl到某个文件夹 然后编译nginx的时候指定源码目录(非安装目录) ...-with-http-openssl 是一个选项直接是 which openssl 得到的那个openssl 动态安装
  • LINQ: There is already an open DataReader associated with this Command which must be closed first 在Linq to SQLEntity Framework,使用Linq查询数据的时候会出现错误:There is already an open ...
  • 在Linq to SQLEntity Framework,使用Linq查询数据的时候会出现错误:There is already an open DataReader associated with this Command which must be closed first 。解决方案:在数据库连接串上添加...
  • Linq insertonsubmit出现如下错误时,有可能表中的索引有关,删除索引问题解决。...The null value cannot be assigned to a member with type System.Int64 which is a non-nullable value type
  • 版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接本声明。 ...
  • *前言   前两天在使用Git提交代码时,我本地显示没什么可提交的了,但其他同事那却看不到我的代码...这次也没有,我再次pull时,pullpush的按钮都变成了灰色,我用命令pull时就提示“You are not currently on ...
  • 错误的原因是我mysql版本是5.7的,使用如下语句查询...only_full_group_by :使用这个就是使用oracle一样的group 规则, select的列都要在group中,或者本身是聚合列(SUM,AVG,MAX,MIN) 才行,其实这个配置目前个人感...
  • 通过viewPagerfragment 实现滑动效果,fragment动态生成,fragment生成view,里面包含远程数据的解析,其中包含image,对image的处理,网上都是使用现有的library, imageLoader 由于fragment通过循环生成,每次...
  • Fellow JavaScripters, it's time to admit it: we have a problem with promises.No, not with promises themselves. Promises, as defined by the A+ spec, are awesome.The big problem, which has revealed ...
  • 用于这种情况的关系代词一般为which(指物)whom(指人)。在这种结构中,介词的选择非常关键,可以遵循以下四个原则:(1)根据定语从句中的谓语动词确定介词,其动词与介词搭配,构成动词短语。例如: Is this ...
  • <p>from ./configure --..." mean "Define the location of directory of zlib which you have already installed in system" ? <p>what's the difference between "--with-zlib" and "--with-zlib-dir" ? </div>
  • After I set up requrejs and my dependencies, everything works fine with the homepage (localhost/), but when I go to some other page, which has URL something like localhost/news, it stops working and ...
  • <p>Basically the goal is to get only those users with their filtered submissions, which has any of them. However, it seems wasting to run both <strong>whereHas</strong> and <strong>with</strong> ...
  • ... <pre><code>$qtyValidFiles = count($validFiles); $tick = 0; foreach($validFiles AS $validItem) ...<p>which suggests to me that $tick</code> is always being seen as value <code>3</code>. </div>
  • Givennnon-negative integersa1,a2, ...,an, where each represents a point at coordinate (i,ai).nvertical lines are drawn such that the ... Find two lines, which together with x-axis forms a container, s...
  • <p>I run a the following ...and found few status_id and status_name are missing(which have the 0 value). But i need all the status counts for the task assigned user(workbin.task_assigned_id). </div>
  • It has special date-formatter tools for its fields, which allows one to specify a pattern that <code>date_format()</code> will accept. So, in this situation I am not easily able to add some ...
  • 有同事问我,在ORACLE的SQL执行中INOR谁更高效呢? 让我们来完成如下实验: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production With the Partitioning, Oracle Label Security, ...
  • Given an array with n integers, you need to find if there are triplets (i, j, k) which satisfies following conditions: 0 < i, i + 1 < j, j + 1 < k < n - 1 Sum of su...
  • <p>I was trying to use Eloquent vs Fluent/DB (which I did make work), but just can't figure it out. <p><strong>Follow-up</strong>: Depending on what version of PHP you have, you may need to do <code>...

空空如也

空空如也

1 2 3 4 5 ... 20
收藏数 4,319
精华内容 1,727
关键字:

which和with